﻿/* ==========================================================
   ADMISSIONS HERO (FLOATING CARDS UI)
   ========================================================== */
.adm-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0 150px 0; /* Extra padding at bottom for the curve */
    overflow: hidden;
}

.adm-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.adm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Left Side Content --- */
.adm-hero-content {
    animation: slideRightFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

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

.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 134, 11, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.adm-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
}

.adm-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 500px;
}

.adm-action-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.adm-btn-primary {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3);
}

.adm-btn-outline {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .adm-btn-outline:hover {
        background: var(--white);
        color: var(--primary);
        border-color: var(--white);
    }

/* --- Right Side: Floating Glass Cards --- */
.adm-hero-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    perspective: 1000px;
}

.adm-cards-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.adm-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 320px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: absolute;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: floatAnim 6s ease-in-out infinite;
}

    .adm-glass-card:hover {
        transform: translateY(-10px) scale(1.02) !important;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 30px 50px rgba(0,0,0,0.2);
        z-index: 10 !important;
    }

/* Card Staggering & Positioning */
.adm-card-0 {
    top: 20px;
    right: 20px;
    z-index: 3;
    animation-delay: 0s;
}

.adm-card-1 {
    top: 140px;
    right: 120px;
    z-index: 2;
    animation-delay: -2s; /* Offsets the float animation */
}

.adm-card-2 {
    top: 260px;
    right: 40px;
    z-index: 1;
    animation-delay: -4s;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

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

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

.adm-card-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.adm-card-text {
    display: flex;
    flex-direction: column;
}

    .adm-card-text span {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.8);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .adm-card-text strong {
        font-size: 1.2rem;
        color: var(--white);
        font-weight: 600;
    }

/* --- SVG Bottom Curve --- */
.adm-hero-curve {
    position: absolute;
    bottom: -2px; /* Pulls it down to hide seam */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

    .adm-hero-curve svg {
        display: block;
        width: calc(100% + 1.3px);
        height: 80px;
    }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .adm-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .adm-subtitle {
        margin: 0 auto 40px auto;
    }

    .adm-action-btns {
        justify-content: center;
    }

    .adm-hero-visual {
        min-height: 350px;
        display: flex;
        justify-content: center;
    }

    .adm-cards-wrapper {
        width: 320px; /* Centers the floating cards container */
    }

    .adm-card-0 {
        top: 0;
        right: -20px;
    }

    .adm-card-1 {
        top: 100px;
        right: 20px;
    }

    .adm-card-2 {
        top: 200px;
        right: -10px;
    }
}

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

    .adm-btn-primary, .adm-btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* On mobile, stack the cards normally instead of overlapping */
    .adm-hero-visual {
        min-height: auto;
    }

    .adm-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 20px;
    }

    .adm-glass-card {
        position: relative;
        top: 0 !important;
        right: 0 !important;
        width: 100%;
        animation: none;
        transform: none !important;
    }
}
/* ==========================================================
   ADMISSIONS PROCESS (TIMELINE / STEPS)
   ========================================================== */
.adm-process-section {
    padding: 100px 0;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.adm-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px auto;
}

    .adm-section-header h2 {
        font-size: 2.8rem;
        color: var(--primary);
        font-family: 'Playfair Display', serif;
        margin-bottom: 20px;
    }

    .adm-section-header p {
        font-size: 1.15rem;
        color: #64748b;
        line-height: 1.7;
    }

/* --- The Grid --- */
.adm-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* --- Individual Step Card --- */
.adm-step-card {
    position: relative;
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    overflow: hidden; /* Keeps the watermark inside */
}

    .adm-step-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(18, 52, 83, 0.08);
        background: var(--white);
        border-color: rgba(184, 134, 11, 0.2);
    }

/* --- Floating Icon --- */
.adm-step-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.adm-step-card:hover .adm-step-icon-wrapper {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.2);
}

/* --- Content & Watermark --- */
.adm-step-content {
    position: relative;
    z-index: 2;
}

