/*
 * ============================================================
 * Thrithi 2026 — Main Stylesheet
 * ============================================================
 *
 * TABLE OF CONTENTS
 *
 *  1. RESET & BASE          — box-sizing, body defaults, smooth scroll
 *  2. HOME / HERO SECTION   — .coming-soon-wrapper, logo intro, typewriter
 *  3. SIDE NAVIGATION       — dot-style fixed nav
 *  4. REGISTER BUTTON       — CTA styling
 *  5. FOOTER INFO           — social icons in hero
 *  6. MODAL STYLES          — event poster modal, dark blur overlay
 *  7. REGISTRATION FORM     — inputs, checkboxes, alerts, success popup
 *  8. SCHOOL FILTER SELECT  — dropdown in registration
 *  9. SCHOOL SECTIONS       — shared + per-school (Law, FST, IBS, SoS, Arch)
 * 10. CONTACTS SECTION      — team cards
 * 11. FOOTER                — get-in-touch footer
 * 12. SMOOTH EXPERIENCE     — mobile fallbacks, tablet tweaks
 * 13. INSTAGRAM STORY UI    — carousel progress bars
 * 14. RESPONSIVE UTILITIES  — poster modal mobile, button collision fix
 *
 * ============================================================
 */

/* =======================================================
   1. RESET & BASE
   ======================================================= */

/* Universal box-sizing — ensures padding/border are included in element dimensions */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #641D36;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: transparent;
    /* Fallback to wine red applied to html */
    color: #F3F0E0;
    /* Cream */
    overflow-x: hidden;
    min-height: 100vh;
}

/* =======================================================
   2. HOME / HERO SECTION
   ======================================================= */

