/*
Theme Name: Cairo Export Shipping
Author: Cairo Export
Description: قالب احترافي لشركات الشحن البحري واللوجستيات
Version: 1.1
Text Domain: cairo-export
*/

/* =====================
   GLOBAL SETTINGS
===================== */
:root {
    --primary: #003566;
    --secondary: #2563eb;
    --accent: #ffc300;
    --light: #f8f9fa;
    --dark: #0a2540;
    --text: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    margin: 0;
    color: var(--text);
    background: #fff;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    scroll-margin-top: 90px;
}

/* =====================
   TOP BAR
===================== */
.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info a {
    color: #fff;
    transition: color 0.3s;
}

.top-info a:hover {
    color: var(--accent);
}

.top-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.top-social {
    color: rgba(255,255,255,0.8);
}

/* =====================
   HEADER
===================== */
.site-header {
    background: var(--primary);
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.text-logo {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.text-logo strong {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.text-logo small {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    opacity: 0.9;
}

/* =====================
   NAVIGATION
===================== */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.is-open .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
    display: block;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border-radius: 0 0 10px 10px;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    padding: 0;
}

.nav-menu .sub-menu a {
    padding: 10px 20px;
    display: block;
    color: #fff;
}

.nav-menu .sub-menu a:hover {
    background: var(--secondary);
    color: #fff;
}

/* =====================
   HEADER ACTIONS
===================== */
.header-actions {
    flex-shrink: 0;
}

.btn-header {
    background: #fff;
    color: var(--primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-header:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.btn-header .dashicons {
    color: inherit;
}

.btn-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* =====================
   HEADINGS
===================== */
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 15px;
}

h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }

/* =====================
   SECTIONS
===================== */
.section {
    padding: 90px 20px;
    text-align: center;
}

.section p {
    max-width: 900px;
    margin: auto;
    font-size: 18px;
    opacity: .9;
}

/* =====================
   HERO
===================== */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    padding: 150px 20px 100px;
    text-align: center;
}

.hero-content p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-content .badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 16px;
}

