﻿

/* ===============================
   IITDM – MODERN SINGLE COLUMN
   =============================== */
:root {
    --purple: #4B1D69;
    --gold: #FDBC01;
    --bg: #F6F3FB;
    --card: #ffffff;
    --text: #222;
    --muted: #666;
}

#adm-page {
    background: var(--bg);
    padding: 40px 50px 70px;
    font-family: Montserrat, Arial, sans-serif;
}

.adm-wrap {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* HERO */
.adm-hero {
    background: linear-gradient(135deg,#4B1D69,#6A2C91);
    color: #fff;
    border-radius: 18px;
    padding: 36px 28px;
    margin-bottom: 30px;
}

    .adm-hero h1 {
        font-size: 34px;
        font-weight: 900;
        margin-bottom: 12px;
    }

    .adm-hero p {
        max-width: 100%;
        opacity: .95;
        line-height: 1.6;
    }

    .adm-hero .cta {
        margin-top: 18px;
    }

.adm-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

    .adm-btn.primary {
        background: var(--gold);
        color: #111;
    }

/* SECTION */
.adm-section {
    background: var(--card);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 26px;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
}

    .adm-section h2 {
        font-size: 24px;
        color: var(--purple);
        font-weight: 900;
        margin-bottom: 10px;
    }

.adm-sub {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* LIST BLOCKS */
.adm-grid {
    display: grid;
    gap: 14px;
}

.adm-card {
    background: #F3EEF9;
    border-left: 6px solid var(--purple);
    border-radius: 12px;
    padding: 14px 16px;
}

    .adm-card strong {
        color: var(--purple);
    }

/* STEPS */
.adm-steps {
    display: grid;
    gap: 14px;
}

.adm-step {
    display: flex;
    gap: 14px;
    background: #F3EEF9;
    padding: 14px;
    border-radius: 14px;
}

    .adm-step span {
        width: 40px;
        height: 40px;
        background: var(--purple);
        color: #fff;
        font-weight: 900;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* RESPONSIVE */
@media(max-width:768px) {
    .adm-hero h1 {
        font-size: 26px;
    }

    .adm-section h2 {
        font-size: 20px;
    }
}



/* ================================
   SCHOLARSHIPS – IMAGE STYLE (FULL)
   ================================ */
.sch-intro {
    margin: 0 0 12px;
    color: #444;
    line-height: 1.6;
}

.sch-subtitle {
    margin: 16px 0 8px;
    font-weight: 900;
    color: var(--purple);
}

.sch-guidelines {
    padding-left: 18px;
    margin: 0 0 18px;
    color: #333;
    line-height: 1.55;
}

.sch-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 14px;
}

/* Outer lavender card */
.sch-card {
    background: #F6F1FB;
    border-radius: 22px;
    padding: 22px 18px 18px;
}

/* Top area (100% + tag) */
.sch-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.sch-percent {
    font-size: 48px;
    font-weight: 1000;
    color: var(--purple);
    line-height: 1;
}

.sch-tag {
    font-weight: 900;
    color: var(--purple);
    font-size: 18px;
    opacity: .95;
}

/* Inner white boxes */
.sch-box {
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.tick {
    color: #F5A000;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    margin-top: 2px;
}

.sch-box-body {
    flex: 1;
}

.sch-box-title {
    color: #777;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.35;
}

.sch-box-value {
    margin-top: 4px;
    color: var(--purple);
    font-weight: 1000;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sch-cards {
        grid-template-columns: 1fr;
    }

    .sch-percent {
        font-size: 38px;
    }
}




/* ================================
   FEE STRUCTURE – IMAGE STYLE
   ================================ */
#Fee_Structure {
    margin-top: 30px;
}

#Fee_Structure h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 6px;
}

#Fee_Structure .sub {
    color: #777;
    margin-bottom: 24px;
}

.fee-title {
    font-size: 18px;
    font-weight: 800;
    margin-top: 24px;
}

.fee-note {
    font-size: 14px;
    color: #777;
    margin-bottom: 14px;
}

/* Toggle pills */
.year-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

    .year-toggle button {
        border: none;
        background: #eee7f6;
        color: #4B1D69;
        padding: 8px 16px;
        border-radius: 999px;
        font-weight: 700;
        cursor: pointer;
    }

        .year-toggle button.active {
            background: #FDBC01;
            color: #2d005d;
        }

/* Fee container */
.fee-modern {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Fee rows */
.fee-list {
    display: grid;
    gap: 10px;
}

.fee-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.fee-head {
    background: #f3ecfa;
    font-weight: 800;
    color: #4B1D69;
}

.fee-card .amount {
    text-align: right;
    font-weight: 700;
}

/* Highlight total */
.fee-card.grand {
    background: #f3ecfa;
    border: 1.5px solid #4B1D69;
    font-weight: 900;
}

/* Divider */
.fee-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 30px 0;
}

/* Summary */
.fee-summary {
    background: #f3ecfa;
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px;
}

    .fee-summary span {
        color: #666;
        font-size: 14px;
    }

/* Mobile */
@media(max-width:768px) {
    .fee-card {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        font-size: 13px;
    }

    .year-toggle {
        flex-wrap: wrap;
    }
}

/* ===============================
   FIX HEADER & HERO GAP
   =============================== */

/* Adjust this value if header height changes */
:root {
    --site-header-height: 120px;
}

/* Push entire page below fixed/sticky header */
#adm-page {
    padding-top: var(--site-header-height);
}

