﻿/*
Theme Name: مكتب حمد للمحاماة
Theme URI: https://hamedlawfirm.sa
Description: ثيم احترافي لمكتب محاماة مع تصميم عصري متجاوب، محسّن للأداء والوصولية. يتضمن صفحات الخدمات، طلب استشارة، اتصل بنا، ومدونة قانونية.
Version: 1.1.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Author: marwan7egazy
Author URI: https://www.instagram.com/marwan7egazy/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamed-law
Tags: rtl-language-support, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, custom-colors, custom-header, custom-background, editor-style, responsive-layout, accessibility-ready
*/

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

:root {
    --primary-navy: #1a2332;
    --secondary-gold: #d4af37;
    --light-gold: #f4e4a6;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-gray: #666666;
    --text-dark: #333333;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-navy);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary-gold);
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--light-gray);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--primary-navy);
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

#page {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f4d03f, var(--secondary-gold));
}

/* Selection styles */
::selection {
    background: var(--secondary-gold);
    color: var(--primary-navy);
}

::-moz-selection {
    background: var(--secondary-gold);
    color: var(--primary-navy);
}

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

/* Override container for footer to use full width */
.site-footer .container {
    max-width: 100% !important;
    padding: 0 40px !important;
}

/* Enhanced Bootstrap Navbar with Background Effects */
.navbar.bg-primary {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c3e50 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}


/* Navbar Background Effects (like Footer) */
.navbar-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.navbar-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="1" fill="%23d4af37" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="5s" repeatCount="indefinite"/></circle><circle cx="60" cy="40" r="0.8" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="10" cy="60" r="1.2" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="4.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 20s infinite linear;
    z-index: 1;
}

.navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    z-index: 2;
}

/* Ensure navbar content is above background */
.navbar .container-fluid {
    position: relative;
    z-index: 3;
}

.navbar-brand {
    text-decoration: none !important;
}

/* Logo Styles */
.logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-navy), #34495e);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(26, 35, 50, 0.3), 0 0 30px rgba(26, 35, 50, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    max-width: 50px;
    max-height: 50px;
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(26, 35, 50, 0.5), 0 0 50px rgba(26, 35, 50, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-brand:hover .logo-img {
    filter: brightness(1.3) drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}


/* Responsive Logo */
@media (max-width: 768px) {
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .footer-logo .logo-icon {
        width: 50px;
        height: 50px;
    }
}

.navbar-brand .site-title {
    color: var(--white) !important;
    font-weight: bold;
}

.navbar-brand .site-tagline {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-navy) !important;
    background: var(--secondary-gold) !important;
    transform: translateY(-1px);
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 15px;
        padding: 15px;
        background: rgba(0,0,0,0.1);
        border-radius: 10px;
    }
    
    .navbar-nav .nav-link {
        margin: 3px 0;
        text-align: center;
    }
}

/* Hide old styles that might conflict with Bootstrap */
.site-header,
.main-navigation,
.mobile-menu-toggle {
    display: none !important;
}

/* Hide duplicate scroll to top buttons */
.trx_addons_scroll_to_top,
a[class*="scroll_to_top"],
button[class*="scroll_to_top"]:not(.back-to-top),
.scroll-to-top:not(.back-to-top) {
    display: none !important;
}

/* Fix for page templates - prevent horizontal scroll and header issues */
.services-page,
.consultation-page,
.contact-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure navbar stays on top */
.navbar {
    position: relative !important;
    z-index: 9999 !important;
}

/* Fix container overflow issues */
.services-page .container,
.consultation-page .container,
.contact-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

/* Fix grid layouts that might cause overflow */
.services-detailed-grid,
.consultation-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .services-detailed-grid,
    .consultation-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-page,
    .consultation-page,
    .contact-page {
        padding: 0;
        margin: 0;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}

.logo-section::after {
    display: none;
}


.logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    color: var(--white);
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.site-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

