/* advanced-placement.css */

.advanced-placement {
    background: url('../img/banners/ap-banner.png') center center/cover no-repeat;
}

.map-testing {
    background: url('../img/banners/map-testing.webp') center center/cover no-repeat;
}

/* -------------------- GENERAL -------------------- */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f9f9f9;
    color: #333;
}

body,
button,
input,
select,
textarea {
    font-family: 'Poppins', 'Nunito', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Nunito', Arial, sans-serif;
    font-weight: 600;
}

.btn,
.learn-more-btn {
    font-family: 'Poppins', 'Nunito', Arial, sans-serif;
    font-weight: 600;
}

/* -------------------- Banner -------------------- */
.lis-mv-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lis-mv-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(122, 105, 189, 0.65),
            rgba(46, 115, 185, 0.65));
}

.lis-mv-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.lis-mv-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.35));
    z-index: 1;
}

@media (max-width: 768px) {
    .lis-mv-banner {
        height: 220px;
        background-position: center 30%;
    }
}

.lis-mv-banner-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.lis-mv-banner-content p {
    font-size: 1.25rem;
}

/* -------------------- Section Headings -------------------- */
h2.text-primary {
    color: #2e73b9 !important;
}

/* -------------------- Why Choose AP Section - Premium -------------------- */
/* Row container for equal height and single row on large screens */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    /* space between boxes */
}

/* Columns fixed width for large screens */
.row.equal-height .col-12.col-md-6.col-lg-3 {
    display: flex;
    flex: 0 0 23%;
    /* slightly less than 25% to fit 4 boxes including gaps */
    max-width: 23%;
}

/* Medium screens: 2 columns */
@media (max-width: 1200px) {
    .row.equal-height .col-12.col-md-6.col-lg-3 {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

/* Small screens: 1 column */
@media (max-width: 768px) {
    .row.equal-height .col-12.col-md-6.col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Feature box styling */
.feature-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical center icon + text */
    align-items: center;
    /* horizontal center */
    text-align: center;
    flex: 1;
    min-height: 350px;
    /* taller boxes */
    gap: 0.8rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: default;
}

/* Hover effect */
.feature-icon:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, rgba(46, 115, 185, 0.1), rgba(46, 115, 185, 0.05));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Icon styling */
.feature-icon i {
    font-size: 2.5rem;
    color: #2e73b9;
}

/* Title styling */
.feature-icon h5 {
    margin: 0;
    font-weight: 600;
    color: #2e73b9;
}

/* Description styling */
.feature-icon p {
    margin: 0.25rem 0 0;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}


/* -------------------- Courses Offered Section -------------------- */
/* Courses Offered Section - Premium Layout */
.course-item-hover {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-left: 5px solid #2e73b9;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    gap: 0.8rem;
}

.course-item-hover:hover {
    background: linear-gradient(90deg, rgba(46, 115, 185, 0.1), rgba(46, 115, 185, 0.05));
    transform: translateY(-3px);
}

.course-item-hover i {
    font-size: 1.8rem;
    color: #2e73b9;
    flex-shrink: 0;
}

.course-item-hover span.course-name {
    font-size: 1rem;
    font-weight: 500;
}

/* Alternate row shading for better readability */
.row .col:nth-child(odd) .course-item-hover {
    background: #f9f9f9;
}

.row .col:nth-child(even) .course-item-hover {
    background: #ffffff;
}


/* -------------------- Call-to-Action Section -------------------- */
.cta {
    background: #1c4f7a;
    /* darker, muted blue */
    border-radius: 10px;
    padding: 3rem 2rem;
    margin: 2rem auto;
    /* center horizontally */
    text-align: center;
    color: #fff;
    width: 70%;
    /* 70% of parent container */
    max-width: 100%;
    /* ensure it doesn't exceed container on small screens */
}

/* CTA Button */
.cta a.btn {
    background-color: #f0ad4e;
    /* gold accent */
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: none;
    border-radius: 5px;
}

/* Hover effect: invert colors with shadow */
.cta a.btn:hover {
    background-color: #fff;
    color: #1c4f7a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cta {
        width: 85%;
        /* slightly wider on medium screens */
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .cta {
        width: 95%;
        /* almost full width on mobile */
        padding: 2rem 1rem;
    }
}

/* -------------------- Responsive -------------------- */


@media (max-width: 768px) {
    .lis-mv-banner {
        height: 300px;
    }

    .lis-mv-banner-content h1 {
        font-size: 2rem;
    }

    .feature-icon i {
        font-size: 2.5rem;
    }

    .cta {
        padding: 2rem 1rem;
    }
}

/* -------------------- Statement of Faith -------------------- */

/* -------------------- Statement of Faith -------------------- */

.faith-grid .col-12 {
    display: flex;
}

/* Faith Box */
.faith-box {
    flex: 1;
    min-height: 270px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faith-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg,
            rgba(46, 115, 185, 0.08),
            rgba(46, 115, 185, 0.02));
}

