/* ==========================================================================
   1. GLOBAL SETTINGS & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🌟 RTL Language Support */
html, body, header, .topbar, .navi, .nav-container {
    direction: rtl !important;
    text-align: right !important;
}

/* Luxury Color Palette (Dark Mode - Default) */
:root {
    --primary-bg: #2B1108;      /* Deep Walnut Brown */
    --navbar-bg: #5E2E17;       /* Royal Wood Brown */
    --card-bg: #453C44;         /* Shadow Bronze */
    --text-main: #F1EADD;       /* Elegant Ivory */
    --accent-gold: #DB9935;     /* Luxury Amber */
    --hover-glow: #EECE66;      /* Golden Light */
    --decorative-blue: #374B66; /* Islamic Navy Accent */
    --border-gold: #D1A25A;     /* Soft Gold */
    --secondary-bg: #432010;
}

/* ☀️ Light Mode Variables */
body.light-mode {
    --primary-bg: #F9F6F0;       /* Sandalwood Light BG */
    --navbar-bg: #8c4b2b;        /* Light Chocolate Brown */
    --card-bg: #FFFFFF;          /* White Cards */
    --text-main: #2B1108;        /* Dark Walnut Text */
    --accent-gold: #B87333;      /* Deep Copper Gold */
    --hover-glow: #D4AF37;       /* Metallic Gold */
    --decorative-blue: #E6ECF5;  /* Light Blue Border */
    --border-gold: #C5A059;      /* Soft Gold Border */
    --secondary-bg: #E6DFD3;
}

body {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaliq', 'Amiri', serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 2.2; 
    overflow-x: hidden;
}

