/*
Theme Name: SMO Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Custom RTL Arabic WordPress theme for SMO Integrated Solutions
Version: 1.0
Text Domain: smo-theme
*/

:root {
    --primary-blue: #002366;
    --secondary-blue: #001845;
    --accent-gold: #D4AF37;
    --light-gold: #f9e5b3;
    --soft-white: #f8faff;
    --dark-text: #333;
    --light-text: #666;
    --gradient-blue: linear-gradient(135deg, #002366, #001845);
    --gradient-gold: linear-gradient(135deg, #D4AF37, #f5d06c);
    --box-shadow: 0 15px 40px rgba(0,35,102,0.12);
    --border-radius-lg: 30px;
    --border-radius-md: 20px;
    --border-radius-sm: 15px;
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
    overflow-x: hidden;
}

body {
    font-family: 'Almarai', 'Cairo', sans-serif;
    background-color: var(--soft-white);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--soft-white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.preloader-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.preloader-word {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    color: var(--accent-gold);
}

.preloader-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: preloaderFadeIn 0.5s forwards;
    color: var(--accent-gold);
}

.preloader-word span:nth-child(1) { animation-delay: 0.2s; }
.preloader-word span:nth-child(2) { animation-delay: 0.5s; }
.preloader-word span:nth-child(3) { animation-delay: 0.8s; color: var(--primary-blue); }
.preloader-word span:nth-child(4) { animation-delay: 1.1s; }
.preloader-word span:nth-child(5) { animation-delay: 1.4s; }
.preloader-word span:nth-child(6) { animation-delay: 1.7s; color: var(--primary-blue); }
.preloader-word span:nth-child(7) { animation-delay: 2s; }
.preloader-word span:nth-child(8) { animation-delay: 2.3s; }
.preloader-word span:nth-child(9) { animation-delay: 2.6s; }
.preloader-word span:nth-child(10) { animation-delay: 2.9s; color: var(--primary-blue); }

@keyframes preloaderFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-progress {
    width: min(300px, 80%);
    height: 4px;
    background: rgba(0,35,102,0.1);
    border-radius: 4px;
    margin: 40px auto 20px;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold), var(--primary-blue));
    background-size: 200% 100%;
    animation: progressMove 2s linear infinite, progressWidth 7s linear forwards;
}

@keyframes progressMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@keyframes progressWidth {
    0% { width: 0%; }
    100% { width: 100%; }
}

.preloader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--light-text);
    letter-spacing: 2px;
}

/* ===== BACKGROUND ===== */
.pattern-bg {
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%23002366" stroke-width="1.5"/><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="%23D4AF37" stroke-width="1"/><circle cx="50" cy="50" r="15" fill="none" stroke="%23002366" stroke-width="1.5"/></svg>');
    background-size: 100px 100px;
    z-index: 1;
    opacity: 0.1;
    animation: patternMove 60s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.slideshow-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideshow 32s linear infinite;
}

.slide1 { animation-delay: 0s; }
.slide2 { animation-delay: 4s; }
.slide3 { animation-delay: 8s; }
.slide4 { animation-delay: 12s; }
.slide5 { animation-delay: 16s; }
.slide6 { animation-delay: 20s; }
.slide7 { animation-delay: 24s; }
.slide8 { animation-delay: 28s; }

@keyframes slideshow {
    0% { opacity: 0; }
    5% { opacity: 0.5; }
    12% { opacity: 0.5; }
    17% { opacity: 0; }
    100% { opacity: 0; }
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.60);
    z-index: 2;
    pointer-events: none;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold), var(--primary-blue));
    background-size: 200% 100%;
    animation: loading 2s linear infinite;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
}

@keyframes loading {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 5px 30px rgba(0,35,102,0.1);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: var(--transition);
}

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

.logo-text-ar {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
}

.logo-text-ar span {
    color: var(--accent-gold);
}

.logo-text-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--light-text);
    letter-spacing: 2px;
}

