/* CSS Variables */
:root {
    --bg-beige: #F4E6D9;
    --deep-purple: #5B2C3A;
    --soft-purple: #7a3f50;
    --accent-orange: #F05A4F;
    --text-dark: #3A2A2A;
    --text-light: #ffffff;
    --gradient-overlay: linear-gradient(180deg, rgba(92,44,58,0.7), rgba(92,44,58,0.95));
    --shadow-soft: 0 10px 40px rgba(91, 44, 58, 0.1);
    --shadow-hover: 0 20px 60px rgba(91, 44, 58, 0.2);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-beige);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--deep-purple);
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--text-light);
    border-color: var(--accent-orange);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-orange);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--deep-purple);
    border: 2px solid var(--deep-purple);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background: var(--deep-purple);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--deep-purple);
}

.btn-donate {
    background: var(--accent-orange);
    color: var(--text-light);
    border: none;
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.btn-donate:hover {
    background: #d94a3f;
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--deep-purple);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Inner pages always have scrolled navbar */
body:not(.home-page) .navbar {
    background: var(--deep-purple);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    flex-shrink: 0;
    z-index: 10;
    padding-right: 1rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.8vw, 1rem);
    position: relative;
}

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

.nav-menu a {
    color: var(--text-light);
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    padding: 0.5rem;
    display: block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.6vw, 0.8rem);
    flex-shrink: 0;
    z-index: 10;
    padding-left: 1rem;
}

.nav-social a {
    color: var(--text-light);
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--accent-orange);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex !important;
    align-items: center;
    gap: 0.3rem;
}

.dropdown > a i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.dropdown.dropdown-open > a i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--deep-purple);
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown.dropdown-open .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Prevent gap between dropdown trigger and content */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
    pointer-events: none;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dropdown-content a:hover {
    background: var(--accent-orange);
    padding-left: 1.5rem;
}

.dropdown:hover .dropbtn {
    color: var(--accent-orange);
}

.nav-social {
    display: flex;
    gap: clamp(0.5rem, 1vw, 1rem);
    flex-shrink: 0;
    z-index: 10;
}

.nav-social a {
    color: var(--text-light);
    font-size: clamp(0.8rem, 1vw, 1rem);
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 10;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 20;
    backdrop-filter: blur(5px);
}

.hero-arrow:hover {
    background: var(--accent-orange);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 2rem;
}

.hero-next {
    right: 2rem;
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover,
.hero-indicator.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: scale(1.2);
}

/* Programs Section */
.programs {
    padding: 6rem 2rem;
    background: var(--bg-beige);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.program-image {
    height: 250px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 2rem;
    text-align: center;
}

.program-content h3 {
    font-size: 1.4rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.program-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Experience Section */
.experience {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--soft-purple) 100%);
    padding: 6rem 2rem;
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.experience-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.experience-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border: 3px solid var(--accent-orange);
    border-radius: 50%;
}

.experience-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.experience-content {
    color: var(--text-light);
}

.experience-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.experience-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.experience-content .btn-primary {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-light);
}

.experience-content .btn-primary:hover {
    background: transparent;
    color: var(--text-light);
}

/* Gallery Section */
.gallery {
    padding: 6rem 2rem;
    background: var(--bg-beige);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--text-light);
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* Donation Section */
.donation {
    padding: 6rem 2rem;
    background: var(--text-light);
}

.donation-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.donation-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
}

.donation-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.donation-widget {
    background: var(--bg-beige);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.donation-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 12px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), #ff7b6b);
    border-radius: 10px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--deep-purple);
    color: var(--deep-purple);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--deep-purple);
    color: var(--text-light);
}

.donation-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--text-light);
}

.donation-form input:focus {
    outline: none;
    border-color: var(--deep-purple);
}

.donation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Multi-step Donation Form */
.donation-steps {
    position: relative;
}

.donation-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.donation-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.donation-step h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
    text-align: center;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    padding: 1rem 0.5rem;
    background: transparent;
    border: 2px solid var(--deep-purple);
    color: var(--deep-purple);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--deep-purple);
    color: var(--text-light);
    transform: translateY(-2px);
}

.custom-amount-input {
    margin-bottom: 1.5rem;
}

.custom-amount-input input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--deep-purple);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--text-light);
}

.custom-amount-input input:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-back {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--deep-purple);
    color: var(--deep-purple);
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--deep-purple);
    color: var(--text-light);
}

.donation-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--text-light);
    resize: none;
}

.donation-form textarea:focus {
    outline: none;
    border-color: var(--deep-purple);
}

/* QR Code Step */
.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--text-light);
    border-radius: 15px;
    border: 2px dashed var(--deep-purple);
}

.qr-code img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.donation-summary {
    text-align: center;
    font-size: 1.1rem;
    color: var(--deep-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.qr-instruction {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.qr-note {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

/* Thank You Step */
.thank-you-message {
    text-align: center;
    padding: 2rem 1rem;
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.thank-you-message h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.thank-you-message p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.donation-details {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--accent-orange) !important;
    margin: 1rem 0 !important;
}

.donor-name {
    font-size: 1.1rem !important;
    color: var(--deep-purple) !important;
    font-weight: 500;
    margin-bottom: 2rem !important;
}

/* Gita Bani */
.gita-bani {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--soft-purple) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.bani-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-light) !important;
    font-style: italic;
    margin-bottom: 0.75rem !important;
}

.bani-meaning {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0.5rem !important;
}

.bani-benglish {
    font-size: 1rem;
    color: var(--accent-orange) !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Blog Section */
.blog {
    padding: 6rem 2rem;
    background: var(--bg-beige);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--text-light);
    z-index: 10;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Newsletter Section */
.newsletter {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--deep-purple) 0%, #7a3f50 100%);
}

.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}

.newsletter-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.newsletter-container p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="tel"],
.newsletter-form input[type="email"] {
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-orange);
}

