/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #007c9d;
    /* Updated Brand Color */
    --accent-gold: #f39c12;
    --teal-dark: #007c9d;
    --teal-light: #00a8cc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --apollo-flame: #FDB813;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    max-width: 100%;
    overflow-x: hidden;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Global Font Enforcement */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-link,
input,
button,
select,
textarea {
    font-family: 'Outfit', sans-serif !important;
}

/* Animations Removed */

.hero-content>* {
    opacity: 1;
}

/* Navbar */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile navbar white background */
@media (max-width: 991px) {
    .navbar {
        background: white !important;
        position: fixed !important;
        /* Floating Style */
        top: 15px !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        border-radius: 15px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    .navbar .nav-link {
        color: black !important;
    }

    .navbar .navbar-brand img {
        filter: none;
        /* ensure logo appears correctly */
    }

    /* Mobile Navbar Adjustments */
    .navbar {
        padding: 10px 0;
        z-index: 1050;
        /* Ensure navbar stays on top */
    }

    .hero {
        margin-top: 110px;
        /* Push hero down to clear floating navbar */
    }

    .navbar .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .navbar-scrolled {
        padding: 10px 0 !important;
        /* Keep stable padding on mobile */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /* Ensure separation */
    }
}


.navbar-scrolled {
    background: white !important;
    /* Dark semi-transparent blue/black */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: black !important;
}

.centered-nav .navbar-brand {
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    body {
        padding-top: 100px;
    }

    .centered-nav .nav-link {
        color: white !important;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        opacity: 0.9;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
}



/* Scrolled State Link Color */
.navbar-scrolled .nav-link {
    color: black !important;
}

.small-icon {
    font-size: 0.7em;
    vertical-align: middle;
    opacity: 0.7;
}

/* Specific adjustment for spacing around center logo */
@media (min-width: 992px) {
    .centered-nav .navbar-collapse {
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    min-height: auto;
    /* Reset min-height */
}

/* Default Image Styling (Mobile) */
.hero .hero-desktop-bg,
.hero img.d-lg-none {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay */
.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Default padding for mobile */
    padding: 20px 0;
}

/* Hero Content */
.hero-content h1 {
    font-weight: 800;
    line-height: 1.2;
    font-size: 80px;
}

.hero-content .year {
    color: var(--teal-light);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Registration Form Column */
.registration-col {
    margin: 0;
    width: 100%;
    max-width: 550px;
}

/* Desktop Layout (Standard + Flex for banner containment) */
@media (min-width: 992px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* Images become background cover on desktop */
    .hero .hero-desktop-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .hero-overlay {
        padding: 60px 0;
    }

    .registration-col {
        /* Width handled globally now */
        flex: 0 0 auto;
    }

    .hero-content h1 {
        font-size: 100px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Mobile Layout Restoration */
@media (max-width: 991px) {
    .hero {
        margin-top: 110px;
        /* Push down for fixed navbar */
        display: block;
    }

    .registration-col {
        /* width & max-width handled globally */
        margin: 0 auto;
        margin-top: -100px;
        /* Pull up to overlap image slightly if desired, or set to 0 */
        position: relative;
        z-index: 5;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 10px 0;
    }

    .footer-contact-strip {
        text-align: center;
    }

    .footer-contact-strip .col-lg-3 {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-contact-strip .row.g-4 {
        justify-content: center !important;
    }

    .footer-contact-strip .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact-strip .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .highlight-card {
        text-align: center;
    }
}

/* Registration Card */
.registration-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    /* border: 1px solid rgba(255, 255, 255, 0.1); remove border if solid white */
    margin: 0px 0px 0px 0px;
    /* Ensure hardware acceleration for rounding */
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.registration-header {
    background-color: #087ea4;
    /* Teal color from image */
    padding: 2.5rem 1rem;
    color: white;
    border-radius: 30px 30px 0 0;
    /* Should match card but handled by overflow hidden typically */
}

.registration-body {
    padding: 3rem;
}

/* Custom Form Controls */
.form-label-custom {
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-control-custom {
    border-radius: 50px;
    /* Pill shape */
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(8, 126, 164, 0.2);
    /* Remove default border visual */
    background-color: #f8f9fa;
    /* Light gray bg */
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background-color: #fff;
    border-color: #087ea4;
    box-shadow: 0 0 0 4px rgba(8, 126, 164, 0.1);
}

/* Specific fix for textarea rounded corners if not pill */
textarea.form-control-custom {
    border-radius: 20px !important;
}

.btn-primary-custom {
    background-color: #087ea4;
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary-custom:hover {
    background-color: #066c8c;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 126, 164, 0.2);
}

.btn-yellow {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d35400 100%);
    /* Orange-ish gradient for depth or just flat gold? Let's match the style of primary with a gradient including the gold */
    /* Actually let's just use the accent color as base, maybe slight gradient */
    background: var(--accent-gold);
    color: white;
}

.btn-yellow:hover {
    background: #e67e22;
    color: white;
}



/* Section Common */
section {
    padding: 40px 0;
}

.section-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* Highlights */
#highlights {
    background-color: #d1e9f1;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    /* Safari Fix */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}



.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    z-index: -1;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--apollo-flame), #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Faculty */
.faculty-section {
    padding: 1rem 0;
    /* background-color: #f8f9fa; */
}

.faculty-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.faculty-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

#associate-faculty {
    /* background-color: #d1e9f1; */
    padding: 20px 0 60px;
    /* Adjust padding as needed, maintaining visual balance */
}

.faculty-member {
    background: #ffffff;
    border-radius: 30px;
    padding: 0.6rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Static shadow */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Align to top */
    transition: all 0.3s ease;
}



.faculty-img-wrapper {
    width: 100%;
    /* height: 150%; */
    /* Full width of the card's content area */
    aspect-ratio: 1/1.2;
    /* Ensure perfect square */
    /* margin: 0 auto 1rem; */
    border-radius: 25px;
    /* Rounded corners for modern feel */
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Safari Fix */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.faculty-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Match wrapper */
    display: block;
}

.faculty-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    min-height: 2.8em;
    /* Ensure consistent height for 2 lines of text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Subtle decoration line below name */
.faculty-member::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--teal-light);
    margin-top: 1rem;
    opacity: 0.5;
    border-radius: 10px;
}



/* Schedule */
.schedule-table {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Safari Fix */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.schedule-table th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal-dark) 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1rem;
}

.schedule-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

/* Footer */
footer {
    background: #d1e9f1;
    color: #007c9d;
}

.callback-banner {
    background-color: var(--primary-blue);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 124, 157, 0.2);
}

/* Callback Form Inputs */
.callback-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.callback-form .form-control {
    color: white;
}

.callback-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: white;
    box-shadow: none;
}

/* Helpline Boxes */
.helpline-box {
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}



.bg-light-orange {
    background-color: #fff8e1;
}

.bg-light-blue {
    background-color: #e3f2fd;
}

.bg-light-info {
    background-color: #e0f7fa;
}

/* Footer Links */
.footer-links h6 {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--primary-blue) !important;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #4b5563;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}



/* Footer Contact Strip */
.footer-contact-strip {
    background-color: #1e3a8a;
    /* Darker blue to match specific screenshot tone */
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #d1e9f1;
    /* Light cyan/blue to match screenshot */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom Button Colors */
.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}



/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



/* Marquee Section */
.marquee-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    /* Safari Fix */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    margin-right: 4rem;
    /* Spacing between items */
    font-size: 1.1rem;
    font-weight: 500;
}

