/* ========================================
   Luminary College - Enhanced Premium Stylesheet
   ======================================== */

/* CSS Variables for Easy Customization - Gold & Black Theme */
:root {
    --primary-color: #0a0a0a;
    --primary-dark: #000000;
    --secondary-color: #d4af37;
    --secondary-dark: #b8941f;
    --secondary-light: #e6c659;
    --accent-color: #d4af37;
    --accent-light: #e6c659;
    --accent-dark: #a68829;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #fafafa;
    --bg-lighter: #ffffff;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --box-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --box-shadow-gold: 0 4px 20px rgba(212,175,55,0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation - Enhanced */
.navbar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(212,175,55,0.2);
    border-bottom: 1px solid rgba(212,175,55,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    height: 70px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: none !important;
    height: auto !important;
    letter-spacing: -0.02em;
}

/* Composite wordmark: keep palm gold, make text white by overlaying filtered copy */
.logo-wrap { position: relative; display: inline-block; line-height: 0; }
.logo-wrap .logo-base { display: block; }
.logo-wrap .logo-text-white {
    position: absolute;
    inset: 0;
    filter: brightness(0) invert(1) contrast(1.1);
    /* Mask left portion (palm icon) so only the right-side text is affected */
    clip-path: polygon(34% 0, 100% 0, 100% 100%, 34% 100%);
    pointer-events: none;
}

/* Variant for light backgrounds: make text black, keep palm gold */
.logo-wrap .logo-text-black {
    position: absolute;
    inset: 0;
    filter: grayscale(1) brightness(0) contrast(1.1);
    clip-path: polygon(34% 0, 100% 0, 100% 100%, 34% 100%);
    pointer-events: none;
}

/* Header text visibility on dark/brown backgrounds */
.navbar .site-tagline,
.navbar .nav-tagline,
.navbar .tagline {
    color: #ffffff;
    opacity: 0.9;
}

.logo-mark { color: var(--secondary-color); }
.logo-text { font-family: 'Newsreader', ui-serif, Georgia, serif; font-weight: 700; color: #fff; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* Hero Section - Premium with Image Background */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(26, 26, 26, 0.80) 100%),
                var(--hero-image, url('../images/hero/education-hero.jpg')) center/cover no-repeat;
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-title { font-weight: 700; }
.hero--image .hero-credit { position: absolute; bottom: 10px; right: 16px; font-size: .75rem; opacity: .75; }
.hero-scroll { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); text-decoration: none; font-size: 1.25rem; }

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons - Enhanced */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-light { color: #fff; border-color: rgba(255,255,255,.5); }

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Features Section - Enhanced */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.2));
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.8;
}

/* Image Cards with Overlay */
.image-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 58, 82, 0.95) 0%, transparent 100%);
    padding: 2rem;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.image-card:hover .image-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Programs Section - Enhanced */
.programs {
    padding: 6rem 0;
    background: var(--bg-white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.program-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.program-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.program-header {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--secondary-color);
}

.program-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1a1a1a;
}

.program-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.program-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.program-body {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.program-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-lighter);
    border-radius: var(--border-radius-sm);
}

.program-meta-icon {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* Staff Section - Enhanced */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.staff-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.staff-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    border: 4px solid var(--secondary-color);
    position: relative;
}

.staff-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.staff-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.staff-title {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.staff-bio {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Content Sections - Enhanced */
.content-section {
    padding: 6rem 0;
}

.content-section.alt {
    background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-white) 100%);
}

