/* ============================================
   CBBC RESOURCE CENTER
   Main Stylesheet
============================================ */


/* ---------- ROOT VARIABLES ---------- */

:root {

    --blue: #5aa9d6;
    --blue-dark: #277eae;
    --blue-light: #eaf7fd;

    --green: #83c9a0;
    --green-dark: #4e9b70;
    --green-light: #eefaf3;

    --red: #b51f23;

    --navy: #17384d;
    --text: #344955;
    --text-light: #71828d;

    --white: #ffffff;
    --background: #f7fbfd;

    --border: #dcecf2;

    --shadow-sm:
        0 4px 15px rgba(37, 90, 115, 0.06);

    --shadow:
        0 12px 35px rgba(37, 90, 115, 0.10);

    --shadow-lg:
        0 20px 55px rgba(37, 90, 115, 0.14);

    --radius: 18px;
    --container: 1180px;
}


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}


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


a {
    text-decoration: none;
    color: inherit;
}


button,
input {
    font-family: inherit;
}


/* ---------- CONTAINER ---------- */

.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* ============================================
   HEADER
============================================ */

.site-header {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}


.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}


.logo-wrapper {
    width: 62px;
    height: 62px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.brand-text {
    display: flex;
    flex-direction: column;
}


.brand-name {
    font-family: "Playfair Display", serif;
    color: var(--navy);
    font-weight: 700;
    font-size: 18px;
}


.brand-subtitle {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.main-nav {
    display: flex;
    gap: 8px;
}


.nav-link {
    padding: 10px 17px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: .25s ease;
}


.nav-link:hover,
.nav-link.active {
    background: var(--blue-light);
    color: var(--blue-dark);
}


.mobile-menu-btn {
    display: none;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: var(--navy);
}


.mobile-nav {
    display: none;
}


/* ============================================
   HERO
============================================ */

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #f5fcff 0%,
            #ffffff 48%,
            #f1fbf5 100%
        );
    padding: 95px 0 110px;
}


.hero-pattern {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -250px;
    top: -250px;
    border-radius: 50%;
    background: rgba(90,169,214,.10);
}


.hero-pattern::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    left: -500px;
    top: 450px;
    border-radius: 50%;
    background: rgba(131,201,160,.12);
}


.hero-content {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 80px;
}


.eyebrow,
.section-label {
    display: inline-block;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 70px);
    line-height: 1.08;
    color: var(--navy);
    margin: 16px 0 25px;
}


.hero h1 span {
    display: block;
    color: var(--blue-dark);
}


.hero-text > p {
    max-width: 600px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
}


.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px 23px;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 700;

    transition: .25s ease;
}


.btn-primary {
    background: var(--blue-dark);
    color: white;
    box-shadow: 0 8px 20px rgba(39,126,174,.22);
}


.btn-primary:hover {
    transform: translateY(-2px);
    background: #206d98;
}


.btn-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--navy);
}


.btn-secondary:hover {
    background: var(--green-light);
    border-color: var(--green);
}


/* Hero logo */

.hero-logo {
    display: flex;
    justify-content: center;
}


.logo-card {
    width: 360px;
    height: 360px;

    background: rgba(255,255,255,.90);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: var(--shadow-lg);

    position: relative;
}


.logo-card::before {
    content: "";
    position: absolute;
    inset: 15px;

    border: 2px solid rgba(90,169,214,.16);

    border-radius: 50%;
}


.logo-glow {
    position: absolute;
    width: 230px;
    height: 230px;
    background: rgba(131,201,160,.13);
    border-radius: 50%;
}


.hero-logo-image {
    width: 260px;
    height: 260px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}


/* ============================================
   SEARCH
============================================ */

.search-section {
    position: relative;
    margin-top: -34px;
    z-index: 5;
}


.search-box {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 15px;

    min-height: 70px;

    display: flex;
    align-items: center;

    padding: 8px;
}


.search-icon {
    width: 55px;
    text-align: center;
    font-size: 20px;
}


.search-box input {
    flex: 1;

    height: 52px;

    border: none;
    outline: none;

    color: var(--text);
    font-size: 15px;
}


.search-box input::placeholder {
    color: #9aabb4;
}


.search-box button {
    height: 52px;
    padding: 0 27px;

    border: none;
    border-radius: 10px;

    background: var(--blue-dark);
    color: white;

    font-weight: 700;
    cursor: pointer;

    transition: .2s;
}


