/* =============================================================
   HOME PAGE SECTIONS CSS
   Covers: Achievers, Why SMOS, Announcements, Results, Leadership
   Theme colour: Blue only
   ============================================================= */

/* ── Finalised colour theme: Slate Blue #3344BB ── */
:root {
    --navy:       #3344BB;
    --navy-dark:  #2233AA;
    --navy-mid:   #3d50c8;
    --blue-light: #3344BB;
    --blue-pale:  #eef1fb;
    --gold:       #c8a84b;
    --gold-light: #e0c97a;
    --red:        #c0392b;
    --red-dark:   #a93226;
}

/* =============================================================
   ACADEMIC ACHIEVERS — card style matching screenshot
   Left: photo on red bg | Right: achievement text, name, logo
   ============================================================= */
.achievers-section { background: var(--blue-pale); }

.achievers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card: two columns — photo left, info right */
.achiever-card {
    display: grid !important;
    grid-template-columns: 130px 1fr !important;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(51,68,187,0.1);
    border: 1px solid #e8eef8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 220px;
    align-items: stretch;
}
.achiever-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(51,68,187,0.15);
}

/* LEFT — red background with photo */
.achiever-photo-col {
    background: #c0392b;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    width: 130px !important;
    flex-shrink: 0;
}
.achiever-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: top center;
    display: block;
    position: absolute;
    top: 0; left: 0;
}
.achiever-photo-placeholder {
    width: 100%; height: 100%;
    min-height: 220px;
    display: flex; align-items: center; justify-content: center;
}
.achiever-photo-placeholder svg {
    width: 60px; height: 60px; color: rgba(255,255,255,0.35);
}

/* RIGHT — white info panel */
.achiever-info-col {
    padding: 16px 14px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    gap: 6px;
    background: var(--white);
}

/* Achievement text — bold, red, matches screenshot */
.achiever-achievement {
    font-size: 0.92rem;
    font-weight: 800;
    color: #c0392b;
    line-height: 1.35;
    margin: 0 0 8px;
}

/* Thin red horizontal rule below achievement */
.achiever-divider {
    display: block;
    width: 32px;
    height: 2px;
    background: #c0392b;
    margin-bottom: 10px;
}

/* Student name — bold dark */
.achiever-name {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}

/* School logo in centre */
.achiever-logo-wrap {
    margin-bottom: 8px;
}
.achiever-school-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

/* Student name repeated at bottom — lighter */
.achiever-name-bottom {
    font-size: 0.78rem;
    color: #555;
    margin: 0 0 4px;
}

/* Batch tag */
.achiever-batch {
    font-size: 0.72rem;
    color: var(--text-light);
    background: var(--blue-pale);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2px;
}

/* =============================================================
   WHY SMOS
   ============================================================= */
.why-smos-section { background: radial-gradient(ellipse at top center, #3366cc 0%, #1a3a8a 50%, #0d2060 100%); padding: 0 0 72px; }

.why-smos-header { padding-top: 72px; padding-bottom: 40px; }
.why-title { color: var(--white) !important; }
.why-smos-header .section-subtitle { color: var(--gold); }
.why-smos-header .section-title-bar { background: var(--gold); }
.why-smos-intro {
    font-size: 1rem; color: rgba(255,255,255,0.7);
    max-width: 680px; line-height: 1.75; margin-top: 16px;
}

/* Stats strip */
.why-stats-strip {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 28px 0; margin-bottom: 52px;
}
.why-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; text-align: center;
}
.why-stat-item {
    padding: 10px 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.why-stat-item:last-child { border-right: none; }
.why-stat-num {
    display: block; font-family: var(--font-heading);
    font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 700;
    color: var(--gold-light); line-height: 1;
}
.why-stat-num sup { font-size: 0.55em; vertical-align: super; }
.why-stat-label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.5); text-transform: uppercase;
    letter-spacing: 0.08em; margin-top: 6px;
}

/* Feature cards */
.why-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-feature-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 32px 26px;
    transition: all 0.25s ease;
}
.why-feature-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    transform: translateY(-4px);
}
.why-feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.why-feature-title {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 700;
    color: var(--white); margin-bottom: 10px;
}
.why-feature-desc p {
    font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin: 0;
}
.why-feature-stat {
    display: inline-block; margin-top: 14px;
    background: var(--gold); color: var(--navy-dark);
    font-size: 0.78rem; font-weight: 700;
    padding: 3px 12px; border-radius: 20px;
}

/* =============================================================
   ANNOUNCEMENTS
   ============================================================= */
.announcements-section {
    background: var(--white);
    padding: 72px 0;
    border-top: 1px solid var(--border);
}

.announcements-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.announcements-heading-col .section-title { font-size: 1.6rem; line-height: 1.25; }
.announcements-note {
    font-size: 0.9rem; color: var(--text-light); line-height: 1.7;
    margin: 18px 0 28px;
}
.announcements-all-btn { margin-top: 4px; }

