/* CSS Variables */
:root {
    --saffron: #F9A826;
    --deep-saffron: #E67E22;
    --monk-robe: #CD5C5C;
    --deep-red: #8B0000;
    --temple-stone: #A67C52;
    --earth-brown: #8D6E63;
    --bodhi-bark: #6D4C41;
    --parchment: #F5F0E3;
    --ivory: #FFFFF0;
    --enlightenment-gold: #FFD700;
    --background: var(--ivory);
    --foreground: var(--bodhi-bark);
    --border: var(--temple-stone);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--foreground);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.02em;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mantra Banner */
.mantra-banner {
    background-color: #fff5e6;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--saffron);
}

.mantra-text {
    color: #ea580c;
    font-size: 18px;
    font-weight: 500;
    animation: scroll-text 30s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #fff5e6;
    transition: all 0.3s;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text .site-title {
    font-size: 24px;
    font-weight: bold;
    color: #7c2d12;
    margin: 0;
}

.logo-text .tagline {
    font-size: 12px;
    color: #ea580c;
    font-style: italic;
    margin: 0;
}

.nav-desktop {
    display: none;
    gap: 30px;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: #7c2d12;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--deep-saffron);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--deep-saffron);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: none;
    gap: 15px;
    align-items: center;
}

@media (min-width: 768px) {
    .header-actions {
        display: flex;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: #7c2d12;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    border-top: 1px solid #fff5e6;
    padding: 20px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 12px 0;
    color: #7c2d12;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-link:hover {
    color: var(--deep-saffron);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--deep-saffron);
    color: white;
}

.btn-primary:hover {
    background-color: #c26b1d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--deep-saffron);
    border: 2px solid var(--deep-saffron);
}

.btn-outline:hover {
    background-color: var(--deep-saffron);
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--deep-red);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background-color: var(--parchment);
    padding: 60px 0;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-text {
        text-align: left;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--bodhi-bark);
    margin-bottom: 24px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 64px;
    }
}

.hero-title .word {
    display: inline-block;
    margin-right: 8px;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.3s; }
.hero-title .word:nth-child(4) { animation-delay: 0.4s; }
.hero-title .word:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 20px;
    color: var(--temple-stone);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.8s ease-out;
    position: relative;
    object-fit: cover;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fix image positioning during scroll */
.work-image img,
.impact-image img,
.about-image img,
.news-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: auto;
}

/* Impact Stats */
.impact-stats {
    background-color: white;
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--bodhi-bark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--temple-stone);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #D4AF37;
    font-family: 'Cormorant Garamond', serif;
}

.stat-divider {
    width: 48px;
    height: 2px;
    background-color: #9D2933;
    margin: 12px auto;
}

.stat-label {
    font-weight: 500;
    color: var(--bodhi-bark);
    font-size: 16px;
}