/* Desktop Navigation */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-item {
    position: relative;
}

.nav-link,
.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1.1rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.nav-link::before,
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before,
.nav-menu a:hover::before,
.current-menu-item > a::before,
.current_page_item > a::before {
    width: 70%;
}

.nav-link:hover,
.nav-link.active,
.nav-menu a:hover,
.current-menu-item > a,
.current_page_item > a {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.nav-link:hover i,
.nav-link.active i {
    transform: translateY(-2px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-btn {
    padding: 10px 25px;
    background: var(--gradient-blue);
    color: #fff;
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    white-space: nowrap;
}

.contact-btn i {
    font-size: 1rem;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212,175,55,0.3);
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    line-height: 1;
    flex-shrink: 0;
    z-index: 1002;
}

.mobile-menu-btn:hover {
    color: var(--accent-gold);
}

.mobile-nav {
    display: none;
    width: 100%;
    background: #fff;
    padding: 0;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, border-top 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-nav.active {
    max-height: 600px;
    padding: 15px 20px 20px;
    border-top: 2px solid var(--accent-gold);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 18px;
    background: rgba(0,35,102,0.03);
    transition: var(--transition);
}

.mobile-nav-link i {
    width: 25px;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--gradient-blue);
    color: #fff;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: #fff;
}

/* ===== MAIN CONTENT ===== */
.site-main {
    position: relative;
    z-index: 3;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px 10px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    margin: 40px 0 60px;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    width: clamp(120px, 15vw, 180px);
    height: clamp(120px, 15vw, 180px);
    object-fit: contain;
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title-ar {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-title-ar span {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.hero-title-ar span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0.18;
    border-radius: 50%;
}

/* ===== TAGLINE ===== */
.tagline-wrapper {
    margin: 60px 0;
}

.animated-tagline {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--accent-gold);
    text-align: center;
    line-height: 1.4;
}

.animated-tagline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    margin: 0 5px;
    color: var(--accent-gold);
}

.animated-tagline .word:nth-child(1) { animation-delay: 0.2s; }
.animated-tagline .word:nth-child(2) { animation-delay: 0.5s; }
.animated-tagline .word:nth-child(3) { animation-delay: 0.8s; color: var(--primary-blue); }
.animated-tagline .word:nth-child(4) { animation-delay: 1.1s; }
.animated-tagline .word:nth-child(5) { animation-delay: 1.4s; }
.animated-tagline .word:nth-child(6) { animation-delay: 1.7s; color: var(--primary-blue); }
.animated-tagline .word:nth-child(7) { animation-delay: 2s; }
.animated-tagline .word:nth-child(8) { animation-delay: 2.3s; }
.animated-tagline .word:nth-child(9) { animation-delay: 2.6s; }
.animated-tagline .word:nth-child(10) { animation-delay: 2.9s; color: var(--primary-blue); }

.tagline-en {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--light-text);
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1.5s 3.8s forwards;
    text-align: center;
}

.tagline-en span {
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
}

.tagline-en span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== SECTIONS ===== */
.services-grid,
.features-grid-modern,
.detailed-services-grid,
.vision-mission-grid,
.goals-grid {
    display: grid;
    gap: 30px;
    margin: 50px 0 30px;
}

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

.features-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.detailed-services-grid,
.vision-mission-grid,
.goals-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section-title-wrapper {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-blue);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title span {
    color: var(--accent-gold);
}

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

/* ===== CARDS ===== */
.service-card-modern,
.feature-card-modern,
.detailed-service-card,
.vision-card,
.mission-card,
.about-card-modern,
.goal-item,
.page-content {
    background: #fff;
    box-shadow: var(--box-shadow);
}

.service-card-modern,
.detailed-service-card,
.vision-card,
.mission-card,
.about-card-modern {
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(212,175,55,0.2);
}

.service-card-modern,
.detailed-service-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover,
.detailed-service-card:hover,
.vision-card:hover,
.mission-card:hover,
.feature-card-modern:hover {
    transform: translateY(-10px);
}

.service-card-modern:hover {
    box-shadow: 0 30px 50px rgba(0,35,102,0.2);
}

.detailed-service-card:hover,
.vision-card:hover,
.mission-card:hover,
.feature-card-modern:hover {
    border-color: var(--accent-gold);
}

.feature-card-modern {
    padding: 35px 25px;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid rgba(212,175,55,0.1);
    transition: var(--transition);
}

.vision-card,
.mission-card {
    padding: clamp(30px, 4vw, 50px);
    text-align: center;
    transition: var(--transition);
}

.about-card-modern {
    padding: clamp(30px, 5vw, 60px);
    margin: 60px 0 30px;
}

.page-content {
    background: rgba(255,255,255,0.92);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0 20px;
}

.goals-section {
    margin: 60px 0 30px;
    padding: clamp(30px, 5vw, 50px);
    background: linear-gradient(135deg, rgba(0,35,102,0.02), rgba(212,175,55,0.02));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(212,175,55,0.2);
}

.goal-item {
    padding: 25px;
    border-radius: var(--border-radius-sm);
    border-right: none;
    border-top: 5px solid var(--accent-gold);
    text-align: center;
    transition: var(--transition);
}

.goal-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.15);
}

