
/* ========================================
   PROGRAMMES PAGE — Institutional Authority
   Navy trust palette + photographic depth
   ======================================== */

:root {
    --prog-navy: #1B365D;
    --prog-navy-dark: #0F2240;
    --prog-navy-light: #2A4F7F;
    --prog-navy-muted: #3D6494;
    --prog-cream: #FAF8F4;
    --prog-warm: #F5F0E8;
    --prog-gold: #C9A227;
    --prog-gold-light: #DBBF5C;
}

/* Hero ----------------------------------- */
.prog-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 7rem 0 5rem;
}

.prog-hero__media {
    position: absolute;
    inset: 0;
}

.prog-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.prog-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 34, 64, 0.92) 0%, rgba(27, 54, 93, 0.8) 40%, rgba(42, 79, 127, 0.7) 100%);
}

.prog-hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

.prog-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    color: #fff;
}

.prog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1.125rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.75rem;
    animation: fadeInDown 0.8s ease both;
}

.prog-hero__title {
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s 0.15s ease both;
}

.prog-hero__title-zh {
    display: block;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.prog-hero__title-en {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.12em;
    margin-top: 0.375rem;
    text-transform: uppercase;
}

.prog-hero__sub {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 2.25rem;
    letter-spacing: 0.08em;
    animation: fadeInDown 0.8s 0.3s ease both;
}

.prog-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.45s ease both;
}

/* Buttons */
.prog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.prog-btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}

.prog-btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 16, 46, 0.45);
}

.prog-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
}

.prog-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.prog-btn--white {
    background: #fff;
    color: var(--prog-navy);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.prog-btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.prog-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.prog-btn--ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
}

/* Hero geometric decoration */
.prog-hero__geo {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
    z-index: 1;
}

.prog-hero__geo--1 {
    width: 400px;
    height: 400px;
    right: -100px;
    top: -80px;
}

.prog-hero__geo--2 {
    width: 250px;
    height: 250px;
    right: 8%;
    bottom: -40px;
    border-color: rgba(201, 162, 39, 0.12);
}

/* Tag / Label */
.prog-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--prog-navy-muted);
    margin-bottom: 0.875rem;
}

.prog-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--prog-navy-dark);
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

/* Overview Section ----------------------- */
.prog-overview {
    background: #fff;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.prog-overview__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.prog-overview__text {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
}

.prog-overview__text p {
    margin-bottom: 1.125rem;
}

.prog-overview__text p:last-child {
    margin-bottom: 0;
}

/* Sidebar cards */
.prog-sidebar-card {
    background: var(--prog-cream);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(27, 54, 93, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prog-sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27, 54, 93, 0.08);
}

.prog-sidebar-card:last-child {
    margin-bottom: 0;
}

.prog-sidebar-card__icon {
    width: 48px;
    height: 48px;
    background: var(--prog-navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1rem;
}

.prog-sidebar-card__icon svg {
    width: 24px;
    height: 24px;
}

.prog-sidebar-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--prog-navy-dark);
    margin-bottom: 0.125rem;
}

.prog-sidebar-card__subtitle {
    font-size: 0.8125rem;
    color: var(--prog-navy-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.prog-sidebar-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Projects Section ----------------------- */
.prog-projects {
    background: var(--prog-cream);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.prog-projects__subtitle {
    color: var(--color-text-secondary);
    margin-top: -0.5rem;
}

.prog-projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.prog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(27, 54, 93, 0.06);
    border: 1px solid rgba(27, 54, 93, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.prog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(27, 54, 93, 0.12);
}

.prog-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.prog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.prog-card:hover .prog-card__image img {
    transform: scale(1.05);
}

.prog-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--prog-navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.prog-card__body {
    padding: 2rem;
}

.prog-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--prog-navy-dark);
    margin-bottom: 0.125rem;
}

.prog-card__en {
    font-size: 0.8125rem;
    color: var(--prog-navy-muted);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.prog-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.prog-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.prog-card__features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--prog-navy);
}

.prog-card__features li svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.prog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.prog-card__link:hover {
    gap: 0.625rem;
}

/* Image Break Section -------------------- */
.prog-image-break {
    overflow: hidden;
}

.prog-image-break__inner {
    position: relative;
    height: 340px;
}

.prog-image-break__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.prog-image-break__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 34, 64, 0.85) 0%, rgba(27, 54, 93, 0.65) 100%);
}

.prog-image-break__content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 560px;
    padding: 4rem 0;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prog-image-break__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.65;
    margin-bottom: 0.75rem;
}

.prog-image-break__content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.prog-image-break__content p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.7;
}

/* Why Choose Section --------------------- */
.prog-why {
    background: #fff;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.prog-why__subtitle {
    color: var(--color-text-secondary);
    margin-top: -0.5rem;
}

.prog-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.prog-why-item {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.prog-why-item:hover {
    background: var(--prog-cream);
    transform: translateY(-3px);
}

.prog-why-item__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--prog-navy) 0%, var(--prog-navy-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
}

.prog-why-item__icon svg {
    width: 28px;
    height: 28px;
}

.prog-why-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--prog-navy-dark);
    margin-bottom: 0.5rem;
}

.prog-why-item p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* CTA Section ---------------------------- */
.prog-cta {
    position: relative;
    background: linear-gradient(135deg, var(--prog-navy-dark) 0%, var(--prog-navy) 60%, var(--prog-navy-light) 100%);
    padding: 4.5rem 0;
    overflow: hidden;
}

.prog-cta__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201,162,39,0.2) 0%, transparent 40%);
}

.prog-cta__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.prog-cta__title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.prog-cta__desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.prog-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.prog-cta__contact {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.prog-cta__contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.prog-cta__contact a:hover {
    color: #fff;
}

/* Animations ----------------------------- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive ----------------------------- */
@media (max-width: 1024px) {
    .prog-overview__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .prog-overview__sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .prog-sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .prog-hero {
        min-height: 440px;
        padding: 5rem 0 3.5rem;
    }

    .prog-projects__grid {
        grid-template-columns: 1fr;
    }

    .prog-why__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .prog-why-item {
        padding: 1.5rem 1rem;
    }

    .prog-image-break__inner {
        height: 280px;
    }

    .prog-image-break__content {
        height: 280px;
        padding: 2rem 0;
    }

    .prog-hero__geo { display: none; }

    .prog-overview__sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .prog-hero {
        min-height: 400px;
        padding: 4.5rem 0 3rem;
    }

    .prog-hero__badge {
        font-size: 0.75rem;
    }

    .prog-why__grid {
        grid-template-columns: 1fr;
    }

    .prog-card__image {
        height: 200px;
    }

    .prog-cta {
        padding: 3.5rem 0;
    }

    .prog-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prog-hero__badge,
    .prog-hero__title,
    .prog-hero__sub,
    .prog-hero__actions {
        animation: none !important;
    }

    .prog-btn,
    .prog-card,
    .prog-sidebar-card,
    .prog-why-item {
        transition: none !important;
    }
}