/* Navigation Menu - Horizontal */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Hide navigation on mobile by default */
@media (max-width: 768px) {
    .main-navigation:not(.active) {
        display: none;
    }
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu li::before {
    display: none;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: right 0.5s ease;
}

.nav-menu a:hover::before {
    right: 100%;
}

.nav-menu a i {
    font-size: 16px;
    color: var(--secondary-gold);
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.current {
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    transform: translateX(-8px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary-gold);
}

.nav-menu a:hover i,
.nav-menu a.current i {
    color: var(--primary-navy);
    transform: scale(1.2);
}

/* Main Content Area */
.main-content {
    margin-right: 0;
    min-height: 100vh;
    width: 100%;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
}

.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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f, var(--secondary-gold));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-tertiary:hover {
    background: var(--secondary-gold);
    color: var(--primary-navy);
    border-color: var(--secondary-gold);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(-3px);
}

/* Button Variants */
.btn-large {
    padding: 22px 45px;
    font-size: 18px;
    min-width: 200px;
}

.btn-small {
    padding: 12px 25px;
    font-size: 14px;
    min-width: 120px;
}

/* ========================================
   UNIFIED BUTTON CLASSES
   ======================================== */

/* Service Button - Uses primary styling */
.service-btn,
.about-btn,
.read-more-link,
.popular-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    
    /* Primary button styling */
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
}

.service-btn::before,
.about-btn::before,
.read-more-link::before,
.popular-links a::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.6s ease;
}

.service-btn:hover::before,
.about-btn:hover::before,
.read-more-link:hover::before,
.popular-links a:hover::before {
    left: 100%;
}

.service-btn:hover,
.about-btn:hover,
.read-more-link:hover,
.popular-links a:hover {
    background: linear-gradient(135deg, #f4d03f, var(--secondary-gold));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

.service-btn i,
.about-btn i,
.read-more-link i,
.popular-links a i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.service-btn:hover i,
.about-btn:hover i,
.read-more-link:hover i,
.popular-links a:hover i {
    transform: translateX(-3px);
}

/* Small Button Variant */
.popular-links a {
    padding: 8px 15px;
    font-size: 14px;
    min-width: 120px;
}

/* Enhanced Services Section */
.services-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1.5" fill="%23d4af37" opacity="0.1"><animate attributeName="cy" values="10;90;10" dur="10s" repeatCount="indefinite"/></circle><circle cx="90" cy="90" r="1" fill="%231a2332" opacity="0.05"><animate attributeName="cx" values="90;10;90" dur="15s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 20s infinite linear;
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-gold), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--secondary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-navy);
}

.service-title {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: bold;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer Logo Styles */
.footer-logo .logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-navy), #34495e);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(26, 35, 50, 0.4), 0 0 40px rgba(26, 35, 50, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    transition: all 0.3s ease;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo .logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(26, 35, 50, 0.6), 0 0 60px rgba(26, 35, 50, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-logo .logo-icon:hover .footer-logo-img {
    filter: brightness(1.3);
}


/* Enhanced Why Choose Us Section */
.why-choose-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}


.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="%23d4af37" opacity="0.1"><animate attributeName="cy" values="10;90;10" dur="8s" repeatCount="indefinite"/></circle><circle cx="90" cy="90" r="1.5" fill="%231a2332" opacity="0.05"><animate attributeName="cx" values="90;10;90" dur="12s" repeatCount="indefinite"/></circle><polygon points="50,20 60,40 40,40" fill="%23d4af37" opacity="0.08"><animateTransform attributeName="transform" type="rotate" values="0 50 30;360 50 30" dur="20s" repeatCount="indefinite"/></polygon></svg>') repeat;
    animation: float 25s infinite linear;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    background: var(--secondary-gold);
    color: var(--primary-navy);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    position: relative;
}

.feature-card {
    background: var(--white);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(26, 35, 50, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    border-color: var(--secondary-gold);
}

.feature-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.feature-card:hover .icon-bg {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.feature-icon i {
    font-size: 40px;
    color: var(--primary-navy);
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}

.icon-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.feature-content {
    position: relative;
    z-index: 2;
}

.feature-content h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.4s ease;
}

.feature-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-gold);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Enhanced CTA Section */
.cta-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c3e50 100%);
    overflow: hidden;
}


.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="%23d4af37" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="1" fill="%23d4af37" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="2s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 15s infinite linear;
}

.cta-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white) !important;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    line-height: 1.6;
}

.cta-icon {
    margin-bottom: 40px;
}