.goal-item strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.about-text-modern,
.detailed-service-desc,
.vision-card p,
.mission-card p {
    color: #555;
    line-height: 1.8;
}

.about-text-modern {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.detailed-service-title,
.vision-card h3,
.mission-card h3,
.feature-title-modern {
    color: var(--primary-blue);
    font-weight: 800;
}

.detailed-service-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 5px;
    text-align: center;
}

.detailed-service-title.etaman,
.card-title.etaman { color: #4A90E2; }

.detailed-service-title.absher,
.card-title.absher { color: #FF6D00; }

.detailed-service-title.nagata,
.card-title.nagata { color: #FFD700; }

.detailed-service-subtitle {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,35,102,0.1);
    text-align: center;
}

.detailed-service-desc strong {
    color: var(--primary-blue);
}

.card-icon,
.detailed-service-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.detailed-service-icon {
    width: 100px;
    height: 100px;
}

.card-icon img,
.detailed-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-icon img {
    filter: drop-shadow(0 10px 15px rgba(0,35,102,0.2));
}

.service-card-modern:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.card-slogan {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,35,102,0.1);
}

.card-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.card-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-card-modern.etaman .card-btn {
    color: #4A90E2;
    border-color: #4A90E2;
}

.service-card-modern.absher .card-btn {
    color: #FF6D00;
    border-color: #FF6D00;
}

.service-card-modern.nagata .card-btn {
    color: #FFD700;
    border-color: #FFD700;
}

.service-card-modern.etaman:hover .card-btn {
    background: #4A90E2;
    color: #fff;
}

.service-card-modern.absher:hover .card-btn {
    background: #FF6D00;
    color: #fff;
}

.service-card-modern.nagata:hover .card-btn {
    background: #FFD700;
    color: var(--primary-blue);
}

.feature-icon-modern,
.vision-icon,
.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.vision-icon,
.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: rotateY(180deg);
    background: var(--accent-gold);
    color: var(--primary-blue);
}

/* ===== CONTACT SECTION ===== */
.contact-section-modern {
    margin: 80px 0 30px;
    padding: clamp(40px, 8vw, 80px);
    background: var(--gradient-blue);
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: contactShimmer 6s infinite;
}

@keyframes contactShimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.contact-section-modern h2,
.contact-section-modern p,
.contact-btn-modern {
    position: relative;
    z-index: 1;
}

.contact-section-modern h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.contact-section-modern p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn-modern {
    display: inline-block;
    padding: 15px 50px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.2rem);
    border: 2px solid #fff;
    transition: var(--transition);
}

.contact-btn-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(212,175,55,0.4);
    color: var(--primary-blue);
}

