/*
Theme Name: Apex Theme
Theme URI: https://example.com/apex-theme
Author: Jules Engineer
Author URI: https://example.com
Description: A modern, fully-featured, responsive, Elementor-ready WordPress theme with built-in Customizer theme options, hero sliders, and multi-language support (English and Arabic RTL).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apex-theme
Tags: elementor-support, custom-menu, custom-logo, featured-images, translation-ready, rtl-language-support, theme-options, front-page-post-grid

Apex Theme WordPress Theme, (C) 2026 Jules Engineer
*/

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0066cc;
    --primary-hover: #004999;
    --secondary-color: #222222;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Cairo, Tahoma, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Cairo, Tahoma, sans-serif;
    --container-max: 1200px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    direction: ltr;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--secondary-color);
}

.site-description {
    font-size: 0.875rem;
    color: #666;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.main-navigation a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.08);
}

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

.language-switcher-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.language-switcher-menu a {
    font-size: 0.875rem;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 600;
}

.language-switcher-menu .active a {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Hero Slider Section */
.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--dark-bg);
    color: var(--white);
}

.hero-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: var(--white);
    padding: 40px 20px;
}

.hero-slide-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-slide-subtitle {
    font-size: 1.25rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255,255,255,0.8);
    color: var(--secondary-color);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 6px;
}

/* Page / Section Styles */
.site-content {
    padding: 50px 0;
}

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

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Sidebar & Layout */
.content-area-wrap {
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 1;
}

.sidebar-area {
    width: 320px;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: #a0aec0;
    padding: 60px 0 20px;
}

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

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.site-info {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
    font-size: 0.875rem;
}

/* Elementor Compatibility */
.elementor-template-fullwidth .site-content {
    padding: 0;
}

.elementor-template-fullwidth .container {
    max-width: 100%;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-area-wrap {
        flex-direction: column;
    }
    
    .sidebar-area {
        width: 100%;
    }
    
    .hero-slide-title {
        font-size: 2rem;
    }
}