.cta-icon .icon-wrapper {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.cta-icon i {
    font-size: 48px;
    color: var(--primary-navy);
}

.icon-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: pulse-ring 3s infinite;
}

.ring-1 {
    width: 140px;
    height: 140px;
    top: -70px;
    left: -70px;
    animation-delay: 0s;
}

.ring-2 {
    width: 180px;
    height: 180px;
    top: -90px;
    left: -90px;
    animation-delay: 1s;
}

.ring-3 {
    width: 220px;
    height: 220px;
    top: -110px;
    left: -110px;
    animation-delay: 2s;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 16px;
}

.cta-feature i {
    color: var(--secondary-gold);
    font-size: 18px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}


.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.btn-glow:hover .btn-shine {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-gold);
    color: var(--secondary-gold);
    transform: translateY(-3px);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.trust-icon i {
    color: var(--secondary-gold);
    font-size: 20px;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-gold);
}

.trust-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes float {
    0% { transform: translateX(0px) translateY(0px); }
    50% { transform: translateX(-20px) translateY(-10px); }
    100% { transform: translateX(0px) translateY(0px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    .logo-section {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .site-title {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .site-tagline {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-content {
        margin-right: 0;
        width: 100%;
    }
    
    .site-footer {
        margin-right: 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Enhanced sections responsive */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .cta-trust {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 15px;
        padding: 15px;
        background: rgba(0,0,0,0.1);
        border-radius: 10px;
    }
    
    .navbar-nav .nav-link {
        margin: 3px 0;
        text-align: center;
        padding: 12px 20px !important;
        border-radius: 8px;
    }
    
    .navbar-brand .logo {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .navbar-brand .site-title {
        font-size: 16px;
    }
    
    .navbar-brand .site-tagline {
        font-size: 11px;
    }
}

/* ========================================
   UNIVERSAL HERO SECTION STYLES
   ========================================
   These styles apply to ALL hero sections:
   - .home-hero (index.php, front-page.php)
   - .services-hero
   - .consultation-hero  
   - .about-hero
   - .blog-hero
   - .contact-hero
   - .search-hero
   
   This prevents CSS duplication and ensures
   consistent styling across all pages.
   ======================================== */
.home-hero,
.services-hero,
.consultation-hero,
.about-hero,
.blog-hero,
.contact-hero,
.search-hero {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%) !important;
    color: #ffffff !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Universal Hero Content */
.hero-content,
.services-hero-content,
.consultation-hero-content,
.about-hero-content,
.blog-hero-content,
.contact-hero-content,
.search-hero-content {
    position: relative !important;
    z-index: 3 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Universal Hero Elements */
.hero-title {
    font-size: 3.5rem !important;
    font-weight: bold !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 40px !important;
    line-height: 1.6 !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

/* Universal Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="12" cy="18" r="0.6" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="4s" repeatCount="indefinite"/></circle><circle cx="88" cy="28" r="0.8" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="42" cy="78" r="0.5" fill="%23d4af37" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="5s" repeatCount="indefinite"/></circle><circle cx="72" cy="12" r="0.7" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.5s" repeatCount="indefinite"/></circle><circle cx="22" cy="68" r="0.6" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="4.5s" repeatCount="indefinite"/></circle><circle cx="92" cy="82" r="0.8" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="3.8s" repeatCount="indefinite"/></circle><circle cx="58" cy="38" r="0.5" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="4.2s" repeatCount="indefinite"/></circle><circle cx="32" cy="48" r="0.7" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="3.3s" repeatCount="indefinite"/></circle><circle cx="78" cy="58" r="0.6" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="4.7s" repeatCount="indefinite"/></circle><circle cx="8" cy="88" r="0.5" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;0.7;0.4" dur="3.9s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 25s infinite linear;
    z-index: 1;
}

/* Universal Stats/Features */
.hero-stats,
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-stat,
.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4af37;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.hero-feature i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 5px;
}

.hero-feature span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Universal Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-stats,
    .hero-features {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-feature i {
        font-size: 1.5rem;
    }
}

/* Universal Scroll Indicator */
.scroll-indicator {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: center !important;
    animation: bounce 2s infinite !important;
    cursor: pointer !important;
}

.scroll-indicator i {
    font-size: 1.5rem !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.scroll-indicator span {
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile scroll indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px !important;
    }
    
    /* Hero Features Mobile - for About Page */
    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-feature {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 200px;
        justify-content: center;
    }
    
    .hero-feature i {
        font-size: 16px;
    }
    
    /* CTA Section Mobile */
    .cta-content h2 {
        font-size: 2rem !important;
        color: var(--white) !important;
    }
    
    .cta-content p {
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ========================================
   HIDE SCROLLBARS FOR SPECIFIC PAGES
   ======================================== */

/* Target specific pages by template name */
body.page-template-page-services,
body.page-template-page-consultation, 
body.page-template-page-contact,
body.page-template-page-الخدمات-القانونية,
body.page-template-page-طلب-استشارة,
body.page-template-page-اتصل-بنا {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Hide all scrollbars on these pages */
body.page-template-page-services *,
body.page-template-page-consultation *,
body.page-template-page-contact *,
body.page-template-page-الخدمات-القانونية *,
body.page-template-page-طلب-استشارة *,
body.page-template-page-اتصل-بنا * {
    overflow-x: hidden !important;
}

/* Webkit browsers (Chrome, Safari, Edge) */
body.page-template-page-services *::-webkit-scrollbar,
body.page-template-page-consultation *::-webkit-scrollbar,
body.page-template-page-contact *::-webkit-scrollbar,
body.page-template-page-الخدمات-القانونية *::-webkit-scrollbar,
body.page-template-page-طلب-استشارة *::-webkit-scrollbar,
body.page-template-page-اتصل-بنا *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Firefox */
body.page-template-page-services,
body.page-template-page-consultation,
body.page-template-page-contact,
body.page-template-page-الخدمات-القانونية,
body.page-template-page-طلب-استشارة,
body.page-template-page-اتصل-بنا {
    scrollbar-width: none !important;
}

/* IE and Edge legacy */
body.page-template-page-services,
body.page-template-page-consultation,
body.page-template-page-contact,
body.page-template-page-الخدمات-القانونية,
body.page-template-page-طلب-استشارة,
body.page-template-page-اتصل-بنا {
    -ms-overflow-style: none !important;
}

/* Additional container fixes */
.services-page .container,
.consultation-page .container,
.contact-page .container {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Force hide all scrollbars globally on these pages */
body.page-template-page-services,
body.page-template-page-consultation,
body.page-template-page-contact,
body.page-template-page-الخدمات-القانونية,
body.page-template-page-طلب-استشارة,
body.page-template-page-اتصل-بنا {
    overflow: hidden auto !important; /* Allow vertical scroll, hide horizontal */
}


/* ========================================
   ABOUT PAGE SPECIFIC STYLES - UNIFIED DESIGN
   ======================================== */

/* About Detailed Section */
.about-detailed {
    padding: 100px 0;
}

.about-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-detailed-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-detailed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, rgba(26, 35, 50, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-detailed-card:hover::before {
    opacity: 1;
}

.about-detailed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.15);
    border-color: var(--secondary-gold);
}

.about-detailed-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-navy);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.about-detailed-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.about-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 2;
}

.about-features li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-right: 25px;
    line-height: 1.5;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 8px;
    color: var(--secondary-gold);
    font-weight: bold;
    font-size: 14px;
}




.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Map Links Global Styling */
.map-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.map-link:hover {
    color: var(--secondary-gold);
    text-decoration: none;
}

.map-link i {
    font-size: 0.9em;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.map-link:hover i {
    opacity: 1;
    transform: translateX(-2px);
}

/* ========================================
   UNIFIED HERO SECTIONS
   ======================================== */

/* Base Hero Styles - Used by all hero sections */
.hero-section,
.page-hero,
.contact-hero,
.consultation-hero,
.search-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c3e50 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero Typography */
.hero-section h1,
.page-hero h1,
.contact-hero h1,
.consultation-hero h1,
.search-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p,
.page-hero p,
.contact-hero p,
.consultation-hero p,
.search-hero p {
    font-size: 20px;
    color: var(--light-gold);
}

/* Hero Particles Animation */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="18" cy="22" r="0.6" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="4.2s" repeatCount="indefinite"/></circle><circle cx="82" cy="15" r="0.8" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="3.2s" repeatCount="indefinite"/></circle><circle cx="48" cy="85" r="0.5" fill="%23d4af37" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="5.2s" repeatCount="indefinite"/></circle><circle cx="12" cy="75" r="0.7" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;0.7;0.4" dur="3.7s" repeatCount="indefinite"/></circle><circle cx="65" cy="35" r="0.6" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.9;0.3" dur="4.5s" repeatCount="indefinite"/></circle><circle cx="35" cy="55" r="0.5" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3.8s" repeatCount="indefinite"/></circle><circle cx="88" cy="65" r="0.7" fill="%23d4af37" opacity="0.3"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="4.1s" repeatCount="indefinite"/></circle><circle cx="25" cy="45" r="0.6" fill="%23d4af37" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="3.4s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 22s infinite linear;
    z-index: 1;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 35%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 75% 65%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
                rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ========================================
   UNIFIED FORM STYLES
   ======================================== */

/* Base Form Styles - Used by all forms */
.form-container,
.contact-form,
.consultation-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-container h2,
.contact-form-section h2,
.contact-info-section h2 {
    color: var(--primary-navy);
    font-size: 28px;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-navy);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Submit Buttons - Using Enhanced Button Style */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    margin: 0 auto;
    
    /* Primary button styling */
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
}

.submit-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.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #f4d03f, var(--secondary-gold));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

.submit-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(-3px);
}

.page-hero-content {
    position: relative;
    z-index: 3;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-gold);
    color: var(--primary-navy);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-navy);
    color: var(--secondary-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(26, 35, 50, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stats-section .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.stats-section .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-gold);
    margin-bottom: 5px;
    display: block;
}

.stats-section .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    display: block;
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-member {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-gold);
}

.member-photo {
    width: 120px;
    height: 120px;
    background: var(--secondary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-navy);
    margin: 0 auto 20px;
}

.team-member h3 {
    font-size: 22px;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.member-title {
    color: var(--secondary-gold);
    font-weight: bold;
    margin-bottom: 15px;
}

.member-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* About Page Responsive - Unified Design */
@media (max-width: 768px) {
    /* About Detailed Section Mobile */
    .about-detailed {
        padding: 60px 0;
    }
    
    .about-detailed-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .about-detailed-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .about-detailed-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .about-detailed-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .about-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .about-features li {
        font-size: 14px;
        padding: 6px 0;
        padding-right: 20px;
    }
    
    .about-features li::before {
        font-size: 12px;
    }
    
    /* Stats Section Mobile */
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stats-section .stat-item {
        min-width: 100px;
        padding: 15px 10px;
    }
    
    .stats-section .stat-number {
        font-size: 1.5rem;
    }
    
    .stats-section .stat-label {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 0 10px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 14px;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 480px) {
    .about-detailed {
        padding: 40px 0;
    }
    
    .about-detailed-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .about-detailed-card h3 {
        font-size: 1.2rem;
    }
    
    .about-detailed-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 16px;
    }
}

/* ========================================
   PAGE-SPECIFIC STYLES (تم نقلها من pages.css)
   ========================================
   تم توحيد جميع التنسيقات في ملف واحد لتحسين الأداء:
   - حذف التكرار في الأكواد
   - تقليل عدد طلبات HTTP
   - استخدام CSS Variables الموحدة
   - تنظيم أفضل للكود
   ======================================== */

/* Services Page Styles */
.services-detailed {
    padding: 80px 0;
    overflow: hidden;
}

.service-detailed-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary-gold);
    transition: all 0.3s ease;
    max-width: 100%;
}


.service-detailed-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-navy);
    margin-bottom: 25px;
}

.service-detailed-card h3 {
    font-size: 24px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: bold;
}

.service-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    color: #333;
    position: relative;
    padding-right: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--secondary-gold);
    font-weight: bold;
}