.content-box {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.content-box h2 {
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.content-box h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.content-box ul {
    list-style: none;
    margin-left: 0;
}

.content-box li {
    margin-bottom: 1rem;
    color: var(--text-light);
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.content-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.content-box li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Forms - Enhanced */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e1e4e8;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition-fast);
    font-family: inherit;
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(44, 95, 124, 0.1);
    background: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3a52' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Alerts - Enhanced */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Footer - Enhanced */
.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
    border-top: 2px solid var(--secondary-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    line-height: 2;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
    transition: var(--transition-fast);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* News cards (compact) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

.news-card__media { height: 140px; background:#f6f6f6; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.news-card__media img, .news-card__media iframe { width:100%; height:100%; object-fit: cover; border:0; }

.news-card__body { padding: 0.9rem 1rem 1rem; }
.news-card__title { margin: 0 0 .4rem 0; font-size: 1.05rem; line-height: 1.35; }
.news-card__snippet { color:#555; font-size:.95rem; line-height:1.6; margin:0 0 .6rem 0; }
.news-card__meta { font-size:.8rem; color:#999; }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .news-card__media { height: 120px; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Watermark (crest) */
/* Shows a faint palm crest across pages; override by adding class="no-watermark" on <body> if needed */
body { position: relative; }
body:not(.no-watermark)::after {
    content: '';
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* Large watermark crest at 85% of page size */
    width: 85vw;
    height: 85vh;
    background-image: url('../images/crest.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05; /* faint watermark - subtle background */
    pointer-events: none;
    z-index: 100; /* below navbar (1000), above content backgrounds */
}

/* Watermark now displays on all devices including mobile */

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

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 76px;
        flex-direction: column;
        background: linear-gradient(180deg, #000000, #1a1a1a);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--box-shadow-lg);
        padding: 3rem 0;
        gap: 0;
        border-bottom: 2px solid var(--secondary-color);
    }

    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .features,
    .programs,
    .content-section {
        padding: 4rem 0;
    }

    .features-grid,
    .programs-grid,
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .feature-card,
    .staff-card,
    .program-card {
        padding: 2rem 1.5rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-buttons,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================
   REFINED PROGRAM CARDS WITH IMAGES
   ========================================== */

.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.program-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.1);
}

.program-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(26, 58, 82, 0.95) 0%, transparent 100%);
}

.program-badge-overlay {
    display: inline-block;
    background: rgba(212, 175, 55, 0.95);
    color: #1a3a52;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.program-badge-overlay.skill-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #2c5f7c;
}

.program-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card-title {
    font-size: 1.4rem;
    color: #1a3a52;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.program-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a3a52;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.skill-badge-card {
    background: linear-gradient(135deg, #2c5f7c, #4a8db8);
    color: white;
}

.program-card-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-card {
    width: 100%;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
}

/* ==========================================
   STREAMLINED SPACING & LAYOUT
   ========================================== */

.content-section {
    padding: 5rem 0 3rem;
}

.section-title {
    margin-bottom: 3rem;
}

.programs-grid {
    gap: 2rem;
    margin-top: 2rem;
}

/* Reduce excessive whitespace */
.content-box {
    margin-bottom: 1.5rem;
}

.content-box:last-child {
    margin-bottom: 0;
}

/* Better container max-width for readability */
.container {
    max-width: 1200px;
}

/* Tighten up hero spacing */
.hero {
    padding: 6rem 0 4rem;
}

/* Features section refinement */
.features {
    padding: 4rem 0;
}

.features-grid {
    gap: 2rem;
}

.feature-card {
    padding: 2rem 2rem;
}
/* Stats */
.stats { background: var(--bg-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; list-style: none; padding-left: 0; }
.stat-tile { background: #fff; border-radius: var(--border-radius); box-shadow: var(--box-shadow); padding: 1.5rem; text-align: center; }
.stat-value { font-family: 'Newsreader', ui-serif, Georgia, serif; font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--primary-dark); font-weight: 700; }
.stat-label { color: var(--text-light); margin-top: .25rem; }

/* Panels */
.panel-grid__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.panel { position: relative; min-height: 320px; background: var(--panel-image) center/cover no-repeat; border-radius: var(--border-radius-lg); overflow: hidden; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.15), rgba(15,23,42,.55)); }
.panel__content { position: relative; z-index: 1; color: #fff; padding: 2rem; max-width: 560px; }
.panel h3 { color: #fff; }
.content-box--gradient { background: linear-gradient(135deg, #000000, #1a1a1a); color: #fff; box-shadow: var(--box-shadow-lg); border: 2px solid var(--secondary-color); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem 1rem; background: #fff; border-radius: 6px; box-shadow: var(--box-shadow); }

/* Filters & Search (Programs) */
.filters { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; box-shadow: var(--box-shadow); padding: .75rem; }
.filters-row { display:flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.search { flex: 1 1 360px; }
.search input[type="search"] {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  transition: var(--transition-fast);
}
.search input[type="search"]:focus { outline: none; border-color: var(--accent-color); background: #fff; box-shadow: 0 0 0 4px rgba(44,95,124,.1); }
.chips { display:flex; gap: .5rem; }
.chip { appearance: none; border: 1px solid #e5e7eb; background: #fff; color: var(--text-dark); padding: .55rem .85rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; }
.chip.active, .chip:hover { border-color: var(--accent-color); color: var(--accent-color); background: #f0f7fb; }

/* Domain tiles */
.domain-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.domain-tile { padding: 1rem 1.25rem; background:#fff; border:1px solid #e5e7eb; border-radius: 12px; text-align:left; box-shadow: var(--box-shadow); cursor:pointer; transition: var(--transition-fast); }
.domain-tile:hover { box-shadow: var(--box-shadow-lg); transform: translateY(-1px); }
.domain-tile.active { border-color: var(--accent-color); box-shadow: var(--box-shadow-lg); }
.domain-title { font-weight: 700; margin-bottom: .25rem; color: var(--primary-dark); }
.domain-count { color: var(--text-light); font-size: .9rem; }

.filters-inline { display:flex; align-items:center; gap: .5rem; }
.filter-label { color: var(--text-light); font-weight:600; }
.filter-select { border:1px solid #e5e7eb; border-radius: 8px; padding: .6rem .75rem; background:#fff; }

/* Program placeholder */
.program-card-placeholder { display:flex; align-items:center; justify-content:center; height: 220px; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); color: #9ca3af; font-size: 3rem; font-weight: 700; }

/* Responsive navigation */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: absolute; right: 24px; top: 64px; background: rgba(15,23,42,.98); backdrop-filter: blur(10px); padding: 1rem 1.25rem; border-radius: 12px; display: none; flex-direction: column; gap: .5rem; box-shadow: var(--box-shadow-lg); }
  .nav-menu.active { display: flex; }
}

/* ==========================================
   ELEGANT TYPOGRAPHY REFINEMENTS
   ========================================== */

h1 {
    letter-spacing: -0.03em;
    font-weight: 800;
}

h2 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

h3 {
    letter-spacing: -0.01em;
    font-weight: 600;
}

p {
    letter-spacing: 0.01em;
}

/* ==========================================
   MOBILE REFINEMENTS
   ========================================== */

@media (max-width: 768px) {
    .content-section {
        padding: 3rem 0 2rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .features {
        padding: 3rem 0;
    }

    .program-card-image {
        height: 180px;
    }

    .program-card-content {
        padding: 1.5rem;
    }
    .domain-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filters-row { flex-direction: column; align-items: stretch; gap: .75rem; }
    .filters { padding: 1rem; margin: 0 -0.25rem; }
    .chips { flex-wrap: wrap; }
    .panel-grid__inner { grid-template-columns: 1fr; }
    .search { flex: 1 1 100%; }
    .filters-inline { width: 100%; }
    .filter-select { width: 100%; }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Slightly more opaque outline variant for dark hero backgrounds */
.btn-opaque {
    background-color: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.btn-opaque:hover {
    background-color: rgba(255,255,255,0.28);
    color: var(--primary-dark);
}

/* Solid primary brand button (blue) */
.btn-primary-brand {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #fff;
}
.btn-primary-brand:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,58,82,.35);
}

/* Blue enclosure outline variant for hero CTA */
.btn-outline-brand {
  background-color: rgba(44,95,124,0.18); /* subtle blue fill */
  border: 2px solid var(--accent-color);   /* brand blue border */
  color: #0f172a;                          /* dark text */
}
.btn-outline-brand:hover {
  background-color: rgba(44,95,124,0.28);
  border-color: var(--accent-color);
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,95,124,.35);
}

/* Elegant black variant with gold border for visibility */
.btn-primary-blue {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}
.btn-primary-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  color: var(--secondary-light);
  border-color: var(--secondary-light);
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}
