/*------------------------------------------------------------------
    ISLAMIC THEME OVERRIDES v4 (Premium Luxury Redesign)
-------------------------------------------------------------------*/

:root {
    /* Emerald Greens */
    --primary-green: #032b21;
    --secondary-green: #064e3b;
    --highlight-green: #0d6e55;

    /* Regal Gold */
    --accent-gold: #d4af37;
    --accent-gold-light: #f3e5ab;
    --accent-gold-dark: #996515;

    /* Backgrounds & Text */
    --bg-cream: #fbfbf6;
    --bg-emerald-grad: linear-gradient(135deg, #032b21 0%, #064e3b 100%);
    --glass-bg: rgba(3, 43, 33, 0.85);
    --glass-border: rgba(212, 175, 55, 0.3);

    --text-dark: #1f2923;
    --text-muted: #536b61;
    --text-light: #f5f5f5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Animation */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Body & Typography */
body,
body.host_version {
    background-color: var(--bg-cream);
    background-image: url('../images/islamic_pattern.svg');
    background-size: 15rem;
    background-repeat: repeat;
    background-attachment: fixed;
    /* Soften the pattern */
    background-color: rgba(251, 251, 246, 0.96);
    background-blend-mode: overlay;
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.9;
}

h1,
h2,
h3,
h4,
h5,
h6,
body.host_version h3,
.section-title h3 {
    font-family: var(--font-heading);
    color: var(--primary-green) !important;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.lead {
    font-size: 19px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Section Spacing & Layout */
.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 80px;
    position: relative;
}

/* Ornamental Section Titles */
.section-title h3 {
    padding-bottom: 30px;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-green) !important;
    display: inline-block;
    position: relative;
    text-transform: capitalize;
}

/* Arabic pattern divider under titles */
.section-title h3::after {
    content: "❖";
    font-size: 32px;
    color: var(--accent-gold);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    z-index: 2;
}

.section-title h3::before {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    z-index: 1;
}

/* Glassmorphism Floating Navbar */
.top-navbar .bg-light {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-brand img {
    /* Transparent logo is naturally handled here. No filters required! */
    max-height: 65px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
}

.navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 25px !important;
    transition: var(--transition);
    position: relative;
}

/* Elegant Underline Hover Effect */
.navbar-nav .nav-item .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-item:hover .nav-link {
    color: var(--accent-gold) !important;
}

.navbar-nav .nav-item.active .nav-link::after,
.navbar-nav .nav-item:hover .nav-link::after {
    width: 60%;
    box-shadow: 0px 0px 10px var(--accent-gold);
}

/* Navbar Toggle (Hamburger) */
.navbar-toggler {
    border-color: var(--accent-gold) !important;
}

.navbar-toggler .icon-bar {
    background-color: var(--accent-gold) !important;
}

/* Dropdown Menu overrides */
.dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

.dropdown-item {
    color: #fff !important;
    font-weight: 400;
    padding: 10px 25px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold) !important;
    padding-left: 30px;
}

/* Primary Hero Buttons */
body.host_version .grd1,
body.host_version .grd1:hover,
body.host_version .grd1:focus,
.hover-btn-new,
.pricing-table-header.grd1 {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark)) !important;
    color: #fff !important;
    font-weight: 600;
    border: none !important;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3) !important;
    border-radius: 50px;
    padding: 15px 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hover-btn-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-emerald-grad)) !important;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.hover-btn-new:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.hover-btn-new:hover {
    box-shadow: 0 15px 35px rgba(3, 43, 33, 0.4) !important;
}

/* Glassmorphism Cards & Content */
.message-box {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: relative;
}

.message-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, transparent 100%);
    z-index: -1;
    border-radius: 22px;
    opacity: 0.3;
}

.message-box h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-green) !important;
    margin-bottom: 25px;
}

.post-media img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: none !important;
    transition: var(--transition);
}

.post-media img:hover {
    transform: scale(1.02);
}

/* Course / Pricing Cards */
.pricing-table {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid #eee;
    margin-bottom: 30px;
    position: relative;
}

.pricing-table::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.pricing-table:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(6, 78, 59, 0.15);
}

.pricing-table:hover::after {
    transform: scaleX(1);
}

.pricing-table-header {
    background: var(--primary-green);
    background-image: url('../images/islamic_pattern.svg');
    background-size: 100px;
    background-blend-mode: overlay;
    padding: 40px 30px;
    position: relative;
}

.pricing-table-header h2 {
    color: #fff !important;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pricing-table-header h3 {
    color: var(--accent-gold-light) !important;
    font-family: var(--font-body);
    font-weight: 300;
}

/* Footer Majestic Re-design */
.footer {
    background: var(--bg-emerald-grad);
    background-image: url('../images/islamic_pattern.svg'), linear-gradient(135deg, #032b21 0%, #064e3b 100%);
    background-blend-mode: soft-light;
    border-top: 5px solid var(--accent-gold);
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.footer .widget-title h3 {
    color: var(--accent-gold) !important;
    font-size: 2rem;
    padding-bottom: 20px;
    position: relative;
    border-bottom: none;
}

.footer .widget-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

.footer p,
.footer .footer-links li a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition);
}

.footer .footer-links li a:hover {
    color: var(--accent-gold-light) !important;
    padding-left: 10px;
}

.copyrights {
    background-color: #01150f !important;
    padding: 30px 0;
    letter-spacing: 1px;
}

.copyrights a {
    color: var(--accent-gold) !important;
}

/* Hero Section Enhancements */
.first-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(3, 43, 33, 0.9) 0%, rgba(3, 43, 33, 0.5) 50%, rgba(3, 43, 33, 0.2) 100%);
    z-index: 1;
}

.big-tagline h2 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-size: 4.5rem;
}

.big-tagline h2 strong {
    color: var(--accent-gold);
}

/* Preloader */
#preloader {
    background: var(--primary-green) !important;
}

.progress-br {
    border: 3px solid var(--accent-gold) !important;
    border-top-color: transparent !important;
}

/* Utilities */
.text-gold {
    color: var(--accent-gold) !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
}

.section.lb {
    background-color: #fff;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .section {
        padding: 80px 0;
    }

    .section-title h3 {
        font-size: 2.8rem;
    }

    .top-navbar .navbar-light .navbar-nav {
        background: var(--glass-bg);
        padding: 20px;
        margin-top: 15px;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
    }

    .big-tagline h2 {
        font-size: 3rem !important;
    }

    .message-box {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }

    .section-title h3 {
        font-size: 2.2rem;
    }

    .big-tagline h2 {
        font-size: 2.5rem !important;
    }

    .footer {
        padding-top: 60px;
    }

    .widget {
        margin-bottom: 40px;
        text-align: center;
    }

    .footer .widget-title h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-right {
        justify-content: center;
    }
}