/* Base Styles & Variables */
:root {
    --primary-color: #0b4a3a; /* Deep Islamic Green */
    --primary-light: #15735b;
    --primary-dark: #062f25;
    --secondary-color: #d4af37; /* Royal Gold */
    --secondary-light: #e6c863;
    --text-dark: #2c3e50;
    --text-light: #f5f6fa;
    --bg-color: #fdfcf9;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(11, 74, 58, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }
.text-center { text-align: center; }
.note { background: rgba(212, 175, 55, 0.1); padding: 10px 15px; border-radius: 8px; border-right: 4px solid var(--secondary-color); color: var(--primary-dark); font-size: 0.95rem; margin-top: 15px;}

/* Header */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    border-right: 4px solid var(--secondary-color);
    padding-right: 12px;
    transition: var(--transition);
}

.desktop-nav {
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header.scrolled .logo-text, .header.scrolled .desktop-nav a {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    box-shadow: none;
}

.header.scrolled .btn-primary:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    background: var(--secondary-color);
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 74, 58, 0.95) 0%, rgba(6, 47, 37, 0.98) 100%), url('https://images.unsplash.com/photo-1584551246679-0daf3d275d0f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 40px;
}

.islamic-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    animation: fadeInDown 1s ease-out;
}

.quran-container {
    margin-bottom: 20px;
}

.quran-verse {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--secondary-color);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-light);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.main-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    color: var(--white);
}

.subtitle {
    font-size: 2rem;
    color: var(--secondary-light);
    margin-bottom: 10px;
    font-weight: 700;
}

.location-subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-weight: 500;
}

.location-subtitle strong {
    color: var(--white);
    background: var(--primary-light);
    padding: 2px 15px;
    border-radius: 8px;
    font-weight: 800;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp-large, .btn-call-large {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-whatsapp-large {
    background: #25D366;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-large:hover {
    background: #1fbd5a;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.btn-call-large {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-call-large:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

/* Full Size Image Banner */
.full-image-section {
    padding: 0 0 60px;
    background: var(--bg-color);
}

.seo-image-container {
    margin: 0 auto;
    max-width: 100%;
    position: relative;
}

.full-size-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.seo-image-container a {
    display: inline-block;
    max-width: 100%;
}

.seo-image-container a:hover .full-size-img {
    opacity: 0.95;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.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;
}

/* Sections Global */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.sub-heading {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.divider {
    width: 100px;
    height: 5px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 5px;
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 5px;
}

.divider::before { left: -30px; }
.divider::after { right: -30px; }

/* Features Section */
.features {
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 45px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(11, 74, 58, 0.08) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary-color);
    font-size: 2.2rem;
    transition: var(--transition);
    position: relative;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--secondary-color);
    opacity: 0;
    transform: scale(1.2) rotate(0deg);
    transition: all 0.6s ease;
}

.feature-card:hover .icon-wrapper::before {
    opacity: 0.5;
    transform: scale(1.1) rotate(180deg);
}

.feature-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--secondary-light);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-weight: 800;
}

.feature-card p {
    color: #556b60;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Accordion Knowledge Base */
.islamic-bg {
    background-color: #f6f8f5;
    position: relative;
}

.islamic-bg::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2.5L22.5 16 25 13.5V0h2v13.5L29.5 16l2.5-2.5V20h8v2h-8v6.5l-2.5 2.5L27 28.5V40h-2V28.5L22.5 26 20 28.5V40h-2V28.5L15.5 31l-2.5 2.5V22H0v-2h13.5l2.5 2.5 2.5-2.5H20v.5z' fill='%230b4a3a' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.guide-intro {
    max-width: 800px;
    margin: 20px auto 0;
    color: #666;
    font-size: 1.2rem;
    line-height: 1.8;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.accordion-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-item[open] {
    border-right: 5px solid var(--primary-color);
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default arrow */
    user-select: none;
    transition: background 0.3s ease;
}

.accordion-header::-webkit-details-marker {
    display: none; /* Hide arrow in Safari */
}

.accordion-header h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header h3 i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.accordion-header .arrow {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-item[open] .accordion-header .arrow {
    transform: rotate(180deg);
}

.accordion-item[open] .accordion-header {
    background: rgba(11, 74, 58, 0.03);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.accordion-body {
    padding: 25px;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

.accordion-body h4 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-body h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: var(--secondary-color);
    border-radius: 4px;
}

.styled-list {
    list-style: none;
    padding-right: 10px;
}

.styled-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
}

.styled-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.styled-list ul {
    list-style: circle;
    padding-right: 30px;
    margin-top: 10px;
}

.styled-list ul li::before {
    display: none;
}

.ordered-list-fancy {
    counter-reset: my-counter;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ordered-list-fancy li {
    counter-increment: my-counter;
    background: var(--bg-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ordered-list-fancy li::before {
    content: counter(my-counter);
    background: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.islamic-pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.contact-banner-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.contact-banner h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--secondary-light);
}

.contact-banner p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    opacity: 0.95;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #031c15;
    color: #a0b0a8;
    padding: 60px 0 25px;
    border-top: 5px solid var(--secondary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo::before {
    content: '';
    width: 4px;
    height: 40px;
    background: var(--secondary-color);
    display: block;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-phone {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary-light);
    font-weight: 700;
    transition: var(--transition);
}

.footer-phone:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    font-size: 0.95rem;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 999;
}

.float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.float-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

.float-whatsapp {
    background-color: #25D366;
}

.float-whatsapp::before {
    background-color: rgba(37, 211, 102, 0.6);
}

.float-whatsapp:hover {
    background-color: #1ebe5a;
    transform: scale(1.1) rotate(-10deg);
}

.float-call {
    background-color: var(--primary-color);
}

.float-call::before {
    background-color: rgba(11, 74, 58, 0.6);
    animation-delay: 1.25s;
}

.float-call:hover {
    background-color: var(--primary-light);
    transform: scale(1.1) rotate(10deg);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.6); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-title { font-size: 3.5rem; }
    .subtitle { font-size: 1.6rem; }
    .quran-verse { font-size: 1.8rem; }
    .accordion-header h3 { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    
    .header { padding: 15px 0; }
    .logo-text { font-size: 1.2rem; }
    .btn-primary { padding: 8px 16px; font-size: 0.9rem; }

    .quran-verse { font-size: 1.4rem; line-height: 1.6; }
    .main-title { font-size: 2.5rem; }
    .subtitle { font-size: 1.3rem; }
    .location-subtitle { font-size: 1.1rem; }
    .hero-description { font-size: 1rem; }
    
    .hero-buttons { flex-direction: column; align-items: stretch; padding: 0 20px; }
    .btn-whatsapp-large, .btn-call-large { justify-content: center; padding: 14px; font-size: 1.1rem; }
    
    .section-title h2 { font-size: 2rem; }
    .guide-intro { font-size: 1.05rem; }
    .contact-banner h2 { font-size: 1.8rem; }
    
    .accordion-header h3 { font-size: 1.1rem; gap: 10px; }
    .accordion-body { padding: 20px 15px; font-size: 0.95rem; }
    
    .floating-buttons { bottom: 20px; left: 20px; }
    .float-btn { width: 55px; height: 55px; font-size: 1.6rem; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .footer-logo::before { display: none; }
    .footer-logo { justify-content: center; }
}