/* Optional: smooth visual spacing */
.adm-hero {
    margin-top: 10px;
}
/* ================= PAGE BREADCRUMB (NAMESPACED) ================= */
.pg-breadcrumb {
    max-width: 1300px;
    margin: 22px auto 14px;
    padding: 12px 20px;
    background: #f6f2fb;
    border-radius: 10px;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    color: #333;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.pg-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pg-breadcrumb a {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}

    .pg-breadcrumb a:hover {
        text-decoration: underline;
    }

.pg-breadcrumb span {
    color: #999;
}

.pg-breadcrumb strong {
    color: #000;
    font-weight: 700;
}

.page-offset {
    padding-top: 30px;
}

/* Mobile */
@media (max-width:768px) {
    .page-offset {
        padding-top: 2px; /* match header height */
    }

    .pg-breadcrumb {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ===============================
   FINAL PAGE WIDTH & GAP FIX
   =============================== */

/* HEADER HEIGHT OFFSET – keep minimal */
:root {
    --site-header-height: 65px; /* reduce from 120 */
}

/* Main page wrapper */
#adm-page {
    background: var(--bg);
    padding-top: var(--site-header-height);
    padding-bottom: 60px;
}

/* WIDER CONTENT (THIS FIXES LEFT/RIGHT GAP) */
.page-container {
    max-width: 1400px; /* increased from 1200 */
    margin: 0 auto;
    padding: 0 20px; /* reduced side padding */
}

/* REMOVE EXTRA TOP GAP */
.page-offset {
    padding-top: 0 !important;
}

/* BREADCRUMB – TIGHT & CLEAN */
.pg-breadcrumb {
    margin: 10px 0 18px; /* reduced top margin */
    padding: 10px 18px;
}

/* HERO ALIGNMENT */
.adm-hero {
    margin-top: 0; /* remove extra spacing */
}

/* MOBILE */
@media (max-width: 768px) {
    .page-container {
        padding: 0 14px;
    }

    .pg-breadcrumb {
        margin-top: 6px;
    }
}





/* ===============================
   ADMISSIONS – MODERN UI
   =============================== */
:root {
    --purple: #4B1D69;
    --gold: #FDBC01;
    --bg: #F6F3FB;
    --card: #ffffff;
    --soft: #F3EEF9;
    --text: #222;
    --muted: #666;
}

#admissions-page {
    background: var(--bg);
    padding: 40px 0 70px;
    font-family: Montserrat, Arial, sans-serif;
}

.adm-wrap {
    max-width: 1100px;
    margin: auto;
    padding: 0 16px;
}

/* SECTION */
.adm-section {
    background: var(--card);
    border-radius: 18px;
    padding: 28px 24px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

    .adm-section h2 {
        font-size: 24px;
        font-weight: 900;
        color: var(--purple);
        margin-bottom: 8px;
    }

.adm-sub {
    color: var(--muted);
    margin-bottom: 18px;
}

/* GRID CARDS */
.adm-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

.adm-card {
    background: var(--soft);
    border-left: 6px solid var(--purple);
    border-radius: 14px;
    padding: 14px 16px;
}

    .adm-card strong {
        display: block;
        color: var(--purple);
        font-weight: 900;
        margin-bottom: 4px;
    }

    .adm-card p {
        margin: 0;
        color: #333;
        line-height: 1.55;
    }

/* CTA */
.cta-btn-group {
    margin-top: 18px;
}

.enquire-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gold);
    color: #2d005d;
    font-weight: 900;
    border-radius: 999px;
    text-decoration: none;
}

/* ===============================
   ADMISSION PROCESS
   =============================== */

.adm-steps {
    display: grid;
    gap: 14px;
}

