* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #234c6e;
    --secondary-color: #1e4d7c;
    --accent-color: #3498DB;
    --text-color: #295683;
    --dark-color: #234c6e;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gold: #F1C40F;
    --dark-overlay: rgba(84, 129, 165, 0.95);
    --dark-green: #4d8761;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* تحسينات Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* تحسينات قسم الخدمات القانونية */
.legal-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.legal-services h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.legal-service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.legal-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.legal-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.legal-service-card:hover .service-icon-container {
    transform: scale(1.1);
}

.service-icon-container i {
    font-size: 2rem;
    color: white;
}

.legal-service-card h4 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-brief {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* تحسينات النافذة المنبثقة */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.service-modal[style*="flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.service-modal.active .modal-content {
    animation: slideUp 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    margin: auto;
    z-index: 1001;
}

.request-modal-content {
    max-width: 800px;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.service-details-content {
    text-align: center;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.service-features-modal {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features-modal li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.request-service-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.request-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* تحسينات النموذج */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-request-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-request-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات متجاوبة للخدمات */
@media (max-width: 768px) {
    .legal-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-service-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* تحسينات الأدوات القانونية */
.legal-tools {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.legal-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.legal-tools h3 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.tools-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-icon i {
    font-size: 2rem;
    color: white;
}

.tool-card h4 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.tool-features span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-align: right;
}

.tool-btn {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 150px;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* تحسينات نافذة الأدوات */
.tools-modal-content {
    max-width: 900px;
    max-height: 85vh;
}

.calculator-container {
    padding: 20px;
}

.calculator-form {
    display: grid;
    gap: 20px;
}

.calc-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.calc-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.calc-group input,
.calc-group select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.calc-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.calc-btn.secondary {
    background: #6c757d;
}

.calc-btn.secondary:hover {
    background: #5a6268;
}

.result-container {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.result-container h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-details {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.result-item:last-child {
    border-bottom: none;
}

/* تحسينات متجاوبة للأدوات */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 20px;
    }

    .calc-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calc-actions {
        flex-direction: column;
    }

    .tools-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

/* تحسينات قسم الخدمات القانونية */
.legal-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.legal-services h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.legal-service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.legal-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.legal-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.legal-service-card:hover .service-icon-container {
    transform: scale(1.1);
}

.service-icon-container i {
    font-size: 2rem;
    color: white;
}

.legal-service-card h4 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-brief {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* تحسينات Hero Section المتقدمة */
.hero {
    min-height: 100vh;
    height: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2c5530 0%, #1e3a20 50%, #0f1f10 100%);
    background-attachment: fixed;
    background-size: cover;
    padding-top: 80px; /* إضافة مساحة للهيدر */
    padding-bottom: 50px; /* إضافة مساحة في الأسفل */
}

.hero-overlay {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 85, 48, 0.9), rgba(15, 31, 16, 0.8));
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesMove 20s linear infinite;
    z-index: 2;
}

@keyframes particlesMove {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-slider {
    position: relative;
    min-height: calc(100vh - 130px); /* تعديل الارتفاع لتجنب تداخل الهيدر */
    height: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.hero-slide {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(44, 85, 48, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(44, 85, 48, 0.3);
}

.hero-badge .header-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.hero-badge .hero-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.badge-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), rgba(44, 85, 48, 0.8));
    border-radius: 50%;
    opacity: 0.3;
    animation: glowPulse 1s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-highlight {
    display: block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-top: 10px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    /* max-width: 700px; */
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(44, 85, 48, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    /* margin-bottom: 5px; */
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.hero-btn.primary {
    background: linear-gradient(45deg, var(--primary-color), #2c5530);
    color: white;
    box-shadow: 0 10px 30px rgba(44, 85, 48, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-btn.tertiary {
    background: linear-gradient(45deg, var(--primary-color), #1e3a20);
    color: white;
    box-shadow: 0 10px 30px rgba(44, 85, 48, 0.3);
}

.hero-btn.tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.4);
}

.pulse-effect {
    animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-glow, .phone-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    animation: btnGlow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes btnGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    z-index: 3;
}

.scroll-indicator i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* قسم الشركاء المحسن */
.key-partners {
    padding: 76px 0;
    background: linear-gradient(180deg, #f8fbf9 0%, #f1f5f2 100%);
    position: relative;
    overflow: hidden;
}

.key-partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(12, 122, 99, 0.06), transparent 44%);
    pointer-events: none;
    opacity: 0.9;
}

.partners-header {
    text-align: center;
    margin-bottom: 46px;
    position: relative;
    z-index: 2;
}

.partners-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.partners-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.partners-header .section-subtitle {
    font-size: 1.05rem;
    color: #5d6e68;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.partners-carousel[hidden] {
    display: none;
}

.partners-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    will-change: transform;
    min-width: 100%;
    animation: partnersScroll var(--partners-scroll-duration, 34s) linear infinite;
}

.partners-carousel.partners-static {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}

.partners-carousel.partners-static .partners-track {
    width: 100%;
    min-width: 0;
    justify-content: center;
    flex-wrap: wrap;
    animation: none;
    transform: none;
}

.partner-item {
    flex: 0 0 210px;
    background: white;
    border-radius: 18px;
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(11, 43, 34, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 76, 61, 0.1);
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(12, 122, 99, 0.18), rgba(12, 122, 99, 0.72));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(11, 43, 34, 0.12);
    border-color: rgba(16, 76, 61, 0.18);
}

.partner-item:hover::before {
    transform: scaleX(1);
}

.partner-logo {
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    height: 112px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid rgba(16, 76, 61, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    transition: transform 0.3s ease;
    filter: grayscale(12%);
}

.partner-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dark-green), var(--accent-color));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.partner-item:hover .partner-logo img {
    transform: scale(1.02);
    filter: grayscale(0%);
}

.partner-item h4 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.55;
}

.partners-empty {
    margin: 18px 0 0;
    text-align: center;
    color: #5d6e68;
    font-size: 0.98rem;
}

.partners-action {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.view-all-partners-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-partners-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-partners-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 85, 48, 0.4);
}

.view-all-partners-btn:hover::before {
    left: 100%;
}

.view-all-partners-btn i:first-child {
    font-size: 1.1rem;
}

.view-all-partners-btn i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.view-all-partners-btn:hover i:last-child {
    transform: translateX(5px);
}

@keyframes partnersScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--partners-scroll-distance, -50%));
    }
}

/* توقف الحركة عند التمرير */
.partners-carousel:hover .partners-track,
.partners-carousel:focus-within .partners-track {
    animation-play-state: paused;
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .key-partners {
        padding: 58px 0;
    }
    
    .partners-header .section-title {
        font-size: 2rem;
    }
    
    .partners-header {
        margin-bottom: 34px;
    }

    .partner-item {
        flex: 0 0 180px;
        padding: 18px 14px 16px;
    }
    
    .partners-track {
        gap: 16px;
    }
    
    .view-all-partners-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .partners-header .section-title {
        font-size: 1.8rem;
    }
    
    .partners-carousel {
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .partners-track {
        width: auto;
        animation: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .partner-item {
        flex: none;
        min-width: 0;
        padding: 16px 12px 14px;
    }
    
    .partner-logo {
        height: 92px;
        padding: 14px;
    }

    .partner-item h4 {
        font-size: 0.9rem;
    }

    .partner-logo-fallback {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }

    .partner-item,
    .partner-logo img {
        transition: none;
    }
}

/* قسم الإعلانات المتحرك */
.advertisements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.advertisements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(44, 85, 48, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(26, 61, 31, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.ads-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.ads-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.ads-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.ads-header .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* قسم الإعلانات */
.advertisements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* الشريط المتحرك للإعلانات */
.ads-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    min-height: 450px;
}

.ads-track {
    display: flex;
    width: 500%; /* 5 شرائح × 100% = 500% */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-slide {
    flex: 0 0 100%; /* كل شريحة تأخذ العرض الكامل للحاوي */
    width: 100%;
    position: relative;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.7), rgba(15, 31, 16, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* إظهار النصوص دائماً */
    transition: all 0.3s ease;
}

.ad-slide:hover .ad-overlay {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9), rgba(15, 31, 16, 0.7));
}

.ad-slide:hover img {
    transform: scale(1.05);
}

.ad-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
}

.ad-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.ad-content h4 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ad-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
}

.ad-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ad-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* أزرار التنقل */
.ads-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.ads-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-size: 18px;
    color: var(--primary-color);
}

.ads-nav-btn.prev {
    right: 20px;
}

.ads-nav-btn.next {
    left: 20px;
}

