/*
Theme Name: مؤسسة مرداس الدوسري
Theme URI: https://mardas-dosari.sa
Author: Mardas Al-Dosari
Author URI: https://mardas-dosari.sa
Description: قالب مؤسسة مرداس الدوسري للخدمات اللوجستية - متخصص في التخليص الجمركي والنقل والتخزين والتفريغ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mardas-theme
*/

/* === Global Variables === */
:root {
    --primary-color: #1e3a5f;
    --primary-dark: #0f2440;
    --primary-light: #2c5282;
    --secondary-color: #2980b9;
    --accent-color: #d4af37;
    --accent-dark: #b8971f;
    --text-dark: #1a1a2e;
    --text-light: #6c6c8a;
    --bg-light: #f0f4f8;
    --bg-gradient: linear-gradient(135deg, #1e3a5f 0%, #0f2440 100%);
    --blue-gradient: linear-gradient(135deg, #2980b9 0%, #1e3a5f 100%);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b8971f 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: #fff;
    direction: rtl;
    text-align: right;
}

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

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

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--bg-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.logo-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--accent-color);
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
}

/* === Navigation === */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-cta {
    background: var(--bg-gradient) !important;
    color: #fff !important;
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 250px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    padding: 10px;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-menu li a i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* === Hero Section === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f2440 0%, #1e3a5f 50%, #2c5282 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,218.7C672,203,768,149,864,128C960,107,1056,117,1152,138.7C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-section h1 span {
    color: var(--accent-color);
}

.hero-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

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

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

/* === Section Styles === */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--bg-gradient);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: 0.03;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    gap: 15px;
    color: var(--secondary-color);
}

/* === Features Section === */
.features-section {
    background: var(--bg-light);
}

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

.feature-item {
    background: #fff;
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--bg-gradient);
    color: #fff;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* === Process Section === */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* === CTA Section === */
.cta-section {
    background: var(--bg-gradient);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(41, 128, 185, 0.2) 0%, transparent 50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* === Contact Section === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    background: var(--bg-gradient);
    color: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info-card h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-text h5 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.contact-item-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-form {
    background: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

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

/* === Footer === */
.site-footer {
    background: #0f1a2e;
    color: #fff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo-text {
    color: #fff;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* === Page Header === */
.page-header {
    background: var(--bg-gradient);
    padding: 150px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></svg>');
}

.page-header h1 {
    color: #fff;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb span {
    color: var(--accent-color);
}

/* === Blog Styles === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 220px;
    background: var(--bg-light);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
}

.read-more:hover {
    gap: 15px;
    color: var(--secondary-color);
}

/* === Service Page Styles === */
.service-page-content {
    padding: 80px 0;
}

.service-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-page-grid.reversed {
    direction: ltr;
}

.service-page-grid.reversed .service-text {
    direction: rtl;
    text-align: right;
}

.service-text h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.service-text p {
    line-height: 2;
}

.service-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 350px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 5rem;
}

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

.sub-service-item {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-right: 4px solid var(--primary-color);
}

.sub-service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sub-service-item .icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.sub-service-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.sub-service-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    transition: var(--transition);
    color: var(--primary-color);
}

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

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

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

/* === About Page === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 6rem;
}

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

.value-card {
    background: #fff;
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card .icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-gradient);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: #fff;
}

.stats-grid .stat-number {
    font-size: 3rem;
}

.stats-grid .stat-label {
    font-size: 1rem;
}

/* === Legal Pages === */
.legal-content {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 900px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.legal-section p, .legal-section li {
    line-height: 2;
    color: var(--text-light);
}

.legal-section ul, .legal-section ol {
    padding-right: 30px;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 8px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a {
    background: #fff;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* === Single Post === */
.single-post-content {
    padding: 60px 0;
}

.single-post-content .container {
    max-width: 800px;
}

.post-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.post-content {
    line-height: 2.2;
}

.post-content h2, .post-content h3 {
    margin-top: 2rem;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* === 404 Page === */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

.error-404 .error-code {
    font-size: 10rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -2rem;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* === Responsive === */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-section h1 { font-size: 2.5rem; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-page-grid,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: var(--shadow-lg);
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 15px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 8px;
        margin-top: 5px;
    }
    
    .hero-section h1 { font-size: 2rem; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .stat-number { font-size: 2rem; }
    .hero-stats { gap: 15px; }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