/* ===== FOOTER ===== */
.footer-modern {
    margin-top: 0 !important;
    padding: 8px 0 4px !important;
    border-top: 2px solid rgba(212,175,55,0.3);
    text-align: center;
}

.footer-content {
    margin-bottom: 0 !important;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.social-links-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link-modern {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0,35,102,0.1);
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid var(--accent-gold);
}

.social-link-modern:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.copyright {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0 !important;
    padding: 0 !important;
}

.copyright p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* ===== CONTACT FORM ===== */
.smo-contact-form .form-row {
    text-align: right;
    margin-bottom: 20px;
}

.smo-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: right;
}

.smo-contact-form input,
.smo-contact-form textarea,
.smo-contact-form select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-family: 'Almarai', 'Cairo', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
}

.smo-contact-form input,
.smo-contact-form textarea {
    padding: 14px 16px;
    text-align: right;
    direction: rtl;
    line-height: 1.6;
}

.select-wrap {
    position: relative;
    width: 100%;
    overflow: visible !important;
}

.select-wrap::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    pointer-events: none;
    z-index: 2;
    font-size: 14px;
}

.smo-contact-form select {
    height: 56px;
    padding: 0 16px 0 46px;
    background-color: #fff;
    cursor: pointer;
    direction: ltr;
    text-align: right;
    text-align-last: right;
    line-height: normal;
    text-indent: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
}

.smo-contact-form select option {
    direction: rtl;
    text-align: right;
    background: #fff;
    color: #333;
}

.smo-contact-form input:focus,
.smo-contact-form textarea:focus,
.smo-contact-form select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
    outline: none;
}

.contact-page-template,
.contact-page-template .about-card-modern,
.contact-page-template .page-content,
.contact-page-template .form-row,
.contact-page-template .select-wrap,
.contact-page-template .smo-contact-form {
    overflow: visible !important;
}

.contact-page-template .smo-contact-form {
    position: relative;
    z-index: 5;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .header-container {
        padding: 15px 20px;
    }

    .nav-link,
    .nav-menu a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .contact-btn {
        padding: 8px 20px;
    }
}

@media screen and (max-width: 968px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .site-header {
        overflow: visible;
    }

    .header-container {
        gap: 10px;
        padding: 12px 15px;
        flex-wrap: nowrap;
        align-items: center;
    }

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

    .logo-image {
        width: 120px;
        height: 120px;
    }

    .logo-text-ar {
        font-size: 1rem;
    }

    .logo-text-en {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .contact-btn span {
        display: none;
    }

    .contact-btn i {
        margin: 0;
    }

    .contact-btn {
        padding: 9px 12px;
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        padding: 30px 20px 10px;
    }

    .hero-section {
        margin: 20px 0 40px;
    }

    .services-grid,
    .features-grid-modern,
    .detailed-services-grid,
    .vision-mission-grid,
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detailed-service-card,
    .vision-card,
    .mission-card,
    .goal-item {
        text-align: center;
    }

    .detailed-service-icon,
    .vision-icon,
    .mission-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .logo-text-ar {
        font-size: 0.9rem;
    }

    .logo-text-en {
        font-size: 0.55rem;
    }

    .logo-image {
        width: 100px;
        height: 100px;
    }

    .header-container {
        padding: 10px 12px;
        gap: 8px;
    }

    .mobile-nav-link {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .hero-logo img {
        width: 100px;
        height: 100px;
    }

    .service-card-modern,
    .detailed-service-card {
        padding: 30px 20px;
    }

    .goal-item {
        padding: 20px;
    }

    .page-content {
        padding: 25px 18px;
    }
}

@media print {
    .sticky-header,
    .preloader,
    .loading-bar,
    .slideshow-background,
    .pattern-bg,
    .contact-btn,
    .card-btn,
    .social-links-modern,
    .mobile-menu-btn,
    .mobile-nav {
        display: none !important;
    }
}