/* Light Mode Fixes for Specific Elements */
body.light-mode .sidebar-widget,
body.light-mode .feature-card,
body.light-mode .box {
    background: #FFFFFF !important;
    color: #2B1108 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

body.light-mode .announcement-list li a,
body.light-mode .feature-card p,
body.light-mode .left p {
    color: #4a3429 !important;
}

body.light-mode .ask-mufti-btn {
    background-color: #FFFFFF !important;
    color: #12223a !important;
    border-color: #A68042 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}

body.light-mode .qurbani-book-btn {
    background: #25D366 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   2. TOP BAR & LANGUAGE SWITCHER
   ========================================================================== */
.top-bar {
    background-color: #1a0a05;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-gold);
    font-size: 14px;
}

.top-bar .contact-info span {
    margin-left: 25px;
    display: inline-block;
}

.top-bar .lang-switch a {
    color: var(--hover-glow);
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.lang-btn {
    background: #432010;
    color: #d4af37;
    border: 1px solid #8b6c2f;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: .3s ease;
    min-width: 85px;
}

.lang-btn:hover {
    background: #2d1409;
    color: #ffd700;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 105%;
    right: 0;
    min-width: 110px;
    background: #3a1b0d;
    border: 1px solid #8b6c2f;
    border-radius: 6px;
    overflow: hidden;
    z-index: 99999;
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
}

.lang-menu a {
    display: block;
    padding: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: .25s;
}

.lang-menu a:hover {
    background: #2d1409;
    color: #ffd700;
}

.lang-dropdown:hover .lang-menu {
    display: block;
}

/* ==========================================================================
   3. HEADER & NAVIGATION BAR
   ========================================================================== */
header {
    background-image: url(bg-1.png);
    background-color: var(--navbar-bg);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px double var(--border-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.header-container, .navbar-wrapper {
    display: flex;
    flex-direction: row; 
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-align: center;
}

.site-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(238, 206, 102, 0.4));
}

.brand-titles p {
    font-size: 14px;
    opacity: 0.9;
    color: bisque;
    font-family: 'Amiri', serif;
    letter-spacing: 1px;
    margin: 0;
}

.header-banner {
    display: block;
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.center-banner {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.header-banner a img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-banner a img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

nav {
    background: var(--secondary-bg);
    border-bottom: 2px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-container-mobile {
    display: none;

}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0 30px;
    margin: 0;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: block;
    padding: 16px 22px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-links li a:hover,
.nav-links li.active a {
    background: var(--primary-bg);
    color: var(--hover-glow);
    box-shadow: inset 0 -3px 0 var(--accent-gold);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #3a1b0d;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.dropdown-menu li a {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeDown .35s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: var(--accent-gold);
    padding: 15px 20px;
    cursor: pointer;
}

/* ==========================================================================
   4. HERO & CONTENT SECTIONS
   ========================================================================== */
.hero {
    background-image: url(design-yellow.png);
    position: relative;
    padding: 120px 50px;
    text-align: center;
    border-bottom: 2px solid var(--border-gold);
}

.hero h2 {
    font-size: 36px;
    color: var(--hover-glow);
    margin-bottom: 25px;
    line-height: 2.5;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
}

.hero p {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 35px auto;
    color: var(--text-main);
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #2B1108;

    padding: 10px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 6, 4, 0.4);
}

.cta-btn:hover {
    background-color: var(--hover-glow);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    background-image: url(design-yellow.png);
    background-color: var(--navbar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 90px;
    padding: 100px 70px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(8, 6, 4, 0.4);
}

.about-image-wrap {
    position: relative;
    width: 420px;
    height: 420px;
}

.frame-one, .frame-two {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #d4af37;
    transform: rotate(45deg);
    border-radius: 18px;
}

.frame-one { top: 0; left: 0; }
.frame-two { top: 20px; left: 20px; opacity: .55; }

.about-image {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 18px;
    z-index: 9;
    border: 3px solid #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.45);
}

.about-content {
    flex: 1;
    text-align: right;
}

.section-tag {
    color: #d4af37;
    font-size: 15px;
    letter-spacing: 2px;
}

.about-content h2 {
    font-size: 29px;
    color: #ffd700;
    margin: 15px 0 25px;
}

.about-content p {
    font-size: 17px;
    line-height: 2;
    color: #ddd;
    margin-bottom: 18px;
}

.about-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 30px;
    background: #432010;
    border: 2px solid #d4af37;
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    transition: .35s;
}

.about-btn:hover {
    background: #d4af37;
    color: #2d1409;
}

/* ==========================================================================
   5. MASTER LAYOUT & SIDEBAR
   ========================================================================== */
.master-layout-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex; 
    flex-direction: row; 
    gap: 40px; 
    width: 100%;
}

.main-content-wrapper {
    flex: 7; 
    min-width: 0; 
}

.sidebar-wrapper {
    flex: 3; 
    min-width: 300px; 
}

.main-container {
    padding: 50px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.content-area section {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 6px;
    margin-bottom: 40px;
    border: 1px solid rgba(209, 162, 90, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.section-heading {
    color: var(--hover-glow);
    font-size: 26px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--navbar-bg);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading::after {
    content: '❖';
    color: var(--accent-gold);
}

sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #210d06;
    border: 1px solid var(--border-gold);
    padding: 25px;
    border-radius: 6px;
}

.sidebar-widget h3 {
    color: var(--hover-glow);
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--decorative-blue);
}

.announcement-list { list-style: none; }

.announcement-list li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(241, 234, 221, 0.2);
    font-size: 15px;
}

.announcement-list li a {
    color: var(--text-main);
    text-decoration: none;
}

.announcement-list li a:hover { color: var(--accent-gold); }
.announcement-list .date {
    display: block;
    font-size: 13px;
    color: var(--border-gold);
    margin-top: 5px;
}

/* ==========================================================================
   6. GRID MODULES (HOME BOX, DEPARTMENTS, FEATURES, STATS)
   ========================================================================== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dept-card {
    background-color: rgba(43, 17, 8, 0.5);
    border: 1px solid var(--navbar-bg);
    padding: 25px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dept-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    background-color: rgba(94, 46, 23, 0.3);
    box-shadow: 0 5px 15px rgba(219, 153, 53, 0.1);
}

.dept-card h4 {
    color: var(--hover-glow);
    margin-bottom: 12px;
    font-size: 20px;
    border-bottom: 1px solid rgba(209, 162, 90, 0.1);
    padding-bottom: 5px;
}

.dept-card p { font-size: 15px; opacity: 0.85; text-align: justify; }

/* Home Grid Box Section */
.home-section {
    padding: 90px 5%;
   


    background-size: cover;
    background-position: center;
    background-color: #fafffc;
    background-image: linear-gradient(rgba(45, 54, 49, 0.85), rgba(25, 3, 43, 0.85)), url(full-bg.webp);


}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    background: linear-gradient(145deg, var(--card-bg), #342c33);
    border-radius: 22px;
    border: 1px solid rgba(209, 162, 90, .25);
    overflow: hidden;
    cursor: pointer;
    transition: .45s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.03);
}

.box::before {
    content: '';
    position: absolute;
    top: 0; left: -120%; width: 70%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transform: skewX(-25deg);
    transition: .9s;
}

.box:hover::before { left: 150%; }

.box::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--hover-glow));
    transition: .5s ease;
}

.box:hover::after { width: 100%; left: 0; }
.box:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--hover-glow);
    box-shadow: 0 18px 40px rgba(238,206,102,.18), 0 0 30px rgba(219,153,53,.15);
}