.adm-step-watermark {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    font-weight: 800;
    color: rgba(18, 52, 83, 0.03); /* Barely visible shadow number */
    z-index: -1;
    font-family: 'Playfair Display', serif;
    transition: color 0.4s ease;
}

.adm-step-card:hover .adm-step-watermark {
    color: rgba(184, 134, 11, 0.05); /* Turns slightly gold on hover */
}

.adm-step-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.adm-step-content p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* --- Horizontal Connecting Lines (Desktop Only) --- */
.adm-step-connector {
    position: absolute;
    top: 80px; /* Aligns with the center of the icon */
    right: -50%;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, var(--secondary) 50%, transparent 50%);
    background-size: 15px 100%; /* Creates the dashed effect */
    opacity: 0.3;
    z-index: 0;
}

/* --- Footer Action Area --- */
.adm-process-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #edf2f7;
}

    .adm-process-footer p {
        font-size: 1.1rem;
        color: #64748b;
        margin-bottom: 20px;
    }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    /* Hide the connecting line when items start to wrap */
    .adm-step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .adm-process-section {
        padding: 60px 0;
    }

    .adm-section-header h2 {
        font-size: 2.2rem;
    }

    .adm-step-card {
        padding: 30px 20px;
    }
}
/* ==========================================================
   ADMISSIONS FAQ SECTION (ACCORDION)
   ========================================================== */
.adm-faq-section {
    padding: 100px 0;
    background-color: #f4f7f9;
    font-family: 'Poppins', sans-serif;
}

/* THE MAGIC FIX: Grid Areas to control placement across devices */
.adm-faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas:
        "header accordion"
        "contact accordion";
    column-gap: 60px;
    row-gap: 30px;
    align-items: start;
}

.adm-faq-header-col {
    grid-area: header;
}

.adm-faq-accordion-col {
    grid-area: accordion;
}

.adm-faq-contact-card {
    grid-area: contact;
}

/* --- Left Column Elements --- */
.adm-section-title {
    font-size: 2.8rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    line-height: 1.2;
}

.adm-section-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0; /* Margin handled by grid row-gap */
}

/* Contact Card Help Box */
.adm-faq-contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 20px;
}

.adm-faq-contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(184, 134, 11, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.adm-faq-contact-card h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.adm-faq-contact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.adm-contact-link {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.1rem;
}

    .adm-contact-link:hover {
        color: var(--primary);
    }

/* --- Right Column: Accordion UI --- */
.adm-faq-accordion-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.adm-faq-item {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

    /* Active State Styles */
    .adm-faq-item.active {
        box-shadow: 0 15px 35px rgba(18, 52, 83, 0.08);
        border-left-color: var(--secondary);
    }

/* Question Button */
.adm-faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 25px 30px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.adm-faq-item:hover .adm-faq-question {
    color: var(--secondary);
}

.adm-faq-toggle-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.adm-faq-item.active .adm-faq-toggle-icon {
    background: var(--secondary);
    color: var(--white);
    transform: rotate(180deg);
}

/* Hidden Answer Section */
.adm-faq-answer {
    max-height: 0; /* JS handles the opening height */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

.adm-faq-answer-inner {
    padding: 0 30px 30px 30px;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- Responsive Layout (Mobile Ordering Fix) --- */
@media (max-width: 992px) {
    .adm-faq-wrapper {
        grid-template-columns: 1fr;
        /* THIS INSTANTLY REORDERS EVERYTHING FOR MOBILE! */
        grid-template-areas:
            "header"
            "accordion"
            "contact";
        gap: 40px;
    }

    .adm-section-title {
        text-align: center;
    }

    .adm-section-subtitle {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .adm-faq-contact-card {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 15px;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .adm-faq-section {
        padding: 60px 0;
    }

    .adm-section-title {
        font-size: 2.2rem;
    }

    .adm-faq-question {
        padding: 20px;
        font-size: 1.05rem;
    }

    .adm-faq-answer-inner {
        padding: 0 20px 20px 20px;
    }
}