* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-girls: #f0f7f4;
    --bg-fatwa: #fef8e7;
    --bg-donation: #e8f0fe;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --accent: #2d6a4f;
    --accent-light: #40916c;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-girls: #1a2a2a;
    --bg-fatwa: #2a2416;
    --bg-donation: #162136;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
    --card-bg: #1e293b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Theme Toggle */
.theme-toggle-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.theme-toggle-btn {
    background: var(--accent);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.theme-toggle-btn:hover { transform: scale(1.1); }
.theme-toggle-btn i { color: white; font-size: 1.4rem; }

/* Header */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo img {
    width: 290px;
    height: 92px;
    object-fit: contain;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.nav-menu > li > a:hover { color: var(--accent); }

/* Dropdown Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    min-width: 220px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    list-style: none;
    padding: 10px 0;
    z-index: 100;
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Slider */
.slider-section { padding: 40px 0; }
.slider-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.slider { position: relative; height: 500px; }
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}
.slide.active { opacity: 1; }
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.dot.active { background: white; }

/* Sections */
section { padding: 80px 0; }

.section-tag {
    display: inline-block;
    background: var(--accent-light);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Bold tags for specific sections */
.empowerment-tag {
    background: #2d6a4f;
    font-weight: 800;
    letter-spacing: 1px;
}

.fatwa-tag {
    background: #b8860b;
    font-weight: 800;
    letter-spacing: 1px;
}

.donation-tag {
    background: #1e40af;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 { font-size: 2.2rem; margin-bottom: 10px; }

/* Grid System for Alternating Images */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.reverse {
    direction: rtl;
}

.reverse > * {
    direction: ltr;
}

.image-left img, .image-right img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.content-left h2, .content-right h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.content-left ul, .content-right ul {
    margin: 20px 0 0 20px;
}

.content-left li, .content-right li {
    margin: 10px 0;
}

/* Section Backgrounds */
.about-section { background: var(--bg-primary); }
.stats-section { background: var(--bg-secondary); }
.cards-section { background: var(--bg-primary); }
.messages-section { background: var(--bg-secondary); }
.girls-section { background: var(--bg-girls); }
.fatwa-section { background: var(--bg-fatwa); }
.donations-section { background: var(--bg-donation); }
.news-section { background: var(--bg-primary); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.stat-card h3 { font-size: 2.5rem; font-weight: 700; }

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.card:hover { transform: translateY(-5px); }
.card-icon i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; }

/* Button - less rounded */
.btn-read-more {
    background: transparent;
    border: 2px solid var(--accent);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    color: var(--accent);
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
}

.btn-read-more:hover {
    background: var(--accent);
    color: white;
}

/* Messages */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.message-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.message-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent);
}

.message-title { color: var(--accent); margin-bottom: 15px; font-weight: 500; }

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.news-date {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.news-date span { font-size: 0.8rem; font-weight: normal; }

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.facebook-link {
    display: inline-block;
    background: #0a3d6d;
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.facebook-link i { 
    margin-right: 10px;
    color: #ffffff !important;
}

.facebook-link:hover {
    background: #062a4a;
    color: #ffffff !important;
}

.facebook-link:hover i {
    color: #ffffff !important;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin: 10px 0; }
.footer-section a { color: var(--text-secondary); text-decoration: none; }
.footer-section a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid, .cards-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .messages-grid { grid-template-columns: 1fr; gap: 30px; }
    .reverse { direction: ltr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 30px;
        transition: left 0.3s;
        box-shadow: var(--shadow);
        z-index: 99;
        gap: 15px;
    }
    
    .nav-menu.active { left: 0; }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        background: transparent;
        border: none;
    }
    
    .dropdown.active .dropdown-menu { display: block; }
    
    .stats-grid, .cards-grid, .news-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .slider { height: 300px; }
    .slide-caption { font-size: 0.8rem; bottom: 15px; left: 15px; }
    .logo img { width: 200px; height: auto; }
}
a.plain {
  color: inherit;
  text-decoration: none;
}

.btn-read-more-link {
    text-decoration: none;
    display: inline-block;
}

header, .header-container, .logo, .logo img {
    min-height: 92px;
    height: 92px !important;
}

.logo img {
    width: 290px !important;
    height: 92px !important;
    object-fit: contain;
}