.ads-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ads-nav-btn i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* مؤشرات الشرائح */
.ads-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* تحسينات الاستجابة للأجهزة المحمولة */
@media (max-width: 768px) {
    .ads-carousel {
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .ad-slide {
        height: 300px;
    }
    
    .ads-loading {
        height: 300px;
    }
    
    .ads-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .ads-nav-btn.prev {
        right: 10px;
    }
    
    .ads-nav-btn.next {
        left: 10px;
    }
    
    .ads-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .ad-content h3 {
        font-size: 1.5rem;
    }
    
    .ad-content p {
        font-size: 0.9rem;
    }
    
    .ad-cta-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ad-slide {
        height: 250px;
    }
    
    .ads-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .ad-content h3 {
        font-size: 1.3rem;
    }
    
    .ad-content p {
        font-size: 0.8rem;
        margin: 10px 0;
    }
    
    .ad-cta-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* مؤشر تحميل الإعلانات */
.ads-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 450px;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.ads-loading p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات الاستجابة للإعلانات */
@media (max-width: 768px) {
    .advertisements-section {
        padding: 60px 0;
    }
    
    .ads-header .section-title {
        font-size: 2rem;
    }
    
    .ad-slide {
        height: 300px;
    }
    
    .ad-content h4 {
        font-size: 1.8rem;
    }
    
    .ad-content p {
        font-size: 1rem;
    }
    
    .ad-content {
        padding: 30px 20px;
    }
    
    .ads-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .ads-nav-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ad-slide {
        height: 250px;
    }
    
    .ad-content h4 {
        font-size: 1.5rem;
    }
    
    .ad-content p {
        font-size: 0.9rem;
    }
    
    .ad-content {
        padding: 20px 15px;
    }
    
    .ad-cta-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .ads-nav {
        padding: 0 10px;
    }
    
    .ads-nav-btn {
        width: 35px;
        height: 35px;
    }
}

/* الرسوم المتحركة */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease-in forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* تحسينات متجاوبة للـ Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 70px; /* تقليل المساحة في الموبايل */
        background-attachment: scroll; /* تحسين الأداء في الموبايل */
    }
    
    .hero-slider {
        min-height: calc(100vh - 120px);
        height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-highlight {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 30px;
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .hero-arrows {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Enhanced Responsive Design */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.top-bar {
    background: var(--dark-green);
    color: white;
    padding: clamp(6px, 1vw, 8px) 0;
    font-size: clamp(10px, 1vw, 12px);
    transition: all 0.3s ease;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    gap: clamp(10px, 1.5vw, 15px);
}

.logo-section {
    grid-column: 1;
    justify-self: start;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    flex-wrap: nowrap;
    flex: 1;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: clamp(2px, 0.3vw, 4px) clamp(4px, 0.8vw, 8px);
    border-radius: 4px;
    white-space: nowrap;
}

.contact-info a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.download-profile-btn {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 8px);
    background: var(--accent-color);
    color: white !important;
    padding: clamp(4px, 0.8vw, 8px) clamp(8px, 1.5vw, 12px);
    border-radius: clamp(12px, 1.5vw, 20px);
    text-decoration: none;
    font-size: clamp(9px, 1vw, 11px);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-profile-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.main-nav {
    padding: clamp(8px, 1.5vw, 12px) 0;
    background: white;
    border-bottom: 1px solid #eee;
    position: relative;
}

.main-nav .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    gap: clamp(15px, 2vw, 25px);
}

.header-logo {
    grid-column: 1;
    height: clamp(35px, 4vw, 45px);
    width: auto;
    max-width: clamp(100px, 12vw, 130px);
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu {
    grid-column: 2;
    display: flex;
    list-style: none;
    gap: clamp(6px, 1vw, 12px);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: clamp(13px, 1.35vw, 17px);
    padding: clamp(6px, 1vw, 12px) clamp(8px, 1.2vw, 15px);
    border-radius: clamp(4px, 0.8vw, 8px);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--dark-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(45, 90, 61, 0.3);
}

.search-box {
    grid-column: 3;
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: clamp(20px, 3vw, 30px);
    padding: clamp(6px, 1vw, 10px) clamp(15px, 2vw, 25px);
    gap: clamp(8px, 1vw, 12px);
    border: 1px solid #ddd;
    min-width: clamp(200px, 20vw, 300px);
    max-width: clamp(250px, 25vw, 400px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: clamp(6px, 1vw, 10px) clamp(8px, 1.2vw, 12px);
    font-size: clamp(12px, 1.2vw, 15px);
    background: transparent;
    width: 100%;
    font-family: inherit;
    color: var(--text-color);
    flex: 1;
}

.search-btn {
    background: var(--dark-green);
    border: none;
    color: white;
    width: clamp(28px, 3vw, 36px);
    height: clamp(28px, 3vw, 36px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(12px, 1.3vw, 16px);
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}
/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                url('PNG/015.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 66, 84, 0.85), rgba(45, 90, 61, 0.75));
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 3;
    position: relative;
}

.hero-badge {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-badge img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.hero-btn.primary {
    background: var(--dark-green);
    color: white;
    box-shadow: 0 5px 15px rgba(45, 90, 61, 0.4);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.6);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn.secondary:hover {
    background: white;
    color: var(--dark-green);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

/* About Section with Image */
.about-with-image {
    padding: 20px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lawyer-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.lawyer-image img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    transition: transform 0.9s ease;
}

.lawyer-image:hover img {
    transform: scale(1.02);
}

.about-text {
    padding: 20px 0;
}

.about-text h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: justify;
}

.cta-btn {
    background: var(--dark-green);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cta-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

/* Services Cards - 3 Cards */
.services-cards {
    padding: 80px 0;
    background: var(--light-bg);
}

/* Quick Access Section */
.quick-access {
    padding: 80px 0;
    background: white;
}

.quick-access h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.quick-access h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quick-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
    color: inherit;
    text-decoration: none;
}

.quick-icon {
    width: 70px;
    height: 70px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.quick-card:hover .quick-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.quick-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card.highlighted {
    background: var(--dark-green);
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
}

.service-card.highlighted .service-icon {
    background: white;
    color: var(--dark-green);
}

.service-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f8f9fb 100%);
    /* background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%); */
    position: relative;
    margin-top: 40px;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.achievements h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.achievements h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    border-radius: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.achievement-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--dark-green), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.achievement-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1) rotate(10deg);
}

.achievement-card:hover .achievement-icon::before {
    width: 100%;
    height: 100%;
}

.achievement-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.achievement-card:hover h4 {
    color: var(--dark-green);
}

.achievement-number {
    margin-bottom: 20px;
    position: relative;
}

.achievement-number .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-green);
    display: inline-block;
    transition: all 0.3s ease;
}

.achievement-number .plus {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: 5px;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-number .number {
    transform: scale(1.1);
}

.achievement-card:hover .achievement-number .plus {
    transform: scale(1.2) rotate(360deg);
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.achievement-card:hover p {
    opacity: 1;
}

.achievement-progress {
    background: #e1e8ed;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    border-radius: 4px;
    transition: all 2s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}


.achievements h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.achievements h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.achievement-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.achievement-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.achievement-number {
    margin-bottom: 15px;
}

.achievement-number .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-green);
}

.achievement-number .plus {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.achievement-progress {
    background: #e1e8ed;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-color));
    border-radius: 3px;
    transition: width 2s ease;
}

/* Legal Services Grid - Enhanced */
.legal-services {
    padding: 80px 0;
    background: var(--light-bg);
}

.legal-services h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.legal-services h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.services-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.legal-service-card {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.legal-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
}

.service-icon-container {
    width: 80px;
    height: 80px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.legal-service-card:hover .service-icon-container {
    background: var(--primary-color);
    transform: scale(1.1);
}

.legal-service-card h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.3;
    text-align: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    margin: auto;
}

.request-modal-content {
    max-width: 800px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.modal-body {
    padding: 0;
}

/* Service Details Content */
.service-details-content {
    padding: 40px;
    text-align: center;
}

.service-icon-large {
    width: 120px;
    height: 120px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 50px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(45, 90, 61, 0.3);
}

.service-details-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-details-content p {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.service-features-modal {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: right;
}

.service-features-modal li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-color);
    position: relative;
    padding-right: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.service-features-modal li:last-child {
    border-bottom: none;
}

.service-features-modal li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--dark-green);
    font-weight: bold;
    font-size: 18px;
}

.request-service-btn {
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(45, 90, 61, 0.3);
}

.request-service-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.4);
}

/* Service Request Form Styles */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px;
    margin-bottom: 20px;
}

.form-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    padding: 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-request-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-request-btn:hover {
    background: #1ea952;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .request-modal-content {
        max-height: 98vh;
    }

    .service-details-content {
        padding: 25px;
    }

    .service-icon-large {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .service-details-content h3 {
        font-size: 24px;
    }

    .service-details-content p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-section {
        margin: 15px;
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }
}

/* About Detailed Section */
.about-detailed {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 0.9)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-detailed-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-detailed h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-detailed p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* Case Inquiry Section */
.case-inquiry {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.case-inquiry h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.case-inquiry h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.case-inquiry-subtitle {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
}

.case-inquiry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.inquiry-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(45, 90, 61, 0.08);
}

.inquiry-form-header {
    margin-bottom: 28px;
}

.inquiry-form-header h4 {
    margin-bottom: 10px;
    font-size: 26px;
    color: var(--primary-color);
}

.inquiry-form-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.inquiry-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(45, 90, 61, 0.1);
    color: var(--dark-green);
    font-size: 13px;
    font-weight: 700;
}

.inquiry-form .form-group {
    margin-bottom: 25px;
}

.inquiry-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.inquiry-form input,
.inquiry-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.select-field {
    position: relative;
}

.select-field::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 18px;
    width: 11px;
    height: 11px;
    border-left: 2px solid var(--dark-green);
    border-bottom: 2px solid var(--dark-green);
    transform: translateY(-65%) rotate(-45deg);
    pointer-events: none;
    opacity: 0.85;
}

.inquiry-form .select-field select {
    padding-left: 48px;
    padding-right: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    cursor: pointer;
}

.inquiry-form .select-field select::-ms-expand {
    display: none;
}

.inquiry-form input:focus,
.inquiry-form select:focus {
    outline: none;
    border-color: var(--dark-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.inquiry-form .select-field:focus-within::after {
    opacity: 1;
    transform: translateY(-50%) rotate(-45deg);
}

.field-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #5f6f67;
}

.case-inquiry-status {
    min-height: 24px;
    margin: -8px 0 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
}

.case-inquiry-status.is-error {
    color: #b42318;
}

.case-inquiry-status.is-success {
    color: var(--dark-green);
}

.inquiry-btn {
    width: 100%;
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.inquiry-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.inquiry-btn:disabled {
    opacity: 0.8;
    cursor: wait;
    transform: none;
}

.inquiry-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.info-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Legal Tools Section */
.legal-tools {
    padding: 80px 0;
    background: white;
}

.legal-tools h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.legal-tools h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.tools-subtitle {
    max-width: 720px;
    margin: 0 auto 18px;
    text-align: center;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
}

.tools-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 780px;
    margin: 0 auto 38px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(45, 90, 61, 0.08);
    color: var(--dark-green);
    font-size: 14px;
    line-height: 1.7;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tool-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    cursor: pointer;
}

.tool-card:hover,
.tool-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--dark-green);
    outline: none;
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon,
.tool-card:focus-visible .tool-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(45, 90, 61, 0.1);
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 700;
}

.tool-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 22px;
}

.tool-btn {
    background: transparent;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    margin-top: auto;
}

.tool-btn:hover {
    background: var(--dark-green);
    color: white;
    transform: translateY(-2px);
}

.tool-card:focus-visible .tool-btn,
.tool-card:hover .tool-btn {
    border-color: var(--primary-color);
}

.tool-features {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.tool-features span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f2f6f4;
    color: #456156;
    font-size: 13px;
    line-height: 1.4;
}

/* Legal Discussions Section */
.legal-discussions {
    padding: 80px 0;
    background: var(--light-bg);
}