/* Process Section */
.process-section {
    background: #f8f9fa;
    padding: 80px 0;
    overflow: hidden;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 100%;
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Page Specific Styles */
.hero-contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    
    /* Secondary button styling */
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.contact-method::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.6s ease;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.contact-method i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-method:hover i {
    transform: translateX(-3px);
}

.contact-method span {
    font-weight: 600;
}

.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Contact Information */

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-content h3 {
    color: var(--primary-navy);
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-info-content p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-wrapper {
    position: relative;
    background: var(--white);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 15px;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    
    /* Secondary button styling */
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.map-link-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.6s ease;
}

.map-link-btn:hover::before {
    left: 100%;
}

.map-link-btn:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.map-link-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.map-link-btn:hover i {
    transform: translateX(-3px);
}

/* Map Links Styling */
.map-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.map-link:hover {
    color: var(--secondary-gold);
    text-decoration: none;
}

.map-link i {
    font-size: 0.9em;
    opacity: 0.7;
}

.map-placeholder {
    height: 400px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    color: var(--text-gray);
    text-align: center;
}

.map-placeholder i {
    font-size: 48px;
    color: var(--secondary-gold);
    margin-bottom: 15px;
}

.map-placeholder p {
    font-size: 18px;
    margin-bottom: 5px;
}

/* Emergency Section */
.emergency-section {
    background: var(--primary-navy);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.emergency-content {
    max-width: 600px;
    margin: 0 auto;
}

.emergency-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-navy);
    margin: 0 auto 20px;
}

.emergency-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--secondary-gold);
}