.adm-step {
    display: flex;
    gap: 14px;
    background: var(--soft);
    padding: 14px;
    border-radius: 14px;
}

    .adm-step span {
        width: 42px;
        height: 42px;
        background: var(--purple);
        color: #fff;
        font-weight: 900;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .adm-step h4 {
        margin: 0;
        font-weight: 900;
    }

    .adm-step p {
        margin: 4px 0 0;
        color: #333;
    }

/* ===============================
   FINANCIAL AID
   =============================== */

.fa-benefits {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

.fa-card {
    background: var(--soft);
    border-radius: 14px;
    padding: 16px;
}

    .fa-card h4 {
        margin: 0 0 6px;
        color: var(--purple);
    }

.fa-steps {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
    margin-top: 12px;
}

.fa-step {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,.08);
}

    .fa-step span {
        font-weight: 900;
        color: var(--purple);
    }

.fa-faq {
    margin-top: 14px;
}

.fa-faq-item {
    background: var(--soft);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media(max-width:768px) {
    .adm-grid,
    .fa-benefits,
    .fa-steps {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   FINANCIAL AID – HOW IT WORKS
   =============================== */

.fa-how {
    margin-top: 30px;
}

.fa-how-title {
    font-size: 26px;
    font-weight: 900;
    color: #4B1D69;
    margin-bottom: 22px;
}

.fa-how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.fa-how-card {
    background: #fff;
    border: 1.5px solid #E6DDF3;
    border-radius: 18px;
    padding: 32px 22px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .fa-how-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 40px rgba(0,0,0,.10);
    }

.fa-step-circle {
    width: 56px;
    height: 56px;
    background: #4B1D69;
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.fa-how-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .fa-how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fa-how-grid {
        grid-template-columns: 1fr;
    }
}




/* =====================================================
   RESPONSIVE FIX – TABLET & MOBILE (SAFE OVERRIDES)
   ===================================================== */
/* ---------- TABLET (<=1024px) ---------- */
@media (max-width: 1024px) {
    /* Page padding */
    #adm-page

{
    padding-left: 0;
    padding-right: 0;
}

/* Hero */
.adm-hero {
    padding: 28px 22px;
    border-radius: 16px;
}

    .adm-hero h1 {
        font-size: 28px;
    }

/* Two-column → single-column where needed */
.adm-grid,
.fa-benefits,
.fa-how-grid {
    grid-template-columns: 1fr;
}

/* Scholarship cards */
.sch-cards {
    grid-template-columns: 1fr;
    gap: 18px;
}

.sch-percent {
    font-size: 42px;
}

/* Fee cards */
.fee-card {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    font-size: 14px;
}

}

/* ---------- MOBILE (<=768px) ---------- */
@media (max-width: 768px) {

    /* Page container */
    .page-container {
        padding: 0 12px;
    }

    /* Breadcrumb */
    .pg-breadcrumb {
        font-size: 12.5px;
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    /* Hero */
    .adm-hero {
        padding: 24px 18px;
        text-align: left;
    }

        .adm-hero h1 {
            font-size: 24px;
            line-height: 1.25;
        }

        .adm-hero p {
            font-size: 14px;
        }

    .adm-btn,
    .enquire-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    /* Sections */
    .adm-section {
        padding: 22px 18px;
        border-radius: 14px;
    }

        .adm-section h2 {
            font-size: 20px;
        }

    /* Cards */
    .adm-card,
    .fa-card {
        padding: 14px;
    }

    /* Steps */
    .adm-step {
        flex-direction: row;
        align-items: flex-start;
    }

        .adm-step span {
            width: 36px;
            height: 36px;
            font-size: 14px;
            flex-shrink: 0;
        }

    /* Financial Aid – How it works */
    .fa-how-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .fa-how-card {
        padding: 22px 16px;
    }

    /* Fee toggle buttons */
    .year-toggle {
        justify-content: center;
        gap: 8px;
    }

        .year-toggle button {
            font-size: 13px;
            padding: 8px 14px;
        }

    /* Fee table – MOBILE STACK */
    .fee-card {
        grid-template-columns: 1.8fr 1fr 1fr;
        font-size: 13px;
    }

        .fee-card .amount.total {
            display: none; /* hide total column on mobile */
        }

    .fee-head span:last-child {
        display: none;
    }

    /* Fee summary */
    .fee-summary {
        font-size: 14px;
        padding: 14px;
        text-align: center;
    }

    /* Scholarship layout */
    .sch-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .sch-top {
        align-items: center;
    }

    .sch-percent {
        font-size: 36px;
    }

    .sch-tag {
        font-size: 16px;
    }

    .sch-box {
        padding: 12px;
    }

    /* FAQ */
    .fa-faq-item {
        padding: 12px;
        font-size: 14px;
    }
}

/* ---------- SMALL MOBILE (<=480px) ---------- */
@media (max-width: 480px) {

    .adm-hero h1 {
        font-size: 22px;
    }

    .adm-section h2 {
        font-size: 18px;
    }

    .sch-percent {
        font-size: 32px;
    }

    .fa-step-circle {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

/* =====================================================
   RESPONSIVE FEE TABLE – STACKED CARDS (TABLET + MOBILE)
   ===================================================== */

@media (max-width: 991px) {

    /* Hide desktop header row */
    .fee-head {
        display: none;
    }

    /* Fee card becomes vertical */
    .fee-card {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding: 14px;
        font-size: 14px;
    }

        /* Component title */
        .fee-card > span:first-child {
            font-weight: 900;
            color: #4B1D69;
            font-size: 15px;
            margin-bottom: 6px;
        }

        /* Amount rows */
        .fee-card .amount {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: right;
            font-weight: 700;
        }

        /* Labels before values */
        .fee-card .y1::before {
            content: "Year 1";
            font-weight: 600;
            color: #666;
        }

        .fee-card .y2::before {
            content: "Year 2";
            font-weight: 600;
            color: #666;
        }

        .fee-card .total::before {
            content: "Total";
            font-weight: 700;
            color: #333;
        }

        /* Grand total highlight */
        .fee-card.grand {
            border: 2px solid #4B1D69;
            background: #f6f1fb;
        }

    /* Toggle buttons wrap */
    .year-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* =====================================================
   MOBILE TOP GAP FIX (BREADCRUMB + HERO)
   ===================================================== */

@media (max-width: 768px) {

    /* Remove any default body spacing */
    body {
        margin: 0;
        padding: 0;
    }

    /* Reduce header offset ONLY for mobile */
    :root {
        --site-header-height: 120px; /* match your mobile header height */
    }

    /* Main page wrapper */
    #adm-page {
        padding-top: var(--site-header-height) !important;
        margin-top: 0 !important;
    }

    /* Breadcrumb */
    .pg-breadcrumb {
        margin-top: 6px !important;
        margin-bottom: 10px !important;
        padding-top: 8px !important;
    }

    /* Hero section */
    .adm-hero {
        margin-top: 0 !important;
        padding-top: 22px;
    }

    /* Safety: remove any accidental offsets */
    .page-offset {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ===============================
   APPLY NOW BUTTON – BELL ANIMATION
   =============================== */

.adm-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .3px;
}

/* Bell animation */
.bell-wrap {
    display: inline-block;
    font-size: 20px;
    animation: bell-ring 1.2s ease-in-out infinite;
    transform-origin: top center;
}

/* Bell shake keyframes */
@keyframes bell-ring {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(12deg);
    }

    40% {
        transform: rotate(-12deg);
    }

    50% {
        transform: rotate(8deg);
    }

    60% {
        transform: rotate(-8deg);
    }

    70% {
        transform: rotate(4deg);
    }

    80% {
        transform: rotate(-4deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Text styling */
.apply-text {
    white-space: nowrap;
}

/* Mobile full-width CTA */
@media (max-width: 768px) {
    .adm-apply-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        font-size: 15px;
    }

    .bell-wrap {
        font-size: 18px;
    }
}

/* ===============================
   ADMISSION PROCESS – FONT FIX
   =============================== */

.adm-step h4 {
    font-size: 17px; /* reduced from big size */
    font-weight: 600;
    margin-bottom: 4px;
}

.adm-step p {
    font-size: 14px; /* clean body text */
    line-height: 1.6;
    color: #555;
}

/* Mobile refinement */
@media (max-width: 600px) {
    .adm-step h4 {
        font-size: 16px;
    }

    .adm-step p {
        font-size: 13.5px;
    }
}

/* ======================================
   APPLY NOW BUTTON – FINAL MOBILE FIX
   ====================================== */

.adm-apply-btn {
    white-space: nowrap; /* 🔑 force single line */
}

    .adm-apply-btn .apply-text {
        white-space: nowrap;
        display: inline-block;
    }

/* Mobile-only tightening */
@media (max-width: 480px) {

    .adm-apply-btn {
        font-size: 13.5px; /* tiny reduction */
        padding: 12px 14px; /* tighter padding */
        gap: 6px; /* reduce icon gap */
    }

    .bell-wrap {
        font-size: 16px;
    }
}


/* ======================================
   APPLY NOW BUTTON – SINGLE LINE FIX
   ====================================== */

.adm-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap; /* 🔑 main fix */
}

    .adm-apply-btn .apply-text {
        white-space: nowrap;
        display: inline-block;
    }

/* Mobile fine-tuning */
@media (max-width: 480px) {
    .adm-apply-btn {
        font-size: 13.5px; /* slightly smaller */
        padding: 12px 14px; /* tighter padding */
        gap: 6px; /* reduce space between bell + text */
    }

    .bell-wrap {
        font-size: 16px;
        line-height: 1;
    }
}
