/* ===== PDEU Admissions – Styles ===== */
:root {
    /* Brand palette */
    --dark-grey-color: #202020;
    --grey-color: #707070;
    --light-grey-color: #999;
    --very-light-grey-color: #e4e9e9;
    --white-color: #fff;
    --off-white-color: #F9F3E9;
    --blurred-primary-color: #a51c31d5;
    --primary-color: #a51c30;
    --mid-primary-color: #851528;
    --dark-primary-color: #6e0d1d;
    --brown-color: #2e2423;
    --pink-color: #fcf7f8;
    --hover-pink-color: #f3e9eb;

    /* Semantic aliases used throughout the stylesheet */
    --primary: var(--primary-color);
    --primary-dark: var(--dark-primary-color);
    --primary-light: var(--mid-primary-color);
    --accent: #f5a623;
    --accent-dark: #d98e10;
    --secondary: #2ecc71;
    --bg: var(--white-color);
    --bg-alt: var(--pink-color);
    --text: var(--brown-color);
    --text-muted: var(--grey-color);
    --border: var(--very-light-grey-color);
    --shadow-sm: 0 2px 8px rgba(165, 28, 48, 0.08);
    --shadow-md: 0 8px 24px rgba(165, 28, 48, 0.12);
    --shadow-lg: 0 16px 48px rgba(165, 28, 48, 0.20);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Topbar */
.topbar {
    background: var(--primary-dark);
    color: #cfd9e6;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.topbar-inner {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Header */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: #fff;
}

.brand-light .brand-logo {
    border-radius: 12px;
    overflow: hidden;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1rem;
    color: var(--primary);
}

.brand-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a.btn {
    color: #fff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(245, 166, 35, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--primary);
}

.btn-ghost-light {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-ghost-light:hover {
    background: var(--primary);
    color: #fff;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, #062a55 0%, #0a3d7a 50%, #1d5fa8 100%);
    color: #fff;
    overflow: hidden;
    padding: 6rem 0 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.15) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(46, 204, 113, 0.12) 0, transparent 40%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(245, 166, 35, 0.2);
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero h1 span {
    color: var(--accent);
    display: block;
}

.hero p {
    font-size: 1.1rem;
    color: #d8e2ee;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-stats div {
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
}

.hero-stats span {
    font-size: 0.85rem;
    color: #cfd9e6;
}

/* Sections */
.section {
    padding: 1.5rem 0 4rem;
}

.section+.section {
    padding-top: 4rem;
}

.section-alt {
    background: var(--bg-alt);
}

.header+.section {
    padding-top: 1rem;
}

.section-head {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 1rem;
}

.eyebrow {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-head h2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Programs Pills */
.programs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.pill {
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--primary);
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
}

.card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, #fffaf0 0%, #fff 50%);
}

.card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-alt), #fff);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.card-actions .btn {
    flex: 1;
    min-width: 130px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature {
    background: var(--bg-alt);
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.feature:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.steps li {
    background: #fff;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: var(--radius);
    position: relative;
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.steps li:hover {
    transform: translateY(-4px);
}

.steps li span {
    position: absolute;
    top: -22px;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.steps h4 {
    color: var(--primary);
    margin: 0.75rem 0 0.5rem;
    font-size: 1.05rem;
}

.steps p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 4rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta h2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.cta p {
    color: #d8e2ee;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta .btn-ghost-light {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.cta .btn-ghost-light:hover {
    background: transparent;
    color: #fff;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #cfd9e6;
    padding-top: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.brand-light .brand-text strong {
    color: #fff;
}

.brand-light .brand-text span {
    color: #a8b3c4;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    padding: 0.3rem 0;
    font-size: 0.92rem;
}

.footer ul a {
    color: #cfd9e6;
    text-decoration: none;
    transition: color var(--transition);
}

.footer ul a:hover {
    color: var(--accent);
}

.footer .muted {
    color: #a8b3c4;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: #a8b3c4;
    text-align: center;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.feature,
.steps li,
.pill {
    animation: fadeUp 0.6s ease both;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 5%;
        gap: 0.75rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hide-sm {
        display: none;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .cta-inner {
        text-align: center;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Overview Banner ===== */
.overview-banner {
    margin: 2rem auto 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
}

.overview-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Program Tabs (left list / right content) ===== */
.program-tabs {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.tab-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid var(--border);
    padding-right: 1rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.tab-btn.active {
    background: linear-gradient(90deg, rgba(10, 61, 122, 0.08), transparent);
    color: var(--primary);
    border-left-color: var(--accent);
    font-weight: 600;
}

.tab-ico {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.tab-content {
    min-height: 480px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}

.tab-panel {
    display: none;
    animation: fadeUp 0.45s ease both;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.tab-panel>p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.panel-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.panel-image {
    margin-top: 1.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.panel-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: stack tabs into horizontal scroll, content below */
@media (max-width: 820px) {
    .program-tabs {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .tab-list {
        flex-direction: row;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 0 0 0.75rem;
        gap: 0.4rem;
        scrollbar-width: thin;
    }

    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        border-left: 0;
        border-bottom: 3px solid transparent;
        padding: 0.6rem 0.9rem;
    }

    .tab-btn.active {
        border-left: 0;
        border-bottom-color: var(--accent);
        background: var(--bg-alt);
    }

    .tab-content {
        padding: 1rem 0 0;
        min-height: auto;
    }

    .tab-panel h3 {
        font-size: 1.4rem;
    }
}


/* ===== Overview Tab Panel ===== */
.badge-inline {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent-dark);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.tab-panel h3 .accent {
    color: var(--accent-dark);
    display: block;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.overview-stats div {
    text-align: center;
}

.overview-stats strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.overview-stats span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

#overview-panel .programs-grid {
    justify-content: flex-start;
    margin: 1.25rem 0 0.5rem;
}

@media (max-width: 600px) {
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-stats strong {
        font-size: 1.25rem;
    }
}