/* Our Work Section */
.our-work {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.work-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-card:hover .work-image img {
    transform: scale(1.1);
}

.work-content {
    padding: 24px;
}

.work-content h3 {
    font-size: 22px;
    font-weight: bold;
    color: #7c2d12;
    margin-bottom: 12px;
}

.work-content p {
    color: var(--temple-stone);
    margin-bottom: 16px;
    line-height: 1.6;
}

.work-link {
    color: var(--deep-saffron);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.work-link:hover {
    color: #c26b1d;
}

/* Impact Story */
.impact-story {
    background-color: #9D2933;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .impact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.impact-image {
    position: relative;
}

.impact-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.impact-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.timeline-bar {
    width: 100%;
    height: 4px;
    background-color: #D4AF37;
    margin-bottom: 24px;
    animation: expandWidth 1.5s ease-out;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

.impact-text p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.impact-highlight {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: #8E2128;
    border-radius: 8px;
    margin: 24px 0;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background-color: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 24px;
    color: var(--bodhi-bark);
}

.impact-highlight h4 {
    margin-bottom: 4px;
}

.impact-highlight p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Support Section */
.support-section {
    background-color: #fff5e6;
    padding: 80px 0;
    position: relative;
}

.support-header {
    text-align: center;
    margin-bottom: 40px;
}

.support-icon {
    font-size: 48px;
    color: var(--deep-saffron);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.donation-card {
    max-width: 600px;
    margin: 0 auto 60px;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.donation-card h3 {
    font-size: 28px;
    color: #7c2d12;
    margin-bottom: 16px;
}

.donation-card p {
    color: var(--temple-stone);
    margin-bottom: 24px;
    font-size: 18px;
}

.donation-checklist {
    list-style: none;
    text-align: left;
    margin: 24px 0;
}

.donation-checklist li {
    padding: 12px 0;
    color: var(--bodhi-bark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.donation-checklist i {
    color: var(--deep-saffron);
    font-size: 20px;
}

.other-support {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.other-support h3 {
    text-align: center;
    font-size: 28px;
    color: #7c2d12;
    margin-bottom: 40px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.support-item {
    text-align: center;
    padding: 20px;
}

.support-icon-box {
    width: 64px;
    height: 64px;
    background-color: #fff5e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-icon-box i {
    font-size: 32px;
    color: var(--deep-saffron);
}

.support-item h4 {
    font-size: 20px;
    color: #7c2d12;
    margin-bottom: 12px;
}

.support-item p {
    color: var(--temple-stone);
    font-size: 14px;
}

/* Events & News */
.events-news {
    background-color: white;
    padding: 80px 0;
}

.events-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .events-news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.events-column h3,
.news-column h3 {
    font-size: 24px;
    color: var(--bodhi-bark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-column h3 i,
.news-column h3 i {
    color: #D4AF37;
}

.event-card {
    background-color: #F5F0E3;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
}

.event-date {
    text-align: center;
    flex-shrink: 0;
}

.date-month {
    background-color: #9D2933;
    color: white;
    padding: 4px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: bold;
}

.date-day {
    background-color: white;
    color: #9D2933;
    padding: 8px 16px;
    border: 1px solid #9D2933;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 24px;
    font-weight: bold;
}

.event-details h4 {
    font-size: 20px;
    color: var(--bodhi-bark);
    margin-bottom: 8px;
}

.event-meta {
    font-size: 14px;
    color: #5D4230;
    margin-bottom: 12px;
}

.event-details p {
    color: var(--bodhi-bark);
    margin-bottom: 12px;
}

.event-link {
    color: var(--deep-saffron);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.news-card {
    background-color: #F5F0E3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .news-card {
        flex-direction: row;
    }
}

.news-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .news-image {
        width: 33.333%;
        height: auto;
    }
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-date {
    font-size: 12px;
    color: #9D2933;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.news-content h4 {
    font-size: 20px;
    color: var(--bodhi-bark);
    margin-bottom: 12px;
}

.news-content p {
    color: var(--bodhi-bark);
    font-size: 14px;
    margin-bottom: 12px;
}

.news-link {
    color: var(--deep-saffron);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* Newsletter */
.newsletter {
    background-color: #F5F0E3;
    padding: 80px 0;
}

.newsletter-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .newsletter-card {
        flex-direction: row;
    }
}

.newsletter-sidebar {
    background-color: #9D2933;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .newsletter-sidebar {
        width: 33.333%;
    }
}

.newsletter-sidebar h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.newsletter-sidebar p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.newsletter-icon {
    font-size: 64px;
    opacity: 0.2;
    display: none;
}

@media (min-width: 768px) {
    .newsletter-icon {
        display: block;
    }
}

.newsletter-form-wrapper {
    padding: 40px;
    flex: 1;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--bodhi-bark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(58, 39, 24, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-saffron);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* About Section */
.about-section {
    background-color: #fff5e6;
    padding: 80px 0;
}

.about-hero {
    background-color: var(--deep-saffron);
    color: white;
    padding: 80px 20px 40px;
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text h3 {
    font-size: 32px;
    color: var(--bodhi-bark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-text h3 i {
    color: var(--deep-saffron);
    font-size: 32px;
}

.about-text p {
    font-size: 18px;
    color: var(--temple-stone);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    background-color: white;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h3 {
    font-size: 28px;
    color: var(--bodhi-bark);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--temple-stone);
    margin-bottom: 24px;
    line-height: 1.8;
}

.contact-details p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--bodhi-bark);
}

.contact-details i {
    color: var(--deep-saffron);
    font-size: 20px;
    margin-top: 4px;
}

.contact-form-wrapper {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer */
.footer {
    background-color: #7c2d12;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 32px;
    color: #f97316;
}

.footer-logo h3 {
    font-size: 20px;
    margin: 0;
}

.footer-logo p {
    font-size: 12px;
    color: #f97316;
    font-style: italic;
    margin: 0;
}

.footer-col p {
    color: #fff5e6;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #9a3412;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #f97316;
    color: #7c2d12;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 18px;
    color: #f97316;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-col ul li i {
    color: #f97316;
    margin-top: 4px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #f97316;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #9a3412;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: #fff5e6;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.footer-links a {
    color: #fff5e6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f97316;
}

.footer-links span {
    color: #9a3412;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Bootstrap 5 Enhancements */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero img {
    position: relative;
    object-fit: cover;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .impact-content,
    .about-content {
        flex-direction: column;
    }
    
    .events-news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-card {
        flex-direction: column;
    }
    
    .newsletter-sidebar {
        width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Image positioning fixes for all screen sizes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.work-image,
.impact-image,
.about-image {
    position: relative;
    overflow: hidden;
}

.work-image img,
.impact-image img,
.about-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none !important;
    will-change: auto;
}

/* News & Event Detail Pages */
.news-detail,
.event-detail {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-detail-header,
.event-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fff5e6;
}

.news-detail-date,
.news-detail-category {
    font-size: 14px;
    color: #9D2933;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-detail-category {
    background-color: #fff5e6;
    padding: 4px 12px;
    border-radius: 4px;
    margin-left: 10px;
}

.news-detail-title,
.event-detail-title {
    font-size: 36px;
    color: #7c2d12;
    margin: 20px 0;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.3;
}

.news-detail-location {
    color: #6D4C41;
    font-size: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-image,
.event-detail-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-detail-image img,
.event-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content,
.event-detail-content {
    color: #6D4C41;
    font-size: 18px;
    line-height: 1.8;
    margin: 30px 0;
}

.news-detail-content p,
.event-detail-content p {
    margin-bottom: 20px;
}

.news-detail-tags,
.event-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 2px solid #fff5e6;
}

.news-detail-tags .tag,
.event-detail-tags .tag {
    background-color: #fff5e6;
    color: #7c2d12;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.news-detail-footer,
.event-detail-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #fff5e6;
    text-align: center;
}

/* Event Detail Specific Styles */
.event-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.event-detail-date-large {
    display: flex;
    gap: 15px;
    align-items: center;
}

.date-month-large,
.date-day-large {
    background-color: #9D2933;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.date-month-large {
    font-size: 16px;
    background-color: #9D2933;
}

.date-day-large {
    font-size: 32px;
    background-color: #E67E22;
}

.event-detail-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-detail-category,
.event-detail-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.event-detail-category {
    background-color: #fff5e6;
    color: #7c2d12;
}

.event-detail-status {
    background-color: #10b981;
    color: white;
}

.event-detail-status.past {
    background-color: #6b7280;
}

.event-detail-meta {
    background-color: #fff5e6;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.event-detail-meta p {
    color: #6D4C41;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.event-detail-meta i {
    color: #E67E22;
    font-size: 20px;
}

/* Responsive for detail pages */
@media (max-width: 768px) {
    .news-detail,
    .event-detail {
        padding: 20px;
    }
    
    .news-detail-title,
    .event-detail-title {
        font-size: 28px;
    }
    
    .news-detail-content,
    .event-detail-content {
        font-size: 16px;
    }
    
    .event-detail-date-large {
        flex-direction: row;
    }
}

/* Responsive for "View All" pages */
@media (max-width: 768px) {
    .news-card > div[style*="flex-direction: row"],
    .event-card[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .news-card .news-image[style*="width: 33.333%"] {
        width: 100% !important;
        height: 250px !important;
    }
    
    .event-card[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .event-date {
        align-self: flex-start;
    }
}