.icon {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--navbar-bg), var(--decorative-blue));
    border: 1px solid rgba(209, 162, 90, .35);
    transition: .45s;
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

.icon img { width: 48px; height: 48px; object-fit: contain; filter: brightness(1.25); }
.box:hover .icon { transform: rotate(8deg) scale(1.08); box-shadow: 0 0 25px rgba(238,206,102,.25); }

.left h3 { font-size: 18px; color: var(--text-main); margin-bottom: 10px; font-weight: 700; line-height: 1.5; transition: .3s; }
.left p { font-size: 13px; color: #d7c9b0; line-height: 1.8; }
.box:hover .left h3 { color: var(--hover-glow); }
.box a { position: absolute; inset: 0; z-index: 5; }

/* Features Section */
.features-section {
    width: 100%;
    padding: 80px 7%;
    background: #2b0d07;
    direction: rtl;
}

.features-heading {
    text-align: center;
    font-size: 42px;
    color: #d7b13a;
    margin-bottom: 60px;
    font-weight: 700;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px;
    width: 100%;
}

.feature-card {
    background: linear-gradient(145deg, #44160c, #2b0d07);
    padding: 35px 25px;
    border: 1px solid #8a5b1e;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .45s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,.35);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -100%; left: -100%; width: 250%; height: 250%;
    background: linear-gradient(45deg, transparent, rgba(215,177,58,.15), transparent);
    transition: .8s;
    transform: rotate(25deg);
}

.feature-card:hover::before { top: 0; left: 0; }
.feature-card:hover {
    transform: translateY(-14px) scale(1.03);
    border-color: #d7b13a;
    box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 25px rgba(215,177,58,.25);
}

.feature-card h4 { color: #d7b13a; font-size: 15px; margin-bottom: 18px; transition: .4s; }
.feature-card p { color: #fff; font-size: 11px; line-height: 2; transition: .4s; }
.feature-card:hover h4 { transform: scale(1.08); }
.feature-card:hover p { color: #fff7d1; }

/* Stats Section */
.stats-section {


    padding: 90px 5%;
    background-color: #fafffc;
    background-image: url(masjid.webp);
  background-size: cover;
  background-position: center;
   background-color: #fafffc;
    
    /* 🌟 جادوئی لائن: یہ امیج کے اوپر ایک ہلکا سا صندلی/ڈارک اوورلے کلر چڑھائے گی اور امیج کی اوپیسٹی خود بخود کم لگے گی */
    background-image: linear-gradient(rgba(45, 54, 49, 0.85), rgba(25, 3, 43, 0.85)), url(masjid.webp);
}

.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; }
.stat-box {
    background: linear-gradient(145deg, var(--card-bg), #342c33);
    padding: 45px 25px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(209, 162, 90, .25);
    box-shadow: 0 10px 25px rgba(0,0,0,.45);
    transition: .45s;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    transition: .9s;
}

.stat-box:hover::before { left: 100%; }
.stat-box:hover { transform: translateY(-12px); box-shadow: 0 18px 40px rgba(238,206,102,.18); border-color: var(--hover-glow); }
.counter { font-size: 60px; color: var(--accent-gold); margin-bottom: 12px; font-weight: 700; text-shadow: 0 0 15px rgba(219,153,53,.25); }
.stat-box p { font-size: 24px; color: var(--text-main); }

/* Qurbani & Registration Modules */
.qurbani-hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(rgba(43,17,8,0.8), rgba(43,17,8,0.8)), url('images/design-yellow.png');
    background-size: cover;
    border-bottom: 2px solid var(--border-gold);
}

.qurbani-hero h1 { font-size: clamp(30px, 5vw, 50px); color: var(--hover-glow); margin-bottom: 20px; }

.info-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 18px; }
.price-table th, .price-table td { padding: 15px; border: 1px solid var(--border-gold); text-align: center; }
.price-table th { background: var(--navbar-bg); color: var(--accent-gold); }

.ask-mufti-qurbani {
    background: #12223a;
    border: 2px solid var(--accent-gold);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 50px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.ask-mufti-qurbani h2 { color: #f7caf1; font-size: 32px; margin-bottom: 15px; }
.ask-mufti-qurbani p { color: #fff; margin-bottom: 25px; }
.qurbani-ask-btn {
    display: inline-block;
    background: var(--accent-gold);
    color: #1a0a05;
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
}
.qurbani-ask-btn:hover { background: var(--hover-glow); transform: scale(1.05); }

.booking-cta { position: sticky; bottom: 20px; text-align: center; z-index: 100; }
.book-now-btn {
    background: #25D366; color: white; padding: 15px 50px;
    border-radius: 50px; font-size: 22px; font-weight: bold;
    text-decoration: none; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.qurbani-book-btn {
    display: inline-block;
    background: #25D366; color: #ffffff; padding: 12px 40px;
    border-radius: 30px; text-decoration: none; font-weight: bold;
    font-size: 20px; transition: 0.3s; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.qurbani-book-btn:hover { background: #20ba56; transform: scale(1.05); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

/* Premium Registration Card */
.registration-card-premium {
    background: #FFFFFF; border: 1px solid #E6DFD3; padding: 40px;
    border-radius: 16px; box-shadow: 0 10px 30px rgba(74, 34, 17, 0.03);
    direction: ltr; text-align: left;
}
.registration-card-premium h2 { font-family: 'Amiri', serif; color: #4A2211; font-size: 32px; margin-bottom: 25px; text-align: center; font-weight: 700; }
.form-group-block { margin-bottom: 22px; }
.form-group-block label { display: block; font-family: 'Lato', sans-serif; font-size: 15px; color: #4A2211; font-weight: bold; margin-bottom: 8px; }
.form-group-block input, .form-group-block select, .form-group-block textarea {
    width: 100%; padding: 12px 18px; border-radius: 8px; border: 2px solid #E6DFD3;
    background-color: #FDFBF7; color: #23120B; font-size: 15px; font-family: 'Lato', sans-serif; box-sizing: border-box; transition: all 0.3s ease;
}
.form-group-block input:focus, .form-group-block select:focus, .form-group-block textarea:focus {
    outline: none; border-color: #966919; background-color: #FFFFFF; box-shadow: 0 0 10px rgba(150, 105, 25, 0.1);
}

.whatsapp-submit-btn {
    width: 100%; background: linear-gradient(145deg, #25D366, #1ebd54); color: white;
    border: none; padding: 15px; font-family: 'Lato', sans-serif; font-size: 18px; font-weight: bold;
    border-radius: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 25px; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); transition: all 0.3s ease;
}
.whatsapp-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); background: linear-gradient(145deg, #20ba56, #19a64a); }

/* ==========================================================================
   7. PREMIUM FOOTER
   ========================================================================== */
.premium-footer {
    background-color: var(--primary-bg);
    color: var(--text-main);
    padding: 60px 0 0 0;
    position: relative;
    border-top: 3px solid var(--border-gold);
    overflow: hidden;
}

.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}

.footer-column { display: flex; flex-direction: column; align-items: flex-start; }
.column-header { display: flex; align-items: center; gap: 15px; width: 100%; margin-bottom: 20px; position: relative; }
.header-icon-wrapper {
    width: 45px; height: 45px; border: 1px solid var(--border-gold);
    display: flex; align-items: center; justify-content: center; border-radius: 8px;
    transform: rotate(45deg); background-color: rgba(94, 46, 23, 0.3); 
}

.header-icon-wrapper i { transform: rotate(-45deg); color: var(--accent-gold); font-size: 18px; }
.column-title { font-family: 'Noto Nastaliq Urdu', serif; font-size: 18px; color: var(--accent-gold); font-weight: bold; line-height: 1.8; }
.header-divider { width: 100%; height: 2px; background-color: var(--decorative-blue); margin-bottom: 25px; position: relative; }
.header-divider::after { content: ''; position: absolute; top: -3px; right: 20%; width: 8px; height: 8px; background-color: var(--accent-gold); transform: rotate(45deg); }
.footer-links { list-style: none; width: 100%; }
.footer-links li { padding: 12px 0; border-bottom: 1px dashed rgba(209, 162, 90, 0.2); transition: all 0.3s ease; }
.footer-links li:last-child { border-bottom: none; }
.footer-links a { color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 16px; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--hover-glow); padding-right: 8px; }
.footer-links a i { color: var(--accent-gold); font-size: 12px; }

.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; font-size: 16px; }
.contact-icon {
    width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--border-gold);
    display: flex; align-items: center; justify-content: center; color: var(--accent-gold);
    background-color: rgba(69, 60, 68, 0.4); 
}

.social-icons { display: flex; gap: 12px; margin-top: 15px; }
.social-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-gold);
    display: flex; align-items: center; justify-content: center; color: var(--text-main);
    text-decoration: none; transition: all 0.3s ease;
}
.social-btn:hover { background-color: var(--accent-gold); color: var(--primary-bg); transform: translateY(-3px); box-shadow: 0 0 10px var(--hover-glow); }

.bottom-bar { background-color: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(211, 162, 90, 0.3); padding: 20px 0; margin-top: 50px; text-align: center; position: relative; }
.bottom-bar::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.05; background-image: radial-gradient(var(--accent-gold) 1px, transparent 0); background-size: 24px 24px; pointer-events: none; }
.copyright-text { font-family: 'Noto Nastaliq Urdu', serif; font-size: 16px; color: var(--text-main); display: flex; align-items: center; justify-content: center; gap: 10px; }
.copyright-decor { color: var(--accent-gold); font-size: 14px; }

/* ==========================================================================
   8. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
    .top-bar { display: none !important; }
    .header-banner { display: none !important; }
    header { justify-content: space-between; }
    
    .nav-container-mobile {
      
        display: flex !important;
        flex-direction: row-reverse !important; 
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 20px !important;
        width: 100% !important;
        background: var(--secondary-bg) !important;
    }
    .nav-container-mobile-image {
        width: 300px;
        height: 80px;
    }

    .menu-toggle { display: block !important; padding: 0 !important; margin-right: 5px !important; margin-left: 0 !important; }
    
    .ask-mufti-btn {
        display: inline-block !important; visibility: visible !important;
        background-color: #47494d  !important; color: #f7caf1 !important;
        padding: 10px 20px !important; font-size: 15px !important; font-weight: bold !important;
        text-decoration: none !important; border-radius: 30px !important; border: 2px solid #967019 !important;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.3) !important;
        font-family: sans-serif !important; direction: ltr !important; z-index: 9999 !important;
    }

    .nav-links { display: none; flex-direction: column; width: 100%; background: var(--secondary-bg); padding: 0; }
    .nav-links.active { display: flex; animation: fadeDown .4s ease; }
    .nav-links li { width: 100%; }
    .nav-links li a { padding: 16px 20px; border-bottom: 1px solid rgba(212,175,55,.15); }
    .dropdown-menu { position: static; display: none; width: 100%; border: none; border-radius: 0; background:#2d1409; box-shadow: none; }
    .dropdown.active .dropdown-menu { display: block; }

    .about-section { flex-direction: column; text-align: center; padding: 70px 25px; gap: 60px; }
    .about-content { text-align: center; }
    .about-image-wrap { width: 280px; height: 280px; }
    .about-image { width: 220px; height: 220px; top: 30px; left: 30px; }
    .about-content h2 { font-size: 28px; }
    .about-content p { font-size: 15px; }

    .home-box { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .features-heading { font-size: 32px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .master-layout-container { flex-direction: column; gap: 30px; }
    .main-content-wrapper, .sidebar-wrapper { width: 100%; flex: none; }
    .main-container { padding: 20px; grid-template-columns: 1fr; gap: 30px; }
    sidebar { width: 100%; }
    .sidebar-widget { padding: 20px; }

    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-column { align-items: center; }
    .footer-links li { text-align: center; }
    .footer-links a { justify-content: center; }
    .contact-item { justify-content: center; width: 100%; }
}

@media (max-width: 768px) {
    .home-box, .features-grid, .stats-grid { grid-template-columns: 1fr !important; }
    .box { padding: 22px; }
    .left h3, .left p { font-size: 18px; }
    .icon { width: 72px; height: 72px; }
    .icon img { width: 40px; height: 40px; }
    .features-section { padding: 60px 5%; }
    .features-heading { font-size: 24px; }
    .feature-card h4 { font-size: 22px; }
    .feature-card p { font-size: 16px; }
    .counter { font-size: 45px; }
    .section-title h2 { font-size: 34px; }
    .stat-box p { font-size: 20px; }
    .price-table { font-size: 14px; }
    .info-card { padding: 20px; }
    .ask-mufti-qurbani h2 { font-size: 24px; }
}

@media (max-width: 576px) {
    .registration-card-premium { padding: 25px 20px; }
}