.search-box button:hover {
    background: var(--green-dark);
}


.search-message {
    text-align: center;
    margin-top: 12px;
    color: var(--blue-dark);
    font-size: 14px;
    display: none;
}


/* ============================================
   GENERAL SECTIONS
============================================ */

.resources-section,
.lessons-section,
.about-section {
    padding: 100px 0;
}


.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 45px;
}


.section-heading h2 {
    font-family: "Playfair Display", serif;
    color: var(--navy);
    font-size: 40px;
    line-height: 1.2;
    margin-top: 8px;
}


.section-heading > p {
    max-width: 390px;
    color: var(--text-light);
}


.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}


.section-heading.centered > p {
    margin: 15px auto 0;
}


/* ============================================
   RESOURCE CARDS
============================================ */

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


.resource-card {
    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 30px;

    display: flex;
    gap: 20px;

    min-height: 210px;

    box-shadow: var(--shadow-sm);

    transition: .3s ease;
}


.resource-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}


.resource-icon {
    flex-shrink: 0;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 27px;
}


.books-card .resource-icon {
    background: var(--blue-light);
}


.documents-card .resource-icon {
    background: var(--green-light);
}


.lessons-card .resource-icon {
    background: #f2f0ff;
}


.resource-content h3 {
    color: var(--navy);
    font-size: 19px;
    margin-bottom: 8px;
}


.resource-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}


.resource-link {
    display: inline-block;
    margin-top: 18px;

    color: var(--blue-dark);

    font-size: 13px;
    font-weight: 700;
}


/* ============================================
   LESSONS
============================================ */

.lessons-section {
    background: white;
}


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


.lesson-card {
    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 22px;

    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 17px;

    transition: .25s ease;
}


.lesson-card:hover {
    background: var(--blue-light);
    border-color: #b9ddea;
    transform: translateX(4px);
}


.lesson-number {
    width: 46px;
    height: 46px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-light);
    color: var(--green-dark);

    font-size: 12px;
    font-weight: 800;
}


.lesson-card h3 {
    color: var(--navy);
    font-size: 16px;
}


.lesson-card p {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 3px;
}


.arrow {
    font-size: 20px;
    color: var(--blue-dark);
}


/* ============================================
   SCRIPTURE
============================================ */

.scripture-section {
    padding: 95px 0;

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            #4c9bba
        );

    color: white;

    position: relative;
    overflow: hidden;
}


.scripture-section::before {
    content: "✝";

    position: absolute;

    font-family: serif;

    font-size: 300px;

    right: -30px;
    bottom: -100px;

    opacity: .06;
}


.scripture-content {
    text-align: center;
    max-width: 800px;
    margin: auto;
    position: relative;
    z-index: 2;
}


.cross-mark {
    font-size: 35px;
    margin-bottom: 15px;
}


blockquote {
    font-family: "Playfair Display", serif;

    font-size: clamp(24px, 3vw, 34px);

    line-height: 1.5;

    font-style: italic;
}


cite {
    display: block;

    margin-top: 20px;

    font-style: normal;

    font-size: 13px;

    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: .85;
}


/* ============================================
   ABOUT
============================================ */

.about-section {
    background: var(--green-light);
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}


.about-grid h2 {
    font-family: "Playfair Display", serif;

    font-size: 43px;

    line-height: 1.2;

    color: var(--navy);

    margin-top: 12px;
}


.about-text {
    color: var(--text);
    font-size: 16px;
}


.about-text p {
    margin-bottom: 18px;
}


.about-text strong {
    color: var(--green-dark);
}


/* ============================================
   FOOTER
============================================ */

.site-footer {
    background: #143447;
    color: white;
}


.footer-inner {
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}


.footer-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}


.footer-brand div {
    display: flex;
    flex-direction: column;
}


.footer-brand strong {
    font-family: "Playfair Display", serif;
}


.footer-brand span {
    color: #a9d8e8;
    font-size: 12px;
}


.footer-links {
    display: flex;
    gap: 25px;
}


.footer-links a {
    color: #c7dbe3;
    font-size: 13px;
    transition: .2s;
}


.footer-links a:hover {
    color: white;
}


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.10);
}


.footer-bottom .container {
    min-height: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #9eb5bf;

    font-size: 11px;
}


