:root {
    /* Color Palette */
    --primary-color: #1a4f36;
    --primary-dark: #123826;
    --secondary-color: #d4af37;
    --secondary-dark: #b8962e;
    --accent-color: #f8f5f0;

    /* Light Theme (Default) */
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e9ecef;

    /* UI Elements */
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --input-bg: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Dimensions */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;

    /* Fonts */
    --font-main: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --card-bg: #1e1e1e;
    --header-bg: #1e1e1e;
    --input-bg: #2d2d2d;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main) !important;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

/* Grid Systems */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Component: Header */
header {
    background: var(--header-bg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    background: var(--header-bg);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;

}

.logo img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.text-logo h1 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
}

.text-logo span {
    font-size: 0.8rem;
    color: var(--secondary-color);

}

.logo img:hover {
    transform: scale(1.02);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Component: Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background-color: var(--primary-color);
    color: #fff !important;
    /* Force white text */
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #000 !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Component: Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.card-img {
    height: 200px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-color);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
    /* Pushes content down */
    line-height: 1.6;
}

/* Component: Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    margin-top: 40px;
}

.section-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
    position: relative;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -17px;
    /* Align with border-bottom */
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Component: Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
    opacity: 0.9;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Component: Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Component: Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control,
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s;
}

.form-control:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 79, 54, 0.1);
}

/* Search Box specific */
.search-box input {
    border-radius: 50px 0 0 50px !important;
    /* RTL flip needed? Check layout */
    border-right: none;
}

/* In RTL, input is right, button is left. */
/* HTML structure: Input then Button. Display flex. */
/* Input needs radius on right (start), button on left (end) */

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    border-radius: 0 50px 50px 0 !important;
    border-left: none;
}

.search-box button {
    border-radius: 50px 0 0 50px !important;
    padding: 0 20px;
}

.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-color);
    cursor: pointer;
}

@media (min-width: 993px) {
    .search-box {
        flex-grow: 1;
        margin: 0 40px;
        max-width: 400px;
    }
}

/* Component: Islamic Widgets */
.islamic-bar {
    background: var(--primary-dark);
    color: var(--secondary-color);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.islamic-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prayer-times-ticker {
    display: flex;
    gap: 20px;
}

.prayer-item {
    display: flex;
    gap: 5px;
    font-size: 0.9rem;
}

.prayer-item.active-prayer {
    color: #fff;
    font-weight: bold;
    border-bottom: 2px solid var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-widget h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .nav-container {
        padding: 10px 15px;
    }

    /* Top Bar Adjustments */
    .top-bar .header-full-width {
        justify-content: space-between;
        padding: 5px 15px;
    }

    .date-display,
    .social-icons {
        display: none;
    }

    .phone-display span {
        display: none;
    }

    /* Mobile Navigation Drawer */
    .mobile-menu-toggle {
        display: block;
        font-size: 28px;
        color: var(--primary-color);
        background: none;
        border: none;
        cursor: pointer;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--surface-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 10002;
        transition: right 0.3s ease;
        padding: 60px 20px 20px;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
        /* Slide in */
    }

    .mobile-menu-close {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.1rem;
    }

    .main-nav a::after {
        display: none;
        /* Remove hover underline effect */
    }

    /* Dropdowns in Mobile */
    .has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.03);
        display: none;
        /* Hidden by default */
        padding-right: 20px;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-item.has-dropdown>a::after {
        display: none;
    }

    .nav-item.has-dropdown>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Footer Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.footer-links i {
    color: var(--secondary-color);
}

.circular-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-left: 10px;
    transition: all 0.3s;
}

.circular-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Sticky Audio Player */
#sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 9999;
    display: none;
    /* Hidden by default */
}

/* When active, display block via JS */
#sticky-player.visible {
    display: block;
}

#sticky-player .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

#player-img-container {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: var(--primary-color);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#player-img-container i {
    color: #fff;
    font-size: 24px;
}

#player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* Show if img exists */
}

.player-info h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

#player-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-controls {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-buttons button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
}

.control-buttons button:hover {
    color: var(--primary-color);
}

#play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

input[type="range"] {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

.player-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.player-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.player-actions button:hover {
    color: #e74c3c;
}

@media (max-width: 768px) {
    #sticky-player .container {
        flex-direction: column;
        gap: 10px;
    }

    .player-controls {
        width: 100%;
    }

    .player-actions {
        display: none;
        /* Hide volume on mobile to save space */
    }
}

/* =============================================
   HEADER NAVIGATION - Dropdowns & Mobile Menu
   ============================================= */

/* Nav Container handled above */

.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--secondary-color);
    font-weight: 700;
}

.nav-link .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s;
    margin-right: 2px;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg, #fff);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color, #eee);
    list-style: none;
    padding: 6px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-color, #333);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.15s;
}

.dropdown-menu li a i {
    font-size: 16px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.dropdown-menu li a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
}

