/* Registration Page Design CSS*/

:root {
    --teal-dark: #1a6b6b;
    --teal-mid: #2a9a9a;
    --maroon: #8b0000;
    --text-dark: #1a2a2a;
    --pad-h: clamp(14px, 4vw, 40px);
}

html {
    scroll-behavior: smooth;
}

.page-body {
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--text-dark);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}



/* KEYFRAME ANIMATIONS */

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(16px);
    }

    70% {
        transform: scale(1.06) translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes waveFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 150, 167, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 150, 167, 0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rowSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* HEADER — from 2nd code style */

.header {
    position: relative;
    background: linear-gradient(270deg, #1a237e, #1565c0, #0097a7, #00bcd4, #1565c0, #1a237e);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    text-align: center;
    overflow: hidden;
}
/*
.toptext h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: clamp(12px, 2.2vw, 22px);
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    animation: fadeDown 0.9s ease 0.2s both;
    text-align: center;
}

.logo1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.8vw, 18px);
    padding: clamp(16px, 2.5vw, 26px) var(--pad-h) 0;
    flex-wrap: wrap;
}

.logo1 img {
    height: clamp(50px, 8.5vw, 92px);
    width: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: clamp(5px, 1vw, 8px) clamp(8px, 1.5vw, 12px);
    box-shadow: none;
    transition: transform 0.3s ease;
    animation: popIn 0.6s cubic-bezier(.36, .07, .19, .97) both;
}

.logo1 img:nth-child(1) {
    animation-delay: 0.4s;
}

.logo1 img:nth-child(2) {
    animation-delay: 0.55s;
}

.logo1 img:nth-child(3) {
    animation-delay: 0.70s;
}

.logo1 img:nth-child(4) {
    animation-delay: 0.85s;
}

.logo1 img:nth-child(5) {
    animation-delay: 1.00s;
}

.logo1 img:nth-child(6) {
    animation-delay: 1.15s;
}

.logo1 img:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
*/
/* Logo placeholder fallbacks */
/*.logo-placeholder {
    display: none;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: clamp(11px, 1.5vw, 13px);
    letter-spacing: 0.5px;
    background: #fff;
    border-radius: 6px;
    padding: 8px 12px;
}

.logo-iem {
    color: #d32f2f;
    border: 2px solid #d32f2f;
    border-radius: 4px;
    padding: 4px 8px;
}

.logo-smart {
    color: #d32f2f;
    font-size: clamp(13px, 2vw, 15px);
}

.logo-iemis {
    color: #1a6b6b;
    font-size: clamp(12px, 1.8vw, 14px);
    border: 2px solid #1a6b6b;
    padding: 3px 7px;
    border-radius: 3px;
}

.logo-springer {
    color: #333;
    font-size: clamp(12px, 1.8vw, 14px);
    font-style: italic;
}

.logo-uem {
    color: #1a3a6b;
    font-size: clamp(11px, 1.5vw, 13px);
    border: 2px solid #1a3a6b;
    padding: 4px 7px;
    border-radius: 4px;
}

.logo-ubc {
    color: #002145;
    font-size: clamp(11px, 1.5vw, 13px);
    border: 2px solid #002145;
    padding: 4px 7px;
    border-radius: 4px;
}
*/

/* Shimmer overlay on header */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.10) 50%,
            transparent 60%);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.topnav,
.waves {
    position: relative;
    z-index: 2;
}

/* Waves — from 2nd code */
.waves {
    position: relative;
    width: 100%;
    height: clamp(40px, 6vw, 70px);
    margin-bottom: -7px;
    min-height: 40px;
    max-height: 150px;
    display: block;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-duration: 7s;
    animation-delay: -2s;
}

.parallax>use:nth-child(2) {
    animation-duration: 10s;
    animation-delay: -3s;
}

.parallax>use:nth-child(3) {
    animation-duration: 13s;
    animation-delay: -4s;
}