/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        background: white;
        border-top: 1px solid var(--border);
        padding: 10px 5%;
    }

    .mobile-nav.open {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
        font-weight: 600;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text > p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-logo {
        order: -1;
    }

    .logo-card {
        width: 280px;
        height: 280px;
    }

    .hero-logo-image {
        width: 205px;
        height: 205px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


@media (max-width: 650px) {

    .header-inner {
        min-height: 72px;
    }

    .logo-wrapper {
        width: 52px;
        height: 52px;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .hero {
        padding: 65px 0 80px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-text > p {
        font-size: 15px;
    }

    .search-box {
        min-height: 60px;
    }

    .search-icon {
        width: 40px;
    }

    .search-box button {
        padding: 0 16px;
    }

    .search-box input {
        font-size: 13px;
    }

    .resources-section,
    .lessons-section,
    .about-section {
        padding: 70px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .section-heading > p {
        margin-top: 15px;
    }

    .lesson-grid {
        grid-template-columns: 1fr;
    }

    .lesson-card {
        grid-template-columns: 45px 1fr auto;
        padding: 17px;
    }

    .lesson-number {
        width: 40px;
        height: 40px;
    }

    .about-grid h2 {
        font-size: 35px;
    }

    .footer-inner {
        padding: 30px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-bottom .container {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}


/* Live resource search suggestions */

.search-message {
    margin-top: 12px;
    padding: 0;
}

.search-results-heading {
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--navy);
}

.search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.search-results li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.search-results li:last-child {
    border-bottom: none;
}

.search-results li:hover {
    background: var(--blue-light);
}

.search-results a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.search-results a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.search-result-category {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .search-results li {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* =========================================
   CBBC FACEBOOK SOCIAL LINKS
========================================= */

.facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #ffffff;
    background: #1877F2;
    transition: .25s ease;
}

.facebook-link svg {
    display: block;
    width: 21px;
    height: 21px;
}

.facebook-link:hover {
    background: #0866FF;
    transform: translateY(-2px);
}

.header-facebook {
    margin-left: 12px;
}

/* Mobile navigation */
.facebook-mobile-icon,
.facebook-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    margin-right: 7px;
    border-radius: 50%;
    color: #ffffff;
    background: #1877F2;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
}

/* Footer link */
.footer-facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    transition: .2s ease;
}

.footer-facebook-link:hover {
    color: #5aa9d6;
}

/* Keyboard accessibility */
.facebook-link:focus-visible,
.footer-facebook-link:focus-visible {
    outline: 3px solid #5aa9d6;
    outline-offset: 3px;
}

/* ============================================
   GOSPEL IN EIGHT BIBLE VERSES
   Homepage salvation presentation
============================================ */

.gospel-section {
    padding: 48px 0 56px;
    background: #f4f8fb;
}

.gospel-container {
    max-width: 1060px;
}

.gospel-heading {
    text-align: center;
    margin-bottom: 22px;
}

.gospel-heading h2 {
    color: var(--navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.25;
}

.gospel-intro {
    max-width: 850px;
    margin: 0 auto 27px;
    text-align: center;
}

.gospel-intro h3 {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.3;
}

.gospel-intro p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
}

.gospel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}

.gospel-card {
    min-width: 0;
    padding: 21px 22px 19px;
    background: #ffffff;
    border: 1px solid #d6e5ee;
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(37, 90, 115, 0.045);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gospel-card-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.gospel-number {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf8f2;
    color: #16804b;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.gospel-card-heading h3 {
    color: #0877b8;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.gospel-verse-text {
    margin: 0 0 12px;
    color: #142b40;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16.5px;
    line-height: 1.7;
}

.gospel-passage p {
    margin: 0 0 9px;
}

.gospel-passage p:last-child {
    margin-bottom: 0;
}

.gospel-verse-number {
    color: var(--blue-dark);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    vertical-align: 2px;
    margin-right: 3px;
}

.gospel-version {
    display: block;
    margin-top: auto;
    padding-top: 1px;
    color: #526f82;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .gospel-section {
        padding: 55px 0;
    }

    .gospel-container {
        width: min(100% - 30px, 560px);
    }

    .gospel-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .gospel-card {
        padding: 19px 18px;
    }

    .gospel-verse-text {
        font-size: 16px;
    }
}

