:root {
    --primary-green: #0b3d2e;
    --secondary-green: #145a4a;
    --black-matte: #0a0a0a;
    --dark-accent: #1a1a1a;
    --gold-accent: #c5a059;
    --gold-glow: rgba(197, 160, 89, 0.4);
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    background-color: var(--black-matte);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 1.3rem;
    color: var(--gold-accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-accent);
}

.mobile-nav-link.active {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-accent) !important;
    border-left: 3px solid var(--gold-accent);
    padding-left: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
}

.btn-donasi {
    background: linear-gradient(135deg, var(--gold-accent), #b38a42);
    color: var(--black-matte) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    border: none;
}

.btn-donasi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 60px;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--gold-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--dark-accent);
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-5px);
}

.card h4 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: var(--dark-accent);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.animate {
    animation: fadeInUp 0.8s ease forwards;
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* Prayer Times Widget */
.prayer-times-bar {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
    .prayer-times-bar {
        grid-template-columns: repeat(3, 1fr);
        padding: 1rem;
        border-radius: 15px;
    }
    .prayer-item {
        padding: 0.5rem;
    }
    .prayer-item .name { font-size: 0.65rem; }
    .prayer-item .time { font-size: 1.1rem; }
}

@media (max-width: 400px) {
    .prayer-times-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.prayer-item {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.prayer-item.active {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold-accent);
    animation: pulse-gold 2s infinite;
}

.prayer-item .name {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.prayer-item .time {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.prayer-item.active .name { color: var(--gold-accent); }

/* Islamic Patterns */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l5.878 18.09h19.022l-15.389 11.18 5.878 18.09-15.389-11.18-15.389 11.18 5.878-18.09-15.389-11.18h19.022L30 0z' fill='%23c5a059' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Featured Badge */
.badge-premium {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

/* Responsiveness & Premium Mobile Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold-accent);
    position: absolute;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 80px 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: 0.5s cubic-bezier(0.8, 0, 0.2, 1);
    border-left: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.mobile-sidebar.active { right: 0; }

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    text-decoration: none;
}

.mobile-nav-link i {
    width: 20px;
    color: var(--gold-accent);
    text-align: center;
}

.mobile-nav-link:hover { 
    color: var(--gold-accent); 
    padding-left: 10px;
}

.body-lock { overflow: hidden; }

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.65rem;
    gap: 4px;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--gold-accent);
}

.mobile-bottom-nav .nav-item.nav-center {
    position: relative;
    z-index: 1001;
}

.mobile-bottom-nav .nav-item.nav-center .center-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-accent), #e1bc7a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -45px;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4);
    border: 5px solid var(--black-matte);
}

.mobile-bottom-nav .nav-item.nav-center .center-btn i {
    color: var(--black-matte);
    font-size: 1.5rem;
}

.mobile-bottom-nav .nav-item.nav-center span {
    margin-top: 2px;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .hide-mobile { display: none !important; }
    .nav-links { display: none; }
    
    .hero-content h2 { font-size: 2.2rem; }
    section { padding: 3rem 1.5rem; }
    
    body.with-bottom-nav main {
        padding-bottom: 90px;
    }
}

@media (min-width: 901px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Dashboard Premium Components */
.dash-card {
    background: var(--dark-accent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.stats-wallet {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: var(--dark-accent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1rem;
    border-radius: 18px;
    transition: var(--transition);
    text-align: center;
}

.quick-action-btn:hover {
    border-color: var(--gold-accent);
    transform: translateY(-3px);
}

.quick-action-btn .icon-box {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    font-size: 1.2rem;
    border: 1px solid var(--glass-border);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border-left: 3px solid var(--gold-accent);
}

.timeline-info h5 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.timeline-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-points {
    text-align: right;
}

.timeline-points .pts {
    display: block;
    color: #28a745;
    font-weight: 700;
}

.timeline-points .dist {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .desktop-only { display: none !important; }
}

@media (min-width: 601px) {
    .mobile-only { display: none !important; }
}

/* SEO Security: Hidden text for crawlers but invisible in UI */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Donation Page Components */
.bank-card {
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
    border-radius: 18px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.bank-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-accent);
}

.bank-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
}

.bank-logo {
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.bank-number {
    font-size: 1.8rem;
    color: white;
    font-family: 'Outfit';
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-number i {
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-muted);
}

.bank-number i:hover { color: var(--gold-accent); }

.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tab-btn.active {
    background: var(--gold-accent);
    color: var(--black-matte);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gold-accent);
    color: var(--black-matte);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Footer Improvements */
.main-footer {
    background: #080808;
    color: var(--white);
    padding: 80px 0 0;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 60px;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo h3 {
    font-size: 1.2rem;
    color: var(--gold-accent);
    margin: 0;
    font-weight: 700;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    background: var(--gold-accent);
    color: var(--black-matte);
    transform: translateY(-3px);
}

.footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-accent);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold-accent);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--gold-accent);
    margin-top: 3px;
    font-size: 1.1rem;
}

.footer-bottom {
    background: #040404;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover { color: var(--gold-accent); }

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-nav-group {
        grid-template-columns: 1fr 1fr;
    }
}

/* Dashboard Grid Responsiveness */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 600px) {
    .custom-pagination nav ul {
        gap: 5px !important;
    }
    .custom-pagination nav ul li a, 
    .custom-pagination nav ul li span {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
}

/* Premium Pages UI Overhaul */
.page-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 1rem;
}

.page-header h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.premium-card {
    background: var(--dark-accent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.premium-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.modern-table-wrapper {
    overflow-x: auto;
    background: var(--dark-accent);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.modern-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    text-align: left;
    color: var(--gold-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-light);
}

.modern-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge-status {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-header h2 { font-size: 2.2rem; }
    .page-header { margin-bottom: 3rem; }
}

/* Blog & Article Styles */
.article-container {
    background: var(--dark-accent);
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
}

.article-body p { margin-bottom: 2rem; }

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover { transform: translateY(-5px) scale(1.1); }

.recent-post-link {
    display: flex;
    gap: 15px;
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.recent-post-link:hover { background: rgba(255, 255, 255, 0.03); }

.recent-post-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.tag-news {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-layout-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 4rem;
}

@media (max-width: 1100px) {
    .article-layout-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .article-layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-container img {
        height: 350px !important;
    }
    
    .article-container h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 600px) {
    .article-container h1 {
        font-size: 1.8rem !important;
    }
}
}

/* Homepage Responsiveness Optimization */
.prayer-times-container {
    padding: 1rem 0.5rem;
}

@media (max-width: 992px) {
    .prayer-times-container {
        overflow-x: auto;
        display: flex;
        gap: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

.prayer-times-container::-webkit-scrollbar {
    display: none;
}

.swipe-hint {
    display: none;
    text-align: center;
    color: var(--gold-accent);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    animation: swipeHint 2s infinite;
}

@keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(10px); opacity: 1; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem !important; }
}

@media (max-width: 768px) {
    .swipe-hint { display: block; }
    .hero-title { font-size: 2.5rem !important; }
    .hero-subtitle { font-size: 1rem !important; }
    
    .news-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem !important; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn-donasi { width: 100%; text-align: center; }
}

/* Statistics Responsive Optimization */
.stat-box {
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-number {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.stat-label {
    color: var(--gold-accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .stat-number { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .stat-number { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
}

@media (max-width: 480px) {
    .stat-number { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: 1fr !important; }
}

/* Pengurus Slider Styles */
.pengurus-slider-container {
    position: relative;
    padding: 1rem 0;
}

.pengurus-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.pengurus-slider::-webkit-scrollbar {
    display: none;
}

.pengurus-card {
    flex: 0 0 calc(25% - 1.5rem);
    scroll-snap-align: start;
    background: var(--dark-accent);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.pengurus-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-accent);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.1);
}

.pengurus-img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-accent);
    padding: 5px;
}

.pengurus-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pengurus-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(197, 160, 89, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold-accent);
}

.pengurus-info h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.pengurus-info p {
    color: var(--gold-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2rem;
    opacity: 0.6;
}

/* Short Finance Responsive */
.finance-summary-container {
    transition: padding 0.3s ease;
}

@media (max-width: 992px) {
    .short-fin-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .finance-summary-container {
        padding: 1.5rem !important;
    }
    .finance-summary-container h2 {
        font-size: 2rem !important;
    }
    .pengurus-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .finance-summary-container h2 {
        font-size: 1.6rem !important;
    }
    .pengurus-card {
        flex: 0 0 100%;
    }
    .pengurus-slider {
        gap: 1rem;
    }
}

/* Finance Table Responsive (Professional Horizontal Scroll) */
.modern-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 15px;
    background: rgba(255,255,255,0.02);
    padding: 2px; /* Prevent outline clipping */
}

.modern-table {
    min-width: 600px; /* Ensure table has enough room on mobile */
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table th {
    background: rgba(197, 160, 89, 0.05);
    color: var(--gold-accent);
    padding: 1.2rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 2px solid var(--gold-accent);
}

.modern-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.modern-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

@media (max-width: 768px) {
    .modern-table {
        min-width: 750px; /* More room for clear columns on mobile */
    }
    
    .finance-page .container {
        padding: 0 0.5rem !important;
    }
}


/* Filter Buttons */
.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.filter-btn.active {
    background: var(--gold-accent);
    color: var(--black-matte);
}

/* Pagination Styling (CodeIgniter Defaults) */
.modern-pagination nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
}

.modern-pagination nav ul li a, 
.modern-pagination nav ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--dark-accent);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-pagination nav ul li.active span {
    background: var(--gold-accent);
    color: var(--black-matte);
    border-color: var(--gold-accent);
}

.modern-pagination nav ul li a:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-2px);
}
