:root {
    --mit-blue: #005aa3;
    --deep-blue: #003366;
    --accent-gold: #ffc107;
    --soft-blue: #eef4f9;
}

html,
body {
    font-family: "Halyard Micro";
    color: #2d3436;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
}

.navbar-toggler {
    background: #005aa3;
}

.text-primary {
    color: #005aa3 !important;
}


@media (min-width: 1200px) {
    .display-5 {
        font-size: 2.8rem;
    }

    .display-6 {
        color: #005aa3;
    }

    .metric-item p {
        font-size: 1rem;
    }

    p {
        font-size: 1.15rem;
    }

    span {
        font-size: 1.14rem;
    }

    .alert p {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}


@media screen and (max-width:992px) and (min-width: 768px) {
    .revealed h4 {
        font-size: 1.1rem !important;
    }

    .highlight-date {
        font-size: 1.3rem !important;
    }
}

@media screen and (max-width:1200px) and (min-width:992px) {
    .reward-amount {
        font-size: 2.1rem !important;
    }
}

.display-5 {
    font-size: 2.4rem;
}

.display-5 {
    /* color: #005aa3; */
    color: #005aa3;
}

.tableorangeSet th {
    background: #f26425;
    color: #fff;
}

.nav-link {
    color: #005aa3 !important;
}

/* SOFTENED BLUR FOR BETTER READABILITY */
/* .section-focus {
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
    opacity: 0.4;
    filter: grayscale(50%) blur(1px);
    transform: scale(0.99);
}

.section-focus.active-focus {
    opacity: 1 !important;
    filter: grayscale(0%) blur(0px);
    transform: scale(1);
} */

/* HERO SECTION */
/* .hero {
    position: relative;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.8)), url('../images/hero-bg.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 200px 0 150px;
    text-align: center;
} */



/* Responsive Navbar Logo Styling */
.navbar-logo {
    height: 79px;
    /* Default height for desktop */
    width: auto;
    transition: height 0.3s ease;
    margin-right: 0.8rem;

}

.navbar-brand {
    background: #fff;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .navbar-logo {
        height: 79px;
        /* Slightly smaller for tablets */
    }

    .glass-card {
        padding: 15px;
    }

    .card-number {
        margin-right: 10px;
    }

    #university-section .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-clean-layout {
        padding: 40px 0 !important;
    }

    .why-join-section {
        padding: 40px 0 !important;
    }

    .timeline-wrapper {
        padding: 40px 0 !important;
    }

    .container {
        max-width: 790px;
    }
}

@media (max-width: 575px) {
    .navbar-logo {
        height: 79px;
        /* Compact height for phones */
    }

    .navbar-brand span {
        font-size: 1.1rem;
        /* Smaller text size on phones */
    }

    .display-5 {
        font-size: 2rem;
    }

    .reward-amount {
        font-size: 2.2rem !important;
    }
}



/* Container positioned at middle right */
.side-enquiry-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 2000;
    display: flex;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-50%) translateX(0);
    /* Fully Visible */
}

/* Hidden State: Only the button remains visible */
.side-enquiry-wrapper.collapsed {
    transform: translateY(-50%) translateX(350px);
}

