@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #121358;
    /* Chocolate */
    --secondary-color: #30362F;
    /* Charcoal Brown */
    --accent-color: #4BB8FA;
    /* Golden Bronze */
    --text-color: #30362F;
    --text-light: #625834;
    /* Olive Bark */
    --bg-light: #FFFBDB;
    /* Light Yellow */
    --white: #FFFFFF;

    --transition: all 0.3s ease;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mukta', sans-serif;
}

html,
body {
    overflow-x: clip;
}

body {
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ---------------- Header & Navigation ---------------- */
.topbar {
    background: var(--white);
    color: var(--secondary-color);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.topbar-left {
    display: flex;
    gap: 15px;
    align-items: center;
    font-weight: 500;
}

.topbar-marquee {
    flex: 1;
    overflow: hidden;
    margin: 0 15px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 15px;
}

.topbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.topbar a {
    text-decoration: none;
    transition: var(--transition);
}

.btn-topbar-donate {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-topbar-donate:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
}

.btn-topbar-lang {
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.btn-topbar-lang img {
    height: 25px; /* Adjust based on actual image size */
    width: auto;
    display: block;
}
.btn-topbar-lang:hover {
    transform: scale(1.1) rotate(3deg);
    background: transparent;
}

.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 900;
    box-shadow: var(--shadow-soft);
    padding: 5px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.logo-text span {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 5px;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

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

.btn-login-nav {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 6px 18px !important;
    border-radius: 25px !important;
    box-shadow: none;
    display: inline-block;
    transition: var(--transition);
    font-weight: bold;
}

.btn-login-nav:hover {
    background: var(--shadow-hover);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-login-nav::after {
    display: none;
}

.btn-donate-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    box-shadow: var(--shadow-soft);
    display: inline-block;
    animation: floatAnimation 2s ease-in-out infinite, flipAnimation 4s linear infinite;
    transform-style: preserve-3d;
}

@keyframes floatAnimation {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -6px;
    }
}

@keyframes flipAnimation {

    0%,
    95% {
        rotate: y 0deg;
    }

    97.5% {
        rotate: y 180deg;
    }

    100% {
        rotate: y 360deg;
    }
}

.btn-donate-nav::after {
    display: none;
}

.btn-donate-nav:hover {
    box-shadow: var(--shadow-hover);
}

.btn-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 5px 12px !important;
    white-space: nowrap;
    font-size: 14px !important;
    color: var(--primary-color) !important;
}

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

.btn-lang:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* Mobile Menu Toggle & Right Actions */
.nav-right-mobile {
    display: none;
}

.mobile-menu-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 248, 240, 0.8), rgba(255, 248, 240, 0.8)), url('../assets/images/hero-bg.jpg') center/cover;
    padding: 50px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Section Shared Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* Forms (Donation Page) */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Mukta', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-label {
    display: block;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.radio-label input {
    display: none;
}

.radio-label span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.radio-label small {
    display: block;
    color: var(--text-light);
    font-size: 14px;
}

.radio-label input:checked+span,
.radio-label input:checked~small {
    color: var(--white);
}

.radio-label:has(input:checked) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col p {
    color: #ffdada;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ffdada;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-logo {
    max-width: 150px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dashboard Month Grid */
.month-grid-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
}
.month-grid-header {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}
.month-box {
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}
.month-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.month-status {
    font-size: 11px;
    opacity: 0.9;
}
.status-paid {
    background-color: #2ecc71; /* Green */
}
.status-missed {
    background-color: #e74c3c; /* Red */
}
.status-upcoming {
    background-color: #bdc3c7; /* Gray */
    color: #333;
}

.mobile-only {
    display: none !important;
}

@media (min-width: 993px) {
    /* margins removed */
}

/* Responsive */
@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .topbar-container {
        flex-wrap: wrap;
    }
    .topbar-marquee {
        order: 3;
        width: 100%;
        margin: 5px 0 0 0 !important;
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }

    hr.mobile-only,
    .sidebar-empty.mobile-only {
        display: block !important;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: transform 0.3s ease-in-out;
        z-index: 10000;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        width: 100%;
    }

    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        text-align: left;
        max-width: 85%;
    }

    .sidebar-logo img {
        height: 40px;
        width: auto;
        flex-shrink: 0;
    }

    .sidebar-logo .logo-text h2 {
        font-size: 15px;
        line-height: 1.2;
        margin: 0;
        color: var(--secondary-color);
    }

    .sidebar-logo .logo-text span {
        font-size: 10px;
        color: var(--primary-color);
        display: block;
    }

    .sidebar-close {
        font-size: 24px;
        cursor: pointer;
        color: var(--secondary-color);
    }

    .sidebar-divider {
        border: none;
        height: 1px;
        background-color: rgba(0, 0, 0, 0.15);
        margin: 15px 0;
        width: 100%;
    }

    .sidebar-empty {
        flex-grow: 1;
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 18px;
    }

    .nav-right-mobile {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .desktop-lang {
        display: none !important;
    }

    .mobile-lang {
        margin-left: 0 !important;
    }

    .hero h2 {
        font-size: 36px;
    }
}