.announcements-list { display: flex; flex-direction: column; gap: 2px; }

.announcement-item {
    display: flex; align-items: stretch; gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s ease;
}
.announcement-item:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 16px rgba(51,68,187,0.08);
    transform: translateX(4px);
}

.announcement-date-box {
    background: var(--navy);
    min-width: 56px; padding: 14px 10px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ann-day {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 700;
    color: var(--gold-light); line-height: 1;
}
.ann-month {
    font-size: 0.68rem; font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 3px;
}

.announcement-body { padding: 12px 16px; flex: 1; min-width: 0; }
.announcement-title {
    font-size: 0.9rem; font-weight: 600;
    color: var(--navy); margin-bottom: 4px; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.announcement-excerpt { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; }

.announcement-arrow {
    padding: 0 14px; display: flex; align-items: center;
    font-size: 1.4rem; color: var(--border);
    transition: color 0.2s ease;
}
.announcement-item:hover .announcement-arrow { color: var(--navy); }

/* =============================================================
   RESULT HIGHLIGHTS
   ============================================================= */
.results-section { background: var(--blue-pale); }

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.result-highlight-card {
    background: var(--white);
    border-radius: 10px;
    padding: 32px 26px;
    box-shadow: 0 4px 18px rgba(51,68,187,0.08);
    border-top: 4px solid var(--navy);
    transition: all 0.25s ease;
    display: flex; flex-direction: column;
}
.result-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(51,68,187,0.14);
}
.result-card-primary { background: var(--navy); border-top-color: var(--gold); }
.result-card-primary .result-card-title,
.result-card-primary .result-card-desc { color: rgba(255,255,255,0.9); }
.result-card-primary .result-card-icon { color: var(--gold-light); }
.result-card-primary .result-card-link { color: var(--gold-light); }

.result-card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.result-card-img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.result-card-year {
    display: inline-block; background: var(--blue-pale); color: var(--navy);
    font-size: 0.72rem; font-weight: 700; padding: 2px 10px;
    border-radius: 12px; margin-bottom: 8px; letter-spacing: 0.06em;
}
.result-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 700;
    color: var(--navy); margin-bottom: 10px; line-height: 1.3;
}
.result-card-desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; flex: 1; }
.result-card-link {
    display: inline-block; margin-top: 16px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--navy); transition: color 0.2s ease;
}
.result-card-link:hover { color: #3344BB; }

/* =============================================================
   LEADERSHIP
   ============================================================= */
.leadership-section { background: var(--white); }

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.leader-profile-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(51,68,187,0.07);
    transition: all 0.25s ease;
}
.leader-profile-card:hover {
    box-shadow: 0 10px 32px rgba(51,68,187,0.13);
    transform: translateY(-4px);
}

.leader-photo-wrap {
    background: radial-gradient(ellipse at top, #b8d4f8 0%, #5588dd 50%, #2244aa 100%);
    min-height: 220px;
}
.leader-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
}
.leader-photo-placeholder {
    width: 100%; height: 220px;
    display: flex; align-items: center; justify-content: center;
}
.leader-photo-placeholder svg {
    width: 70px; height: 70px; color: rgba(255,255,255,0.25);
}

.leader-info {
    padding: 24px 24px 22px;
    border-left: 4px solid var(--navy);
    display: flex; flex-direction: column;
}
.leader-name {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 700;
    color: var(--navy); margin-bottom: 4px;
}
.leader-role {
    display: inline-block;
    font-size: 0.76rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--white); background: radial-gradient(ellipse at left, #6699ee 0%, #3355bb 100%);
    padding: 3px 12px; border-radius: 20px;
    margin-bottom: 14px;
}