.legal-discussions h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.legal-discussions h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.discussions-subtitle {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
}

.discussions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.current-poll {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(45, 90, 61, 0.08);
}

.poll-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(45, 90, 61, 0.1);
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 700;
}

.current-poll h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.poll-question p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.poll-options {
    margin-bottom: 25px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.poll-option:hover {
    background: #f8f9fa;
    border-color: rgba(45, 90, 61, 0.14);
}

.poll-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dark-green);
}

.poll-option span {
    font-size: 14px;
    color: var(--text-color);
}

.poll-option:has(input[type="radio"]:checked) {
    background: rgba(45, 90, 61, 0.08);
    border-color: rgba(45, 90, 61, 0.24);
}

.poll-feedback {
    min-height: 24px;
    margin: -8px 0 14px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
}

.poll-feedback.is-error {
    color: #b42318;
}

.poll-feedback.is-success {
    color: var(--dark-green);
}

.poll-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.poll-summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5f8f6;
    color: #456156;
    font-size: 13px;
}

.poll-btn {
    width: 100%;
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.poll-btn:hover {
    background: var(--primary-color);
}

.poll-btn:disabled {
    opacity: 0.85;
    cursor: default;
}

.legal-discussions-list {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(45, 90, 61, 0.08);
}

.legal-discussions-list h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.discussions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.discussions-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(45, 90, 61, 0.08);
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 700;
}

.discussion-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e1e8ed;
    border-radius: 12px;
    transition: transform 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
}

.discussion-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.discussion-item:hover,
.discussion-item:focus-visible {
    background: #f8fbf9;
    transform: translateX(-4px);
    outline: none;
}

.discussion-avatar {
    width: 45px;
    height: 45px;
    background: var(--dark-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.discussion-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.discussion-content p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.discussion-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.discussion-meta span {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: white;
}

.team h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.team h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-green);
    border-radius: 2px;
}

.team-description {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.team-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
    margin: 0;
}

.team-achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-achievement-card {
    background: var(--light-bg);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.team-achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--dark-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-achievement-card:hover::before {
    transform: scaleX(1);
}

.team-achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.team-achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.team-achievement-card:hover .team-achievement-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.team-achievement-icon i {
    font-size: 28px;
    color: white;
}

.team-achievement-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-achievement-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.team-achievement-number .number {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-green);
    line-height: 1;
}

.team-achievement-number .plus,
.team-achievement-number .percent,
.team-achievement-number .unit {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.team-achievement-card p {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-achievement-progress {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.team-achievement-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--dark-green));
    border-radius: 3px;
    transition: width 2s ease-in-out;
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    from { width: 0%; }
}

