
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #7f8c8d;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

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

ul {
    list-style: none;
}

/* Top Header Styles */
.top-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 8px 0;
    font-size: 14px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--light-color);
    font-size: 16px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Main Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.logo-text p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.2;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    padding: 8px 12px;
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s;
    display: block;
    font-size: 14px;
}

.nav-menu>li>a:hover {
    color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    padding: 8px 15px;
    display: block;
    color: var(--text-color);
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding-left: 20px;
}

/* Button Styles */
.header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.donate-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    white-space: nowrap;
}

.donate-btn:first-child {
    background-color: var(--accent-color);
    color: white;
}

.donate-btn:first-child:hover {
    background-color: #c0392b;
}

.donate-btn:nth-child(2) {
    background-color: var(--primary-color);
    color: white;
}

.donate-btn:nth-child(2):hover {
    background-color: var(--secondary-color);
}

.donate-btn:last-child {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.donate-btn:last-child:hover {
    background-color: #d5dbdb;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--dark-color);
    transition: all 0.3s;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
    padding: 5px;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-menu>li {
    margin-bottom: 5px;
}

.mobile-nav-menu>li>a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.mobile-dropdown {
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.mobile-dropdown.active {
    max-height: 500px;
}

.mobile-dropdown li a {
    display: block;
    padding: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.mobile-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-buttons .donate-btn {
    margin: 0;
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 8px;
    }

    .header-buttons {
        gap: 8px;
    }
}

@media (max-width: 1024px) {

    .main-nav,
    .header-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .top-header .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        justify-content: center;
    }

    .contact-info {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .logo img {
        height: 40px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }

    .logo img {
        height: 35px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .mobile-menu {
        padding: 15px;
    }

    .mobile-nav-menu>li>a,
    .mobile-dropdown-btn {
        font-size: 15px;
        padding: 10px 0;
    }

    .slide img {
        object-fit: cover;
        width: 100%;
    }
}

/* Hero Section */


.slider-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
}

.slide img {
    height: 500px;
    /* object-fit: cover; */
    width: 100%;
}

.arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    color: black;
    background-color: white;
    padding: 8px 18px;
    font-weight: bold;
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

.caption {
    color: white;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.144);
    padding: 15px 0px;
}


/* Common section styling */
.news-section,
.gallery-section,
.members-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.news-section h2,
.gallery-section h2,
.members-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.news-section h2::after,
.gallery-section h2::after,
.members-section h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #3498db;
    bottom: -10px;
    left: 25%;
}

.news-section p,
.gallery-section p,
.members-section p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.location {
    font-size: 1rem;
    color: #3498db;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Swiper common styling */
.swiper {
    width: 100%;
    height: auto;
    padding: 20px 0 40px;
}

.swiper-slide {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.swiper-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.swiper-slide h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    padding: 0 15px;
}

.date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.swiper-slide p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #2980b9;
}

/* Members section specific styling */
.members-section .swiper-slide img {
    height: 250px;
}

.members-section .role {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.members-section .id {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.members-section .location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    margin: 10px 0;
}

.members-section .location::before {
    content: '📍';
}

/* Donors section specific styling */
.news-section:last-child .swiper-slide p {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Projects section specific styling */
.news-section:nth-last-child(3) .swiper-slide h3,
.news-section:nth-last-child(4) .swiper-slide h3 {
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Pagination styling */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #bdc3c7;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #3498db;
}


/* Responsive adjustments */
@media (max-width: 768px) {

    .news-section h2,
    .gallery-section h2,
    .members-section h2 {
        font-size: 2rem;
    }

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

    .arrow {
        cursor: pointer;
        position: absolute;
        top: 50%;
        color: black;
        background-color: white;
        padding: 5px 8px;
        font-weight: bold;
    }

    .news-section p,
    .gallery-section p,
    .members-section p {
        font-size: 1rem;
    }

    .swiper-slide h3 {
        font-size: 1.1rem;
    }

    .swiper-slide img {
        height: 180px;
    }

    .members-section .swiper-slide img {
        height: 220px;
    }
}

@media (max-width: 480px) {

    .news-section h2,
    .gallery-section h2,
    .members-section h2 {
        font-size: 1.8rem;
    }

    .swiper-slide {
        margin-bottom: 15px;
    }
}