.hero-content h1 {
    font-size: 50px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.hero-buttons a {
    display: inline-block;
    margin: 0;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-main {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 15px 35px;
}

.btn-main:hover {
    background: #ffd60a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 15px 35px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* =====================
   SERVICES
===================== */
.services {
    background: #fff;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-subtitle {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: auto;
}

.service-card-modern {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card-modern:hover .service-content-section {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.service-icon-section {
    background: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.service-icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card-modern:hover .service-icon-box {
    transform: scale(1.1);
    background: var(--secondary);
}

.service-content-section {
    background: #fff;
    padding: 30px 25px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.4;
}

.service-card-description {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.3s, color 0.3s;
}

.service-read-more:hover {
    gap: 10px;
    color: var(--secondary);
}

.service-read-more:hover span {
    transform: translateX(-5px);
}

.service-read-more span {
    transition: transform 0.3s;
}

.service-read-more:hover span {
    transform: translateX(-3px);
}

/* =====================
   ABOUT SECTION
===================== */
.about {
    background: #f9fafb;
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about:hover .about-image img {
    transform: scale(1.02);
}

.about-text {
    text-align: right;
}

.about-subtitle {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-description {
    font-size: 18px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 30px;
}

.about-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.about-read-more:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.about-read-more .dashicons {
    transition: transform 0.3s;
}

.about-read-more:hover .dashicons {
    transform: translateX(-5px);
}

/* Legacy support */
.service-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,.08);
    transition: transform .4s ease, box-shadow .4s ease;
    position: relative;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    font-weight: bold;
    color: var(--primary);
}

/* =====================
   QUOTE FORM
===================== */
.quote {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #fff;
    padding: 100px 0;
}

.quote h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
}

.quote-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,53,102,0.1);
}

.quote-form textarea {
    min-height: 120px;
    resize: vertical;
}

.quote-form button {
    background: var(--accent);
    color: #000;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.quote-form button:hover {
    background: #ffd60a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* =====================
   CONTACT
===================== */
.contact p {
    font-size: 20px;
    margin: 10px 0;
}

/* =====================
   FOOTER
===================== */
.site-footer {
    background: var(--dark);
    color: #fff;
    padding: 80px 20px 30px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer a {
    color: #fff;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    text-align: right;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

.social-links .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    padding: 5px 0;
}

.contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 14px;
    opacity: .8;
}

/* =====================
   WhatsApp Float
===================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =====================
   PAGE CONTENT
===================== */
.page-content {
    padding: 60px 0;
}

.page-featured-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    color: var(--primary);
    margin-bottom: 20px;
}

.page-body {
    text-align: right;
    line-height: 1.8;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.page-body ul,
.page-body ol {
    margin: 20px 0;
    padding-right: 30px;
}

.page-body li {
    margin-bottom: 10px;
}

.page-actions {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.page-actions .btn-main:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.page-actions .btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* =====================
   CONTAINER
===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   REVEAL ANIMATIONS
===================== */
.reveal-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   BREADCRUMBS
===================== */
.breadcrumbs {
    background: var(--light);
    border-bottom: 1px solid #eee;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

/* =====================
   BLOG ARCHIVE
===================== */
.blog-archive .post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-archive .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-archive .post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.blog-archive .post-card:hover .post-overlay {
    opacity: 1;
}

.blog-archive .post-card:hover .read-more-btn {
    gap: 12px;
}

.blog-archive .post-card:hover .read-more-btn .dashicons {
    transform: translateX(-5px);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail a {
    display: block;
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    text-decoration: none;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more-btn .dashicons {
    transition: transform 0.3s;
}

/* =====================
   SINGLE POST
===================== */
.single-post-content {
    background: #fff;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    margin: 0 5px;
    text-decoration: none;
    transition: transform 0.3s;
}

.category-badge:hover {
    transform: translateY(-2px);
}

.post-content {
    line-height: 1.9;
    font-size: 18px;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 32px;
}

.post-content h3 {
    font-size: 26px;
}

.post-content h4 {
    font-size: 22px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-right: 4px solid var(--primary);
    padding-right: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: var(--light);
    padding: 20px;
    border-radius: 5px;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.post-content a:hover {
    color: var(--secondary);
}

.post-tags a {
    display: inline-block;
    background: var(--light);
    color: var(--text);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.post-tags a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.author-box {
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
}

.related-post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* =====================
   PAGINATION
===================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--light);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* =====================
   COMMENTS
===================== */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--light);
}

.comments-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 25px;
    margin-bottom: 25px;
    background: var(--light);
    border-radius: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-author-name {
    font-weight: bold;
    color: var(--primary);
}

.comment-date {
    font-size: 14px;
    color: #666;
}

.comment-content {
    line-height: 1.8;
    color: #333;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.comment-reply-link:hover {
    color: var(--secondary);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 15px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* =====================
   IMAGE OPTIMIZATIONS
===================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-content img,
.page-body img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 30px auto;
}

/* =====================
   LOADING STATES
===================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* =====================
   ACCESSIBILITY
===================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =====================
   PRINT STYLES
===================== */
@media print {
    .site-header,
    .site-footer,
    .breadcrumbs,
    .post-share,
    .related-posts,
    .comments-area,
    .whatsapp-float {
        display: none;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }

    .section {
        padding: 70px 15px;
    }

    .hero-content {
        padding: 100px 15px 70px;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .quote h2 {
        font-size: 28px;
    }

    .quote-form {
        padding: 25px 20px;
    }

    .top-bar {
        padding: 8px 0;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-info {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }

    .top-social {
        font-size: 12px;
    }

    .site-header .header-container {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        align-items: stretch;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--light);
    }

    .nav-menu a {
        padding: 15px 0;
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light);
        margin-top: 10px;
        padding: 0;
    }

    .nav-menu .sub-menu a {
        padding: 10px 20px;
    }

    .header-actions {
        margin-right: auto;
    }

    .btn-header {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr !important;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .services-title {
        font-size: 32px;
    }

    .services-subtitle {
        font-size: 14px;
    }

    .service-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .service-content-section {
        min-height: auto;
        padding: 25px 20px;
    }

    .service-icon-section {
        padding: 30px 20px;
    }

    .service-icon-box {
        width: 70px;
        height: 70px;
    }

    .post-content {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 26px;
    }

    .post-content h3 {
        font-size: 22px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }
}

/* =====================
   TABLET RESPONSIVE
===================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-title {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: 2;
    }

    .about-text {
        order: 1;
        text-align: center;
    }

    .about-title {
        font-size: 32px;
    }
}
/* Single Post Styles */
.single-post-content {
    padding-top: 0;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post Header */
.post-header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.post-categories {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 5px 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.post-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--primary);
    line-height: 1.3;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #666;
}

.post-meta > * {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    color: var(--primary);
    font-size: 16px;
}

/* Post Content */
.post-content {
    padding: 40px 0;
    line-height: 1.9;
    font-size: 18px;
    color: #333;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
}

.post-content blockquote {
    border-right: 4px solid var(--primary);
    padding-right: 25px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    font-size: 20px;
}

.post-content ul,
.post-content ol {
    margin-right: 25px;
    margin-bottom: 25px;
}

.post-content li {
    margin-bottom: 10px;
    padding-right: 10px;
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.post-content a:hover {
    color: var(--dark);
    border-bottom-color: var(--primary);
}

.page-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.page-links a,
.page-links > span {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 18px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.page-links a:hover,
.page-links .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Post Tags */
.post-tags {
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tags-label {
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    background: #f5f5f5;
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.tag-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Post Footer */
.post-footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

/* Share Buttons */
.post-share {
    text-align: center;
    margin-bottom: 40px;
}

.post-share h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 15px;
}

.share-btn i {
    font-size: 18px;
}

.share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn.email {
    background: #666;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Author Box */
.author-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border: 1px solid #eee;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}

.author-info {
    flex-grow: 1;
}

.author-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary);
}

.author-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.author-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.author-link:hover {
    color: var(--dark);
    gap: 12px;
}

/* Related Posts */
.related-posts {
    background: #f9fafb;
    padding: 60px 0;
}

.related-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.related-title i {
    font-size: 28px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.related-post-image {
    display: block;
    height: 180px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-post-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-content h3 a:hover {
    color: var(--primary);
}

.related-post-content time {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.related-post-content time i {
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
    color: var(--dark);
}

/* Post Navigation */
.post-navigation {
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 40px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.nav-previous {
    text-align: right;
}

.nav-next {
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .post-featured-image {
        height: 300px;
    }
    
    .post-header {
        padding: 30px 0;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta {
        gap: 15px;
        font-size: 14px;
    }
    
    .post-content {
        font-size: 17px;
        padding: 30px 0;
    }
    
    .post-tags {
        flex-direction: column;
        gap: 10px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .author-avatar {
        align-self: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-title {
        font-size: 28px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-featured-image {
        height: 250px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content blockquote {
        font-size: 18px;
        padding: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}