.progress-bar-85 { width: 85%; }
.progress-bar-90 { width: 90%; }
.progress-bar-95 { width: 95%; }
.progress-bar-98 { width: 98%; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    text-align: center;
    background: var(--light-bg);
    padding: 30px 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-member p {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Phone Numbers Styling */
.phone-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    border-radius: 4px;
}

.phone-link:hover {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    transform: translateX(-5px);
}

.phone-link i {
    transition: all 0.3s ease;
}

.phone-link:hover i {
    animation: ring 1s ease-in-out;
}

@keyframes ring {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 70%, 90% {
        transform: rotate(-15deg);
    }
    40%, 60% {
        transform: rotate(15deg);
    }
}

/* Footer Phone Links */
.footer .phone-link {
    color: white;
}

.footer .phone-link:hover {
    color: var(--gold);
    background: rgba(241, 196, 15, 0.1);
}

/* Header Phone Links */
.contact-info .phone-link {
    color: white;
}

.contact-info .phone-link:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background:
        radial-gradient(circle at top right, rgba(18, 120, 95, 0.22), transparent 28%),
        linear-gradient(180deg, #16382f 0%, #1a4035 48%, #102c24 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-top-bar {
    background: rgba(255,255,255,0.04);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.footer-contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
}

.footer-address i {
    color: #f3c548;
    font-size: 18px;
}

.footer-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.footer-phones i {
    color: #f3c548;
}

.footer-main {
    padding: 52px 0 46px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.footer-section {
    min-height: 100%;
    padding: 26px 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.footer-section h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f3c548;
    border-bottom: 2px solid rgba(243, 197, 72, 0.25);
    padding-bottom: 10px;
    text-align: center;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.92;
    transition: all 0.3s ease;
    font-size: 15px;
    display: block;
    padding: 6px 0;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #f3c548;
}

.working-hours {
    text-align: center;
}

.working-hours p {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.contact-btn {
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.footer-social {
    text-align: center;
}

.google-maps-section {
    margin-bottom: 25px;
}

.maps-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.maps-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.maps-text p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.76);
}

.social-section {
    margin-top: 25px;
}

.follow-text {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a.facebook {
    background: #3b5998;
}

.social-links a.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
}

.social-links a.twitter {
    background: #1da1f2;
}

.social-links a.youtube {
    background: #ff0000;
}

.social-links a:hover {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .footer-contact-info {
        justify-content: center;
        text-align: center;
    }

    .footer-address {
        justify-content: center;
        text-align: center;
    }

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

@media (max-width: 640px) {
    .footer-main {
        padding: 38px 0 34px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .footer-phones {
        gap: 12px;
    }

    .footer .phone-link {
        width: 100%;
        justify-content: center;
    }
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

/* Enhanced Responsive Design */

/* شاشات كبيرة جداً */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h2 {
        font-size: 56px;
    }

    .hero-content p {
        font-size: 22px;
    }

    .services-grid,
    .services-grid-main {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* شاشات كبيرة */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 15px;
        padding: 8px 12px;
    }
}

/* شاشات متوسطة كبيرة */
@media (max-width: 1200px) {
    .container {
        padding: 0 25px;
    }

    .main-nav .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .search-box {
        min-width: 200px;
        width: 200px;
    }

    .hero-content h2 {
        font-size: 48px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3 {
        font-size: 32px;
    }

    .team {
        padding: 60px 0;
    }

    .team-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .team-achievement-card {
        padding: 30px 20px;
    }

    .team-description {
        margin-bottom: 40px;
    }

    .team-description p {
        font-size: 15px;
    }

    .team-achievement-number .number {
        font-size: 32px;
    }
}

/* شاشات متوسطة كبيرة - Large Tablets & Small Laptops */
@media (max-width: 1200px) {
    .top-bar .container {
        padding: 0 20px;
        gap: 15px;
    }

    .main-nav .container {
        padding: 0 20px;
        gap: 20px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .search-box {
        min-width: 180px;
        max-width: 280px;
    }
}

/* شاشات متوسطة - Tablets */
@media (max-width: 1024px) {
    .top-bar .container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 0 18px;
        gap: 12px;
    }

    .logo-section {
        grid-column: 1;
        grid-row: 1;
    }

    .download-profile-btn {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .contact-info {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 12px;
    }

    .main-nav .container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 0 18px;
        gap: 15px;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .search-box {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 160px;
        max-width: 240px;
    }

    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 6px;
    }

    .nav-menu a {
        font-size: 13px;
        padding: 6px 8px;
    }


    .legal-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .legal-service-card {
        padding: 25px 20px;
        min-height: 160px;
    }

    .service-icon-container {
        width: 70px;
        height: 70px;
        font-size: 26px;
        margin-bottom: 20px;
    }

    .legal-service-card h4 {
        font-size: 18px;
    }

    .modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .hero {
        height: 80vh;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .services-grid,
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .case-inquiry-content,
    .discussions-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}


/* شاشات صغيرة - Small Tablets & Large Phones */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 0 15px;
        gap: 8px;
        text-align: center;
    }

    .logo-section {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .contact-info {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .contact-info a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .download-profile-btn {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        padding: 6px 12px;
        font-size: 11px;
        max-width: 200px;
    }

    .main-nav {
        padding: 10px 0;
    }

    .main-nav .container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 0 15px;
        gap: 12px;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        height: 40px;
        max-width: 110px;
    }

    .search-box {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 120px;
        max-width: 200px;
        padding: 5px 12px;
    }

    .search-input {
        padding: 6px 8px;
        font-size: 12px;
    }

    .search-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 3px;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 11px;
        padding: 5px 6px;
        border-radius: 4px;
    }
}

/* شاشات الهواتف المحمولة - Mobile Phones */
@media (max-width: 480px) {
    .top-bar {
        padding: 6px 0;
    }

    .top-bar .container {
        padding: 0 10px;
        gap: 6px;
    }

    .contact-info a {
        font-size: 10px;
        padding: 2px 4px;
    }

    .download-profile-btn {
        font-size: 10px;
        padding: 5px 10px;
        max-width: 160px;
    }

    .main-nav {
        padding: 8px 0;
    }

    .main-nav .container {
        padding: 0 10px;
        gap: 10px;
    }

    .header-logo {
        height: 35px;
        max-width: 95px;
    }

    .search-box {
        min-width: 100px;
        max-width: 160px;
        padding: 4px 8px;
    }

    .search-input {
        padding: 5px 6px;
        font-size: 11px;
    }

    .search-btn {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .nav-menu a {
        font-size: 10px;
        padding: 4px 5px;
    }
}

/* شاشات صغيرة جداً - Very Small Phones */
@media (max-width: 360px) {
    .top-bar .container {
        padding: 0 8px;
    }

    .main-nav .container {
        padding: 0 8px;
    }

    .header-logo {
        height: 30px;
        max-width: 85px;
    }

    .search-box {
        min-width: 90px;
        max-width: 130px;
    }

    .nav-menu a {
        font-size: 9px;
        padding: 3px 4px;
    }

    .contact-info a {
        font-size: 9px;
    }

    .download-profile-btn {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* تحسين القائمة الجانبية للهاتف - بدون overlay */
.mobile-menu-overlay {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block !important;
        z-index: 10002 !important;
        position: fixed !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, var(--dark-green) 0%, var(--primary-color) 50%, #1a2d3a 100%);
        flex-direction: column;
        box-shadow: -10px 0 30px rgba(0,0,0,0.4);
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 9999;
        padding: 0;
        margin: 0;
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu.mobile-active {
        right: 0;
    }

    /* Header Section with Logo and Title */
    .nav-menu::before {
        content: '';
        display: block;
        height: 140px;
        background: linear-gradient(135deg, var(--dark-green), var(--accent-color));
        background-image: url('PNG/017.png');
        background-size: 70px;
        background-position: center 30px;
        background-repeat: no-repeat;
        border-bottom: 3px solid var(--accent-color);
        margin-bottom: 0;
        position: relative;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }

    .nav-menu::after {
        content: 'مكتب الخبير للمحاماة والاستشارات القانونية';
        position: absolute;
        top: 105px;
        left: 15px;
        right: 15px;
        text-align: center;
        color: white;
        font-size: 14px;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        line-height: 1.3;
        z-index: 1;
    }

    .nav-menu li {
        margin: 0;
        text-align: right;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        list-style: none;
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-bottom: 20px;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 25px;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-height: 60px;
        line-height: 1.4;
        color: rgba(255,255,255,0.95);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        position: relative;
        backdrop-filter: blur(10px);
    }

    /* Menu Item Icons - Using Font Awesome icons */
    .nav-menu a[href="#home"]::after { 
        content: '\f015'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#services"]::after { 
        content: '\f0b1'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="videos.html"]::after { 
        content: '\f03d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="testimonials.html"]::after { 
        content: '\f005'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="partners.html"]::after { 
        content: '\f2b5'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="legal-library.html"]::after { 
        content: '\f02d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="consultation-form.html"]::after { 
        content: '\f086'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#cases"]::after { 
        content: '\f002'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#legal-tools"]::after { 
        content: '\f0ad'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#discussions"]::after { 
        content: '\f075'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#team"]::after { 
        content: '\f0c0'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#contact"]::after { 
        content: '\f095'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Hover and Active States */
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(52, 152, 219, 0.15);
        color: #ffffff;
        transform: translateX(-8px);
        box-shadow: inset 5px 0 0 var(--accent-color);
    }

    .nav-menu a:hover::after,
    .nav-menu a:focus::after {
        color: #F1C40F;
        transform: scale(1.1);
    }

    .nav-menu a.active {
        background: rgba(52, 152, 219, 0.25);
        color: #ffffff;
        box-shadow: inset 5px 0 0 var(--accent-color), 0 2px 10px rgba(52, 152, 219, 0.3);
        transform: translateX(-5px);
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu a.active::after {
        color: #F1C40F;
        animation: pulse 2s infinite;
    }

    /* Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.2);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 10;
    }

    .mobile-menu-close:hover {
        background: rgba(231, 76, 60, 0.2);
        border-color: #E74C3C;
        color: #E74C3C;
        transform: rotate(90deg);
    }

    /* Scroll styling */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: #2980B9;
    }

    /* Animations */
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    @keyframes slideInFromLeft {
        0% {
            opacity: 0;
            transform: translateX(-20px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Menu items animation */
    .nav-menu.mobile-active a {
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: calc(var(--item-index, 0) * 0.05s);
        opacity: 0;
    }

    .nav-menu a:nth-child(1) { --item-index: 1; }
    .nav-menu a:nth-child(2) { --item-index: 2; }
    .nav-menu a:nth-child(3) { --item-index: 3; }
    .nav-menu a:nth-child(4) { --item-index: 4; }
    .nav-menu a:nth-child(5) { --item-index: 5; }
    .nav-menu a:nth-child(6) { --item-index: 6; }
    .nav-menu a:nth-child(7) { --item-index: 7; }
    .nav-menu a:nth-child(8) { --item-index: 8; }
    .nav-menu a:nth-child(9) { --item-index: 9; }
    .nav-menu a:nth-child(10) { --item-index: 10; }
    .nav-menu a:nth-child(11) { --item-index: 11; }
    .nav-menu a:nth-child(12) { --item-index: 12; }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 300px;
        right: -300px;
    }

    .nav-menu::before {
        height: 130px;
        background-size: 65px;
    }

    .nav-menu::after {
        top: 95px;
        font-size: 13px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 16px 22px;
        min-height: 55px;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 280px;
        right: -280px;
    }

    .nav-menu::before {
        height: 120px;
        background-size: 60px;
    }

    .nav-menu::after {
        top: 85px;
        font-size: 12px;
        padding: 0 10px;
    }

    .nav-menu a {
        font-size: 13px;
        padding: 14px 20px;
        min-height: 50px;
    }

    .nav-menu a::after {
        font-size: 16px;
    }

    .mobile-menu-close {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 360px) {
    .nav-menu {
        width: 260px;
        right: -260px;
    }

    .nav-menu::before {
        height: 110px;
        background-size: 55px;
    }

    .nav-menu::after {
        top: 75px;
        font-size: 11px;
        padding: 0 8px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 12px 18px;
        min-height: 48px;
    }

    .nav-menu a::after {
        font-size: 15px;
    }
}

/* تحسين القائمة الجانبية للهاتف - Overlay Fix */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 66, 84, 0.8); /* Dark overlay with blur */
    backdrop-filter: blur(5px);
    z-index: 9998; /* Ensure it's below the menu but above other content */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Adjustments for mobile menu button z-index */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block !important;
        z-index: 10002 !important; /* Increased z-index */
        position: fixed !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px; /* Initially hidden */
        width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, var(--dark-green) 0%, var(--primary-color) 50%, #1a2d3a 100%);
        flex-direction: column;
        box-shadow: -10px 0 30px rgba(0,0,0,0.4);
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 9999; /* Below overlay, above content */
        padding: 0;
        margin: 0;
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu.mobile-active {
        right: 0; /* Slide in */
    }

    /* Header Section with Logo and Title */
    .nav-menu::before {
        content: '';
        display: block;
        height: 140px;
        background: linear-gradient(135deg, var(--dark-green), var(--accent-color));
        background-image: url('PNG/017.png'); /* Assuming this is your logo file */
        background-size: 70px;
        background-position: center 30px;
        background-repeat: no-repeat;
        border-bottom: 3px solid var(--accent-color);
        margin-bottom: 0;
        position: relative;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }

    .nav-menu::after {
        content: 'مكتب الخبير للمحاماة والاستشارات القانونية';
        position: absolute;
        top: 105px;
        left: 15px;
        right: 15px;
        text-align: center;
        color: white;
        font-size: 14px;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        line-height: 1.3;
        z-index: 1;
    }

    .nav-menu li {
        margin: 0;
        text-align: right;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        list-style: none;
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-bottom: 20px;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 25px;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-height: 60px;
        line-height: 1.4;
        color: rgba(255,255,255,0.95);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        position: relative;
        backdrop-filter: blur(10px);
    }

    /* Menu Item Icons - Using Font Awesome icons */
    .nav-menu a[href="#home"]::after { 
        content: '\f015'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#services"]::after { 
        content: '\f0b1'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="videos.html"]::after { 
        content: '\f03d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="testimonials.html"]::after { 
        content: '\f005'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="partners.html"]::after { 
        content: '\f2b5'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="legal-library.html"]::after { 
        content: '\f02d'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="consultation-form.html"]::after { 
        content: '\f086'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#cases"]::after { 
        content: '\f002'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#legal-tools"]::after { 
        content: '\f0ad'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#discussions"]::after { 
        content: '\f075'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#team"]::after { 
        content: '\f0c0'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .nav-menu a[href="#contact"]::after { 
        content: '\f095'; 
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 18px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Hover and Active States */
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(52, 152, 219, 0.15);
        color: #ffffff;
        transform: translateX(-8px);
        box-shadow: inset 5px 0 0 var(--accent-color);
    }

    .nav-menu a:hover::after,
    .nav-menu a:focus::after {
        color: #F1C40F;
        transform: scale(1.1);
    }

    .nav-menu a.active {
        background: rgba(52, 152, 219, 0.25);
        color: #ffffff;
        box-shadow: inset 5px 0 0 var(--accent-color), 0 2px 10px rgba(52, 152, 219, 0.3);
        transform: translateX(-5px);
        border-left: 3px solid var(--accent-color);
    }

    .nav-menu a.active::after {
        color: #F1C40F;
        animation: pulse 2s infinite;
    }

    /* Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.2);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 10;
    }

    .mobile-menu-close:hover {
        background: rgba(231, 76, 60, 0.2);
        border-color: #E74C3C;
        color: #E74C3C;
        transform: rotate(90deg);
    }

    /* Scroll styling */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: #2980B9;
    }

    /* Animations */
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    @keyframes slideInFromLeft {
        0% {
            opacity: 0;
            transform: translateX(-20px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Menu items animation */
    .nav-menu.mobile-active a {
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: calc(var(--item-index, 0) * 0.05s);
        opacity: 0;
    }

    .nav-menu a:nth-child(1) { --item-index: 1; }
    .nav-menu a:nth-child(2) { --item-index: 2; }
    .nav-menu a:nth-child(3) { --item-index: 3; }
    .nav-menu a:nth-child(4) { --item-index: 4; }
    .nav-menu a:nth-child(5) { --item-index: 5; }
    .nav-menu a:nth-child(6) { --item-index: 6; }
    .nav-menu a:nth-child(7) { --item-index: 7; }
    .nav-menu a:nth-child(8) { --item-index: 8; }
    .nav-menu a:nth-child(9) { --item-index: 9; }
    .nav-menu a:nth-child(10) { --item-index: 10; }
    .nav-menu a:nth-child(11) { --item-index: 11; }
    .nav-menu a:nth-child(12) { --item-index: 12; }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 300px;
        right: -300px;
    }

    .nav-menu::before {
        height: 130px;
        background-size: 65px;
    }

    .nav-menu::after {
        top: 95px;
        font-size: 13px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 16px 22px;
        min-height: 55px;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 280px;
        right: -280px;
    }

    .nav-menu::before {
        height: 120px;
        background-size: 60px;
    }

    .nav-menu::after {
        top: 85px;
        font-size: 12px;
        padding: 0 10px;
    }

    .nav-menu a {
        font-size: 13px;
        padding: 14px 20px;
        min-height: 50px;
    }

    .nav-menu a::after {
        font-size: 16px;
    }

    .mobile-menu-close {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 360px) {
    .nav-menu {
        width: 260px;
        right: -260px;
    }

    .nav-menu::before {
        height: 110px;
        background-size: 55px;
    }

    .nav-menu::after {
        top: 75px;
        font-size: 11px;
        padding: 0 8px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 12px 18px;
        min-height: 48px;
    }

    .nav-menu a::after {
        font-size: 15px;
    }


    .legal-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-service-card {
        padding: 30px 20px;
        min-height: 150px;
    }

    .service-icon-container {
        width: 65px;
        height: 65px;
        font-size: 24px;
        margin-bottom: 18px;
    }

    .legal-service-card h4 {
        font-size: 16px;
        line-height: 1.4;
    }

    .modal-content {
        width: 98%;
        max-width: none;
        margin: 10px;
        border-radius: 15px;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .service-details-content {
        padding: 25px 20px;
    }

    .service-icon-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 20px;
    }

    .service-details-content h3 {
        font-size: 20px;
    }

    .service-details-content p {
        font-size: 14px;
    }

    .service-features-modal li {
        font-size: 14px;
        padding: 8px 0;
    }

    .request-service-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .hero {
        height: 70vh;
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 13px;
        max-width: 250px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3,
    .quick-access h3 {
        font-size: 24px;
    }

    .team {
        padding: 50px 0;
    }

    .team-achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-achievement-card {
        padding: 25px 20px;
    }

    .team-description p {
        font-size: 14px;
    }

    .team-achievement-number .number {
        font-size: 28px;
    }

    .team-achievement-icon {
        width: 70px;
        height: 70px;
    }

    .team-achievement-icon i {
        font-size: 24px;
    }

    .service-card,
    .service-box,
    .team-member,
    .quick-card,
    .tool-card {
        padding: 20px 15px;
    }

    .service-icon,
    .quick-icon,
    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .team-member {
        padding: 20px 15px;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .inquiry-form,
    .current-poll,
    .legal-discussions-list {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3,
    .quick-access h3 {
        font-size: 20px;
    }

    .team {
        padding: 40px 0;
    }

    .team-description {
        margin-bottom: 30px;
    }

    .team-description p {
        font-size: 13px;
        line-height: 1.6;
    }

    .team-achievement-card {
        padding: 20px 15px;
    }

    .team-achievement-icon {
        width: 60px;
        height: 60px;
    }

    .team-achievement-icon i {
        font-size: 20px;
    }

    .team-achievement-card h4 {
        font-size: 16px;
    }

    .team-achievement-card p {
        font-size: 12px;
    }

    .team-achievement-number .number {
        font-size: 24px;
    }

    .team-achievement-number .plus,
    .team-achievement-number .percent,
    .team-achievement-number .unit {
        font-size: 14px;
    }

    .service-card h4,
    .quick-card h4,
    .tool-card h4 {
        font-size: 16px;
    }

    .service-card p,
    .quick-card p,
    .tool-card p {
        font-size: 13px;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 5px 6px;
    }

    .contact-info span {
        font-size: 11px;
    }
}

/* تحسينات للوضع الأفقي (Landscape) على الهواتف */
@media (orientation: landscape) and (max-height: 600px) {
    .top-bar {
        padding: 4px 0;
    }

    .top-bar .container {
        grid-template-columns: auto auto auto;
        grid-template-rows: auto;
        gap: 15px;
    }

    .logo-section {
        grid-column: 1;
        grid-row: 1;
    }

    .contact-info {
        grid-column: 2;
        grid-row: 1;
        gap: 10px;
    }

    .download-profile-btn {
        grid-column: 3;
        grid-row: 1;
    }

    .main-nav {
        padding: 6px 0;
    }

    .main-nav .container {
        grid-template-columns: auto auto 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        height: 35px;
    }

    .search-box {
        grid-column: 2;
        grid-row: 1;
        min-width: 140px;
    }

    .nav-menu {
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
        gap: 4px;
    }

    .nav-menu a {
        font-size: 10px;
        padding: 3px 5px;
    }

    .hero {
        height: 100vh;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-badge {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
}

/* تحسين للشاشات عريضة جداً */
@media (min-width: 1600px) {
    .top-bar .container,
    .main-nav .container {
        max-width: 1600px;
        padding: 0 40px;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 13px 18px;
    }

    .search-box {
        min-width: 300px;
        max-width: 450px;
    }

    .header-logo {
        height: 75px;
        max-width: 180px;
    }
}

/* تحسين النصوص للشاشات عالية الكثافة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }


    .hero {
        height: 150vh;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 2500px;
        height: 100%;
    }

    .services-grid,
    .services-grid-main,
    .stats-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-contact-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-phones {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .about-text h3,
    .legal-services h3,
    .team h3 {
        font-size: 28px;
    }

    .service-card,
    .service-box,
    .team-member {
        padding: 25px 20px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.3;
    animation: ripple 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Social Share Buttons */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
}

.social-share h4 {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    margin-left: 15px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Call Now Button Styles */
.call-now-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: white !important;
}

.call-now-btn i {
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 70%, 90% {
        transform: rotate(-10deg);
    }
    40%, 60% {
        transform: rotate(10deg);
    }
}

/* تحسين شريط التمرير للأجهزة المختلفة */
::-webkit-scrollbar {
    width: 8px;
}

@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* تحسين التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* تحسين الرسوم المتحركة للأجهزة المختلفة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* تحسين الشبكات المرنة */
.flexible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(15px, 3vw, 30px);
}

.flexible-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(10px, 2vw, 20px);
}

/* تحسين النصوص المرنة */
.responsive-text {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.6;
}

.responsive-heading {
    font-size: clamp(20px, 4vw, 36px);
    line-height: 1.3;
}

.responsive-subheading {
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.4;
}

/* تحسين المساحات المرنة */
.responsive-padding {
    padding: clamp(15px, 3vw, 40px);
}

.responsive-margin {
    margin: clamp(10px, 2vw, 30px) 0;
}

/* تحسين الأزرار للمس */
.touch-friendly {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .service-card,
    .quick-card,
    .tool-card,
    .team-member {
        transform: none !important;
    }

    .service-card:hover,
    .quick-card:hover,
    .tool-card:hover,
    .team-member:hover {
        transform: none !important;
    }

    .hero-btn,
    .cta-btn,
    .tool-btn,
    .contact-btn {
        min-height: 48px;
        padding: 15px 25px;
    }
}

/* تحسين التباين للإتاحة */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1a2f3a;
        --text-color: #000;
        --border-color: #000;
    }

    .service-card,
    .quick-card,
    .tool-card {
        border: 2px solid #000;
    }
}

/* تحسين للطباعة */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .hero-nav {
        display: none !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
}

/* تنسيقات النوافذ المنبثقة للأدوات القانونية */
.tools-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    margin: auto;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* إصلاح مشكلة ظهور النوافذ في أسفل الصفحة */
#legal-tools-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px) !important;
}

#legal-tools-modal[style*="flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#legal-tools-modal .modal-content {
    width: min(95vw, 900px);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#legal-tools-modal .modal-header {
    flex-shrink: 0;
}

#legal-tools-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#legal-tools-modal .calculator-container {
    padding: 20px;
}

@media (max-width: 768px) {
    #legal-tools-modal[style*="flex"] {
        padding: 10px !important;
    }

    #legal-tools-modal .modal-content {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    #legal-tools-modal .modal-body {
        padding-bottom: 18px;
    }
}

/* إصلاح النوافذ المنبثقة للخدمات */
#service-details-modal,
#service-request-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px) !important;
    box-sizing: border-box !important;
    display: none !important;
}

/* عندما تكون النافذة مرئية */
#service-details-modal[style*="flex"],
#service-request-modal[style*="flex"],
#service-details-modal[style*="block"],
#service-request-modal[style*="block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* تم دمج هذا مع القاعدة أعلاه */

.calculator-container {
    padding: 20px;
}

.calc-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.calc-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.calc-group input,
.calc-group select {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.calc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.calc-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    background: var(--primary-color);
    color: white;
}

.calc-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calc-btn.secondary {
    background: #6c757d;
}

.calc-btn.secondary:hover {
    background: #5a6268;
}

.result-container {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 15px;
    border: 2px solid var(--dark-green);
    text-align: center;
}

.result-container h4 {
    color: var(--dark-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-details {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.result-item span:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.result-item span:last-child {
    font-weight: 700;
    color: var(--primary-color);
}

/* تحسينات النوافذ المنبثقة للخدمات */
.service-features-modal {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features-modal li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 25px;
}

.service-features-modal li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--dark-green);
    font-weight: bold;
}

.service-features-modal li:last-child {
    border-bottom: none;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.request-service-btn {
    background: var(--dark-green);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.request-service-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* تحسينات متجاوبة إضافية للأدوات */
@media (max-width: 768px) {
    .calc-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calc-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .calc-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .tools-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .calc-section {
        padding: 15px;
    }
    
.calculator-container {
        padding: 15px;
    }
}



/* Header nav text size override */
.main-nav .nav-menu > li > a {
    font-size: 20px !important;
    font-weight: 600;
    padding: 12px 16px;
}

@media (max-width: 1200px) {
    .main-nav .nav-menu > li > a {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .main-nav .nav-menu > li > a {
        font-size: 16px !important;
    }
}

/* Canonical hero layout override */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 132px 20px 76px !important;
    text-align: center;
    color: white;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.10), transparent 26%),
        linear-gradient(135deg, rgba(13, 30, 38, 0.84), rgba(16, 63, 47, 0.68));
    z-index: 0;
    pointer-events: none;
}

.hero-slider {
    position: relative;
    width: min(100%, 1200px);
    min-height: 460px;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px 22px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(18, 46, 43, 0.20), rgba(18, 46, 43, 0.08));
    backdrop-filter: blur(4px);
}

.hero-kicker {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 8px 16px;
    margin-bottom: 14px;
    margin-inline: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 700;
}

.hero-badge {
    order: -2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    margin: 0 auto 16px;
    padding: 12px;
    position: relative;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 34px rgba(8, 30, 25, 0.16);
}

.hero-badge .header-logo,
.hero-badge img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 50%;
}

.hero-content h2 {
    width: min(100%, 680px);
    margin: 0 auto 14px;
    font-size: clamp(2.05rem, 4vw, 3.55rem);
    line-height: 1.05;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
}

.hero-content p {
    width: min(100%, 620px);
    margin: 0 auto 20px;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: min(100%, 640px);
    margin: 0 auto 24px;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0;
    position: relative;
    z-index: 3;
}

.hero-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    border: none;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 14px 28px rgba(8, 32, 26, 0.18);
}

.hero-btn.primary {
    background: linear-gradient(135deg, #0d6b56 0%, #118068 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(10, 88, 69, 0.28);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-nav {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 10px !important;
    z-index: 3;
}

.nav-dot {
    width: 13px;
    height: 13px;
    display: inline-block !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.22);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 116px 16px 72px !important;
    }

    .hero-slider {
        min-height: 430px;
    }

    .hero-slide {
        transform: translateY(10px);
    }

    .hero-kicker {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .hero-badge {
        width: 82px;
        height: 82px;
        margin-bottom: 18px;
    }

    .hero-badge .header-logo,
    .hero-badge img {
        width: 52px;
        height: 52px;
    }

    .hero-content h2 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .hero-highlights {
        margin-bottom: 18px;
    }

    .hero-highlights span {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: min(100%, 280px);
    }

    .hero-nav {
        bottom: 10px !important;
        margin-top: 0;
    }
}

/* Canonical header layout override */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.header-scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.top-bar {
    padding: 8px 0;
    max-height: 56px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease, transform 0.3s ease;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-info a {
    font-size: clamp(12px, 1vw, 14px);
    padding: 4px 8px;
}

.download-profile-btn {
    font-size: clamp(11px, 1vw, 13px);
    padding: 7px 14px;
}

.main-nav {
    padding: 12px 0;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: padding 0.3s ease, border-color 0.3s ease;
}

.main-nav .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

.header-logo {
    height: clamp(52px, 4.8vw, 68px);
    max-width: clamp(120px, 12vw, 150px);
    width: auto;
    object-fit: contain;
    object-position: center;
    transition: height 0.3s ease, max-width 0.3s ease, transform 0.3s ease;
}

.nav-menu {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 14px);
    flex-wrap: wrap;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-menu > li > a {
    font-size: clamp(15px, 1.15vw, 18px) !important;
    font-weight: 600;
    padding: 10px 14px;
    line-height: 1.35;
    transition: padding 0.3s ease, font-size 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.search-box {
    grid-column: 3;
    min-width: clamp(160px, 16vw, 220px);
    max-width: clamp(180px, 18vw, 260px);
    width: 100%;
    padding: 6px 14px;
    transition: min-width 0.3s ease, max-width 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.search-input {
    font-size: clamp(13px, 1vw, 15px);
}

.header.header-scrolled .top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
}

.header.header-scrolled .main-nav {
    padding: 8px 0;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.header.header-scrolled .header-logo {
    height: clamp(46px, 4vw, 58px);
    max-width: clamp(108px, 10vw, 136px);
}

.header.header-scrolled .main-nav .nav-menu > li > a {
    padding: 8px 12px;
    font-size: clamp(14px, 1vw, 16px) !important;
}

.header.header-scrolled .search-box {
    min-width: clamp(145px, 14vw, 190px);
    max-width: clamp(165px, 16vw, 220px);
    padding: 5px 12px;
}

@media (max-width: 1200px) {
    .main-nav .container {
        gap: 16px;
    }

    .main-nav .nav-menu > li > a {
        font-size: 15px !important;
        padding: 9px 11px;
    }

    .search-box {
        min-width: 150px;
        max-width: 210px;
    }
}

@media (max-width: 768px) {
    .header {
        position: fixed;
        width: 100%;
    }

    .top-bar .container {
        padding: 0 14px;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .contact-info a {
        font-size: 12px;
    }

    .download-profile-btn {
        font-size: 12px;
        padding: 7px 12px;
    }

    .main-nav .container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 0 14px;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        height: 52px;
        max-width: 130px;
    }

    .search-box {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 150px;
        max-width: 210px;
        width: 100%;
    }

    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 8px;
    }

    .main-nav .nav-menu > li > a {
        font-size: 14px !important;
        padding: 8px 10px;
    }

    .header.header-scrolled .main-nav {
        padding: 7px 0;
    }

    .header.header-scrolled .header-logo {
        height: 46px;
        max-width: 118px;
    }

    .header.header-scrolled .search-box {
        min-width: 140px;
        max-width: 190px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 6px 0;
    }

    .contact-info a,
    .download-profile-btn {
        font-size: 11px;
    }

    .main-nav .container {
        padding: 0 10px;
        gap: 10px;
    }

    .header-logo {
        height: 46px;
        max-width: 120px;
    }

    .search-box {
        min-width: 130px;
        max-width: 180px;
        padding: 5px 10px;
    }

    .main-nav .nav-menu > li > a {
        font-size: 13px !important;
        padding: 7px 9px;
    }
}

/* Services cards display fix */
.services-cards {
    padding: 72px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(19, 115, 92, 0.10), transparent 38%),
        linear-gradient(180deg, #f7fbf9 0%, #eef7f3 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2.5vw, 32px);
    align-items: stretch;
}

.service-card {
    min-height: 320px;
    padding: 32px 26px;
    border-radius: 24px;
    border: 1px solid rgba(16, 76, 61, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
    box-shadow: 0 14px 30px rgba(13, 48, 39, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(13, 48, 39, 0.12);
    border-color: rgba(16, 76, 61, 0.22);
}

.service-card.highlighted {
    background: linear-gradient(160deg, var(--dark-green) 0%, #0c6e59 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(12, 84, 67, 0.22);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    font-size: 28px;
    background: var(--dark-green);
    color: white;
    box-shadow: 0 12px 24px rgba(14, 91, 73, 0.18);
}

.service-card.highlighted .service-icon {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.service-card h4 {
    margin-bottom: 14px;
    font-size: clamp(1.3rem, 1.6vw, 1.6rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-green);
}

.service-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #324b56;
    opacity: 1;
}

.service-card.highlighted h4,
.service-card.highlighted p {
    color: white;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        min-height: 0;
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    .services-cards {
        padding: 56px 0;
    }

    .service-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
        margin-bottom: 18px;
    }

    .service-card h4 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 14px;
    }
}

/* About section display fix */
.about-with-image {
    padding: 72px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.about-content {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
}

.lawyer-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 430px;
    padding: 14px;
    background: linear-gradient(160deg, #f5f8f7 0%, #ffffff 100%);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
}

.lawyer-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 398px;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.5s ease;
}

.lawyer-image:hover img {
    transform: scale(1.015);
}

.about-text {
    max-width: 640px;
    padding: 10px 0;
    text-align: right;
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(16, 76, 61, 0.08);
    color: var(--dark-green);
    font-size: 13px;
    font-weight: 700;
}

.about-text h3 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
    color: var(--dark-green);
}

.about-text p {
    max-width: 56ch;
    margin-bottom: 28px;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.95;
    color: #27414c;
    text-align: right;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.about-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6f2;
    color: #3f675a;
    font-size: 13px;
    font-weight: 600;
}

.cta-btn {
    min-width: 180px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 12px 24px rgba(14, 91, 73, 0.18);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(14, 91, 73, 0.22);
}

@media (max-width: 992px) {
    .about-with-image {
        padding: 56px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lawyer-image {
        order: 1;
        min-height: 340px;
        padding: 14px;
    }

    .lawyer-image img {
        min-height: 312px;
    }

    .about-text {
        order: 2;
        max-width: 100%;
        text-align: center;
    }

    .about-text p {
        max-width: 100%;
        text-align: center;
    }

    .about-kicker,
    .about-highlights {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .lawyer-image {
        min-height: 260px;
        padding: 12px;
        border-radius: 18px;
    }

    .lawyer-image img {
        min-height: 236px;
        border-radius: 14px;
    }

    .about-text h3 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .about-text p {
        font-size: 0.98rem;
        line-height: 1.85;
    }

    .about-highlights span {
        width: 100%;
        justify-content: center;
    }

    .cta-btn {
        width: min(100%, 240px);
    }
}

/* Quick access section override */
.quick-access {
    padding: 74px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(19, 115, 92, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

.quick-access h3 {
    margin-bottom: 42px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.quick-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px 22px 56px;
    border-radius: 20px;
    border: 1px solid rgba(16, 76, 61, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #fbfffc 100%);
    box-shadow: 0 10px 24px rgba(11, 43, 34, 0.07);
    text-align: right;
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(12, 122, 99, 0.15), rgba(12, 122, 99, 0.7));
}

.quick-card::after {
    content: 'اذهب الآن';
    position: absolute;
    right: 22px;
    bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-green);
    opacity: 0.82;
    transition: transform 0.25s ease, opacity 0.25s ease, letter-spacing 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(11, 43, 34, 0.11);
    border-color: rgba(16, 76, 61, 0.24);
}

.quick-card:hover::after {
    transform: translateX(-2px);
    opacity: 1;
    letter-spacing: 0.2px;
}

.quick-card-featured {
    border-width: 2px;
    background:
        linear-gradient(160deg, rgba(14, 91, 73, 0.98) 0%, rgba(11, 118, 95, 0.95) 100%);
    box-shadow: 0 18px 36px rgba(13, 83, 67, 0.18);
}

.quick-card-featured::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.45));
}

.quick-card-featured::after,
.quick-card-featured h4,
.quick-card-featured p {
    color: white;
}

.quick-icon {
    width: 58px;
    height: 58px;
    margin: 0 0 16px auto;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--dark-green), #0c7a63);
    box-shadow: 0 10px 20px rgba(14, 91, 73, 0.14);
}

.quick-card-featured .quick-icon {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.quick-icon i {
    font-size: 22px;
}

.quick-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #183742;
}

.quick-card p {
    margin: 0;
    padding-left: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #516772;
    max-width: 30ch;
}

@media (max-width: 992px) {
    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .quick-access {
        padding: 54px 0;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: 0;
        padding: 20px 18px 48px;
        border-radius: 18px;
    }

    .quick-card::after {
        right: 18px;
        bottom: 14px;
    }

    .quick-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .quick-icon i {
        font-size: 20px;
    }

    .quick-card h4 {
        font-size: 17px;
    }

    .quick-card p {
        font-size: 13px;
    }
}

/* Quick access final override */
.quick-card {
    min-height: 206px;
    padding: 28px 24px 30px;
    border-radius: 20px;
    border: 1px solid rgba(16, 76, 61, 0.12);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(11, 43, 34, 0.07);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.quick-card::before {
    z-index: 1;
}

.quick-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 91, 71, 0.95) 0%, rgba(11, 118, 95, 0.98) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 0;
}

.quick-card:hover,
.quick-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(11, 43, 34, 0.15);
    border-color: rgba(16, 76, 61, 0.3);
}

.quick-card:hover::after,
.quick-card:focus-visible::after {
    opacity: 1;
}

.quick-card-featured {
    border-width: 1px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(11, 43, 34, 0.07);
}

.quick-card-featured::before {
    background: linear-gradient(90deg, rgba(12, 122, 99, 0.15), rgba(12, 122, 99, 0.7));
}

.quick-icon {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--dark-green);
    box-shadow: 0 12px 26px rgba(14, 91, 73, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.quick-card-featured .quick-icon {
    background: var(--dark-green);
    box-shadow: 0 12px 26px rgba(14, 91, 73, 0.14);
}

.quick-icon i {
    font-size: 28px;
    color: #ffffff;
    transition: color 0.28s ease;
}

.quick-card h4,
.quick-card p {
    position: relative;
    z-index: 1;
}

.quick-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #183742;
    transition: color 0.28s ease;
}

.quick-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #516772;
    max-width: 26ch;
    transition: color 0.28s ease, opacity 0.28s ease;
}

.quick-card:hover h4,
.quick-card:hover p,
.quick-card:focus-visible h4,
.quick-card:focus-visible p {
    color: #ffffff;
    opacity: 1;
}

.quick-card:hover .quick-icon,
.quick-card:focus-visible .quick-icon {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.quick-card:hover .quick-icon i,
.quick-card:focus-visible .quick-icon i {
    color: #ffffff;
}

@media (max-width: 640px) {
    .quick-card {
        min-height: 0;
        padding: 22px 18px 24px;
        border-radius: 18px;
    }

    .quick-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .quick-icon i {
        font-size: 24px;
    }

    .quick-card h4 {
        font-size: 17px;
    }

    .quick-card p {
        font-size: 13px;
    }
}

/* Achievements final override */
.achievements {
    padding: 72px 0;
    background: linear-gradient(180deg, #f8fbf9 0%, #f2f7f4 100%);
    margin-top: 28px;
}

.achievements h3 {
    margin-bottom: 20px;
}

.achievements-intro {
    max-width: 760px;
    margin: 0 auto 42px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.achievements-subtitle {
    max-width: 760px;
    margin: 0 auto 12px;
    text-align: center;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
}

.team-description {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.team-description .services-subtitle {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #4f6760;
    text-align: center;
}

.achievements-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
}

.achievement-card {
    padding: 26px 22px 22px;
    border-radius: 18px;
    border: 1px solid rgba(16, 76, 61, 0.12);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(11, 43, 34, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.achievement-card::before {
    display: none;
}

.achievement-card:hover,
.achievement-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(11, 43, 34, 0.11);
    border-color: rgba(16, 76, 61, 0.22);
}

.achievement-card:nth-child(-n+3) {
    border-color: rgba(16, 76, 61, 0.18);
    box-shadow: 0 12px 28px rgba(11, 43, 34, 0.09);
}

.achievement-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    font-size: 26px;
    background: var(--dark-green);
    box-shadow: 0 10px 20px rgba(14, 91, 73, 0.14);
    transition: transform 0.28s ease, background-color 0.28s ease;
}

.achievement-icon::before {
    display: none;
}

.achievement-card:hover .achievement-icon,
.achievement-card:focus-within .achievement-icon {
    transform: scale(1.05);
    background: var(--primary-color);
}

.achievement-card h4 {
    font-size: 19px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.achievement-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(16, 76, 61, 0.08);
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 700;
}

.achievement-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.achievement-number .number {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.achievement-number .plus {
    margin-left: 0;
    font-size: 18px;
    line-height: 1;
}

.achievement-card:hover .achievement-number .number,
.achievement-card:hover .achievement-number .plus,
.achievement-card:focus-within .achievement-number .number,
.achievement-card:focus-within .achievement-number .plus {
    transform: none;
}

.achievement-card p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #516772;
    opacity: 1;
}

.achievement-progress {
    margin-top: 16px;
    height: 4px;
    background: rgba(16, 76, 61, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
    transition: none;
}

.progress-bar::before {
    display: none;
}

@media (max-width: 992px) {
    .achievements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .achievements {
        padding: 58px 0;
    }

    .achievements-intro {
        margin-bottom: 24px;
        padding: 18px 16px;
        border-radius: 18px;
    }

    .achievements-subtitle {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .team-description .services-subtitle {
        font-size: 13px;
        line-height: 1.8;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        margin-top: 36px;
        gap: 16px;
    }

    .achievement-card {
        padding: 22px 18px 18px;
        border-radius: 16px;
    }

    .achievement-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
        font-size: 22px;
    }

    .achievement-card h4 {
        font-size: 17px;
    }

    .achievement-number .number {
        font-size: 30px;
    }

    .achievement-card p {
        font-size: 13px;
    }
}

/* Advertisements final override */
.advertisements-section {
    padding: 72px 0;
    background: linear-gradient(180deg, #f7faf8 0%, #eef4f1 100%);
}

.ads-header {
    margin-bottom: 44px;
}

.ads-header .section-subtitle {
    color: #5d6e68;
    max-width: 640px;
}

.ads-carousel {
    max-width: 1180px;
    min-height: 0;
    border-radius: 24px;
    border: 1px solid rgba(16, 76, 61, 0.08);
    box-shadow: 0 18px 40px rgba(11, 43, 34, 0.1);
}

.ads-carousel[hidden] {
    display: none;
}

.ads-track {
    width: auto;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ad-slide {
    flex: 0 0 100%;
    height: 430px;
    background: linear-gradient(135deg, #eaf2ee 0%, #dfe9e3 100%);
}

.ad-slide img {
    transition: transform 0.5s ease;
}

.ad-overlay {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 34px;
    background: linear-gradient(180deg, rgba(9, 28, 20, 0.08) 0%, rgba(9, 28, 20, 0.72) 62%, rgba(9, 28, 20, 0.88) 100%);
}

.ad-content {
    max-width: 520px;
    padding: 0;
    text-align: right;
}

.ad-content h3 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 14px;
    line-height: 1.2;
}

.ad-content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 22px;
    opacity: 0.96;
}

.ad-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.ad-cta-btn:hover {
    background: #ffffff;
    color: var(--primary-color);
}

.ads-nav-btn {
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(16, 76, 61, 0.1);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(11, 43, 34, 0.12);
}

.ads-nav-btn:hover {
    transform: translateY(-50%) scale(1.04);
}

.ads-nav-btn:focus-visible,
.indicator:focus-visible {
    outline: 2px solid var(--dark-green);
    outline-offset: 3px;
}

.ads-indicators {
    bottom: 22px;
    gap: 9px;
}

.indicator {
    appearance: none;
    border: 0;
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

.ads-empty {
    margin-top: 18px;
    text-align: center;
    color: #5d6e68;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .advertisements-section {
        padding: 58px 0;
    }

    .ads-header {
        margin-bottom: 32px;
    }

    .ad-slide {
        height: 340px;
    }

    .ad-overlay {
        padding: 24px 22px;
    }

    .ad-content {
        max-width: 100%;
    }

    .ad-content h3 {
        font-size: 24px;
    }

    .ad-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ads-carousel {
        border-radius: 18px;
    }

    .ad-slide {
        height: 290px;
    }

    .ad-overlay {
        padding: 18px 16px;
    }

    .ad-content h3 {
        font-size: 21px;
    }

    .ad-content p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .ads-nav-btn {
        width: 42px;
        height: 42px;
    }
}

.profile-vision-section,
.profile-values-section,
.profile-objectives-section,
.profile-team-section,
.profile-motto-section {
    position: relative;
    padding: 100px 0;
}

.profile-vision-section,
.profile-team-section {
    background:
        radial-gradient(circle at top right, rgba(184, 145, 78, 0.14), transparent 28%),
        linear-gradient(180deg, #f7f2e9 0%, #ffffff 100%);
}

.profile-values-section,
.profile-motto-section {
    background:
        radial-gradient(circle at top left, rgba(19, 64, 91, 0.08), transparent 26%),
        #ffffff;
}

.profile-objectives-section {
    background:
        linear-gradient(180deg, rgba(19, 64, 91, 0.03) 0%, rgba(184, 145, 78, 0.06) 100%);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(19, 64, 91, 0.08);
    color: #8c6b32;
    font-size: 0.9rem;
    font-weight: 700;
}

.section-heading h3 {
    margin: 0 0 14px;
    color: #16354a;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.3;
}

.section-heading p {
    margin: 0;
    color: #5d6a73;
    font-size: 1.05rem;
    line-height: 1.9;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.vision-card {
    position: relative;
    overflow: hidden;
    padding: 34px 30px;
    border-radius: 28px;
    border: 1px solid rgba(19, 64, 91, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 233, 0.94));
    box-shadow: 0 20px 45px rgba(20, 45, 61, 0.08);
}

.vision-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #143f5c, #c39b54);
}

.vision-card-accent {
    background: linear-gradient(180deg, rgba(19, 64, 91, 0.97), rgba(34, 83, 115, 0.94));
    color: #ffffff;
}

.vision-card-accent h4,
.vision-card-accent p,
.vision-card-accent .vision-card-label {
    color: #ffffff;
}

.vision-card-icon,
.value-icon,
.objective-icon,
.team-pillar-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 18px;
    background: linear-gradient(145deg, #143f5c, #c39b54);
    color: #ffffff;
    font-size: 1.45rem;
    box-shadow: 0 16px 30px rgba(20, 63, 92, 0.18);
}

.vision-card-label {
    display: block;
    margin-bottom: 10px;
    color: #8d6a30;
    font-size: 0.92rem;
    font-weight: 700;
}

.vision-card h4 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    color: #143f5c;
}

.vision-card p {
    margin: 0;
    color: #5d6970;
    line-height: 2;
}

.values-grid,
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.value-card,
.objective-card,
.team-pillar,
.team-story,
.motto-box {
    border: 1px solid rgba(19, 64, 91, 0.08);
    box-shadow: 0 18px 42px rgba(18, 46, 63, 0.08);
}

.value-card {
    padding: 28px 24px;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
}

.value-card h4,
.objective-card h4,
.team-pillar h4 {
    margin: 0 0 10px;
    color: #143f5c;
    font-size: 1.2rem;
}

.value-card p,
.objective-card p,
.team-pillar p,
.team-story p {
    margin: 0;
    color: #60717b;
    line-height: 1.95;
}

.objectives-grid {
    counter-reset: objective;
}

.objective-card {
    position: relative;
    padding: 28px 24px 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.objective-number {
    margin-bottom: 16px;
    color: rgba(19, 64, 91, 0.15);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.team-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.team-story {
    padding: 38px 34px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(19, 64, 91, 0.96), rgba(27, 85, 118, 0.92)),
        #143f5c;
}

.team-story p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
}

.team-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.team-pillar {
    padding: 24px 22px;
    border-radius: 24px;
    background: #ffffff;
}

.motto-box {
    max-width: 920px;
    margin: 0 auto;
    padding: 44px 38px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(195, 155, 84, 0.18), transparent 25%),
        linear-gradient(135deg, #143f5c 0%, #1d5878 100%);
    text-align: center;
}

.motto-box .section-kicker {
    background: rgba(255, 255, 255, 0.12);
    color: #f5dca6;
}

.motto-box h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.4;
}

.motto-translation {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.motto-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.motto-actions .hero-btn.secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.motto-actions .hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 992px) {
    .vision-mission-grid,
    .team-layout,
    .values-grid,
    .objectives-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .profile-vision-section,
    .profile-values-section,
    .profile-objectives-section,
    .profile-team-section,
    .profile-motto-section {
        padding: 72px 0;
    }

    .vision-mission-grid,
    .team-layout,
    .values-grid,
    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .vision-card,
    .value-card,
    .objective-card,
    .team-story,
    .team-pillar,
    .motto-box {
        border-radius: 22px;
    }

    .team-story,
    .motto-box {
        padding: 30px 24px;
    }
}

/* Modern hero carousel override */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 132px 20px 52px !important;
    color: white;
    isolation: isolate;
    --hero-progress-duration: 6500ms;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.10), transparent 26%),
        linear-gradient(135deg, rgba(13, 30, 38, 0.84), rgba(16, 63, 47, 0.68));
    z-index: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-one {
    width: 260px;
    height: 260px;
    top: 12%;
    right: 7%;
    background: radial-gradient(circle, rgba(255, 210, 124, 0.28) 0%, rgba(255, 210, 124, 0) 72%);
}

.hero-orb-two {
    width: 320px;
    height: 320px;
    bottom: 10%;
    left: 4%;
    background: radial-gradient(circle, rgba(59, 180, 144, 0.24) 0%, rgba(59, 180, 144, 0) 72%);
}

.hero-slider {
    position: relative;
    width: min(100%, 1200px);
    min-height: 500px;
    margin: 0 auto;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 42px 38px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(8, 29, 33, 0.58), rgba(11, 37, 32, 0.20));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 54px rgba(4, 18, 20, 0.22);
    text-align: center;
}

.hero-content-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hero-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 700;
}

