/* Swiper Gallery Styling */
.gallery-section {
    margin-bottom: 60px;
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-caption p{
    color: #fff;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Swiper specific styling */
.swiper-container {
    padding: 20px 0 50px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #1d8e5a;
    opacity: 1;
}

@media (max-width: 767px) {
    .gallery-item {
        height: 250px;
    }
    
    .gallery-caption {
        font-size: 12px;
        padding: 10px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
}

/* Banner styles */
.page-header {
    position: relative;
    padding: 40px 0;
    background-size: cover;
    background-position: center;
    text-align: left;
    color: #000;
    margin-bottom: 0;
    background: #fff;
}

.page-header:before {
    display: none;
}

.page-header-inner {
    position: relative;
    z-index: 1;
}

.page-header-inner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0;
    color: #000;
}

/* Tabs navigation */
.facilities-tabs-nav {
    padding: 10px 0;
    margin-bottom: 0;
    background-color: #1d8e5a !important;
}

.facilities-tabs-nav .nav-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.facilities-tabs-nav .nav-item {
    margin: 0;
}

.facilities-tabs-nav .nav-link {
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

.facilities-tabs-nav .nav-link.active,
.facilities-tabs-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Activity items */
.activity-item {
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 0;
    background-color: #fff;
    box-shadow: none;
}

.activity-item:hover {
    box-shadow: none;
    transform: none;
}

.activity-image {
    overflow: hidden;
    margin-bottom: 10px;
}

.activity-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: none;
    border-radius: 0;
}

.activity-item:hover .activity-image img {
    transform: none;
}

.activity-content {
    padding: 0;
}

.activity-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #000;
    font-weight: 600;
}

.activity-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* Section styling */
.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    position: relative;
    padding-bottom: 0;
}

.school-life-section {
    padding-top: 30px;
}

.school-life-content p {
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .facilities-tabs-nav .nav-pills {
        justify-content: center;
    }
    
    .facilities-tabs-nav .nav-item {
        margin-bottom: 5px;
        width: auto;
    }
    
    .page-header-inner h1 {
        font-size: 36px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .activity-content h4 {
        font-size: 18px;
    }
}
.explore-section{
    padding: 60px 0;
}
.whiteText,.whiteText p{
    color: #fff !important;
}
.swiper-pagination{
    width: 100%;
}
.swiper-pagination-bullet{
    margin: 0 5px;
}

/* --------------------------------------------------------------
   Global Utility Styles: Program Cards & Thumbnails
   - Reusable across sections to maintain visual consistency
   - Keep names generic and avoid component coupling
   Usage:
     <img class="util-thumb" ...>
     <h4 class="util-heading">...
     <div class="util-text">...
     <div class="util-card">...
     <a class="btn-solid-green">...
-------------------------------------------------------------- */

/* Image: square thumbnails with cover cropping */
.util-thumb {
    width: 100%;
    height: 300px; /* base desktop size */
    aspect-ratio: 1 / 1; /* enforce square */
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Typography: unified heading/body styles */
.util-heading {
    font-size: 18px;
    line-height: 1.4;
    color: #1b1b18;
    font-weight: 600;
    margin: 8px 0 6px;
}
.util-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 12px;
}

/* Card alignment & spacing */
.util-card { text-align: left; }
.util-card .course-block_one-buttons { gap: 8px; }

/* Button: solid green variant matching site palette */
.btn-solid-green {
    background-color: #17a63a;
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    transition: background-color 0.2s ease-in-out, transform 0.15s ease-in-out;
}
.btn-solid-green:hover { background-color: #158f32; transform: translateY(-1px); }

/* Responsiveness: scale thumbnail height */
@media (max-width: 992px) { .util-thumb { height: 260px; } }
@media (max-width: 768px) { .util-thumb { height: 220px; } }
@media (max-width: 576px) { .util-thumb { height: 200px; } }

/* Donation Cards */
.donation-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    padding: 24px 24px 28px 24px;
    border: 1px solid rgba(40, 167, 69, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.donation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: linear-gradient(90deg, #28a745 0%, #5ccf8b 100%);
}
.donation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}
.donation-card_badge {
    position: absolute;
    top: -22px;
    left: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffe97a;
    border: 2px solid #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.donation-card_badge i {
    font-size: 26px;
    color: #28a745;
}
.donation-card_body { margin-top: 28px; }
.donation-card_title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.donation-card_text {
    color: #555;
    line-height: 1.6;
}
.donation-card_btn { margin-top: 14px; }
.courses-one .row.clearfix { align-items: stretch; }
.course-block_one { display: flex; }
.course-block_one-inner { display: flex; flex-direction: column; height: 100%; }
.course-block_one-content { display: flex; flex-direction: column; flex: 1; }
.course-block_one-text { flex: 1; }
.course-block_one-buttons { margin-top: auto; }