/*
 * Main Stylesheet - Vanabandhu Foundation
 */

:root {
    /* Color Palette */
    --primary: #2d6a4f;
    --primary-light: #52b788;
    --primary-dark: #1b4332;
    --secondary: #d97706; /* Saffron/Amber */
    --secondary-light: #f59e0b;
    --secondary-dark: #b45309;
    --bg-main: #f9f8f5; /* Warm sand off-white */
    --bg-dark: #1f2937;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --text-light: #f7fafc;
    --accent: #e2e8f0;
    
    /* Layout Sizes & Spacing */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    
    /* Shadow Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Security Banner */
.security-banner {
    background: #fef2f2;
    border-bottom: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    z-index: 1001;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
}

.btn-donate {
    background-color: var(--secondary);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.btn-donate:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 106, 79, 0.3);
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline-block;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    height: var(--header-height);
    transition: background-color 0.3s ease;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-branding .logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 55px;
    width: auto;
}

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

.logo-icon-wrapper {
    background-color: var(--primary);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon-wrapper i {
    width: 20px;
    height: 20px;
}

.logo-txt {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: #4a5568;
    padding: 8px 4px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-dark);
}

.menu-toggle i {
    width: 28px;
    height: 28px;
}

/* Banner / Image Slider */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background-color: #e5e7eb;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.45);
    transform: scale(1.05);
    transition: transform 6s ease;
}

.slide.active .slide-image {
    transform: scale(1);
}

.slide-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    color: #ffffff;
    z-index: 10;
}

.slide-content-inner {
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    transition-delay: 0.3s;
}

.slide.active .slide-content-inner {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Slider Navigation Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow-left {
    left: 24px;
}

.slider-arrow-right {
    right: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--secondary);
    width: 28px;
    border-radius: 10px;
}

/* Static fallback banner */
.static-banner {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
}

.static-banner::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle, rgba(45,106,79,0.3) 0%, rgba(27,67,50,0.85) 100%);
    z-index: 1;
}

.static-banner-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    color: white;
    z-index: 5;
}

.static-banner-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 12px;
}

.static-banner-content p {
    font-size: 18px;
    color: #cbd5e0;
}

/* Main Content Container */
.site-content {
    flex: 1;
    padding: 60px 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Dynamic Page Content Styles */
.page-body-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 50px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.page-body-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.page-body-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    margin-top: 8px;
    border-radius: 2px;
}

.page-body-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 24px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.page-body-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #4a5568;
}

.page-body-content ul, .page-body-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #4a5568;
}

.page-body-content li {
    margin-bottom: 8px;
}

/* Custom Grids built in default pages content */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cta-card {
    background: #fdfdfc;
    border-top: 4px solid var(--primary);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #f0efe9;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--secondary);
}

.cta-card h3 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-family: 'Playfair Display', serif;
    font-size: 20px !important;
    color: var(--primary-dark);
}

.cta-card p {
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.project-item {
    background: #fafafa;
    border-left: 4px solid var(--secondary);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    box-shadow: var(--shadow-sm);
}

.project-item h3 {
    margin-top: 0 !important;
    color: var(--primary-dark);
    font-size: 20px !important;
    margin-bottom: 8px !important;
}

.project-item p {
    margin-bottom: 0 !important;
}

.contact-info-list {
    background: #f7f9f6;
    padding: 24px;
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--primary-light);
    margin-bottom: 30px;
}

.contact-info-list p {
    margin-bottom: 12px !important;
}

.contact-info-list p:last-child {
    margin-bottom: 0 !important;
}

/* Footer Section */
.site-footer {
    background-color: var(--bg-dark);
    color: #a0aec0;
}

.footer-top {
    padding: 70px 0 50px;
    border-bottom: 1px solid #2d3748;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    gap: 50px;
}

.footer-col h3 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 24px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
    margin-top: 8px;
}

.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.brand-col .logo-icon-wrapper {
    background-color: var(--primary);
    width: 34px;
    height: 34px;
}

.brand-col .logo-txt {
    color: #ffffff;
    font-size: 20px;
}

.footer-desc {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.social-link i {
    width: 18px;
    height: 18px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-list i {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
}

.footer-contact-list a {
    color: inherit;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    padding: 24px 0;
    font-size: 13px;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-login-link {
    color: #718096;
}

.admin-login-link:hover {
    color: #ffffff;
}

/* Responsiveness */
@media (max-width: 991px) {
    .slider-wrapper {
        height: 480px;
    }
    .slide-content h2 {
        font-size: 38px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-container > :first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    --header-height: 70px;
    
    .menu-toggle {
        display: block;
        z-index: 1000;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 40px 40px;
        transition: right 0.4s ease;
        z-index: 999;
        gap: 24px;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
    }
    
    .nav-cta {
        margin-top: 15px;
        width: 100%;
    }
    
    .btn-donate {
        width: 100%;
    }
    
    .slider-wrapper {
        height: 420px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 15px;
    }
    
    .slider-arrow {
        display: none; /* Hide navigation arrows on smaller devices */
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-body-content {
        padding: 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-container > :first-child {
        grid-column: span 1;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