.leader-message { flex: 1; }
.leader-quote-icon {
    font-family: Georgia, serif; font-size: 2.8rem;
    color: var(--gold); line-height: 1; margin-bottom: -8px;
    display: block;
}
.leader-message-text {
    font-size: 0.875rem; color: var(--text-light);
    line-height: 1.7; font-style: italic;
    margin-bottom: 12px;
}
.leader-read-more {
    font-size: 0.82rem; font-weight: 600;
    color: var(--navy); transition: color 0.2s;
}
.leader-read-more:hover { color: #3344BB; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
/* ── Tablet ── */
@media (max-width: 1024px) {
    .achievers-grid     { grid-template-columns: repeat(2, 1fr); }
    .why-features-grid  { grid-template-columns: repeat(2, 1fr); }
    .results-grid       { grid-template-columns: repeat(2, 1fr); }
    .leaders-grid       { grid-template-columns: 1fr; }
    .about-grid         { grid-template-columns: 1fr 320px !important; gap: 30px !important; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    /* Achievers */
    .achievers-grid     { grid-template-columns: 1fr; gap: 16px; }
    .achiever-card      { grid-template-columns: 110px 1fr; min-height: 180px; }
    .achiever-photo-col { min-height: 180px; width: 110px !important; }

    /* Why SMOS */
    .why-stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .why-stat-item:nth-child(2) { border-right: none; }
    .why-features-grid  { grid-template-columns: 1fr; gap: 16px; }
    .why-feature-card   { padding: 22px 18px; }

    /* Announcements */
    .announcements-inner { grid-template-columns: 1fr; gap: 24px; }

    /* Results */
    .results-grid       { grid-template-columns: 1fr; }

    /* Leadership */
    .leaders-grid       { grid-template-columns: 1fr; gap: 20px; }
    .leader-profile-card { grid-template-columns: 130px 1fr; }

    /* About + Enquiry form */
    .about-grid         { grid-template-columns: 1fr !important; gap: 28px !important; }
    .about-right-col    { position: static !important; }
    .enquiry-box        { padding: 24px 20px; border-radius: 12px; }
    .enquiry-title      { font-size: 1.25rem; }
}

/* ── Small Mobile ── */
@media (max-width: 480px) {
    /* Achievers — single col */
    .achievers-grid     { grid-template-columns: 1fr; }
    .achiever-card      { grid-template-columns: 100px 1fr; min-height: 160px; }
    .achiever-photo-col { min-height: 160px; width: 100px !important; }
    .achiever-achievement { font-size: 0.82rem; }
    .achiever-name      { font-size: 0.85rem; }

    /* Why SMOS */
    .why-stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .why-stat-num       { font-size: 1.6rem; }
    .why-stat-label     { font-size: 0.68rem; }
    .why-feature-card   { padding: 18px 16px; }
    .why-feature-icon   { font-size: 1.8rem; }
    .why-feature-title  { font-size: 0.95rem; }

    /* Leadership */
    .leader-profile-card { grid-template-columns: 1fr; }
    .leader-photo-wrap  { min-height: 180px; }
    .leader-info        { padding: 18px 18px 16px; }
    .leader-name        { font-size: 1rem; }

    /* Announcements */
    .announcement-date-box { min-width: 48px; padding: 12px 8px; }
    .ann-day            { font-size: 1.2rem; }
    .announcement-body  { padding: 10px 12px; }
    .announcement-title { font-size: 0.85rem; }

    /* Enquiry form */
    .enquiry-box        { padding: 20px 16px; border-radius: 10px; }
    .enquiry-title      { font-size: 1.15rem; }
    .enquiry-input,
    .enquiry-select,
    .enquiry-textarea   { padding: 10px 14px; font-size: 0.875rem; }
    .enquiry-submit     { padding: 12px; font-size: 0.9rem; }

    /* Section padding */
    .section-pad        { padding: 48px 0; }
    .why-smos-section   { padding-bottom: 48px; }
    .why-smos-header    { padding-top: 48px; padding-bottom: 28px; }
}


/* =============================================================
   ADMISSION ENQUIRY FORM — About Section Right Side
   ============================================================= */

/* Restructure about grid: left col = image+text, right = form */
.about-grid {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 50px !important;
    align-items: start !important;
}

.about-left-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-right-col {
    position: sticky;
    top: 130px;
}

/* ── Enquiry Box ── */
.enquiry-box {
    background: radial-gradient(ellipse at top center, #eaf4ff 0%, #b8d4f8 35%, #5588dd 100%);
    border-radius: 16px;
    padding: 36px 32px 32px;
    box-shadow: 0 12px 40px rgba(51,68,187,0.35);
}

.enquiry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2a5e;
    text-align: center;
    margin: 0 0 6px;
}

.enquiry-subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(26,42,94,0.6);
    margin: 0 0 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Form Fields ── */
.enquiry-field {
    margin-bottom: 14px;
}

.enquiry-input,
.enquiry-select,
.enquiry-textarea {
    width: 100%;
    background: #f0f2f8;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

.enquiry-input::placeholder,
.enquiry-textarea::placeholder {
    color: #888;
}

.enquiry-input:focus,
.enquiry-select:focus,
.enquiry-textarea:focus {
    background: #fff;
    border-color: #c8a84b;
    box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}

.enquiry-select {
    cursor: pointer;
    appearance: auto;
}

.enquiry-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ── Submit Button ── */
.enquiry-submit {
    width: 100%;
    background: #c8a84b;
    color: #1a2a5e;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
    margin-top: 6px;
    font-family: inherit;
}
.enquiry-submit:hover {
    background: #e0c97a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200,168,75,0.4);
}
.enquiry-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Success / Error messages ── */
.enquiry-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}
.enquiry-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 340px !important;
        gap: 36px !important;
    }
    .enquiry-box { padding: 28px 24px; }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .about-right-col { position: static; }
    .enquiry-box { padding: 28px 22px; }
    .enquiry-title { font-size: 1.3rem; }
}