/* The Vertical Button */
.enquire-toggle-btn {
    background: #005aa3;
    color: white;
    border: none;
    padding: 25px 10px;
    border-radius: 0px 10px 10px 0px;
    cursor: pointer;
    font-weight: bold;
    /* Rotation Logic */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.enquire-toggle-btn i {
    transform: rotate(90deg);
    /* Flip chevron to point horizontally */
    margin-bottom: 10px;
}

/* The White Form Area */
.side-form-content {
    background: white;
    width: 350px;
    padding: 30px 25px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #005aa3;
}

/* Validation Error Text Styling */
.error-text {
    font-size: 11px;
    height: 15px;
    /* Prevents button jump when error appears */
    margin-top: 2px;
    font-weight: 500;
}

/* Responsive adjust for mobile */
@media (max-width: 576px) {
    .side-form-content {
        width: 280px;
    }

    .side-enquiry-wrapper.collapsed {
        transform: translateY(-50%) translateX(280px);
    }

    .enquire-toggle-btn span {
        font-size: 0.8rem;
    }

    .enquire-toggle-btn {
        padding: 20px 6px;
    }

}

.hero {
    position: relative;
    color: white;
    /* Use min-height instead of fixed height for better responsiveness */
    min-height: auto;
    text-align: center;
    overflow: hidden;
    margin-top: 5.5rem;
    /* Space for fixed navbar */
    background: #001e3c;
    /* Providing a fallback solid color */
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
    .hero {
        margin-top: 3.5rem;
        padding: 20px 0;
    }
}


/* Ensure images inside hero don't cause overflow/scrollbars */
.hero img {
    max-width: 100%;
    height: auto;
    display: block;
}

.fw-black {
    font-weight: 900;
}

/* ABOUT SECTION MODERNIZE */
.about-clean-layout {
    padding: 100px 0;
    background: #fff;
}

.image-box-wrapper {
    position: relative;
    padding: 10px;
}

.main-about-img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

.image-box-wrapper:hover .main-about-img {
    transform: translateY(-10px);
}

.highlight-date {
    font-size: 1.6rem;
    font-weight: 700;
}

.badge {
    font-size: 1.1rem;
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: 15px;
    background: #f26425;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* WHY JOIN SECTION */
.why-join-section {
    padding: 100px 0;
    background: #fff;
}

.feature-card {
    padding: 40px;
    border-radius: 25px;
    background: linear-gradient(180deg, #E4EFF7 0%, rgba(228, 239, 247, 0) 100%);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    background: var(--mit-blue);
    color: white;
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--mit-blue);
    margin-bottom: 20px;
}

.feature-card:hover i {
    color: #fff;
}

/* REWARDS */
.reward-card {
    background: white;
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid rgba(0, 90, 163, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.reward-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--mit-blue);
}

/* TIMELINE */
.timeline-wrapper {
    padding: 120px 0;
    background: #fdfdfd;
    position: relative;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.timeline-filler {
    position: absolute;
    top: 40px;
    left: 0;
    width: 0%;
    height: 6px;
    background: var(--mit-blue);
    z-index: 1;
    transition: width 3s ease;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 340px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s;
}

.step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #bbb;
}

.step.revealed .step-icon {
    border-color: var(--mit-blue);
    color: var(--mit-blue);
}

.step.active .step-icon {
    background: #f26425;
    border-color: #f26425;
    color: #fff;
}

/* UNIVERSITY STACK */
.image-stack-effect {
    padding: 15px;
    background: white;
    border-radius: 20px;
    transform: rotate(-2deg);
    transition: 0.4s;
}

.image-stack-effect:hover {
    transform: rotate(0deg);
}

/* FOOTER */
.footer-premium {
    background: linear-gradient(180deg, var(--deep-blue) 0%, #001a33 100%);
    color: white;
    padding: 80px 0 20px;
}

/* ANIMATION: Shimmer for pill */
.shimmer-pill {
    position: relative;
    overflow: hidden;
    background: white;
}

.shimmer-pill::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine-swipe 3s infinite;
}

@keyframes shine-swipe {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@media (max-width: 991px) {
    .feature-card {
        padding: 20px;
    }

    .reward-card {
        padding: 50px 15px;
    }

    .reward-amount {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-steps::before,
    .timeline-filler {
        display: none;
    }

    .step {
        width: 100%;
        margin-bottom: 40px;
        opacity: 1;
        transform: none;
    }

    .container,
    .container-md,
    .container-sm {
        max-width: 820px;
    }
}

@media (max-width: 500px) {
    .reward-amount {
        font-size: 2.8rem;
    }
}


.timeline-glass-section {
    background: radial-gradient(circle at top right, #eef2f7, #d9e4f0);
    overflow: hidden;
    position: relative;
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

/* Center Glowing Line */
.glow-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #005aa3, #f26425, transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

/* Glass Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* .glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px rgba(0, 90, 163, 0.1);
} */

/* Card Number Styling */
.card-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f26425;
    /* Orange accent */
    margin-right: 25px;
    opacity: 0.8;
    line-height: 1;
}

.step-date {
    display: block;
    color: #005aa3;
    font-weight: 700;
    /* Change this to uppercase */
    text-transform: uppercase; 
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Add this to target the "th" specifically */
.step-date sup {
    text-transform: lowercase;
    /* Optional: slightly adjust size if it looks too big in uppercase context */
    font-size: 0.8em; 
}
/* Finale Card - Modern Gradient */
.finale-hero {
    background: linear-gradient(135deg, #005aa3 0%, #003a6b 100%);
    color: white;
    border: none;
}

.finale-num {
    color: rgba(255, 255, 255, 0.3);
}

/* Staggering effect for Desktop */
@media (min-width: 768px) {
    .staggered-up {
        transform: translateY(-20px);
    }

    .staggered-down {
        transform: translateY(40px);
    }
}

@media (max-width: 767px) {
    .glow-line {
        left: 20px;
    }

    .glass-card {
        flex-direction: column;
        text-align: center;
    }

    .card-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .rules-list li strong {
    display: contents!important;
    word-break: break-all;
}
}

/* Button Pulse Animation */
.pulse-animation {
    animation: pulse-blue 2s infinite;
    background: #005aa3 !important;
    border: none;
}

@keyframes pulse-blue {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 90, 163, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 90, 163, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 90, 163, 0); }
}

/* Trendy Glassmorphism Modal */
.rules-modal-content {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}


.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
    color: #444;
}

.rules-list li i {
    color: #005aa3;
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
     word-break: break-word; /* Force long emails to wrap to next line */
    overflow-wrap: anywhere;
    flex-wrap: nowrap; 
}

.rules-list li:last-child {
    border-bottom: none;
}

/* Specific styling for the email text to ensure it wraps correctly */
.rules-list li strong {
    display: inline-block;
    word-break: break-all;
}