.hero-slide-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    margin: 0 auto 18px;
    padding: 12px;
    position: relative;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 34px rgba(8, 30, 25, 0.18);
}

.hero-badge .header-logo,
.hero-badge img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 50%;
}

.hero-content h2 {
    width: min(100%, 720px);
    margin: 0 auto 16px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.2;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
    text-wrap: balance;
}

.hero-content p {
    width: min(100%, 660px);
    margin: 0 auto 22px;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(100%, 680px);
    margin: 0 auto 22px;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
}

.hero-proof {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.hero-proof-item {
    padding: 16px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-proof-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: #ffffff;
}

.hero-proof-item span {
    display: block;
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.74);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0;
    position: relative;
    z-index: 3;
}

.hero-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    border: none;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 14px 28px rgba(8, 32, 26, 0.18);
}

.hero-btn.primary {
    background: linear-gradient(135deg, #0d6b56 0%, #118068 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(10, 88, 69, 0.28);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-panel {
    display: none;
}

.hero-panel-label {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-panel h3 {
    margin: 0 0 16px;
    font-size: 1.45rem;
    line-height: 1.6;
    color: #fff7df;
}

.hero-panel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hero-panel-list li {
    position: relative;
    padding: 0 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    font-size: 0.95rem;
}

.hero-panel-list li::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5cf82;
    box-shadow: 0 0 0 6px rgba(245, 207, 130, 0.14);
}

.hero-panel-note {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.8;
    font-size: 0.92rem;
}

.hero-bottom-bar {
    position: relative;
    z-index: 2;
    width: min(100%, 920px);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.hero-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px !important;
    align-items: stretch;
    z-index: 3;
}

.nav-dot {
    min-height: 76px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.78);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    text-align: center;
}

