/* Home Page Styles */

/* General Styles */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #27318b;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #e31b24;
    bottom: 0;
    left: 25%;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #27318b;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-all .btn:hover {
    background-color: #e31b24;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Slider Section */
.slider-section {
    margin-bottom: 3rem;
}

.main-slider {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-slider .swiper-button-next:after,
.main-slider .swiper-button-prev:after {
    font-size: 20px;
}

.main-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.7;
}

.main-slider .swiper-pagination-bullet-active {
    background: #e31b24;
    opacity: 1;
}

/* Latest News Section */
.latest-news {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.news-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-wrapper article {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-wrapper article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-wrapper .img {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.news-wrapper article:hover .img img {
    transform: scale(1.1);
}

.news-wrapper .img .after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-wrapper article:hover .img .after {
    opacity: 1;
}

.news-wrapper .img .after i {
    color: #fff;
    font-size: 2rem;
}

.news-wrapper .title {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #27318b;
    text-decoration: none;
    text-align: center;
}

.news-wrapper .date {
    display: block;
    padding: 0 1rem 1rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Volunteer Section */
.volunteer-section {
    padding: 5rem 0;
    background: url('../img/volunteer-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.volunteer-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 49, 139, 0.8);
}

.volunteer-content {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.volunteer-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.volunteer-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.volunteer-content .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #e31b24;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.volunteer-content .btn:hover {
    background-color: #fff;
    color: #e31b24;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Donate Section */
.donate-section {
    padding: 5rem 0;
    background: url('../img/donate-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.donate-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 27, 36, 0.8);
}

.donate-content {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.donate-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.donate-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.donate-content .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #fff;
    color: #e31b24;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.donate-content .btn:hover {
    background-color: #27318b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Events Photos Section */
.events-photos {
    padding: 3rem 0;
    background-color: #fff;
}

.photos-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.photos-wrapper article {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.photos-wrapper article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.photos-wrapper .img {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.photos-wrapper article:hover .img img {
    transform: scale(1.1);
}

.photos-wrapper .img .after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photos-wrapper article:hover .img .after {
    opacity: 1;
}

.photos-wrapper .img .after i {
    color: #fff;
    font-size: 2rem;
}

.photos-wrapper .title {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #27318b;
    text-decoration: none;
    text-align: center;
}

/* Videos Section */
.videos-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.videos-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.videos-wrapper .video {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.videos-wrapper .video:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.videos-wrapper .video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.videos-wrapper .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videos-wrapper .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(227, 27, 36, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.videos-wrapper .video:hover .play-icon {
    background-color: #e31b24;
    transform: translate(-50%, -50%) scale(1.1);
}

.videos-wrapper .play-icon i {
    color: #fff;
    font-size: 1.5rem;
}

.videos-wrapper h3 {
    padding: 1rem;
    text-align: center;
}

.videos-wrapper h3 a {
    color: #27318b;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1199.99px) {
    .news-wrapper,
    .photos-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .videos-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.99px) {
    .main-slider {
        height: 400px;
    }
    
    .news-wrapper,
    .photos-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .volunteer-content h2,
    .donate-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.99px) {
    .main-slider {
        height: 300px;
    }
    
    .news-wrapper,
    .photos-wrapper,
    .videos-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .volunteer-content h2,
    .donate-content h2 {
        font-size: 2rem;
    }
    
    .volunteer-content p,
    .donate-content p {
        font-size: 1rem;
    }
}

@media (max-width: 575.99px) {
    .main-slider {
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}