/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* RTL Support */
[dir="rtl"] {
    font-family: 'Amiri', serif;
}

[dir="rtl"] .container {
    text-align: right;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.call-btn {
    background: #007bff;
}

.whatsapp-btn {
    background: #25d366;
}

.email-btn {
    background: #dc3545;
}

.float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c5530 0%, #1e3a21 100%);
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.logo i {
    font-size: 1.8rem;
    color: #ffd700;
    flex-shrink: 0;
}

.logo-text {
    flex: 1;
    min-width: 0;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-nav {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: #ffd700;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 5px;
    color: white;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #2c5530;
    z-index: 998;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9), rgba(30, 58, 33, 0.9)), url('/placeholder.svg?height=600&width=1200') center/cover;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    font-weight: 400;
}

.hero-content p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-block;
}

.btn.primary {
    background: #ffd700;
    color: #2c5530;
}

.btn.primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn.secondary:hover {
    background: white;
    color: #2c5530;
}

/* About Ruqyah Section */
.about-ruqyah {
    padding: 60px 0;
    background: white;
}

.about-ruqyah h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c5530;
}

.about-content p {
    font-size: 0.95rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    color: #555;
}

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.principle {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.principle:hover {
    transform: translateY(-3px);
}

.principle i {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.principle h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #2c5530;
}

.principle p {
    color: #666;
    margin: 0;
    font-size: 0.85rem;
}

/* Services Section */
.services {
    padding: 60px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.services-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-card i {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #2c5530;
}

.service-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #2c5530;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c5530;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #2c5530;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: #2c5530;
}

.contact-item p {
    color: #666;
    margin: 0;
    font-size: 0.85rem;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 15px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
    font-size: 0.85rem;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -8px;
    left: 10px;
    font-size: 0.75rem;
    color: #2c5530;
}

/* Request Call Section */
.request-call {
    padding: 40px 0;
    background: #2c5530;
    color: white;
}

.request-call-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.request-call-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.request-call-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

.callback-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.request-call .form-group {
    margin-bottom: 0;
}

.request-call .form-group input {
    background: white;
    border-color: rgba(255,255,255,0.3);
}

.request-call .form-group input:focus {
    border-color: #ffd700;
}

.request-call .form-group label {
    color: #ccc;
}

.request-call .form-group input:focus + label,
.request-call .form-group input:valid + label {
    color: #ffd700;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
    background: #f8f9fa;
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #2c5530;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 0.95rem;
    color: #2c5530;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: #2c5530;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.2rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section iframe {
    width: 100%;
    max-width: 100%;
    height: 250px; /* Adjust height as needed */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.footer-section p,
.footer-section li {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 0.8rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo h1 {
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .principles {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .request-call-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .callback-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services,
    .about-ruqyah,
    .contact,
    .faq {
        padding: 50px 0;
    }

    .footer-section iframe {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content h2 {
        font-size: 1.7rem;
    }
    
    .hero-content h3 {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 0.85rem;
    }
    
    .services,
    .about-ruqyah,
    .contact,
    .faq {
        padding: 40px 0;
    }
    
    .request-call {
        padding: 30px 0;
    }

    .footer-section iframe {
        height: 150px;
    }
}

/* RTL Specific Styles */
[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .desktop-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

[dir="rtl"] .faq-question i {
    margin-right: 1rem;
    margin-left: 0;
}

[dir="rtl"] .form-group label {
    right: 15px;
    left: auto;
}

[dir="rtl"] .form-group input:focus + label,
[dir="rtl"] .form-group input:valid + label,
[dir="rtl"] .form-group select:focus + label,
[dir="rtl"] .form-group select:valid + label,
[dir="rtl"] .form-group textarea:focus + label,
[dir="rtl"] .form-group textarea:valid + label {
    right: 10px;
    left: auto;
}

[dir="rtl"] .floating-buttons {
    left: 20px;
    right: auto;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Animation */
.mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}