/* ===================================
   ✅ FIXED & POLISHED PREMIUM HEADER CSS
   =================================== */

/* ====== MODERN VARIABLES ====== */
:root {
    --primary: #0072ff;
    --secondary: #00c6ff;
    --accent: #00e0a8;
    --warning: #ffb703;
    --danger: #fb8500;
    --dark: #2d3748;
    --light: #f7f9fc;
    --gradient: linear-gradient(135deg, #00e0a8, #00e0a8, #00e0a8);
    --gradient-warning: linear-gradient(135deg, #ffb703, #fb8500);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.18);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ====== RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #f7f9fc 0%, #edf2f7 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

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

/* ====== TOP HEADER ====== */
.top-header {
    background: #dcd90942;
    color: #fff;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.top-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: yellow;
    box-shadow: 0 -2px 10px rgba(251, 133, 0, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    position: relative;
    padding: 10px 0;
    flex-wrap: wrap;
}

/* ====== LOGO ====== */
.top-left {
    flex: 0 0 auto;
    z-index: 10;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: white;
    padding: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ====== TRUST NAME ====== */
.trust-name {
    text-align: center;
    flex: 1 1 auto;
    padding: 0 15px;
    margin: 0 10px;
    z-index: 5;
}

.trust-name h1 {
    font-size: 2.4rem;
    font-weight: 800;
    background: #FF7722;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
    line-height: 1.3;
}

.trust-name h1::before,
.trust-name h1::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: yellow;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: sparkle 2s ease-in-out infinite alternate;
}

.trust-name h1::before {
    left: -40px;
}

.trust-name h1::after {
    right: -40px;
}

@keyframes sparkle {
    0% {
        opacity: 0.6;
        transform: translateY(-50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

/* ====== SOCIAL ICONS ====== */
.top-right {
    flex: 0 0 auto;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FF7722;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 205, 86, 0.4), transparent);
    transition: left 0.6s ease;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #1903c4;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ====== CONTACT INFO ====== */
.contact-info-container {
    background: #FF7722;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(33, 2, 158, 0.89);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 95%;
    margin: 20px auto;
    padding: 15px 25px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    min-width: 260px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: yellow;
    transform: translateY(-3px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: rgba(255, 255, 255, 0.3);
    color: #ffd700;
    transform: scale(1.1);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.contact-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

/* ====== NAVIGATION ====== */
/* Header */
/* Header */
/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--accent);
}

/* Navigation container */
.main-nav {
    display: flex;
    justify-content: center;
    /* Menu center */
    align-items: center;
    height: 85px;
    position: relative;
}

/* Left Donate button (solid #FF7722, no blink) */
.donate-left-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #FF7722;
    /* Solid color */
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    /* Bold text */
    text-decoration: none;
    border: 2px solid #FF7722;
    z-index: 1000;
}

/* Mobile adjustments for donate-left-btn */
@media (max-width: 992px) {
    .donate-left-btn {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Mobile toggle (right) */
.mobile-toggle {
    display: none;
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    padding: 14px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--dark);
    background: rgba(0, 198, 255, 0.08);
    border: 2px solid transparent;
    display: block;
    white-space: nowrap;
    text-align: center;
}

.nav-menu li a:hover {
    background: rgba(0, 198, 255, 0.18);
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.25);
    transform: translateY(-3px);
}

/* Responsive: Mobile */
@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 85px;
        left: 50%;
        transform: translateX(-50%);
        /* Center menu */
        width: 90%;
        gap: 0;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        text-align: center;
        z-index: 999;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li a {
        padding: 12px;
        border-radius: 0;
        text-align: center;
    }
}

/* Highlighted buttons (solid #FF7722, bold, simple) */

/* Login Button */
.highlight-btn.login-btn,
.highlight-btn.registration-btn,
.highlight-btn.join-btn,
.highlight-btn.donate-btn {
    background: #FF7722;
    /* Solid color */
    color: #fff;
    /* White text */
    border: 2px solid #FF7722;
    border-radius: 25px;
    padding: 10px 22px;
    font-weight: 700;
    /* Bold text */
    text-decoration: none;
    transition: all 0.3s ease;
}

.highlight-btn.login-btn:hover,
.highlight-btn.registration-btn:hover,
.highlight-btn.join-btn:hover,
.highlight-btn.donate-btn:hover {
    background: #e66a00;
    /* Slightly darker on hover */
    border-color: #e66a00;
    box-shadow: 0 8px 25px rgba(255, 119, 34, 0.3);
    color: #fff;
}


/* ====== MOBILE TOGGLE ====== */
.mobile-toggle {
    display: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    border-radius: 10px;
    background: rgba(0, 198, 255, 0.1);
    padding: 10px;
    z-index: 1000;
}

/* ====== NEWS & GALLERY SECTIONS ====== */
.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;
}

/* ====== SWIPER STYLES ====== */
.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;
}

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

.slide img {
    height: 600px;
    width: 100%;
}

.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 ====== */
.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: '📍';
}

/* ====== RESPONSIVE DESIGN ====== */

/* Large Tablets */
@media (max-width: 1200px) {
    .trust-name h1 {
        font-size: 2rem;
    }

    .nav-menu li a {
        padding: 12px 18px;
        font-size: 1rem;
    }

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

/* Tablets */
@media (max-width: 992px) {
    .trust-name h1 {
        font-size: 1.8rem;
    }

    .logo {
        width: 75px;
        height: 75px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .nav-menu li a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

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

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

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        min-height: 80px;
    }

    .trust-name {
        order: 0;
        margin-bottom: 0;
        flex: 1;
        padding: 0 10px;
    }

    .top-left,
    .top-right {
        flex: 0 0 auto;
    }

    .trust-name h1 {
        font-size: 1.5rem;
    }

    .trust-name h1::before,
    .trust-name h1::after {
        font-size: 1.2rem;
    }

    .trust-name h1::before {
        left: -25px;
    }

    .trust-name h1::after {
        right: -25px;
    }

    .logo {
        width: 65px;
        height: 65px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        min-width: 100%;
        max-width: 350px;
    }

    /* Mobile Navigation */
    /* ====== MOBILE NAVIGATION FIX ====== */

    /* Mobile Toggle Button */
    .mobile-toggle {
        display: none;
        font-size: 2rem;
        color: var(--primary);
        cursor: pointer;
        border-radius: 10px;
        background: rgba(0, 198, 255, 0.1);
        padding: 10px;
        z-index: 1000;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Tablet - Show mobile menu */
    @media (max-width: 992px) {
        .mobile-toggle {
            display: block;
        }

        .nav-menu {
            display: none;
        }
    }

    /* Mobile Navigation Fix */
    @media (max-width: 768px) {
        .main-nav {
            justify-content: flex-end;
            padding: 0 15px;
        }

        .mobile-toggle {
            display: block;
            position: relative;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        .nav-menu {
            display: none;
            flex-direction: column;
            position: fixed;
            top: 85px;
            left: 0;
            width: 100%;
            height: calc(100vh - 85px);
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
            padding: 20px;
            overflow-y: auto;
            box-shadow: var(--shadow-hover);
            z-index: 998;
            gap: 0;
        }

        .nav-menu.active {
            display: flex;
            transform: translateX(0);
        }

        .nav-menu li {
            width: 100%;
            text-align: center;
            margin: 0;
            padding: 0;
        }

        .nav-menu li a {
            display: block;
            width: 100%;
            margin: 8px 0;
            padding: 15px 20px;
            font-size: 1.1rem;
            border-radius: 12px;
            background: rgba(0, 198, 255, 0.1);
            border: 2px solid rgba(0, 198, 255, 0.2);
            transition: var(--transition);
        }

        .nav-menu li a:hover {
            background: rgba(0, 198, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Special buttons mobile styling */
        .highlight-btn {
            margin: 8px 0;
            font-weight: 600;
        }
    }

    /* Small Mobile Fix */
    @media (max-width: 576px) {
        .nav-menu {
            top: 70px;
            height: calc(100vh - 70px);
            padding: 15px;
        }

        .nav-menu li a {
            padding: 14px 16px;
            font-size: 1rem;
            margin: 6px 0;
        }

        .mobile-toggle {
            font-size: 1.8rem;
            padding: 8px;
        }
    }

    /* Very Small Mobile */
    @media (max-width: 400px) {
        .nav-menu {
            padding: 10px;
        }

        .nav-menu li a {
            padding: 12px 14px;
            font-size: 0.95rem;
            margin: 5px 0;
        }
    }

    /* Landscape Mode Fix */
    @media (max-height: 500px) and (orientation: landscape) {
        .nav-menu {
            padding: 10px 20px;
        }

        .nav-menu li a {
            padding: 10px 15px;
            margin: 4px 0;
            font-size: 0.95rem;
        }
    }

    /* News & Gallery Sections */
    .news-section,
    .gallery-section,
    .members-section {
        margin: 30px auto;
        padding: 0 15px;
    }

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

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

    .slide img {
        height: 400px;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 15px 0;
    }

    .top-left,
    .top-right {
        position: static;
        transform: none;
        margin: 5px 0;
    }

    .trust-name {
        order: -1;
        flex: 1 1 100%;
        margin-bottom: 10px;
    }

    .trust-name h1 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .trust-name h1::before,
    .trust-name h1::after {
        display: none;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .contact-info-container {
        padding: 10px 15px;
        margin: 15px auto;
    }

    .contact-item {
        padding: 8px 12px;
        min-width: 100%;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-label {
        font-size: 0.8rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .main-nav {
        height: 70px;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    /* News & Gallery Sections */
    .news-section h2,
    .gallery-section h2,
    .members-section h2 {
        font-size: 1.6rem;
    }

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

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

    .slide img {
        height: 300px;
    }

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

/* Very Small Phones */
@media (max-width: 400px) {
    .trust-name h1 {
        font-size: 1.1rem;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .contact-value {
        font-size: 0.85rem;
    }

    .nav-menu li a {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .container {
        padding: 0 10px;
    }

    .contact-info-container {
        padding: 8px 12px;
    }

    .contact-item {
        padding: 6px 10px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
    }

    /* News & Gallery Sections */
    .news-section,
    .gallery-section,
    .members-section {
        margin: 20px auto;
        padding: 0 10px;
    }

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

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

    .swiper-slide p {
        font-size: 0.9rem;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .trust-name h1 {
        font-size: 1rem;
    }

    .container {
        padding: 0 8px;
    }

    .contact-info-container {
        padding: 6px 10px;
    }

    .contact-item {
        padding: 5px 8px;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding: 10px 20px;
        overflow-y: auto;
    }

    .nav-menu li a {
        padding: 10px 15px;
        margin: 2px 0;
    }

    .header-container {
        min-height: 70px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }
}