.dropdown-menu li a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.dropdown-menu li a.active i {
    color: #fff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--card-bg, #fff);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 20002 !important;
        /* Extremely high z-index */
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 20px 0;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2px;
        padding: 10px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 0 20px;
        background: transparent;
        display: none;
    }

    .has-dropdown.open>.dropdown-menu {
        display: block;
    }

    .has-dropdown>.nav-link {
        cursor: pointer;
    }

    .search-box {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        display: none;
        animation: slideDown 0.3s ease;
    }

    .search-box.active {
        display: block;
    }

    .mobile-search-toggle {
        display: block;
        /* Show only on mobile */
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 20001;
        /* High but lower than menu */
    }

    .mobile-menu-overlay.show {
        display: block;
    }

    /* =============================================
   FOOTER - Theme-Aware Styles
   ============================================= */
    footer {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, #0d2a1d));
        color: rgba(255, 255, 255, 0.85);
        padding: 50px 0 0;
        margin-top: 60px;
        position: relative;
        overflow: hidden;
    }

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--secondary-color), transparent, var(--secondary-color));
    }

    footer::after {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.05);
        pointer-events: none;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 35px;
        padding-bottom: 40px;
    }

    .footer-widget h4 {
        color: var(--secondary-color);
        font-size: 17px;
        margin-bottom: 18px;
        padding-bottom: 10px;
        position: relative;
        font-weight: 700;
    }

    .footer-widget h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background: var(--secondary-color);
        border-radius: 2px;
    }

    .footer-widget p {
        font-size: 14px;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.7);
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        padding: 6px 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.2s;
    }

    .footer-links li:hover {
        color: var(--secondary-color);
        padding-right: 5px;
    }

    .footer-links li a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.2s;
    }

    .footer-links li a:hover {
        color: var(--secondary-color);
    }

    .footer-links li i {
        color: var(--secondary-color);
        font-size: 16px;
        opacity: 0.7;
    }

    /* Social Links in Footer */
    footer .social-links {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    footer .social-links a {
        text-decoration: none;
    }

    footer .circular-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s;
    }

    footer .circular-icon:hover {
        background: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Newsletter Form in Footer */
    .footer-newsletter-form {
        display: flex;
        gap: 10px;
    }

    .footer-newsletter-form input[type="email"] {
        padding: 10px 14px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        flex: 1;
        min-width: 0;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-family: inherit;
        font-size: 13px;
        transition: all 0.2s;
    }

    .footer-newsletter-form input[type="email"]::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .footer-newsletter-form input[type="email"]:focus {
        outline: none;
        border-color: var(--secondary-color);
        background: rgba(255, 255, 255, 0.12);
    }

    .footer-newsletter-form button {
        background: var(--secondary-color);
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 8px;
        cursor: pointer;
        font-family: inherit;
        font-weight: 600;
        font-size: 13px;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .footer-newsletter-form button:hover {
        background: var(--secondary-dark, #b8962e);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Copyright */
    .copyright {
        text-align: center;
        padding: 18px 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.1);
    }

    /* Footer Responsive */
    @media (max-width: 768px) {
        .footer-grid {
            grid-template-columns: 1fr;
            gap: 25px;
        }

        footer {
            padding: 35px 0 0;
            margin-top: 40px;
        }

        .footer-newsletter-form {
            flex-direction: column;
        }
    }

    /* =========================================
   Da'wah Card Styles (Global)
   ========================================= */
    .single-dawah-preview {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        position: relative;
        overflow: hidden;
        width: 100%;
        aspect-ratio: 1/1 !important;
        /* Force square */
        max-width: 400px;
        margin: 0 auto 20px;
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        text-align: center;
        color: #fff;
    }

    .card-bg-overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
        background-size: 20px 20px;
        opacity: 0.5;
        pointer-events: none;
    }

    .single-dawah-header {
        padding: 20px;
        z-index: 2;
    }

    .dawah-logo {
        max-height: 60px;
        filter: brightness(0) invert(1);
        opacity: 0.9;
    }

    .single-dawah-inner {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 30px;
        z-index: 2;
    }

    .quote-icon {
        font-size: 2rem;
        color: var(--secondary-color);
        margin-bottom: 10px;
        opacity: 0.8;
    }

    .dawah-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        color: #fff;
        font-weight: bold;
        line-height: 1.3;
    }

    .dawah-text {
        font-size: 1rem;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 0;
    }

    .dawah-footer {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(0, 0, 0, 0.1);
        z-index: 2;
        margin-top: auto;
    }

    .dawah-sheikh-info {
        text-align: right;
        flex: 1;
    }

    .dawah-sheikh-info h4 {
        margin: 0;
        font-size: 0.9rem;
        color: var(--secondary-color);
        font-weight: bold;
    }

    .dawah-sheikh-info small {
        color: #ccc;
        font-size: 0.75rem;
        letter-spacing: 1px;
        display: none;
    }

    #dawah-qrcode {
        background: #fff;
        padding: 5px;
        border-radius: 6px;
        display: flex;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        margin-right: 15px;
        width: 50px;
        height: 50px;
        justify-content: center;
        align-items: center;
    }

    #dawah-qrcode img {
        width: 100% !important;
        height: 100% !important;
    }

    .single-card-textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border-color, #ddd);
        border-radius: 8px;
        resize: vertical;
        font-family: inherit;
    }