.nav-dot span {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f7d08a;
}

.nav-dot small {
    font-size: 0.8rem;
    color: inherit;
}

.nav-dot.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(247, 208, 138, 0.38);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(6, 20, 23, 0.16);
}

.hero-arrow {
    min-width: 0;
    width: fit-content;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-arrow:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.hero-arrow.prev,
.hero-arrow.next {
    justify-self: center;
}

.hero-progress {
    width: min(100%, 920px);
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.hero-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f7cc7a 0%, #ffffff 100%);
}

.hero-progress-bar.is-animating {
    animation: heroProgress var(--hero-progress-duration) linear forwards;
}

@keyframes heroProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Static editorial hero override */
.hero.hero-static {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 72px !important;
    background-attachment: scroll !important;
}

.hero.hero-static::before {
    background:
        linear-gradient(90deg, rgba(10, 30, 34, 0.86) 0%, rgba(10, 30, 34, 0.72) 48%, rgba(10, 30, 34, 0.82) 100%),
        linear-gradient(180deg, rgba(5, 18, 22, 0.10), rgba(5, 18, 22, 0.36));
}

.hero.hero-static .hero-orb,
.hero.hero-static .hero-slider,
.hero.hero-static .hero-bottom-bar,
.hero.hero-static .hero-progress {
    display: none !important;
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 1220px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.75fr);
    gap: 32px;
    align-items: center;
}