.emergency-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--light-gray);
}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    
    /* Primary button styling */
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
}

.emergency-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.6s ease;
}

.emergency-btn:hover::before {
    left: 100%;
}

.emergency-btn:hover {
    background: linear-gradient(135deg, #f4d03f, var(--secondary-gold));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

.emergency-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.emergency-btn:hover i {
    transform: translateX(-3px);
}

/* ========================================
   CONSULTATION PAGE STYLES
   ======================================== */

/* Consultation Page Specific Styles */
.consultation-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Consultation form uses unified form styles */
.consultation-form .form-group input,
.consultation-form .form-group select,
.consultation-form .form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
}

/* Consultation specific form focus styles */
.consultation-form .form-group input:focus,
.consultation-form .form-group select:focus,
.consultation-form .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Consultation Info */
.consultation-info {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
}

.consultation-info h3 {
    color: var(--primary-navy);
    font-size: 24px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-gold);
    color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--primary-navy);
    margin-bottom: 5px;
    font-size: 16px;
}

.info-content p {
    color: var(--text-gray);
    margin: 0;
    font-size: 14px;
}

.consultation-benefits {
    margin-top: 30px;
}

.consultation-benefits h4 {
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.consultation-benefits ul {
    list-style: none;
    padding: 0;
}

.consultation-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.consultation-benefits li i {
    color: var(--secondary-gold);
    font-size: 14px;
}

/* Emergency Contact */
.emergency-contact {
    background: var(--primary-navy);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.emergency-contact h4 {
    color: var(--secondary-gold);
    margin-bottom: 10px;
}

.emergency-contact p {
    margin-bottom: 15px;
    font-size: 14px;
}

.emergency-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    
    /* Primary button styling */
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
}

.emergency-phone::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.6s ease;
}

