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

:root {
    --primary-color: #710000;
    --secondary-color: #D9805A;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #710000 0%, #D9805A 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.btn-donate-nav {
    background: var(--gradient);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-donate-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(113, 0, 0, 0.4);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: all 0.3s ease;
}

/* Nav Social Links */
.nav-social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-social-icon {
    width: 35px;
    height: 35px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(113, 0, 0, 0.4);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(113, 0, 0, 0.3);
}

.lang-btn i:first-child {
    font-size: 1rem;
}

.lang-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-btn.active i:last-child {
    transform: rotate(180deg);
}

#currentLang {
    font-size: 0.9rem;
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 0;
}

.lang-option {
    width: 100%;
    padding: 0.7rem 1.2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--dark-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--gradient);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(113, 0, 0, 0.9), rgba(217, 128, 90, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23D9805A" width="1200" height="600"/><g fill-opacity="0.1"><circle fill="%23fff" cx="200" cy="200" r="100"/><circle fill="%23fff" cx="600" cy="400" r="150"/><circle fill="%23fff" cx="1000" cy="250" r="120"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--gradient);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

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

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* About Section */
.about {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.registration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    font-weight: 600;
}

.registration-badge i {
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.about-img:hover {
    transform: scale(1.03);
}

/* Optimize image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Registration Section */
.registration {
    background: var(--dark-color);
    color: var(--white);
}

.registration .section-title {
    color: var(--white);
}

.registration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.reg-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reg-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.reg-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.reg-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.reg-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Services Section */
.services {
    background: var(--light-color);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.7;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
}

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

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: scale(1);
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(113, 0, 0, 0.9), rgba(217, 128, 90, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay p {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

/* Social Feed Section */
.social-feed {
    background: var(--light-color);
}

.social-feed-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.social-feed-wrapper {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 100%;
}

.social-feed-wrapper * {
    max-width: 100%;
    box-sizing: border-box;
}

.social-feed-wrapper:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.fb-feed .feed-header {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.ig-feed .feed-header {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.feed-header i {
    font-size: 2rem;
}

.feed-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.fb-page,
.instagram-embed-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    min-height: 700px;
    max-height: 700px;
    overflow: hidden;
    width: 700px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
        display: none;
    }
}

.fb-page {
    flex-direction: column;
    align-items: stretch !important;
}

.fb-page > span,
.fb-page > div {
    width: 100% !important;
    max-width: 100% !important;
}

.fb-page span iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.instagram-embed-wrapper {
    position: relative;
}

.fb-page iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Force Facebook plugin to be fully responsive */
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* Prevent horizontal overflow */
.fb-page,
.fb-page > *,
.fb_iframe_widget,
.fb_iframe_widget > * {
    overflow-x: hidden !important;
}

.instagram-embed-wrapper iframe {
    border-radius: 10px;
    max-width: 100%;
    background: var(--white);
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Instagram Manual Feed / Placeholder */
.instagram-feed-manual {
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-visit-link {
    text-decoration: none;
    width: 100%;
    display: block;
}

.instagram-placeholder {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.instagram-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(188, 24, 136, 0.4);
}

.instagram-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.instagram-placeholder h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.instagram-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.visit-button {
    display: inline-block;
    background: var(--white);
    color: #bc1888;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.instagram-placeholder:hover .visit-button {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Instagram Official Posts Container */
.instagram-posts-container {
    width: 100%;
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #bc1888 #f0f0f0;
}

.instagram-posts-container::-webkit-scrollbar {
    width: 8px;
}

.instagram-posts-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.instagram-posts-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #f09433, #bc1888);
    border-radius: 10px;
}

.instagram-posts-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #dc2743, #bc1888);
}

.instagram-media {
    margin-bottom: 1rem !important;
    max-width: 100% !important;
}

.instagram-posts-container iframe {
    max-width: 100%;
}

/* Donate Section */
.donate {
    background: var(--light-color);
}

.donate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.donate-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.donate-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.donate-list {
    list-style: none;
    margin: 1.5rem 0;
}

.donate-list li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.donate-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tax-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.tax-benefit i {
    font-size: 2rem;
    color: var(--primary-color);
}

.donate-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.donate-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.amount-btn {
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.form-input,
.custom-amount,
.form-textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.custom-amount:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-donate {
    width: 100%;
    background: var(--gradient);
    color: var(--white);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(113, 0, 0, 0.3);
}

.payment-info {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-card:hover .contact-icon {
    background: var(--white);
    color: var(--primary-color);
}

.contact-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(113, 0, 0, 0.4);
}

/* QR Code Modal */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.qr-modal.active {
    display: flex;
}

.qr-modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.qr-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: all 0.3s ease;
    z-index: 1;
}

.qr-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.qr-header {
    background: var(--gradient);
    color: var(--white);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.qr-header i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.qr-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.qr-header p {
    opacity: 0.95;
    font-size: 1rem;
}

.qr-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.qr-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.qr-code-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 4px solid var(--light-color);
    margin-bottom: 1rem;
}

.qr-scan-text {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
    font-style: italic;
}

.qr-details-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-details-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.payment-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light-color);
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease;
}

.payment-detail:hover {
    transform: translateX(5px);
    background: #e8f0f2;
}

.payment-detail i {
    font-size: 1.3rem;
    color: var(--primary-color);
    min-width: 24px;
}

.payment-detail strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.payment-detail p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-wrapper {
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        margin-left: 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .donate-content,
    .contact-content,
    .social-feed-content {
        grid-template-columns: 1fr;
    }

    .social-feed-wrapper {
        max-width: 100%;
    }

    .fb-page,
    .instagram-embed-wrapper {
        width: 100%;
        max-width: 100%;
        min-height: 600px;
        max-height: 600px;
        padding: 0.5rem;
    }

    .fb-page > span,
    .fb-page > div,
    .fb-page iframe,
    .fb-page span iframe {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .fb_iframe_widget,
    .fb_iframe_widget span,
    .fb_iframe_widget iframe {
        width: 100% !important;
        max-width: 100% !important;
    }

    .instagram-embed-wrapper iframe {
        width: 100%;
        max-width: 100%;
        height: 580px;
    }

    .feed-header {
        padding: 1rem;
    }

    .feed-header h3 {
        font-size: 1.2rem;
    }

    .feed-header i {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .about-img {
        height: 350px;
    }

    .gallery-img {
        height: 280px;
    }

    .qr-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .nav-social-links {
        margin-top: 1rem;
        justify-content: center;
    }

    .language-selector {
        margin-top: 1rem;
    }

    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .lang-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 300px;
        object-fit: contain;
    }

    .gallery-img {
        height: 280px;
    }

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

    .social-feed-wrapper {
        margin-bottom: 1.5rem;
    }

    .fb-page,
    .instagram-embed-wrapper {
        min-height: 500px;
        max-height: 500px;
        padding: 0.5rem;
    }

    .fb-page > span,
    .fb-page > div,
    .fb-page iframe,
    .fb-page span iframe {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .fb_iframe_widget,
    .fb_iframe_widget span,
    .fb_iframe_widget iframe {
        width: 100% !important;
        max-width: 100% !important;
    }

    .social-feed-wrapper {
        overflow-x: hidden;
    }

    .instagram-embed-wrapper iframe {
        height: 480px;
        width: 100%;
    }

    .instagram-feed-manual {
        min-height: 400px;
    }

    .instagram-placeholder {
        padding: 2rem 1.5rem;
    }

    .instagram-placeholder i {
        font-size: 3rem;
    }

    .instagram-placeholder h3 {
        font-size: 1.4rem;
    }

    .instagram-placeholder p {
        font-size: 1rem;
    }

    .visit-button {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .instagram-posts-container {
        max-height: 500px;
        padding: 0.3rem;
    }

    .feed-header {
        padding: 0.8rem;
    }

    .feed-header h3 {
        font-size: 1.1rem;
    }

    .feed-header i {
        font-size: 1.3rem;
    }

    .qr-modal {
        padding: 10px;
    }

    .qr-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
    }

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

    .qr-header i {
        font-size: 2rem;
    }

    .qr-header h2 {
        font-size: 1.4rem;
    }

    .qr-header p {
        font-size: 0.9rem;
    }

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

    .qr-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .qr-code-section {
        order: 1;
    }

    .qr-details-section {
        order: 2;
    }

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

    .qr-details-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .payment-detail {
        padding: 0.8rem 1rem;
        margin-bottom: 0.7rem;
    }

    .payment-detail i {
        font-size: 1.1rem;
    }

    .payment-detail strong {
        font-size: 0.85rem;
    }

    .payment-detail p {
        font-size: 0.9rem;
    }

    .qr-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
}