.marquee-item i {
    font-size: 1.2rem;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
        /* 1/3 of content (3 sets) */
    }
}

/* Hover to pause */
.marquee-content:hover {
    animation-play-state: paused;
}

/* Schedule Enhancements */
.schedule-table th {
    white-space: nowrap;
}

.text-success-dark {
    color: #0d5e3c;
    /* Dark green for moderators */
}

.bg-light-blue {
    background-color: #dbeff6 !important;
    /* Lighter blue for session content */
}

.bg-gold {
    background-color: #ab8e65 !important;
    /* Brownish gold for Lunch Break */
}

.bg-secondary {
    background-color: #6da2bf !important;
    /* Blue-ish gray for Tea Break */
}

.break-row td {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.session-header-block {
    background-color: #403d6c;
    /* Dark indigo/blue from image */
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 1.3rem;
    display: block;
    width: 100%;
    text-align: center;
}

.session-row td {
    padding: 0 !important;
    /* Remove padding for the header row container */
    border: none;
}

.schedule-table td {
    vertical-align: middle;
    font-size: 0.95rem;
}

.schedule-table .fw-bold {
    font-weight: 600 !important;
}

/* Refactored Inline Styles */
.z-relative {
    z-index: 2;
}

/* Schedule Column Widths */
.col-w-15 {
    width: 15%;
}

.col-w-35 {
    width: 35%;
}

.col-w-10 {
    width: 10%;
}

.col-w-20 {
    width: 20%;
}

.cta-title {
    color: var(--primary-blue);
}

.cta-card {
    max-width: 400px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal-dark) 100%);
    border-radius: 20px;
    color: white;
}

