/* Shared visual layer for service and subject pages. */
/*
 * Pexels imagery (free to use):
 * - Student study: pexels.com/photo/student-using-laptop-in-library-8199257/
 * - Collaboration: pexels.com/photo/students-studying-in-a-library-using-laptop-and-books-8199759/
 * - Books at desk: pexels.com/photo/books-at-desk-15998944/
 */

body {
    background: #f8fafc;
}

.page-title,
.page-header,
.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #0B192C !important;
    background-image:
        linear-gradient(120deg, rgba(11, 25, 44, 0.96), rgba(30, 62, 98, 0.8)),
        url('../images/about-image.jpg') !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(11, 25, 44, 0.12);
}

.container > .page-title {
    background-image:
        linear-gradient(120deg, rgba(11, 25, 44, 0.96), rgba(30, 62, 98, 0.8)),
        url('../images/subpage-books.jpg') !important;
    background-position: center 42%;
}

.page-header {
    background-image:
        linear-gradient(120deg, rgba(11, 25, 44, 0.96), rgba(30, 62, 98, 0.8)),
        url('../images/subpage-study.jpg') !important;
}

.hero-section {
    background-image:
        linear-gradient(120deg, rgba(11, 25, 44, 0.96), rgba(30, 62, 98, 0.8)),
        url('../images/subpage-collaboration.jpg') !important;
}

.page-title::before,
.page-header::before,
.hero-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -72px;
    right: 7%;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(255, 215, 0, 0.07), 0 0 0 44px rgba(255, 215, 0, 0.04);
}

.page-title::after,
.page-header::after,
.hero-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: -54px;
    left: 6%;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    transform: rotate(24deg);
}

.container > .page-title {
    padding: 56px 28px;
    border-radius: 22px;
}

.page-title h1,
.page-header h1,
.hero-section h1 {
    position: relative;
    color: #ffffff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.page-title p,
.page-header p,
.hero-section p {
    position: relative;
    color: #e2e8f0 !important;
}

.section-box,
.info-card,
.feature-card,
.subject-card,
.quote-sidebar,
.cta-box {
    position: relative;
    overflow: hidden;
    border-color: #dbe4ee !important;
    box-shadow: 0 10px 28px rgba(11, 25, 44, 0.06) !important;
}

.section-box::before,
.info-card::before,
.feature-card::before,
.subject-card::before,
.quote-sidebar::before,
.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #1E3E62);
    opacity: 0.9;
}

.section-box,
.info-card,
.feature-card,
.subject-card,
.quote-sidebar {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.section-box:hover,
.info-card:hover,
.feature-card:hover,
.subject-card:hover,
.quote-sidebar:hover {
    border-color: #b8c8d9 !important;
    box-shadow: 0 16px 34px rgba(11, 25, 44, 0.11) !important;
}

.quote-sidebar {
    border-top: 4px solid #FFD700 !important;
}

.features-list li::before {
    color: #1E3E62 !important;
}

@media (max-width: 900px) {
    .container > .page-title {
        padding: 44px 22px;
        border-radius: 16px;
    }

    .page-title::before,
    .page-header::before,
    .hero-section::before {
        right: -70px;
    }

    .page-title::after,
    .page-header::after,
    .hero-section::after {
        left: -45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-box,
    .info-card,
    .feature-card,
    .subject-card,
    .quote-sidebar {
        transition: none;
    }
}

/* ==========================================================================
   Site-wide modern refresh — applies on top of every page-level stylesheet.
   Sharpens typography, spacing, cards and buttons consistently everywhere.
   ========================================================================== */

.page-title h1,
.page-header h1,
.hero-section h1 {
    font-size: clamp(30px, 4vw, 42px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
}

.page-title p,
.page-header p,
.hero-section p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-box,
.info-card,
.feature-card,
.subject-card,
.quote-sidebar,
.cta-box {
    border-radius: 16px !important;
    padding: 32px !important;
}

.section-box h2,
.info-card h2,
.feature-card h2,
.quote-sidebar h3 {
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    color: #0B192C !important;
}

.section-box p,
.info-card p,
.feature-card p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #475569 !important;
}

.features-list li {
    font-size: 15px !important;
    line-height: 1.6 !important;
    padding: 6px 0 !important;
    gap: 10px !important;
}

.features-list li::before {
    content: '\2713' !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    background: rgba(30, 62, 98, 0.1);
    font-size: 12px !important;
}

/* Buttons — consistent pill CTA across every service/subject page */
.cta-btn,
.hero-cta,
.submit-btn,
.mega-btn {
    border-radius: 999px !important;
    letter-spacing: 0.01em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease !important;
}

.cta-btn,
.hero-cta {
    background: linear-gradient(135deg, #FFD700, #ffe259) !important;
    color: #0B192C !important;
    box-shadow: 0 10px 26px rgba(255, 215, 0, 0.28) !important;
    padding: 14px 30px !important;
    display: inline-block;
}

.cta-btn:hover,
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(255, 215, 0, 0.38) !important;
}

.submit-btn {
    background: linear-gradient(135deg, #0B192C, #1E3E62) !important;
    box-shadow: 0 10px 24px rgba(11, 25, 44, 0.18);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 25, 44, 0.26);
}

.cta-box {
    background: linear-gradient(135deg, #0B192C 0%, #1E3E62 100%) !important;
    color: #ffffff !important;
    text-align: center;
}

.cta-box h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

.cta-box p {
    color: #cbd5e0 !important;
    margin-bottom: 18px !important;
}

@media (max-width: 900px) {
    .section-box,
    .info-card,
    .feature-card,
    .subject-card,
    .quote-sidebar,
    .cta-box {
        padding: 24px !important;
        border-radius: 14px !important;
    }
}

/* ==========================================================================
   Second pass — content-container layout (used by online-Class subject
   pages) and a few loose ends, so every page shares the same polish.
   ========================================================================== */

.cta-box {
    border: none !important;
}

.content-container {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px !important;
    margin-top: -40px !important;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 45px rgba(11, 25, 44, 0.08);
}

.content-container h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    color: #0B192C !important;
    border-bottom: 2px solid #FFD700;
    display: inline-block;
    padding-bottom: 4px;
    margin-top: 30px;
}

.content-container h2:first-of-type {
    margin-top: 0;
}

.content-container p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #475569 !important;
}

.content-container ul {
    list-style: none;
    margin: 18px 0 24px 0;
    display: grid;
    gap: 10px;
}

.content-container ul li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: #334155;
}

.content-container ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(30, 62, 98, 0.1);
    color: #1E3E62;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .content-container {
        padding: 26px !important;
        margin-top: -24px !important;
        border-radius: 14px;
    }
}