.coming-soon-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    /* Basic background that scrolls naturally */
    background-image: url('Images/BackgroundImages/Thrithi pages.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
 * BACKGROUND TRANSITION TECHNIQUE
 * --------------------------------
 * Each school section uses a ::before pseudo-element
 * with `position: fixed` to create a full-viewport background image.
 * The background starts at `opacity: 0` and transitions to `opacity: 1`
 * when the JavaScript IntersectionObserver adds the `.active-section`
 * class. This avoids `background-attachment: fixed` which causes
 * compositing issues on mobile, and gives a smooth cross-fade effect
 * between section backgrounds as the user scrolls.
 * Note: The Home page uses a native static background to allow natural scrolling.
 */

.content-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.fade-up-content {
    opacity: 0;
    animation: contentSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}

@keyframes contentSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Logo — animates from center to top-left on page load */
.top-left-logo {
    --logo-top: 20px;
    --logo-left: 20px;
    position: absolute;
    top: var(--logo-top);
    left: var(--logo-left);
    z-index: 10;
    animation: logoIntro 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoIntro {
    0% {
        transform: translate(calc(50vw - var(--logo-left) - 50%), calc(50vh - var(--logo-top) - 50%)) scale(1.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translate(calc(50vw - var(--logo-left) - 50%), calc(50vh - var(--logo-top) - 50%)) scale(1.5);
    }
    45% {
        opacity: 1;
        transform: translate(calc(50vw - var(--logo-left) - 50%), calc(50vh - var(--logo-top) - 50%)) scale(1.5);
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

.brand-logo {
    height: 55px; /* Mobile size */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(243, 240, 224, 0.8));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(243, 240, 224, 1));
}

/* Center Brand Logo — animates from middle to top-center on page load */
.center-brand-logo {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
    animation: centerLogoIntro 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.4s ease, filter 0.4s ease;
    margin-bottom: 0px;
}

.center-brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(243, 240, 224, 1));
}

@keyframes centerLogoIntro {
    0% {
        transform: translateY(60px) scale(1.3);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(60px) scale(1.3);
    }
    45% {
        opacity: 1;
        transform: translateY(60px) scale(1.3);
    }
    100% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #EAD7C5;
    /* Beige */
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.event-date {
    margin-top: 15px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.typing-container {
    margin-top: 10px;
}

.M-Heading {
    font-size: 2rem;
    font-weight: bold;
    color: #F3F0E0;
}

.typing-text {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #F3F0E0, #EAD7C5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =======================================================
   3. SIDE NAVIGATION — Dot Style
   ======================================================= */
.side-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(80px);
    z-index: 100;
    opacity: 0;
    animation: slideInNav 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

/* Side nav mobile optimization */
@media (max-width: 576px) {
    .side-nav {
        right: 12px;
    }
}


@keyframes slideInNav {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(80px);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.side-nav li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.side-nav a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Label — hidden by default, slides in on hover */
.side-nav a::before {
    content: attr(data-label);
    color: #000;
    /* EAD7C5 */
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

/* Dot */
.side-nav a::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.side-nav a:hover::before,
.side-nav a.active::before {
    opacity: 1;
    transform: translateX(0);
}

.side-nav a:hover::after,
.side-nav a.active::after {
    background-color: #000;
    border-color: #000;
    transform: scale(1.2);
}

.side-nav a.active::after {
    background-color: #000;
    border-color: #000;
    transform: scale(1.4);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* =======================================================
   4. REGISTER BUTTON
   ======================================================= */
.register-container {
    display: block;
}

/* Register Button */
.register-btn {
    background-color: #EAD7C5;
    color: #641D36;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 10px 40px;
    border-radius: 30px;
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.register-btn:hover {
    background-color: #F3F0E0;
    transform: translateY(-3px);
    color: #641D36;
}

/* =======================================================
   REMAINDER OF STYLES (School sections, registration, etc.)
   ======================================================= */
.footer-info p {
    font-size: 1.2rem;
    color: #EAD7C5;
    letter-spacing: 1px;
}

/* Instagram CTA in Hero Section */
.instagram-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #F3F0E0;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(243, 240, 224, 0.1);
}

.instagram-cta i {
    font-size: 1.8rem;
}

.instagram-cta span {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.instagram-cta:hover {
    color: #EAD7C5;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(234, 215, 197, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.instagram-cta:hover i {
    transform: rotate(10deg);
}

.instagram-follow-text {
    font-size: 0.9rem;
    color: #F3F0E0;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .center-brand-logo {
        height: 100px;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .M-Heading,
    .typing-text {
        font-size: 1.5rem;
    }
}



/* =======================================================
   2-STEP EVENT MODAL STYLES (Modern & Premium) 
======================================================= */
/* Custom Animated Modal & Dark Blur Overlay */
.modal-backdrop.show {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.custom-modal-content {
    background-color: #1a1a1a;
    /* Dark premium background */
    color: #F3F0E0;
    /* Cream text */
    border-radius: 12px;
    border: 1px solid rgba(243, 240, 224, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-title {
    color: #EAD7C5;
    /* Gold/Beige */
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 1.5rem;
}

.registration-section {
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.section-title {
    color: #F3F0E0;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Inputs */
.reg-input,
.reg-select {
    margin-bottom: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    color: #F3F0E0;
    transition: border-color 0.2s, background-color 0.2s;
}

.reg-input:focus,
.reg-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #EAD7C5;
    color: #F3F0E0;
    box-shadow: 0 0 0 0.2rem rgba(234, 215, 197, 0.25);
    outline: none;
}

.reg-input::placeholder {
    color: rgba(243, 240, 224, 0.5);
}

.file-status-text {
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 1.2rem;
    font-weight: 500;
}

/* Checkboxes (Step 1) */
.event-checkboxes-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Custom scrollbar for events */
.event-checkboxes-container::-webkit-scrollbar {
    width: 6px;
}

.event-checkboxes-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.event-checkboxes-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-checkbox {
    padding: 8px 12px 8px 30px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.custom-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.custom-checkbox .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-left: -1.75rem;
    cursor: pointer;
    margin-top: 0.2rem;
}

.custom-checkbox .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #F3F0E0;
}

/* Call to actions */
.total-amount-box {
    font-size: 1.1rem;
    color: #EAD7C5;
    background: rgba(100, 29, 54, 0.3);
    /* Slight maroon tint */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(100, 29, 54, 0.5);
}

.submit-proceed-btn {
    background-color: #EAD7C5;
    color: #641D36;
    border: none;
    border-radius: 4px;
    padding: 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.submit-proceed-btn:hover {
    background-color: #F3F0E0;
    color: #641D36;
    transform: translateY(-2px);
}

/* Alert styles */
.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
}

.custom-alert {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    font-weight: 500;
}

/* =======================================================
   PREMIUM SUCCESS OVERLAY (Paytm-style)
======================================================= */
.registration-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.registration-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-card {
    background: #F3F0E0;
    width: 90%;
    max-width: 400px;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.registration-success-overlay.active .success-card {
    transform: translateY(0) scale(1);
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    margin: 0 auto 1.5rem;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.650, 0.000, 0.450, 1.000) .8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #4bb71b;
    }
}

.success-title {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.success-details {
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.success-amt {
    font-size: 2rem;
    font-weight: 800;
    color: #641D36;
}

.close-success-btn {
    background: #641D36;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s;
}

.close-success-btn:hover {
    background: #4a1528;
    transform: translateY(-2px);
}

/* ===================== CENTRALIZED MODAL: SCHOOL FILTER ===================== */
/* Styles the school dropdown in the centralized "Register Now" modal.
   Inherits the same dark-theme design as .reg-select inputs. */
.school-filter-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #F3F0E0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    /* Ensure dropdown options are readable on all browsers */
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23EAD7C5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}

.school-filter-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #EAD7C5;
    box-shadow: 0 0 0 0.2rem rgba(234, 215, 197, 0.2);
    outline: none;
    color: #F3F0E0;
}

.school-filter-select option {
    background-color: #1a1a1a;
    color: #F3F0E0;
}

/* =======================================================
   9. SCHOOL SECTIONS — Shared Styles + Per-School
   ======================================================= */

/* ---- Section Logos (shared across all school sections) ---- */
.law-final-section,
.fst-final-section,
.ibs-final-section,
.soc-final-section,
.arch-final-section {
    position: relative;
}

.section-logo {
    position: absolute;
    top: 40px;
    left: 50px;
    height: 110px;
    width: auto;
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
    .section-logo {
        top: 20px;
        left: 20px;
        height: 55px;
    }
}

/* ---- ICFAI LAW SCHOOL ---- */
.law-final-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* NOTE: position:relative already declared in the shared rule above (line ~695) */
    overflow: hidden;
}

.law-final-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #5baccc;
    background-image: url('Images/BackgroundImages/Law\ Building.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.law-final-section.active-section::before {
    opacity: 1;
}

.law-final-overlay {
    width: 100%;
    max-width: 1900px;
    min-height: 100vh;
    background-color: rgba(144, 75, 107, 0.85);
    /* Solid maroon transparency */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    text-align: center;
}

.law-final-header {
    color: #FFFFFF;
    font-size: 3.8rem;
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

.law-final-divider {
    width: 80%;
    border: 0;
    border-top: 3px solid #FFFFFF;
    margin-top: 0;
    margin-bottom: 2rem;
}

.law-final-text {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.law-final-btn {
    background-color: rgba(100, 45, 75, 0.85);
    /* Dark mauve matching the purple-pink section background */
    color: #FFFFFF;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 12px 45px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

.law-final-btn:hover {
    background-color: rgba(75, 30, 55, 0.95);
    color: #FFFFFF;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .law-final-overlay {
        padding: 100px 2rem 4rem;
    }

    .law-final-header {
        font-size: 2.5rem;
    }

    .law-final-text {
        font-size: 0.9rem;
    }
}

/* ---- ICFAI TECH (Faculty of Science & Technology) ---- */
.fst-final-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fallback dark background moved to before */
    padding: 0;
    position: relative;
    overflow: hidden;
}

.fst-final-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    background-image: url('Images/BackgroundImages/FST\ Building.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.fst-final-section.active-section::before {
    opacity: 1;
}

.fst-final-overlay {
    width: 100%;
    max-width: 1900px;
    min-height: 100vh;
    background-color: rgba(43, 114, 151, 0.75);
    /* Deep blue transparency matching the image */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    text-align: center;
}

.fst-final-header {
    color: #FFFFFF;
    font-size: 3.8rem;
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

.fst-final-divider {
    width: 80%;
    border: 0;
    border-top: 3px solid #FFFFFF;
    margin-top: 0;
    margin-bottom: 2rem;
}

.fst-final-text {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.fst-final-btn {
    background-color: rgba(25, 75, 105, 0.85);
    /* Dark blue matching the section background */
    color: #FFFFFF;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 12px 45px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

.fst-final-btn:hover {
    background-color: rgba(15, 55, 80, 0.95);
    color: #FFFFFF;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .fst-final-overlay {
        padding: 100px 2rem 4rem;
    }

    .fst-final-header {
        font-size: 2.5rem;
    }

    .fst-final-text {
        font-size: 0.9rem;
    }
}

/* ---- ICFAI BUSINESS SCHOOL ---- */
.ibs-final-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Adding a fallback light blue background as seen faintly on edges */
    padding: 0;
    position: relative;
    overflow: hidden;
}

.ibs-final-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #87CEEB;
    background-image: url('Images/BackgroundImages/Building.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.ibs-final-section.active-section::before {
    opacity: 1;
}

.ibs-final-overlay {
    width: 100%;
    /* Setting it exactly like the image where it has slight blue edges */
    max-width: 1900px;
    min-height: 100vh;
    background-color: rgba(186, 34, 37, 0.60);

    /* Refined burnt orange/amber transparency */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    text-align: center;
}

.ibs-final-header {
    color: #FFFFFF;
    font-size: 3.8rem;
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

.ibs-final-divider {
    width: 80%;
    border: 0;
    border-top: 3px solid #FFFFFF;
    margin-top: 0;
    margin-bottom: 2rem;
}

.ibs-final-text {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.ibs-final-btn {
    background-color: rgba(154, 28, 30, 0.75);
    /* Refined darker amber matching the new atmosphere */
    color: #FFFFFF;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 12px 45px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

.ibs-final-btn:hover {
    background-color: rgba(154, 28, 30, 0.95);
    color: #FFFFFF;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .ibs-final-overlay {
        padding: 100px 2rem 4rem;
    }

    .ibs-final-header {
        font-size: 2.5rem;
    }

    .ibs-final-text {
        font-size: 0.9rem;
    }
}


/* ---- FACULTY OF SOCIAL SCIENCE ---- */
.soc-final-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.soc-final-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    background-image: url('Images/BackgroundImages/Social\ ScienceBuilding.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.soc-final-section.active-section::before {
    opacity: 1;
}

.soc-final-overlay {
    width: 100%;
    max-width: 1900px;
    min-height: 100vh;
    background-color: rgba(94, 137, 72, 0.85);
    /* Translucent Green matching the image */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    text-align: center;
}

.soc-final-header {
    color: #FFFFFF;
    font-size: 3.8rem;
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

.soc-final-divider {
    width: 80%;
    border: 0;
    border-top: 3px solid #FFFFFF;
    margin-top: 0;
    margin-bottom: 2rem;
}

.soc-final-text {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.soc-final-btn {
    background-color: rgba(55, 100, 40, 0.85);
    /* Dark green matching the section background */
    color: #FFFFFF;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 12px 45px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

.soc-final-btn:hover {
    background-color: rgba(35, 75, 25, 0.95);
    color: #FFFFFF;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .soc-final-overlay {
        padding: 100px 2rem 4rem;
    }

    .soc-final-header {
        font-size: 2.5rem;
    }

    .soc-final-text {
        font-size: 0.9rem;
    }
}

/* ---- ICFAI ARCHITECTURE ---- */
.arch-final-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.arch-final-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/BackgroundImages/Arch\ block.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.arch-final-section.active-section::before {
    opacity: 1;
}

.arch-final-overlay {
    width: 100%;
    max-width: 1900px;
    min-height: 100vh;
    background-color: rgba(167, 158, 142, 0.85);
    /* Khaki/beige overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    text-align: center;
}

.arch-final-header {
    color: #FFFFFF;
    font-size: 3.8rem;
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

.arch-final-divider {
    width: 80%;
    border: 0;
    border-top: 3px solid #FFFFFF;
    margin-top: 0;
    margin-bottom: 2rem;
}

.arch-final-text {
    color: #FFFFFF;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.arch-final-btn {
    background-color: rgba(120, 110, 95, 0.85);
    /* Dark khaki matching the section background */
    color: #FFFFFF;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 12px 45px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

.arch-final-btn:hover {
    background-color: rgba(90, 80, 70, 0.95);
    color: #FFFFFF;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .arch-final-overlay {
        padding: 100px 2rem 4rem;
    }

    .arch-final-header {
        font-size: 2.5rem;
    }

    .arch-final-text {
        font-size: 0.9rem;
    }
}


/* =======================================================
   10. CONTACTS SECTION
   ======================================================= */
.contacts-section {
    background-color: #f3f0e0;
    /* Cream F3F0E0*/
    padding: 5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacts-title {
    background-color: #641D36;
    color: #F3F0E0;
    padding: 8px 28px;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ---- Team Card ---- */
.contacts-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
}

.contacts-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    max-width: 650px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    background-color: #EAD7C5;
    border: 1.5px solid #641D36;
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

@media (max-width: 1024px) {
    .contacts-grid {
        flex-direction: column;
        align-items: center;
    }

    .contacts-column {
        width: 100%;
    }
}

.team-label {
    min-width: 120px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #641D36;
    line-height: 1.4;
    padding-top: 0.3rem;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.member-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #641D36;
    font-style: italic;
}

.member-detail {
    font-size: 0.8rem;
    color: #641D36;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.85;
}

.member-detail i {
    font-size: 0.7rem;
    color: #641D36;
    flex-shrink: 0;
}

/* =======================================================
   11. FOOTER — Get In Touch
   ======================================================= */
.contacts-footer {
    background-color: #641D36;
    padding: 2.5rem 5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    max-width: 340px;
}

.footer-col-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F3F0E0;
    margin-bottom: 1rem;
}

.footer-col-text {
    font-size: 0.8rem;
    color: rgba(243, 240, 224, 0.8);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-follow {
    font-size: 0.8rem;
    color: rgba(243, 240, 224, 0.8);
}

.footer-social-icon {
    color: #F3F0E0;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icon:hover {
    color: #EAD7C5;
    transform: scale(1.2);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #F3F0E0;
    font-size: 0.9rem;
}

.footer-location i {
    font-size: 1rem;
    color: #EAD7C5;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.footer-logo {
    height: 90px;
    object-fit: contain;
    margin-top: -25px;
    margin-bottom: 0.3rem;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #F3F0E0;
    margin: 0;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(243, 240, 224, 0.65);
    margin: 0;
}

@media (max-width: 768px) {
    .contacts-footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 2rem;
    }

    .team-card {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .team-label {
        min-width: auto;
        text-align: center;
    }

    .team-members {
        align-items: center;
    }

    .team-member {
        align-items: center;
        text-align: center;
    }
}


/* =======================================================
   12. SMOOTH EXPERIENCE ENHANCEMENTS (Mobile / Tablet)
   ======================================================= */

/* iOS Safari does not support background-attachment:fixed — fall back to scroll on mobile
   to prevent blank/broken backgrounds and compositing jank on Android */
@media (max-width: 768px) {

    /* Use portrait-optimised background on mobile */
    .coming-soon-wrapper {
        background-image: url('Images/BackgroundImages/Thrithi Home page mobile.png');
        background-size: cover;
        background-position: center;
    }

    .law-final-section::before,
    .fst-final-section::before,
    .ibs-final-section::before,
    .soc-final-section::before,
    .arch-final-section::before {
        position: absolute;
        background-attachment: scroll;
    }
}

/* On narrow phones the active-state side-nav label overflows into the content area.
   Suppress label text — keep the dot active indicator fully intact. */
@media (max-width: 576px) {
    .side-nav a::before {
        display: none;
    }
}

/* Tablet breakpoint (769px–992px) — reduce side padding on overlays and footer (Fix #9) */
@media (min-width: 769px) and (max-width: 992px) {

    .law-final-overlay,
    .fst-final-overlay,
    .ibs-final-overlay,
    .soc-final-overlay,
    .arch-final-overlay {
        padding: 2rem 3rem;
    }

    .contacts-footer {
        padding: 2rem 3rem;
    }
}

/* =======================================================
   13. INSTAGRAM STORY UI (Carousel progress bars)
   ======================================================= */
.story-progress-container {
    pointer-events: none;
    /* Let clicks pass through if empty space */
}

.story-progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    /* Re-enable pointer events for segments */
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #F5F5DC;
}

.story-progress-segment.completed .story-progress-fill {
    width: 100%;
}

.story-progress-segment.active .story-progress-fill {
    animation: storyFill var(--story-duration, 4s) linear forwards;
}

.story-progress-segment.paused .story-progress-fill {
    animation-play-state: paused;
}

@keyframes storyFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* =======================================================
   14. RESPONSIVE UTILITIES
   ======================================================= */

/* Ensure poster modal fits small screens without overflow & Fix mobile button collision */
@media (max-width: 576px) {
    #posterModal .modal-dialog {
        max-width: 95vw !important;
        margin: 0.5rem auto;
    }

    #posterModal .modal-body .close {
        top: -5px !important;
        right: -5px !important;
        font-size: 2rem !important;
    }

    .register-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .register-btn.ml-3 {
        margin-left: 0 !important;
    }

}

/* =======================================================
   15. STANDALONE REGISTRATION PAGE
   ======================================================= */

.registration-page-body {
    background-image: url('Images/BackgroundImages/Thrithi pages.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.registration-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(243, 240, 224, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    animation: cardFadeIn 0.8s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-card-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.registration-card-title {
    color: #EAD7C5;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* NOTE: .back-link styles removed — "Back to Home" now uses .register-btn */

.registration-card-body {
    padding: 2rem;
}

/* iOS Safari does not support background-attachment:fixed */
@media (max-width: 768px) {
    .registration-page-body {
        background-attachment: scroll;
    }
}