.checkbox-wrapper label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: #3d1e28;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-orange);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: clamp(0.3rem, 0.8vw, 0.8rem);
        left: 45%;
    }
    
    .nav-menu a {
        font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    }
    
    .nav-social {
        gap: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        height: 70px;
        position: relative;
    }
    
    .nav-logo {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        z-index: 1002;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, var(--deep-purple) 0%, #1a0a2e 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        padding-top: 100px;
        left: auto;
        transform: none;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
        z-index: 1003;
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-social {
        display: none;
    }

    /* Mobile Dropdown */
    .dropdown {
        position: static;
        width: 100%;
    }

    .dropdown > a {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .dropdown-content {
        position: static;
        transform: none;
        left: 0;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: block;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        max-height: 300px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }

    .dropdown-content a {
        text-align: center;
    }

    .dropdown-content a:hover {
        padding-left: 1.25rem;
    }

    .experience-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .experience-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .experience-image::before {
        display: none;
    }

    .experience-image img {
        width: 300px;
        height: 300px;
    }

    .donation-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }

    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .nav-logo {
        font-size: 1rem;
        flex: 1;
        text-align: center;
        order: 0;
    }
    
    .hamburger {
        display: flex !important;
        order: 1;
    }
    
    .hero {
        min-height: 100vh;
    }

    .hero-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        opacity: 0.8;
        z-index: 20;
    }

    .hero-arrow:hover {
        opacity: 1;
        background: var(--accent-orange);
    }

    .hero-prev {
        left: 0.5rem;
    }

    .hero-next {
        right: 0.5rem;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-content p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    .hero-indicators {
        bottom: 1.5rem;
        gap: 0.5rem;
    }

    .hero-indicator {
        width: 10px;
        height: 10px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .programs,
    .experience,
    .gallery,
    .donation,
    .blog,
    .newsletter {
        padding: 4rem 1.5rem;
    }

    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-back {
        order: 1;
    }

    .qr-code img {
        max-width: 180px;
    }

    .donation-form .form-row {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        height: 350px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-nav {
        gap: 1rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .experience-image img {
        width: 280px;
        height: 280px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-large {
        grid-column: span 1;
        height: 250px;
    }

    .donation-widget {
        padding: 1.5rem;
    }

    .donation-step h3 {
        font-size: 1.2rem;
    }

    .amount-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .thank-you-icon {
        font-size: 3rem;
    }

    .thank-you-message h3 {
        font-size: 1.4rem;
    }
}

/* Animation Utilities */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card,
.blog-card,
.gallery-item {
    animation: slideIn 0.6s ease forwards;
}

.program-card:nth-child(2),
.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.program-card:nth-child(3),
.blog-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-beige);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--deep-purple);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-orange);
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-main-image {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.modal-thumbnails img:hover,
.modal-thumbnails img.active {
    opacity: 1;
    border-color: var(--accent-orange);
}

.modal-details {
    padding: 1rem 0;
}

.modal-details h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.modal-details > p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-features {
    margin-bottom: 1.5rem;
}

.modal-features h4 {
    font-size: 1rem;
    color: var(--deep-purple);
    margin-bottom: 0.75rem;
}

.modal-features ul {
    list-style: none;
}

.modal-features ul li {
    padding: 0.4rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-features ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.modal-timings {
    background: var(--deep-purple);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 10px;
}

.modal-timings h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.modal-timings p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .modal-main-image {
        height: 200px;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }

    .modal-thumbnails img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal-container {
        max-height: 95vh;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
    }
}

/* Live Preview Modal Styles */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preview-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.preview-container {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.7) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-modal.active .preview-container {
    transform: scale(1) translateY(0);
}

.preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--deep-purple) 0%, #2d1b4e 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.preview-close:hover {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e67e22 100%);
    transform: rotate(90deg) scale(1.1);
}

.preview-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid rgba(93, 64, 144, 0.1);
}

.preview-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--deep-purple);
    margin: 0;
    padding-right: 40px;
    line-height: 1.3;
}

.preview-body {
    padding: 1.5rem 2rem;
}

.preview-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    text-align: justify;
}

.preview-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 2px solid rgba(93, 64, 144, 0.1);
}

.preview-footer .btn {
    min-width: 120px;
}

/* Responsive Preview Modal */
@media (max-width: 768px) {
    .preview-container {
        width: 95%;
        max-height: 85vh;
        border-radius: 15px;
    }

    .preview-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .preview-title {
        font-size: 1.4rem;
    }

    .preview-body {
        padding: 1rem 1.5rem;
    }

    .preview-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .preview-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
    }

    .preview-footer .btn {
        width: 100%;
    }

    .preview-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .preview-container {
        width: 98%;
        max-height: 80vh;
        border-radius: 10px;
    }

    .preview-header {
        padding: 1rem 1rem 0.75rem;
    }

    .preview-title {
        font-size: 1.2rem;
        padding-right: 35px;
    }

    .preview-body {
        padding: 0.75rem 1rem;
    }

    .preview-desc {
        font-size: 0.9rem;
    }

    .preview-footer {
        padding: 0.75rem 1rem 1rem;
    }
}