.parallax>use:nth-child(4) {
    animation-duration: 20s;
    animation-delay: -5s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* ── NAVBAR — from 2nd code (after header) ── */
/* .navbar {
    background: white !important;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeDown 0.6s ease both;
}

.navbar-brand img {
    height: clamp(32px, 5vw, 42px);
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: clamp(11px, 1.1vw, 13.5px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #222 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    position: relative;
    transition: color 0.25s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #1a9a6b;
    transition: left 0.25s, right 0.25s;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    left: 0.5rem;
    right: 0.5rem;
}

.nav-link.active {
    color: #1a9a6b !important;
}

.nav-link:hover {
    color: #1a9a6b !important;
} */

/* ── PAGE BODY ── */
.page-body {
    background: #ffffff;
    padding: clamp(20px, 3vw, 40px) 0 48px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.content-card {
    background: #ffffff;
    border-top: 1.5px solid #d0e8f4;
    border-bottom: 1.5px solid #d0e8f4;
    border-left: none;
    border-right: none;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 2px 14px rgba(0, 80, 120, 0.07);
    overflow: hidden;
    animation: fadeUp 0.8s ease 0.3s both;
}

/* ── VENUE COLLAGE ── */
.venue-collage {
    width: 100%;
    height: clamp(140px, 24vw, 210px);
    display: flex;
    overflow: hidden;
    border-bottom: 3px solid #9dd4ee;
}

.venue-col {
    flex: 1.1;
    overflow: hidden;
}

.venue-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}

.venue-col:hover img,
.venue-col-right:hover img {
    transform: scale(1.06);
}

.venue-divider {
    width: 3px;
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.venue-col-right {
    flex: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5f7a, #0d3a4a);
}

/* ── CARD INNER ── */
.card-inner {
    padding: clamp(18px, 3vw, 36px) var(--pad-h) clamp(18px, 3vw, 36px);
}

/* ── SCROLL REVEAL base state ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.from-left {
    transform: translateX(-40px);
}

.reveal.from-right {
    transform: translateX(40px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── SECTION HEADINGS ── */
.section-heading {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: clamp(13px, 1.7vw, 15px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0d2a2a;
    padding: clamp(12px, 2vw, 18px) 0 4px;
    text-decoration: underline;
    text-underline-offset: 4px;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #1565c0, #00bcd4);
    border-radius: 2px;
    margin: 6px auto 0;
    transition: width 0.7s ease 0.2s;
}

.reveal.visible .section-heading::after,
.section-heading.animate-line::after {
    width: 80px;
}

.section-body {
    padding: 8px 0 14px;
    font-size: clamp(12px, 1.4vw, 13px);
    line-height: 1.75;
    color: #1a2a2a;
    text-align: justify;
}

.sub-heading {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: clamp(12px, 1.5vw, 13.5px);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0d2a2a;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: clamp(10px, 1.8vw, 16px) 0 6px;
}

.sub-link {
    padding: 2px 0 14px;
    font-size: clamp(12px, 1.4vw, 13px);
    line-height: 1.75;
    color: #1a2a2a;
}

.sub-link a {
    color: #c0392b;
    font-weight: 600;
    word-break: break-all;
    position: relative;
    display: inline;
    transition: color 0.2s;
}

.sub-link a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #c0392b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.sub-link a:hover::after {
    transform: scaleX(1);
}

.section-divider {
    border: none;
    border-top: 1px solid #d0e8f4;
    margin: 6px 0;
}

/* ── TABLES ── */
.reg-table-label {
    font-size: clamp(11px, 1.3vw, 12.5px);
    font-weight: 700;
    color: #0d3a4a;
    margin: 12px 0 6px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    margin-bottom: 14px;
}

.reg-table,
.dates-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b8d8e8;
}

.reg-table {
    min-width: 400px;
}

.dates-table {
    min-width: 300px;
}

.reg-table thead tr,
.dates-table thead tr {
    background: linear-gradient(135deg, #1a5f7a, #0d3a4a);
    color: white;
}

.reg-table thead th,
.dates-table thead th {
    padding: clamp(8px, 1.5vw, 11px) clamp(10px, 2vw, 16px);
    text-align: center;
    font-weight: 700;
    font-size: clamp(10px, 1.2vw, 11.5px);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.reg-table tbody td,
.dates-table tbody td {
    padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 16px);
    border: 1px solid #d0e8f4;
    color: #1a2a2a;
    font-size: clamp(11px, 1.4vw, 12.5px);
    transition: background 0.2s, transform 0.2s;
}

.reg-table tbody td {
    text-align: center;
}

.dates-table tbody td:last-child {
    text-align: center;
    white-space: nowrap;
}

.dates-table tbody td:first-child {
    font-weight: 600;
    color: #0d3a4a;
}

.reg-table tbody tr:nth-child(even),
.dates-table tbody tr:nth-child(odd) {
    background: #f5fbfe;
}

.reg-table tbody tr:hover td,
.dates-table tbody tr:hover td {
    background: #dff0fa;
    transform: translateX(4px);
}

.dates-table tbody tr.highlight-row td {
    font-weight: 700;
    background: #e0f2f8;
    color: #0d3a4a;
}

.dates-table tbody tr.highlight-row:hover td {
    background: #c8e9f5;
}

.animate-row {
    animation: rowSlide 0.45s ease both;
}

/* ── NOTES & CANCELLATION ── */
.notes-list {
    padding: 6px 0 12px clamp(18px, 3vw, 24px);
    font-size: clamp(11px, 1.4vw, 12.5px);
    line-height: 1.9;
    color: #1a2a2a;
}

.notes-list li {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.notes-list.visible li:nth-child(1) {
    transition-delay: 0.0s;
    opacity: 1;
    transform: none;
}

.notes-list.visible li:nth-child(2) {
    transition-delay: 0.12s;
    opacity: 1;
    transform: none;
}

.notes-list.visible li:nth-child(3) {
    transition-delay: 0.24s;
    opacity: 1;
    transform: none;
}

.cancellation-note {
    font-size: clamp(11px, 1.4vw, 12.5px);
    line-height: 1.7;
    color: #1a2a2a;
    padding: 2px 0 14px;
    border-left: 3px solid #8b0000;
    padding-left: 12px;
    transition: border-color 0.3s;
}

.cancellation-note:hover {
    border-color: #c0392b;
}

.cancellation-note strong {
    color: #8b0000;
}

/* ── BACK TO TOP ── */
.back-to-top {
    position: fixed;
    bottom: clamp(16px, 4vw, 30px);
    right: clamp(16px, 4vw, 30px);
    width: 46px;
    height: 46px;
    background: #32C36C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    animation: pulse-border 2.5s ease-in-out infinite;
}

.back-to-top:hover {
    background: var(--teal-mid);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

/* ── FOOTER ── */
.footer {
    background: #1a1a2e !important;
    color: #ccc;
}

.footer a {
    color: #4fc3c3;
    text-decoration: none;
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
    .venue-collage {
        height: clamp(110px, 30vw, 160px);
    }
}

@media (max-width: 576px) {
    :root {
        --pad-h: 14px;
    }

    .toptext h1 {
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .venue-collage {
        height: 106px;
    }

    .reg-table {
        min-width: 360px;
    }

    .dates-table {
        min-width: 260px;
    }

    .footer .row>div {
        text-align: center !important;
    }
}

@media (max-width: 360px) {
    .toptext h1 {
        font-size: 10px;
    }

    .reg-table {
        min-width: 320px;
    }

    .reg-table thead th,
    .reg-table tbody td {
        padding: 6px 8px;
        font-size: 10px;
    }
}

@media (min-width: 1400px) {
    .toptext h1 {
        font-size: 24px;
    }
}

@media print {

    .back-to-top,
    .footer {
        display: none;
    }

    .header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/*** Navbar ***/
/* 
.navbar.sticky-top {
    top: 0;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-brand img {
    height: 70px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 15px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    outline: none;
    font-family: Garamond, serif;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}
*/