.emergency-phone:hover::before {
    left: 100%;
}

.emergency-phone:hover {
    background: linear-gradient(135deg, #f4d03f, var(--secondary-gold));
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

.emergency-phone i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.emergency-phone:hover i {
    transform: translateX(-3px);
}

/* ========================================
   RESPONSIVE DESIGN FOR CONTACT & CONSULTATION
   ======================================== */

/* Contact Page Specific Mobile Styles */
@media (max-width: 768px) {
    .hero-contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .consultation-info {
        order: -1;
    }
}

/* ========================================
   SEARCH PAGE STYLES
   ======================================== */

/* Search Page Specific Styles */
.search-hero p {
    max-width: 600px;
    margin: 0 auto;
}

.search-results {
    padding: 80px 0;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Search Results List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-result-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-gold);
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.search-result-image {
    flex-shrink: 0;
    width: 150px;
}

.search-result-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-content {
    flex: 1;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-gray);
}

.post-type {
    background: var(--secondary-gold);
    color: var(--primary-navy);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.search-result-item h2 {
    margin-bottom: 12px;
}

.search-result-item h2 a {
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.search-result-item h2 a:hover {
    color: var(--secondary-gold);
}

.search-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-navy);
    margin: 0 auto 20px;
}

.no-results h3 {
    color: var(--primary-navy);
    font-size: 24px;
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions,
.popular-content {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: right;
}

.search-suggestions h4,
.popular-content h4 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 16px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 5px 0;
    color: var(--text-gray);
    position: relative;
    padding-right: 20px;
}

.search-suggestions li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--secondary-gold);
}

