/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */


.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 12px;
    color: #333;
    margin-top: 5px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.main-nav a i {
    margin-left: 5px;
    font-size: 10px;
}

.main-nav a:hover {
    color: #ffc107;
}

.donate-btn a {
    background-color: #ffc107;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.donate-btn a:hover {
    background-color: #e6af00;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    /* display: none; */
    font-size: 24px;
    cursor: pointer;
}

.banner {

    background: none;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    /* Add this line */
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    animation: fadeIn 1s ease-out;
    overflow: hidden;
    /* Prevents image overflow */
}

.banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
    object-position: bottom;
    /* This centers the image like background-position: center */
}

.banner h1 {
    position: relative;
    z-index: 1;
    font-size: 42px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.banner p {
    position: relative;
    z-index: 1;
    margin-top: 0;
    font-size: 18px;
}


/* Blog Filter Section */
.blog-filter {
    background-color: white;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1.2s ease-out;
}

.filter-container {
    width: 74%;
}




.filter-container h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #e6e6e6;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.search-container {
    display: flex;
    max-width: 300px;
    width: 100%;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.search-container button {
    background-color: var(--primary-color);
    color: #ffff;
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Blog Posts Section */
.blog-posts {
    padding: 30px 3% !important;
    animation: fadeIn 1.4s ease-out;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s forwards;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #ffff;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: white;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: #ffff !important;
}

.pagination a:hover:not(.active) {
    background-color: #f0f0f0;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--beige-color);
    padding: 67px 0% 0px 6px;
    color: black;
    animation: fadeIn 1.6s ease-out;
    padding-bottom: 26px;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.newsletter p {
    margin-bottom: 30px;
    color: #2b2121;
}

.newsletter .form-group-blog {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    padding: 6px;

}

.newsletter input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.newsletter button {
    background-color: var(--primary-color);
    color: #ffff;
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter button:hover {
    background-color: var(--primary-color);
}


.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #ffc107;
    color: #333;
    transform: translateY(-3px);
}



.quick-links,
.website-links {
    flex: 1;
    min-width: 150px;
}



.download-btn {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: #e6af00;
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #ccc;
    font-size: 14px;
}

/* Contact Us Fixed Button */
.contact-us-fixed {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.contact-us-fixed a {
    display: block;
    background-color: #ffc107;
    color: #333;
    padding: 15px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.contact-us-fixed a:hover {
    background-color: #e6af00;
    padding-bottom: 25px;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 2000;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu ul {
    margin-top: 60px;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: #333;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Animation Delays for Blog Cards */
.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-card:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-card:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-card:nth-child(6) {
    animation-delay: 0.6s;
}

.blog-card:nth-child(7) {
    animation-delay: 0.7s;
}

.blog-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Desktop filter visible only on desktop */
.filter-buttons-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn-desktop {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn-desktop.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-btn-desktop:hover {
    background-color: #e6e6e6;
}

/* Hide mobile filter on desktop by default */
.mobile-filter-toggle,
.mobile-filter-dropdown-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .filter-buttons-desktop {
        display: none !important;
    }

    .mobile-filter-dropdown-wrapper {
        display: block;
        position: relative;
        width: 100%;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: linear-gradient(90deg, #183d4c 0%, #255c74 100%);
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 13px 0;
        font-size: 16px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(24, 61, 76, 0.15);
        margin-bottom: 0;
        margin-top: 10px;
        gap: 10px;
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
        z-index: 2;
        position: relative;
    }

    .mobile-filter-modal,
    .mobile-filter-modal.active {
        display: none !important;
    }

    .mobile-filter-dropdown-wrapper {
        position: relative;
        width: 100%;
    }

    .mobile-filter-dropdown {
        display: none;
        position: absolute;
        left: 0;
        top: 110%;
        width: 100%;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(24, 61, 76, 0.18);
        padding: 18px 12px 12px 12px;
        z-index: 10;
        animation: fadeIn 0.3s;
    }

    .mobile-filter-dropdown.active {
        display: block;
    }

    .mobile-filter-close {
        position: absolute;
        top: 8px;
        right: 18px;
        font-size: 22px;
        color: #183d4c;
        cursor: pointer;
        font-weight: bold;
        z-index: 10;
        transition: color 0.3s;
    }

    .mobile-filter-close:hover {
        color: #255c74;
    }

    .mobile-filter-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }

    .mobile-filter-btn {
        background: #f7f7f7;
        color: #183d4c;
        border: none;
        border-radius: 30px;
        padding: 10px 2px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(24, 61, 76, 0.08);
        display: flex;
        align-items: center;
        gap: 7px;
        transition: background 0.3s, color 0.3s, transform 0.2s;
    }

    .mobile-filter-btn.active,
    .mobile-filter-btn:active {
        background: linear-gradient(90deg, #183d4c 0%, #255c74 100%);
        color: #fff;
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(24, 61, 76, 0.18);
    }

    .mobile-filter-btn i {
        color: #183d4c;
        background: #e3edf2;
        border-radius: 50%;
        padding: 3px;
        margin-right: 3px;
        font-size: 16px;
    }

    .mobile-filter-btn.active i,
    .mobile-filter-btn:active i {
        color: #fff;
        background: #255c74;
    }
}

@media (max-width: 480px) {

    .donate-btn a {
        padding: 8px 15px;
        font-size: 12px;
    }

    .banner {
        height: 200px;
    }

    .banner h1 {
        font-size: 32px;
    }

    .banner p {
        font-size: 14px;
    }

    .filter-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pagination a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
}

.loadmore-blogs {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}



/* ************************************************* */