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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c1810;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #D2691E);
}

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

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.btn-secondary:hover {
    background: #8B4513;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
    margin-top: 2rem;
}

.btn-outline:hover {
    background: #8B4513;
    color: white;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    min-height: 80px;
    position: relative;
    gap: 2rem;
}

.nav-logo {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-shrink: 0 !important;
    margin-left: 30px !important;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    color: white;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-line-1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B4513;
}

.logo-line-2 {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8B4513;
}

.nav-menu {
    display: flex !important;
    list-style: none;
    gap: 1.5rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    position: relative !important;
    right: 0 !important;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #8B4513;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8B4513;
    transition: width 0.3s ease;
}

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

/* Donation button styles */
.donation-btn {
    background: linear-gradient(135deg, #8B4513, #D2691E) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.donation-btn,
.donation-btn:link,
.donation-btn:visited,
.donation-btn:active {
    color: white !important;
}

.donation-btn:hover {
    background: linear-gradient(135deg, #D2691E, #8B4513) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3) !important;
    color: white !important;
}

.donation-btn::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    flex-shrink: 0 !important;
    margin-left: 20px !important;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #8B4513;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f4f0 0%, #e8dcc8 100%);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    margin-top: -100px;
    padding-top: 220px;
}

/* History page - reduce top padding */
.hero.history-hero {
    padding-top: 20px !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

.hero-content {
    flex: 0 0 40%;
    max-width: 500px;
    padding-left: 60px;
}

.hero-content h1 {
    color: #8B4513;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: left;
}

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

.hero-image {
    flex: 0 0 55%;
    text-align: center;
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-right: 40px;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #8B4513, #D2691E, #8B4513);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(5px);
}

.hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 25px !important;
    box-shadow: none !important;
    object-fit: contain !important;
    border: 4px solid rgba(255, 255, 255, 0.9) !important;
    transition: all 0.4s ease !important;
    filter: brightness(1.05) contrast(1.1) !important;
    display: block !important;
    visibility: visible !important;
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: none !important;
    filter: brightness(1.1) contrast(1.15);
}

.hero-background-image {
    width: 500px;
    height: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-image: url('images/stnick2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

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

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: #f8f4f0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.about-card:hover {
    transform: translateY(-10px);
}

.about-card i {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

/* Schedule Section */
.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.schedule-day {
    background: linear-gradient(135deg, #fff 0%, #f8f4f0 100%);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.15);
    border: 2px solid rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513, #D2691E);
}

.schedule-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.2);
}

.schedule-day h3 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.service-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.service-time:hover {
    background: rgba(139, 69, 19, 0.05);
    border-radius: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.service-time:last-child {
    border-bottom: none;
}

.time {
    font-weight: bold;
    color: #8B4513;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
}

.service {
    color: #555;
    font-size: 1.3rem;
    font-weight: 500;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #8B4513;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-content h3 {
    margin: 0.5rem 0 1rem 0;
    color: #2c1810;
}

.read-more {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #D2691E;
}

/* Online Notes Section */
.online-notes {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    text-align: center;
}

.online-notes h2 {
    color: white;
}

.online-notes h2::after {
    background: white;
}

.notes-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Faith Section */
.faith-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faith-item {
    text-align: center;
    padding: 2rem;
}

.faith-item i {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

/* Life Section */
.life-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.life-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.life-card:hover {
    transform: translateY(-10px);
}

.life-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.life-card h3,
.life-card p {
    padding: 0 1.5rem;
}

.life-card h3 {
    margin-top: 1.5rem;
    color: #8B4513;
}

.life-card p {
    margin-bottom: 1.5rem;
}

/* Contacts Section */
.contacts-content-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    margin-top: 3rem;
}

.contact-item-large {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.contact-item-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-item-large i {
    font-size: 2.5rem;
    color: #8B4513;
    flex-shrink: 0;
}

.contact-item-large h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-item-large p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.contact-item-large p a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item-large p a:hover {
    color: #D2691E;
    text-decoration: underline;
}

/* Donations Section */
.donations {
    background: linear-gradient(135deg, #f8f4f0 0%, #e8dcc8 100%);
    padding: 80px 0;
}

.donations h2 {
    text-align: center;
    color: #8B4513;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

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

.donations-info h3 {
    color: #8B4513;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.donations-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.donation-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.donation-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s ease;
}

.donation-method:hover {
    transform: translateY(-3px);
}

.donation-method i {
    font-size: 2rem;
    color: #8B4513;
    width: 50px;
    text-align: center;
}

.donation-method h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.donation-method p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.donation-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.15);
}

.donation-form h3 {
    color: #8B4513;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.donation-form-element .form-group {
    margin-bottom: 1.5rem;
}

.donation-form-element label {
    display: block;
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.donation-form-element input,
.donation-form-element select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.donation-form-element input:focus,
.donation-form-element select:focus {
    outline: none;
    border-color: #8B4513;
}

.donation-form-element .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .donations-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .donation-methods {
        grid-template-columns: 1fr;
    }
    
    .donation-form {
        padding: 2rem;
    }
}

/* Timeline Section */
.timeline {
    background: #f8f4f0;
    padding: 80px 0;
}

.timeline h2 {
    text-align: center;
    color: #8B4513;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #8B4513, #D2691E);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 150px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2rem;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.1);
}

.timeline-content h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 60px;
    }
    
    .timeline-date {
        flex: none;
        width: 100px;
        margin: 0 0 1rem 0;
        position: absolute;
        left: -50px;
        top: 0;
    }
    
    .timeline-content {
        margin-left: 0;
    }
}

/* Footer */
.footer {
    background: #2c1810;
    color: 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 h4 {
    color: #D2691E;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #D2691E;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #8B4513;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #D2691E;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Mobile Navigation */
.nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile toggle button (hamburger) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 3px;
    background: #8B4513;
    margin: 3px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile full-screen menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    display: none;
    z-index: 1200;
}

.mobile-menu.open { display: block; animation: slideInFromTop 0.25s ease-out; }

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #8B4513;
    font-size: 26px;
    cursor: pointer;
}

.mobile-menu-list {
    list-style: none;
    padding: 100px 24px 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu-list a {
    display: block;
    text-align: center;
    padding: 12px 16px;
    font-size: 1.1rem;
}

/* Desktop styles - hide mobile button, show menu */
@media (min-width: 1025px) {
    .mobile-toggle { 
        display: none !important; 
    }
    .nav-menu {
        display: flex !important;
        position: static !important;
        left: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* Tablet and below: use mobile nav */
@media (max-width: 1024px) {
    .nav-menu {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .mobile-toggle { 
        display: flex !important; 
        cursor: pointer !important;
        background: #8B4513 !important;
        color: white !important;
        border: none !important;
        border-radius: 5px !important;
        padding: 8px !important;
        z-index: 1001 !important;
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 45px !important;
        height: 45px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }
    
    .mobile-toggle:hover {
        background: #A0522D !important;
        transform: translateY(-50%) scale(1.05) !important;
    }
    
    .mobile-toggle span {
        width: 20px !important;
        height: 2px !important;
        background: white !important;
        border-radius: 1px !important;
        transition: all 0.3s ease !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between !important;
        padding: 0 5px !important;
        height: 70px !important;
        position: relative !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        width: 100% !important;
    }
    
    .nav-logo {
        margin-right: 0 !important;
        flex-shrink: 1 !important;
        max-width: calc(100vw - 80px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .logo-icon {
        flex-shrink: 0 !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 1rem !important;
    }
    
    .logo-text {
        max-width: calc(100vw - 110px) !important;
        overflow: hidden !important;
        flex-shrink: 1 !important;
    }
    
    .logo-line-1,
    .logo-line-2 {
        font-size: 0.7rem !important;
        line-height: 1.0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        width: 100% !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .nav-toggle {
        display: flex !important;
        margin-left: 0 !important;
        background: #e0e0e0 !important;
    }
    
    /* Show mobile menu button on mobile */
    .mobile-toggle { 
        display: flex !important; 
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1100 !important;
        background: transparent !important;
    }
    
    body {
        padding-top: 90px !important;
    }
    
    /* Mobile menu when active */
    .nav-menu.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        padding: 2rem !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        z-index: 1000 !important;
        animation: slideInFromTop 0.3s ease-out !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.active li {
        margin-bottom: 1rem !important;
    }
    
    .nav-menu.active a {
        display: block !important;
        padding: 0.5rem 0 !important;
        font-size: 1.1rem !important;
        text-align: center !important;
        border-radius: 10px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .nav-menu.active .donation-btn {
        background: linear-gradient(135deg, #8B4513, #D2691E) !important;
        color: white !important;
        padding: 12px 20px !important;
        border-radius: 20px !important;
        margin-top: 1rem !important;
        text-align: center !important;
        font-weight: 600 !important;
    }
    
    /* Close button for mobile menu */
    .nav-menu.active::before {
        content: "✕" !important;
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        font-size: 24px !important;
        color: #8B4513 !important;
        cursor: pointer !important;
        z-index: 1002 !important;
    }
    
    /* Animation for mobile menu */
    @keyframes slideInFromTop {
        from {
            transform: translateY(-100%) !important;
            opacity: 0 !important;
        }
        to {
            transform: translateY(0) !important;
            opacity: 1 !important;
        }
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .nav-toggle {
        display: flex !important;
        margin-left: 0 !important;
    }
    
    .logo-line-1 {
        font-size: 1rem;
    }
    
    .logo-line-2 {
        font-size: 0.8rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        margin-bottom: 2rem;
        padding-left: 20px;
        text-align: center;
    }
    
    .hero-content h1,
    .hero-content p {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-background-image {
        width: 100%;
        min-height: 300px;
        max-height: 400px;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
    }
    
    .hero-image::before {
        display: none;
    }
    
    .schedule-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .schedule-day {
        padding: 2rem;
    }
    
    .schedule-day h3 {
        font-size: 1.6rem;
    }
    
    .time {
        font-size: 1.2rem;
    }
    
    .service {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .contact-item-large {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .contact-item-large i {
        font-size: 2rem;
    }
    
    .contact-item-large h3 {
        font-size: 1.5rem;
    }
    
    .contact-item-large p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    /* Reserve space for the toggle and compress logo further */
    .nav-container {
        padding: 0 6px !important;
        gap: 6px !important;
        max-width: 100vw !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .mobile-toggle {
        position: absolute !important;
        right: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1200 !important;
        width: 40px !important;
        height: 40px !important;
    }
    .logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
        flex-shrink: 0 !important;
    }
    .logo-text { 
        max-width: calc(100vw - 90px) !important; 
        overflow: hidden !important; 
        min-width: 0 !important;
    }
    .logo-line-1 {
        font-size: 0.8rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }
    /* Hide second line on very small screens to keep toggle visible */
    .logo-line-2 {
        display: none !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-background-image {
        width: 100%;
        min-height: 250px;
        max-height: 350px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-grid,
    .news-grid,
    .faith-grid,
    .life-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-container {
        grid-template-columns: 1fr;
    }
}

/* Hero section mobile styles */
@media (max-width: 768px) {
    /* Fix mobile layout issues */
    * {
        box-sizing: border-box;
    }
    
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 2rem 0;
        min-height: auto;
        width: 100%;
        margin: 0;
    }
    
    .hero-content {
        order: 1;
        margin-bottom: 2rem;
        padding: 0 15px;
        text-align: center;
        width: 100%;
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content h1,
    .hero-content p {
        text-align: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content h1 {
        margin: 0 auto 1rem auto;
        max-width: 100%;
        padding: 0 10px;
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .hero-buttons {
        justify-content: center;
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-image {
        order: 2;
        margin-top: 1rem;
        width: 100%;
        padding: 0 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: none;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .hero-image::before {
        display: none;
    }
    
    /* Fix all sections on mobile */
    section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 60px 0 !important;
    }
    
    section .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }
    
    /* Fix headings */
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 10px !important;
    }
    
    /* Fix buttons */
    .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 5px 0 !important;
    }
    
    /* Fix contact items */
    .contact-item-large {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 15px 10px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .contact-item-large i {
        font-size: 1.5rem !important;
    }
    
    .contact-item-large h3 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }
    
    .contact-item-large p {
        font-size: 1rem !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* Mobile menu styles */
    .mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        pointer-events: none !important;
    }
    
    .mobile-menu[aria-hidden="false"] {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .mobile-menu-close {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        background: none !important;
        border: none !important;
        font-size: 24px !important;
        color: #8B4513 !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        transition: background-color 0.3s ease !important;
    }
    
    .mobile-menu-close:hover {
        background-color: rgba(139, 69, 19, 0.1) !important;
    }
    
    .mobile-menu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .mobile-menu-list li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-menu-list a {
        display: block !important;
        padding: 15px 25px !important;
        text-decoration: none !important;
        color: #333 !important;
        font-weight: 500 !important;
        font-size: 1.1rem !important;
        border-radius: 25px !important;
        transition: all 0.3s ease !important;
        min-width: 200px !important;
        text-align: center !important;
    }
    
    .mobile-menu-list a:hover {
        background-color: #8B4513 !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }
    
    .mobile-menu-list .donation-btn {
        background: linear-gradient(135deg, #8B4513, #D2691E) !important;
        color: white !important;
        font-weight: 600 !important;
        margin-top: 10px !important;
        box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3) !important;
    }
    
    .mobile-menu-list .donation-btn:hover {
        background: linear-gradient(135deg, #A0522D, #CD853F) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4) !important;
    }
}

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

.about-card,
.news-card,
.life-card,
.faith-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 100px;
}

/* Prevent JavaScript from overriding navigation styles */
.nav-container * {
    box-sizing: border-box !important;
}

/* Fix header alignment issues - More specific approach */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar {
    width: 100% !important;
    padding: 1rem 0 !important;
}

.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    height: 80px !important;
    box-sizing: border-box !important;
}

.nav-logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    flex: 1 !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-toggle {
    display: none !important;
    flex-direction: column !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin-left: 20px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 100px !important;
    margin: 0 !important;
}

.nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu a {
    display: block !important;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
    position: relative !important;
}

/* History main content styles */
.history-main-content {
    background: #f8f4f0;
    padding: 80px 0;
}

.history-intro {
    text-align: center;
    margin-bottom: 60px;
}

.history-intro h2 {
    color: #8B4513;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.intro-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.history-text-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.content-placeholder {
    text-align: center;
    padding: 40px;
    border: 2px dashed #8B4513;
    border-radius: 10px;
    background: #fafafa;
}

.content-placeholder h3 {
    color: #8B4513;
    margin-bottom: 15px;
}

.content-placeholder a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 600;
}

.content-placeholder a:hover {
    text-decoration: underline;
}

.placeholder-text {
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

/* Photo gallery styles */
.history-photos {
    margin-top: 40px;
}

.history-photos h3 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-placeholder {
    background: white;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    border-color: #8B4513;
    color: #8B4513;
    transform: translateY(-5px);
}

.photo-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* History text content styles */
.history-paragraph {
    margin-bottom: 25px;
}

.history-paragraph p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.history-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #8B4513;
}

.history-section h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.history-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.history-section em {
    color: #8B4513;
    font-style: italic;
    font-weight: 500;
}
