/* ==========================================================
   SSDC Design System
   Deep Green #1b4332 | Sage #52b788 | Gold #b5883e/#ffd700
   Cream #fefae0 | Body font: Inter | Heading: Lora
   ========================================================== */
:root {
    --ssdc-deep-green: #1b4332;
    --ssdc-green: #2d6a4f;
    --ssdc-sage: #52b788;
    --ssdc-gold: #b5883e;
    --ssdc-gold-light: #ffd700;
    --ssdc-cream: #fefae0;
    --ssdc-white: #ffffff;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* Base */
body {
    font-family: var(--font-body);
    color: #2c2c2c;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, .heading-font {
    font-family: var(--font-heading);
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--ssdc-gold-light);
    outline-offset: 3px;
}

a:not([class]) {
    color: var(--ssdc-green);
    text-underline-offset: 3px;
}

a:not([class]):hover { color: var(--ssdc-deep-green); }

.not-italic { font-style: normal; }

/* ==========================================================
   Hero
   ========================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--ssdc-deep-green) 0%, var(--ssdc-green) 60%, #40916c 100%);
    color: #fff;
    min-height: 82vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.88;
    font-weight: 300;
}

/* Hero badge grid */
.hero-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 320px;
}

.hero-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background .2s;
}

.hero-badge:hover { background: rgba(255,255,255,0.15); }

.hero-badge i {
    font-size: 1.75rem;
    color: var(--ssdc-gold-light);
    display: block;
    margin-bottom: .4rem;
}

.hero-badge span {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

/* ==========================================================
   Dividers & Section labels
   ========================================================== */
.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--ssdc-gold-light);
    margin: 1rem 0;
    border-radius: 2px;
}

.section-cream { background: var(--ssdc-cream); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--ssdc-deep-green);
    font-weight: 700;
}

.section-subtitle {
    color: var(--ssdc-gold);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn-ssdc-primary {
    background: var(--ssdc-gold);
    color: #fff;
    border: none;
    padding: .7rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all .2s;
}

.btn-ssdc-primary:hover {
    background: var(--ssdc-deep-green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.btn-ssdc-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
    padding: .7rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all .2s;
}

.btn-ssdc-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
}

.btn-ssdc {
    background: var(--ssdc-green);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all .2s;
}

.btn-ssdc:hover {
    background: var(--ssdc-deep-green);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================
   Mission Pillars
   ========================================================== */
.pillar-card {
    border-top: 3px solid var(--ssdc-gold) !important;
    border-radius: 10px !important;
    transition: transform .25s, box-shadow .25s;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.1) !important;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ssdc-green), var(--ssdc-sage));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.pillar-icon i {
    font-size: 1.6rem;
    color: #fff;
}

/* ==========================================================
   Course cards
   ========================================================== */
.course-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-card .card-body {
    border-top: 3px solid var(--ssdc-gold);
}

/* ==========================================================
   Team cards
   ========================================================== */
.team-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.team-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 1.5rem auto 1rem;
    border: 3px solid var(--ssdc-gold);
    display: block;
}

/* ==========================================================
   Impact stats
   ========================================================== */
.stat-box {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--ssdc-gold-light);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: .875rem;
    color: rgba(255,255,255,.8);
    margin-top: .5rem;
    font-weight: 500;
}

/* ==========================================================
   Testimonials
   ========================================================== */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--ssdc-gold);
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    height: 100%;
    margin-bottom: 0;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    font-size: .95rem;
    line-height: 1.7;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: .95rem;
}

/* ==========================================================
   Jobs board
   ========================================================== */
.job-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: .5rem;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
}

.job-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    border-color: var(--ssdc-sage);
}

.job-badge {
    font-size: .7rem;
    padding: .3em .7em;
    font-weight: 600;
}

/* ==========================================================
   Alumni cards
   ========================================================== */
.alumni-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    background: #fff;
    text-align: center;
    height: 100%;
    transition: box-shadow .2s;
}

.alumni-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.alumni-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: .75rem;
    border: 2px solid var(--ssdc-gold);
}

/* ==========================================================
   Forms
   ========================================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--ssdc-green);
    box-shadow: 0 0 0 .2rem rgba(45,106,79,.2);
}

/* ==========================================================
   Employer logos
   ========================================================== */
.employer-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: .8;
    transition: all .2s;
}

.employer-logo:hover {
    filter: none;
    opacity: 1;
}

/* ==========================================================
   Page banner (inner pages)
   ========================================================== */
.page-banner {
    background: linear-gradient(135deg, var(--ssdc-deep-green), var(--ssdc-green));
    color: #fff;
    padding: 3.5rem 0;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-banner .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-banner .breadcrumb-item a:hover { color: #fff; }
.page-banner .breadcrumb-item.active { color: var(--ssdc-gold-light); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ==========================================================
   Pagination
   ========================================================== */
.page-link { color: var(--ssdc-green); border-color: #dee2e6; }
.page-link:hover { background: var(--ssdc-cream); color: var(--ssdc-deep-green); }
.page-item.active .page-link { background: var(--ssdc-green); border-color: var(--ssdc-green); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 768px) {
    .hero-section { min-height: 65vh; padding: 4rem 0 3rem; }
    .stat-number { font-size: 2.5rem; }
    .hero-badge-grid { display: none; }
    .stat-box { padding: 1.25rem .5rem; }
}

@media (max-width: 576px) {
    .page-banner { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; }
}
