:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --light-bg-color: #f8f9fa; /* New subtle background color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: white; /* Ensure base body is white */
}

/* Force Lato font for navigation */
.navbar,
.navbar ul,
.navbar li,
.navbar a,
.dropdown-toggle,
.dropdown-menu a {
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important;
    text-transform: uppercase !important;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
}

/* Navigation */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar li {
    position: relative;
}

/* Override flex for dropdown menu */
.dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    display: block !important;
}

.navbar a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 15px 0;
    margin-top: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 25px;
    display: block;
    color: var(--secondary-color);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--light-bg-color);
    color: var(--primary-color);
    padding-left: 30px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    height: 65vh;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 102, 184, 0.85) 0%,
        rgba(0, 128, 200, 0.85) 25%,
        rgba(0, 160, 160, 0.85) 50%,
        rgba(0, 184, 142, 0.85) 75%,
        rgba(74, 201, 126, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-tertiary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-tertiary:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Welcome and Cards Section Combined - RETAINING WHITE BACKGROUND */
.welcome-and-cards-section {
    background: white; /* Explicitly set to white */
    padding: 80px 20px;
    margin-bottom: 60px;
}

.welcome-and-cards-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
}

.welcome-content {
    padding-right: 20px;
}

.welcome-content h2 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #000;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.welcome-content p {
    font-size: 20px;
    color: #555;
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
}

/* Image Cards */
.image-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-card {
    position: relative;
    height: 480px;
    overflow: hidden;
    cursor: pointer;
}

.card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.image-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
    transition: background 0.3s ease;
}

.image-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

.card-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
    z-index: 2;
}

.card-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
    font-family: 'Lato', sans-serif;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: gap 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.card-link:hover {
    gap: 15px;
}

.card-link i {
    font-size: 16px;
}

/* Events Section - NEW SUBTLE BACKGROUND COLOR */
.events-section {
    background: var(--light-bg-color); /* Updated background color */
    padding: 80px 20px;
    margin-bottom: 60px;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
}

.events-header {
    text-align: center;
    margin-bottom: 60px;
}

.events-subtitle {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
}

.events-header h2 {
    font-size: 42px;
    font-weight: 900;
    margin: 15px 0 20px;
    color: #000;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.events-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.event-card {
    background: white; /* Card background is still white */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.event-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg,
        rgba(0, 102, 184, 0.95) 0%,
        rgba(0, 128, 200, 0.95) 25%,
        rgba(0, 160, 160, 0.95) 50%,
        rgba(0, 184, 142, 0.95) 75%,
        rgba(74, 201, 126, 0.95) 100%
    );
    color: white;
}

.event-month {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Lato', sans-serif;
}

.event-card.featured .event-month {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
}

.event-card.featured .event-content h3 {
    color: white;
    font-size: 28px;
}

.event-theme {
    font-size: 16px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-weight: 500;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.event-card.featured .event-detail {
    color: rgba(255, 255, 255, 0.95);
}

.event-detail i {
    margin-top: 2px;
    font-size: 16px;
    color: var(--primary-color);
}

.event-card.featured .event-detail i {
    color: white;
}

.event-detail span {
    line-height: 1.5;
}

/* Prayer Section */
.prayer-section {
    background: linear-gradient(135deg,
        rgba(0, 102, 184, 1) 0%,
        rgba(0, 128, 200, 1) 25%,
        rgba(0, 160, 160, 1) 50%,
        rgba(0, 184, 142, 1) 75%,
        rgba(74, 201, 126, 1) 100%
    );
    padding: 80px 20px;
    margin-bottom: 80px;
}

.prayer-container {
    max-width: 900px;
    margin: 0 auto;
}

.prayer-content {
    text-align: center;
    color: white;
}

.prayer-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.prayer-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
}

.btn-prayer {
    background: white;
    color: #0066b8;
    border: 2px solid white;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-prayer:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    align-items: flex-end;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.telegram-btn {
    background: #0088cc;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.telegram-btn i {
    font-size: 28px;
    color: white;
}

.telegram-btn:hover {
    background: #0077b3;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top {
    background: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #2980b9;
    transform: scale(1.1) translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        height: 70px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-img {
        height: 40px;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: left 0.3s ease;
        padding: 20px 0;
        overflow-y: auto;
        overflow-x: visible;
    }

    .navbar.active {
        left: 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
        padding: 0 20px;
    }

    .navbar li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .navbar a {
        padding: 15px 0;
        font-size: 16px;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 0 0 30px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        border-radius: 0 !important;
        background: var(--light-bg-color) !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        width: auto !important;
        display: block !important;
    }

    .dropdown.active .dropdown-menu {
        max-height: 1000px !important;
        overflow: hidden !important;
        padding: 10px 0 10px 30px !important;
    }

    .dropdown-menu li {
        display: block !important;
        width: 100% !important;
    }

    .dropdown-menu a {
        padding: 10px 0 !important;
        font-size: 14px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        display: block !important;
    }

    .dropdown-menu a:hover {
        background: #e9ecef;
        padding-left: 20px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    #hero {
        height: calc(100vh - 70px);
        margin-top: 70px;
    }

    .hero-content h1 {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Welcome and Cards Section Mobile */
    .welcome-and-cards-section {
        padding: 50px 15px;
    }

    .welcome-and-cards-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-content {
        padding-right: 0;
        text-align: center;
    }

    .welcome-content h2 {
        font-size: 36px;
    }

    .welcome-content p {
        font-size: 16px;
    }

    /* Image cards mobile */
    .image-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-card {
        height: 350px;
    }

    .card-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-link {
        font-size: 10px;
    }

    /* Events Section Mobile */
    .events-section {
        padding: 50px 15px;
    }

    .events-header h2 {
        font-size: 32px;
    }

    .events-header p {
        font-size: 16px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card.featured {
        grid-column: span 1;
    }

    .event-content h3 {
        font-size: 20px;
    }

    .event-card.featured .event-content h3 {
        font-size: 24px;
    }

    .event-detail {
        font-size: 13px;
    }

    /* Prayer Section Mobile */
    .prayer-section {
        padding: 50px 15px;
    }

    .prayer-content h2 {
        font-size: 32px;
    }

    .prayer-content p {
        font-size: 16px;
    }

    /* Floating buttons mobile */
    .floating-buttons {
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .telegram-btn {
        width: 50px;
        height: 50px;
    }

    .telegram-btn i {
        font-size: 24px;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .welcome-and-cards-container {
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }

    .welcome-content h2 {
        font-size: 42px;
    }

    .welcome-content p {
        font-size: 18px;
    }

    .image-card {
        height: 400px;
    }
}