.hero-main {
    padding: 40px 0;
    text-align: right;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero.hero-static .static-badge {
    width: 108px;
    height: 108px;
    margin: 0 0 24px;
    border-radius: 30px;
    background: rgba(9, 84, 60, 0.34);
    border-color: rgba(255, 255, 255, 0.12);
}

.hero.hero-static .static-badge img {
    width: 68px;
    height: 68px;
}

.hero.hero-static h1 {
    margin: 0 0 20px;
    max-width: 760px;
    font-size: clamp(2.8rem, 5.6vw, 5rem);
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

.hero.hero-static p {
    margin: 0 0 28px;
    max-width: 700px;
    font-size: 1.08rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.88);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-side-card {
    padding: 24px 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(5, 16, 20, 0.16);
    backdrop-filter: blur(12px);
    color: #ffffff;
}

.hero-side-intro {
    padding: 28px 24px;
}

.hero-side-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 211, 130, 0.16);
    color: #ffd58e;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-side-intro h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.6;
    color: #ffffff;
}

.hero-side-intro p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-stats-grid .hero-side-card {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-stats-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.55rem;
    color: #ffd58e;
}

.hero-stats-grid span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* Clean carousel hero refresh */
.hero.hero-carousel-refresh {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 138px 24px 70px !important;
    background-attachment: scroll !important;
}

