/*
Theme Name: Ramanandi Devi Orphanage
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A beautiful theme for Ramanandi Devi Hindu Orphanage
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ramanandi-orphanage
*/

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

/* Add smooth scrolling behavior across the site */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)), 
                url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600') center/cover;
    color: white;
    text-align: center;
    padding: 8rem 2rem 6rem;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-in-out;
}

.hero-logo img {
    max-width: 120px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* About Section */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 3rem;
    font-weight: 700;
}

.about-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h3 {
    color: #764ba2;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #2d3748;
}

/* help Section */
.help-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 3rem;
    font-weight: 700;
}

.help-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.help-content h3 {
    color: #764ba2;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.help-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #2d3748;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-size: 1.1rem;
}


/* Features Section */
.features {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 2rem;
}

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

.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.gallery-category {
    margin-bottom: 4rem;
}

.category-title {
    text-align: center;
    font-size: 2rem;
    color: #764ba2;
    margin-bottom: 2rem;
    font-weight: 600;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f5f5f5;
    padding: 5px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== STACKED GALLERY (Vertical Style) ===== */
.stacked-gallery {
    max-width: 900px;
    margin: 0 auto;
}

.stacked-gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-logo img {
        max-width: 80px;
        padding: 10px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .about-content {
        padding: 2rem;
    }

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

    .logo {
        font-size: 1.2rem;
    }
}


/* --- LIGHTBOX STYLES (THE FIX) --- */

/* The main modal container (Lightbox) */
.lightbox {
    display: none; /* Default state: Hidden */
    position: fixed; /* Crucial: Fixes it to the viewport */
    z-index: 9999; /* Crucial: Ensures it's on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay background */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* State when the lightbox is active/open */
.lightbox.active {
    display: flex; /* Display as a flexible container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    opacity: 1;
}

/* Content wrapper inside the lightbox */
.lightbox-content {
    position: relative;
    margin: 15px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The enlarged image */
.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* Caption for the image */
.lightbox-caption {
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Close button style */
.lightbox-close {
    position: absolute;
    top: -40px; /* Position it above the content box */
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

/* ===== BANK DETAILS BOX ===== */
.donate-section {
    display: block;
    width: 100%;
    padding: 25px;

    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.donate-grid {
    display: block;
    grid-template-columns: 1fr 1.5fr; /* Info on left (smaller), Map on right (larger) */
    gap: 3rem;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.donate-info {
    padding-right: 0;
}


.donate-info h3 {
     color: #764ba2;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;

}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}


/* --- Contact Section Styles --- */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info on left (smaller), Map on right (larger) */
    gap: 3rem;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info {
    /* Separator line for aesthetic border */
    padding-right: 2rem;
    border-right: 1px solid #e2e8f0;
}

.contact-info h3, .contact-map h3 {
    color: #764ba2;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.contact-map .map-placeholder {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

/* Responsive adjustments for Contact */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on smaller screens */
        gap: 2rem;
        padding: 2rem;
    }

    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0; /* Add separation line at the bottom */
        padding-bottom: 2rem;
    }
    .donate-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on smaller screens */
        gap: 2rem;
        padding: 2rem;
    }

    .donate-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0; /* Add separation line at the bottom */
        padding-bottom: 2rem;
    }
}

/* ===== 100 YEARS CELEBRATION BADGE ===== */
.century-badge {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  text-align: center;
  padding: 14px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 10px;
  margin: 20px auto;
  width: 95%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: glow 2.5s ease-in-out infinite;
}

.century-badge span {
  font-size: 28px;
  color: #ffeb3b;
}

/* Glowing animation */
@keyframes glow {
  0% { box-shadow: 0 0 10px #ffeb3b; }
  50% { box-shadow: 0 0 20px #ffe14c; }
  100% { box-shadow: 0 0 10px #ffeb3b; }
}


/* Ensure proper box sizing everywhere */
*, *::before, *::after {
  box-sizing: border-box;
}
/* ===== FOOTER ===== */
.site-footer {
    background: #1c1c1c;
    color: #fff;
    padding: 40px 20px;
}

.footer-social {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.footer-social h3 {
    margin-bottom: 25px;
    font-size: 22px;
    color: #ffeb3b;
}

/* Widgets layout */
.footer-social-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    justify-items: center;
}

/* Widget box */
.footer-widget {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mobile */
@media (max-width: 768px) {
    .footer-social-widgets {
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center center;
    border-radius: 10px;
    display: block;
    background: #f5f5f5;
    padding: 5px;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.gallery-caption {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    background: #fafafa;
}


/* ===== FOLLOW US SECTION ===== */
.follow-us-section {
    padding: 60px 20px;
    background: #f7f7f7;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.connect-box,
.social-box-wrapper {
    max-width: 1100px;
    margin: 0 auto 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.connect-box h3,
.social-title {
    margin-bottom: 20px;
    color: #7a1d1d;
}

.connect-box p {
    line-height: 1.7;
    margin-bottom: 12px;
}

.thank-note {
    margin-top: 20px;
    font-weight: 600;
    color: #444;
}

.follow-desc {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.follow-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.social-card {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.instagram-card h4 {
    margin: 15px 0 10px;
}

.insta-icon {
    width: 60px;
    height: auto;
}

/* Base button — SAME SIZE */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;   /* key */
    height: 46px;       /* key */
    padding: 0 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

/* Instagram gradient */
.insta-btn {
    background: linear-gradient(
        45deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
    color: #fff;
}


/* Grid ensures equal column height */
.follow-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* All cards stretch equally */
.social-card {
    display: flex;
    height: 100%;
}

/* Inner content fills card */
.card-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Instagram spacing balance */
.instagram-card p {
    flex-grow: 1;
}

/* Button stays at bottom */
.instagram-card .insta-btn {
    margin-top: auto;
}


/* Side-by-side layout */
.side-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Icons on the side */
.social-icon {
    width: 55px;
    height: auto;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Content area */
.social-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Titles */
.facebook-card h4 {
    color: #1877f2;
    margin-bottom: 6px;
}

/* Push button to bottom for equal height */
.social-content p {
    flex-grow: 1;
}

/* Facebook button */
.fb-btn {
    background: #1877f2;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .follow-widgets {
        grid-template-columns: 1fr;
    }
}

/* ===== BUTTON-ONLY HOVER EFFECT ===== */
.social-btn {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

/* Facebook hover */
.fb-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(24,119,242,0.45);
    filter: brightness(1.05);
}

/* Instagram hover */
.insta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(214,41,118,0.45);
    filter: brightness(1.05);
}

/* ===== RESPONSIVE GOOGLE MAP FIX ===== */
.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== MOBILE ADDRESS WRAP FIX ===== */
.contact-address {
    max-width: 100%;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Prevent flex/grid overflow */
.contact-address,
.contact-address * {
    min-width: 0;
}
.contact-box,
.contact-info {
    min-width: 0;
}
.contact-address {
    font-size: 15px;
    opacity: 0.9;
}

/* ===== EMAIL WRAP FIX (MOBILE) ===== */
.contact-email {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.6;
}

.contact-email a {
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.contact-box,
.contact-info,
.contact-row {
    min-width: 0;
}
.contact-email a:hover {
    text-decoration: underline;
}

.thumb-item img {
    max-width: 280px;
    height: auto;
}


/* ===== BANK DETAILS + QR SIDE BY SIDE ===== */
.bank-details-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bank-details-text {
    flex: 0 1 auto;
}

.bank-details-qr {
    flex-shrink: 0;
    text-align: center;
    padding: 1rem;
    background: #f9f9ff;
    border-radius: 14px;
    border: 1px dashed #ccc;
    max-width: 250px;
    align-self: flex-start;
}

.bank-details-qr h4 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.qr-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    background: #fff;
    padding: 10px;
}

.qr-note {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .bank-details-row {
        flex-direction: column;
    }
    .bank-details-qr {
        align-self: center;
    }
}


/* ===== DONATION APPEAL TEXT ===== */
.donation-appeal {
    margin-bottom: 25px;
    padding: 20px;
    background: #fffaf2;
    border-left: 5px solid #f4a261;
    border-radius: 10px;
    line-height: 1.8;
}

.donation-appeal h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #b45309;
    font-weight: 700;
}

.donation-appeal p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.donation-appeal .appeal-highlight {
    font-weight: 700;
    color: #9a3412;
    text-align: center;
    margin-top: 15px;
}