.cta-name {
    color: #ffe681;
}

.icon-fixed-width {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-iframe {
    border: 0;
    min-height: 300px;
}

/* Mobile Responsive Schedule */
@media (max-width: 768px) {

    .schedule-table {
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .schedule-table table,
    .schedule-table thead,
    .schedule-table tbody,
    .schedule-table th,
    .schedule-table td,
    .schedule-table tr {
        display: block;
    }

    /* Hide standard headers */
    .schedule-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .schedule-table tr {
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        margin-bottom: 1.5rem;
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1rem;
    }

    .schedule-table td {
        border: none;
        border-bottom: 1px solid #f3f4f6;
        padding: 0.75rem 0;
        position: relative;
    }

    .schedule-table td:last-child {
        border-bottom: none;
    }

    /* Add Labels via CSS */
    /* Only for standard data rows (not break/session rows) */
    .schedule-table tr:not(.break-row):not(.session-row) td:nth-of-type(1)::before {
        content: "Time";
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-light);
        font-weight: 600;
        margin-bottom: 4px;
    }

    .schedule-table tr:not(.break-row):not(.session-row) td:nth-of-type(2)::before {
        content: "Topic";
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-light);
        font-weight: 600;
        margin-bottom: 4px;
    }

    .schedule-table tr:not(.break-row):not(.session-row) td:nth-of-type(3)::before {
        content: "Duration";
        display: inline-block;
        font-weight: 600;
        color: var(--text-light);
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }

    .schedule-table tr:not(.break-row):not(.session-row) td:nth-of-type(4)::before {
        content: "Presenter";
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-light);
        font-weight: 600;
        margin-bottom: 4px;
        margin-top: 0.5rem;
    }

    .schedule-table tr:not(.break-row):not(.session-row) td:nth-of-type(5)::before {
        content: "Moderators";
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-light);
        font-weight: 600;
        margin-bottom: 4px;
        margin-top: 0.5rem;
    }

    /* Styles for Content */
    .schedule-table tr:not(.break-row):not(.session-row) td:nth-of-type(1) {
        color: var(--primary-blue);
        font-weight: 700;
        font-size: 1.1rem;
    }

    .schedule-table tr:not(.break-row):not(.session-row) td:nth-of-type(2) {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    /* Break Row Handling */
    .schedule-table tr.break-row {
        background: transparent;
        box-shadow: none;
        border: none;
        text-align: center;
        padding: 0;
    }

    .schedule-table tr.break-row td {
        border-radius: 8px;
        /* Keep original background color classes */
        width: 100%;
    }

    /* Session Row Handling */
    .schedule-table tr.session-row {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-bottom: 1rem;
    }

    .schedule-table tr.session-row td {
        border: none;
        padding: 0;
    }

    /* Hide empty cells in session row */
    .schedule-table tr.session-row td:empty {
        display: none;
    }
}