.hero.hero-carousel-refresh::before {
    background:
        linear-gradient(90deg, rgba(8, 29, 33, 0.84) 0%, rgba(8, 29, 33, 0.66) 55%, rgba(8, 29, 33, 0.84) 100%),
        linear-gradient(180deg, rgba(7, 21, 25, 0.08), rgba(7, 21, 25, 0.32));
}

.hero.hero-carousel-refresh .hero-slider {
    position: relative;
    width: min(100%, 1220px);
    min-height: 760px;
    margin: 0 auto;
    overflow: hidden;
}

.hero.hero-carousel-refresh .hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(22px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero.hero-carousel-refresh .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-frame {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    justify-items: center;
    direction: rtl;
}

.hero-copy {
    grid-column: auto;
    padding: 40px 36px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(9, 33, 36, 0.56), rgba(9, 33, 36, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 56px rgba(3, 14, 17, 0.22);
    text-align: right;
    color: #ffffff;
    direction: rtl;
    width: min(100%, 920px);
}

.hero.hero-carousel-refresh .hero-kicker {
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

.hero.hero-carousel-refresh .hero-badge {
    width: 96px;
    height: 96px;
    margin: 0 0 20px;
    border-radius: 28px;
    background: rgba(13, 95, 67, 0.26);
}

.hero.hero-carousel-refresh .hero-badge img {
    width: 62px;
    height: 62px;
}

.hero.hero-carousel-refresh h2 {
    margin: 0 0 18px;
    max-width: 700px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.22;
    color: #ffffff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    text-wrap: balance;
}

.hero.hero-carousel-refresh p {
    margin: 0 0 24px;
    max-width: 620px;
    font-size: 1.04rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.88);
}

.hero.hero-carousel-refresh .hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero.hero-carousel-refresh .hero-highlights span {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.88rem;
}

.hero.hero-carousel-refresh .hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-glance {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    direction: rtl;
    width: min(100%, 920px);
}

.hero-glance-card {
    min-height: 148px;
    padding: 22px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(5, 16, 20, 0.14);
    color: #ffffff;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-glance-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: #ffd58e;
}

.hero-glance-card span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    font-size: 0.93rem;
}

.hero.hero-carousel-refresh .hero-bottom-bar {
    width: min(100%, 1220px);
    margin: 22px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    direction: rtl;
}

.hero.hero-carousel-refresh .hero-nav {
    display: flex !important;
    gap: 12px !important;
    direction: rtl;
    justify-content: center;
    flex-wrap: wrap;
}

.hero.hero-carousel-refresh .nav-dot {
    min-width: 120px;
    min-height: 68px;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero.hero-carousel-refresh .nav-dot.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 213, 142, 0.34);
}

.hero-controls {
    display: flex;
    gap: 10px;
    direction: rtl;
    justify-content: center;
}

.hero.hero-carousel-refresh .hero-arrow {
    min-width: 118px;
    min-height: 50px;
    padding: 0 20px;
}

.hero.hero-carousel-refresh .hero-progress {
    width: min(100%, 1220px);
    margin: 16px auto 0;
}