/* Text */
.faith-box p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
}

/* -------------------- Faith Icons (FIXED) -------------------- */

.faith-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Bible */
.faith-icon.bible {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="%232e73b9" d="M4 3h13a3 3 0 013 3v15a1 1 0 01-1 1H6a2 2 0 01-2-2V3z"/%3E%3Crect x="11" y="7" width="2" height="8" fill="%23ffffff"/%3E%3Crect x="8" y="10" width="8" height="2" fill="%23ffffff"/%3E%3C/svg%3E');
}

/* Trinity */
.faith-icon.trinity {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232e73b9" stroke-width="2"%3E%3Cpath d="M12 2l9 18H3L12 2z"/%3E%3C/svg%3E');
}

/* Cross */
.faith-icon.cross {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232e73b9"%3E%3Cpath d="M11 2h2v6h6v2h-6v12h-2V10H5V8h6z"/%3E%3C/svg%3E');
}

/* Heart */
.faith-icon.heart {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232e73b9"%3E%3Cpath d="M12 21s-7-4.35-7-10a4 4 0 018-1 4 4 0 018 1c0 5.65-7 10-7 10z"/%3E%3C/svg%3E');
}

/* Gift */
.faith-icon.gift {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232e73b9"%3E%3Cpath d="M20 7h-2a3 3 0 10-6 0 3 3 0 10-6 0H4v4h16V7z"/%3E%3C/svg%3E');
}

/* Dove */
.faith-icon.dove {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232e73b9"%3E%3Cpath d="M2 12c6-1 10-5 12-9 2 6-1 12-6 15-2 1-4 1-6-1z"/%3E%3C/svg%3E');
}

/* Resurrection */
.faith-icon.resurrection {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="%232e73b9" d="M3 20h18v2H3v-2z"/%3E%3Cpath fill="%232e73b9" d="M6 6h8c3 0 5 2 5 5v7H6V6z"/%3E%3Cpath fill="%23ffffff" d="M8 10h6v6H8z"/%3E%3Ccircle cx="17" cy="14" r="2" fill="%232e73b9"/%3E%3C/svg%3E');
}

/* Church */
.faith-icon.church {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232e73b9"%3E%3Cpath d="M11 2h2v3h2v2h-2v3h-2V7H9V5h2V2zm-6 8l7-5 7 5v11H5V10zm6 5h2v6h-2v-6z"/%3E%3C/svg%3E');
}


/* Responsive tuning */
@media (max-width: 992px) {
    .faith-box {
        min-height: 240px;
    }
}



/* -------------------- Programs Page -------------------- */
/* -------------------- Programs Grid -------------------- */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* ensures equal height */
}

.program-box {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    /* make flex child stretch to row height */
}

/* Hover effect */
.program-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(46, 115, 185, 0.08), rgba(46, 115, 185, 0.02));
}

/* Program headings */
.program-box h5 {
    font-size: 1.25rem;
    color: #2e73b9;
    margin-bottom: 0.5rem;
}

/* Program description text */
.program-box p {
    font-size: 1rem;
    color: #000000;
    /* black text */
    margin: 0;
    flex-grow: 1;
    /* ensures text area stretches if needed */
}

/* CTA box */
.program-cta {
    width: 70%;
    background: #f4f7fb;
    border-radius: 14px;
    padding: 3rem 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1200px) {
    .row.g-4 {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
}

@media (max-width: 992px) {
    .program-cta {
        width: 100%;
    }
}