.popular-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Search Sidebar */
.search-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--secondary-gold);
}

.sidebar-widget h3 {
    color: var(--primary-navy);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 100px;
    
    /* Primary button styling */
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
}

.search-form button::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.6s ease;
}

.search-form button:hover::before {
    left: 100%;
}

.search-form button:hover {
    background: linear-gradient(135deg, #f4d03f, var(--secondary-gold));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Popular Posts */
.popular-post-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item h4 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.popular-post-item a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-item a:hover {
    color: var(--secondary-gold);
}

.popular-post-item .post-date {
    color: var(--text-gray);
    font-size: 12px;
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: var(--secondary-gold);
}

.categories-list span {
    color: var(--text-gray);
    font-size: 12px;
}

/* Pagination */
.search-pagination {
    text-align: center;
    margin-top: 50px;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 50px;
    
    /* Secondary button styling */
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-navy);
    border: 2px solid var(--secondary-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.search-pagination .page-numbers::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.6s ease;
}

.search-pagination .page-numbers:hover::before {
    left: 100%;
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: transparent;
}

/* Search Page Specific Mobile Styles */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .search-result-image {
        width: 100%;
    }
    
    .search-result-image img {
        height: 200px;
    }
    
    .popular-links {
        justify-content: flex-start;
    }
}

/* ========================================
   SINGLE POST PAGE STYLES
   ======================================== */

.single-post-content {
    padding: 100px 0;
    min-height: 60vh;
}

.single-article {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--secondary-gold);
}

.post-title {
    font-size: 36px;
    color: var(--primary-navy);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: 14px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: var(--secondary-gold);
}

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

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-content {
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--primary-navy);
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-right: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-tags {
    padding: 20px 0;
    border-top: 1px solid #eee;
    color: var(--text-gray);
}

.post-tags a {
    color: var(--secondary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-tags a:hover {
    color: var(--primary-navy);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: var(--primary-navy);
    text-decoration: none;
    padding: 15px 20px;
    border: 2px solid var(--secondary-gold);
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 45%;
}

.post-navigation a:hover {
    background: var(--secondary-gold);
    color: var(--primary-navy);
}

.nav-previous {
    text-align: right;
}

.nav-next {
    text-align: left;
}

/* Single Post Specific Mobile Styles */
@media (max-width: 768px) {
    .single-post-content {
        padding: 60px 0;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .post-navigation a {
        max-width: 100%;
        text-align: center;
    }
}

/* ========================================
   PAGE TEMPLATE STYLES
   ======================================== */

.page-content {
    padding: 100px 0;
    min-height: 60vh;
}

.page-article {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--secondary-gold);
}

.page-title {
    font-size: 36px;
    color: var(--primary-navy);
    margin-bottom: 0;
}

.page-content-area {
    line-height: 1.8;
    color: var(--dark-gray);
}

.page-content-area h2,
.page-content-area h3,
.page-content-area h4 {
    color: var(--primary-navy);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content-area p {
    margin-bottom: 20px;
}

.page-content-area ul,
.page-content-area ol {
    margin-bottom: 20px;
    padding-right: 30px;
}

.page-content-area li {
    margin-bottom: 10px;
}

/* Page Template Responsive Design */
@media (max-width: 768px) {
    .page-content {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    /* Unified Hero Responsive */
    .hero-section,
    .page-hero,
    .contact-hero,
    .consultation-hero,
    .search-hero {
        padding: 80px 0 60px;
    }
    
    .hero-section h1,
    .page-hero h1,
    .contact-hero h1,
    .consultation-hero h1,
    .search-hero h1 {
        font-size: 32px;
    }
    
    /* Unified Form Responsive */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-container,
    .contact-form,
    .consultation-form {
        padding: 25px;
    }
    
    /* Unified Grid Responsive */
    .contact-grid,
    .consultation-grid,
    .search-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
