/* ================================================
   Ellovora Coworking Space - Modern Landing Page
   Colors: Primary #5f34da, Secondary #271763
   Font: Cairo
   ================================================ */

:root {
    --primary: #5f34da;
    --primary-light: #7c5ce7;
    --primary-dark: #271763;
    --primary-glow: rgba(95, 52, 218, 0.3);
    --bg: #ffffff;
    --bg-alt: #f7f5ff;
    --bg-dark: #0c0a1a;
    --text: #2d2b3a;
    --text-light: #6b6980;
    --text-white: #ffffff;
    --border: #e8e5f0;
    --card-shadow: 0 4px 25px rgba(39, 23, 99, 0.08);
    --card-shadow-hover: 0 12px 40px rgba(95, 52, 218, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 50px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section {
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== Utility ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-el {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid rgba(95, 52, 218, 0.15);
}
.section-tag.center {
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.8;
}

/* ===== Buttons ===== */
.btn-el {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary-el {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}
.btn-primary-el:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: var(--text-white);
}
.btn-outline-el {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-el:hover {
    background: var(--primary);
    color: var(--text-white);
}
.btn-glass-el {
    background: rgba(255,255,255,0.12);
    color: var(--text-white);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}
.btn-glass-el:hover {
    background: var(--text-white);
    color: var(--primary-dark);
    border-color: var(--text-white);
    transform: translateY(-2px);
}
.btn-full {
    width: 100%;
    justify-content: center;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar-el {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}
.navbar-el.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}
.navbar-el.hidden {
    transform: translateY(-100%);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.navbar-logo img {
    height: 44px;
    transition: var(--transition);
}
.navbar-el.scrolled .navbar-logo img {
    height: 38px;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    position: relative;
}
.navbar-el.scrolled .navbar-links a {
    color: var(--text);
}
.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 16px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.navbar-links a.active::after,
.navbar-links a:hover::after {
    width: calc(100% - 32px);
}
.navbar-links a.active {
    color: var(--primary-light);
}
.navbar-el.scrolled .navbar-links a.active {
    color: var(--primary);
}
.navbar-cta .btn-outline-el {
    padding: 8px 22px;
    font-size: 14px;
    color: #fff !important;
    border-color: rgba(255,255,255,0.4);
}
.navbar-cta .btn-outline-el:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}
.navbar-el.scrolled .navbar-cta .btn-outline-el {
    color: var(--primary) !important;
    border-color: var(--primary);
}
.navbar-el.scrolled .navbar-cta .btn-outline-el:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}
/* Logo invert when not sticky */
.navbar-logo img {
    filter: brightness(0) invert(1);
}
.navbar-el.scrolled .navbar-logo img {
    filter: none;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.navbar-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}
.navbar-el.scrolled .navbar-toggle span {
    background: var(--text);
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 991px) {
    .navbar-toggle { display: flex; }
    .navbar-cta { display: none; }
    .navbar-el {
        padding: 12px 0;
    }
    .navbar-el.scrolled {
        padding: 8px 0;
    }
    .navbar-el .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .navbar-inner {
        gap: 15px;
    }
    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 4px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow-y: auto;
    }
    .navbar-links.open { right: 0; }
    .navbar-links a { color: var(--text) !important; width: 100%; }
    .navbar-logo img {
        height: 36px !important;
    }
}

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    max-height: 1000px;
}
.hero-swiper {
    width: 100%;
    height: 100%;
}
.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(12,10,26,0.92) 0%, rgba(39,23,99,0.8) 40%, rgba(95,52,218,0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 0 40px;
    text-align: center;
    margin: 0 auto;
}
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: var(--text-white);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.hero-content h1 {
    color: var(--text-white);
    font-size: 58px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 19px;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 35px;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Nav */
.hero-nav-prev, .hero-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-white);
}
.hero-nav-prev:hover, .hero-nav-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.hero-nav-prev { right: 25px; }
.hero-nav-next { left: 25px; }

/* Hero Pagination */
.hero-pagination {
    position: absolute;
    bottom: 35px !important;
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    width: auto !important;
}
.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.35);
    opacity: 1;
    border-radius: 10px;
    transition: var(--transition);
}
.hero-pagination .swiper-pagination-bullet-active {
    background: var(--primary-light);
    width: 32px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: float 2s ease-in-out infinite;
}
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}
@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@media (max-width: 768px) {
    .hero { min-height: 550px; }
    .hero-content h1 { font-size: 34px; }
    .hero-content p { font-size: 16px; }
    .hero-content { padding: 0 20px; }
    .hero-nav-prev, .hero-nav-next { display: none; }
    .scroll-indicator { display: none; }
}

/* ================================================
   ABOUT
   ================================================ */
.about-section {
    background: var(--bg);
}
.about-images {
    position: relative;
    padding: 20px;
}
.about-img-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.about-img-float {
    position: absolute;
    bottom: -10px;
    left: -20px;
    width: 180px;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 5px solid var(--bg);
    box-shadow: var(--card-shadow);
}
.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-badge-float {
    position: absolute;
    top: 0;
    left: -10px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: var(--radius);
    padding: 20px 25px;
    text-align: center;
    box-shadow: 0 8px 25px var(--primary-glow);
}
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}
.about-content .section-desc {
    margin-bottom: 30px;
}

/* Tabs */
.about-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 10px 28px;
    border: 2px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius-full);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-white);
}
.tab-panel {
    display: none;
    margin-bottom: 30px;
}
.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
.tab-panel p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.9;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .about-img-main img { height: 300px; }
    .about-badge-float { position: relative; top: auto; left: auto; display: inline-block; margin-top: 15px; }
    .about-img-float { width: 130px; height: 130px; bottom: -5px; left: -10px; }
}

/* ================================================
   SERVICES
   ================================================ */
.services-section {
    background: var(--bg-alt);
}
.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(95,52,218,0.2);
}
.service-card-img {
    position: relative;
    height: 220px;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.service-card:hover .service-card-img img {
    transform: scale(1.08);
}
.service-card-icon {
    position: absolute;
    bottom: -24px;
    left: 24px;
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    box-shadow: 0 6px 20px var(--primary-glow);
    z-index: 2;
}
.service-card-body {
    padding: 35px 24px 24px;
}
.service-card-body h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-dark);
}
.service-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}
.service-tag {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* ================================================
   FEATURES
   ================================================ */
.features-section {
    background: var(--bg);
}
.features-img-wrapper {
    margin-top: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.features-main-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-card:hover {
    border-color: rgba(95,52,218,0.25);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-alt);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--text-white);
}
.feature-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.feature-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 575px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ================================================
   STATS
   ================================================ */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}
.stat-item .stat-number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
}
.stat-item .stat-text {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin-top: 8px;
    display: block;
}
@media (max-width: 575px) {
    .stat-item .stat-number { font-size: 36px; }
}

/* ================================================
   GALLERY
   ================================================ */
.gallery-section {
    background: var(--bg-alt);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    grid-auto-rows: 250px;
}
.gallery-wide {
    grid-column: span 2;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,10,26,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay h4 {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.gallery-overlay span {
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
}
/* Gallery mobile/desktop toggle */
.gallery-mobile { display: none; }
@media (max-width: 768px) {
    .gallery-desktop { display: none; }
    .gallery-mobile { display: block; }
    .gallery-mobile .gallery-item {
        height: 250px;
        border-radius: var(--radius);
        overflow: hidden;
    }
    .gallery-mobile .gallery-overlay { opacity: 1; }
    .gallery-swiper-pagination {
        text-align: center;
        margin-top: 16px;
    }
    .gallery-swiper-pagination .swiper-pagination-bullet {
        width: 8px; height: 8px;
        background: var(--primary);
        opacity: 0.3;
    }
    .gallery-swiper-pagination .swiper-pagination-bullet-active {
        opacity: 1;
        width: 24px;
        border-radius: 4px;
    }
}

/* ================================================
   INFO CARDS
   ================================================ */
.info-section {
    background: var(--bg);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}
.info-card:hover {
    border-color: rgba(95,52,218,0.3);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}
.info-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-alt);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    transition: var(--transition);
}
.info-card:hover .info-icon {
    background: var(--primary);
    color: var(--text-white);
}
.info-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}
.info-divider {
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    margin: 14px auto;
    border-radius: 2px;
}
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
}

/* ================================================
   CONTACT
   ================================================ */
.contact-section {
    background: var(--bg-alt);
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.contact-info-item span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.contact-info-item a, .contact-info-item p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.contact-info-item a:hover {
    color: var(--primary);
}
.contact-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.contact-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Form */
.contact-form {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-alt);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group select {
    appearance: none;
    cursor: pointer;
}

/* ================================================
   MAP
   ================================================ */
.map-section {
    line-height: 0;
}
.map-section iframe {
    width: 100%;
    display: block;
}

/* ================================================
   FOOTER
   ================================================ */
.footer-el {
    background: var(--bg-dark);
    padding: 80px 0 0;
    color: rgba(255,255,255,0.7);
}
.footer-logo {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 320px;
}
.footer-title {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 8px;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}
.footer-contact svg {
    color: var(--primary-light);
    min-width: 18px;
}
.footer-contact a:hover {
    color: var(--primary-light);
}
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}
.footer-bottom {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 14px;
}

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 6px 20px var(--primary-glow);
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ================================================
   RESPONSIVE HEADINGS
   ================================================ */
@media (max-width: 768px) {
    .section-el { padding: 70px 0; }
    .section-heading { font-size: 30px; }
    .contact-form { padding: 25px; }
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-swiper {
    width: 90%;
    max-width: 900px;
    height: 80vh;
}
.lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-swiper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover {
    background: var(--primary);
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }
.lightbox-pagination {
    text-align: center;
    margin-top: 16px;
}
.lightbox-pagination .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.lightbox-pagination .swiper-pagination-bullet-active {
    background: var(--primary-light);
    width: 24px;
    border-radius: 4px;
}

/* ================================================
   WHATSAPP FLOATING
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: #fff;
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ================================================
   CUSTOM CURSOR (Desktop)
   ================================================ */
.cursor-dot, .cursor-ring {
    display: none;
}
@media (pointer: fine) {
    .cursor-dot {
        display: block;
        position: fixed;
        top: -4px;
        left: -4px;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        will-change: transform;
    }
    .cursor-ring {
        display: block;
        position: fixed;
        top: -20px;
        left: -20px;
        width: 40px;
        height: 40px;
        border: 2px solid var(--primary-light);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        opacity: 0.5;
        will-change: transform;
        transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s, opacity 0.3s, border-color 0.3s;
    }
    .cursor-ring.hover {
        width: 56px;
        height: 56px;
        top: -28px;
        left: -28px;
        opacity: 0.3;
        border-color: var(--primary);
    }
    body { cursor: none; }
    a, button, input, textarea, select, .gallery-item { cursor: none; }
}

/* ================================================
   FOOTER MOBILE
   ================================================ */
.footer-el {
    overflow: hidden;
}
.footer-el .container {
    overflow: hidden;
}
@media (max-width: 767px) {
    .footer-el {
        padding: 50px 0 0;
    }
    .footer-el .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }
    .footer-el .row > * {
        width: 100%;
        flex: 0 0 100%;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom {
        margin-top: 30px;
    }
}


/* ================================================
   INNER PAGES - PAGE HERO / BREADCRUMB
   ================================================ */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 160px 0 70px;
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    color: var(--text-white);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}
.page-hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.breadcrumb-el {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
}
.breadcrumb-el a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.breadcrumb-el a:hover {
    color: var(--text-white);
}
.breadcrumb-sep {
    color: rgba(255,255,255,0.4);
}
.breadcrumb-el > span {
    color: var(--text-white);
    font-weight: 600;
}

/* ================================================
   INNER PAGES - COMMON
   ================================================ */
.inner-page {
    padding: 80px 0;
}
.page-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.page-featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}
.page-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}
.entry-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    color: var(--primary-dark);
    margin: 30px 0 15px;
    font-weight: 700;
}
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }
.entry-content p {
    margin-bottom: 20px;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.entry-content a {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.entry-content a:hover {
    border-bottom-color: var(--primary);
}
.entry-content ul, .entry-content ol {
    padding-right: 25px;
    margin-bottom: 20px;
}
.entry-content li {
    margin-bottom: 8px;
}
.entry-content blockquote {
    background: var(--bg-alt);
    border-right: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 25px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.entry-content th, .entry-content td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: right;
}
.entry-content th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--primary-dark);
}

/* ================================================
   BLOG - POST CARDS
   ================================================ */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.post-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}
.post-card-img {
    display: block;
    overflow: hidden;
    height: 250px;
}
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.post-card:hover .post-card-img img {
    transform: scale(1.05);
}
.post-card-body {
    padding: 25px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.post-category-badge {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--primary);
    padding: 3px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.post-category-badge:hover {
    background: var(--primary);
    color: var(--text-white);
}
.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 13px;
}
.post-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}
.post-card-title a {
    color: var(--text);
    transition: var(--transition);
}
.post-card-title a:hover {
    color: var(--primary);
}
.post-card-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}
.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.post-card-link:hover {
    gap: 10px;
}
.post-card-link svg {
    transition: var(--transition);
}

/* Horizontal post card (search results) */
.post-card-horizontal {
    flex-direction: row;
}
.post-card-horizontal .post-card-img {
    width: 250px;
    min-width: 250px;
    height: auto;
}

/* ================================================
   SINGLE POST
   ================================================ */
.single-post {
    background: var(--bg);
}
.post-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.post-meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 14px;
}
.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.single-post-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.5;
    margin: 0 0 16px;
}

.single-featured-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}
.single-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}
.post-tag {
    background: var(--bg-alt);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.post-tag:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* Post Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.post-share span {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
}
.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-light);
    transition: var(--transition);
}
.post-share a:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin: 30px 0;
}
.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.author-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}
.post-nav-link {
    display: block;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.post-nav-link:hover {
    background: var(--primary);
    color: var(--text-white);
}
.post-nav-link:hover .post-nav-label {
    color: rgba(255,255,255,0.7);
}
.post-nav-link:hover .post-nav-title {
    color: var(--text-white);
}
.post-nav-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
    transition: var(--transition);
}
.post-nav-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
}
.post-nav-next {
    text-align: left;
}

/* ================================================
   COMMENTS
   ================================================ */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.comments-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-item {
    margin-bottom: 20px;
}
.comment-body {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}
.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.comment-content {
    flex: 1;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.comment-author {
    font-size: 15px;
    color: var(--primary-dark);
}
.comment-date {
    font-size: 13px;
    color: var(--text-light);
}
.comment-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}
.comment-text p {
    margin: 0;
}
.comment-actions {
    margin-top: 8px;
}
.comment-actions a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}
.comment-list .children {
    list-style: none;
    padding-right: 40px;
    margin-top: 15px;
}
.comment-respond {
    margin-top: 30px;
}
.comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.comment-form .form-group input,
.comment-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}
.comment-form .form-group input:focus,
.comment-form .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.comment-form .form-group {
    margin-bottom: 15px;
}
.comment-form .form-submit {
    margin-top: 10px;
}
.comment-form p.comment-notes,
.comment-form p.logged-in-as {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ================================================
   SIDEBAR
   ================================================ */
.sidebar-el {
    position: sticky;
    top: 100px;
}
.sidebar-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Search Form */
.search-form-el {
    position: relative;
    display: flex;
}
.search-form-el input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.search-form-el input[type="search"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-form-el button {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.search-form-el button:hover {
    background: var(--primary-dark);
}

/* Sidebar Posts List */
.sidebar-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.sidebar-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar-posts-list a {
    display: flex;
    gap: 12px;
    align-items: center;
}
.sidebar-post-thumb {
    width: 65px;
    height: 55px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-post-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    transition: var(--transition);
}
.sidebar-posts-list a:hover .sidebar-post-title {
    color: var(--primary);
}
.sidebar-post-date {
    font-size: 12px;
    color: var(--text-light);
}
.sidebar-post-info {
    flex: 1;
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li {
    margin-bottom: 0;
}
.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    transition: var(--transition);
}
.sidebar-categories li:last-child a {
    border-bottom: none;
}
.sidebar-categories a:hover {
    color: var(--primary);
    padding-right: 8px;
}
.sidebar-categories a span {
    color: var(--text-light);
    font-size: 13px;
}

/* WordPress default widgets */
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.sidebar-widget ul li:last-child {
    border-bottom: none;
}
.sidebar-widget ul li a {
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}
.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* WP Default Search Widget */
.sidebar-widget .wp-block-search,
.sidebar-widget .search-form {
    position: relative;
}
.sidebar-widget .wp-block-search__input,
.sidebar-widget .search-form .search-field {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.sidebar-widget .wp-block-search__input:focus,
.sidebar-widget .search-form .search-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.sidebar-widget .wp-block-search__button,
.sidebar-widget .search-form .search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: var(--transition);
}
.sidebar-widget .wp-block-search__button:hover,
.sidebar-widget .search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* WP Default Widget Titles */
.sidebar-widget h2,
.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* WP Recent Comments */
.sidebar-widget .recentcomments {
    font-size: 13px;
    line-height: 1.6;
}
.sidebar-widget .recentcomments .comment-author-link {
    font-weight: 600;
}

/* WP Tag Cloud */
.sidebar-widget .tagcloud a {
    display: inline-block;
    padding: 4px 14px;
    margin: 0 0 6px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px !important;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.sidebar-widget .tagcloud a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination-el {
    margin-top: 40px;
}
.pagination-el .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination-el .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.pagination-el .page-numbers:hover,
.pagination-el .page-numbers.current {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}
.pagination-el .page-numbers.dots {
    background: none;
    border: none;
}

/* ================================================
   404 PAGE
   ================================================ */
.error-404-content {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    padding: 40px 0;
}
.error-404-icon {
    margin-bottom: 30px;
}
.error-404-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.error-404-content > p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}
.error-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}
.error-404-search {
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.error-404-search p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}
.error-404-search .search-form-el {
    max-width: 400px;
    margin: 0 auto;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}
.no-posts svg {
    margin-bottom: 20px;
}
.no-posts h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.no-posts p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Search Again Box */
.search-again-box {
    margin-bottom: 30px;
}
.search-results-count {
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 15px;
}

/* ================================================
   INNER PAGES - RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
    .page-hero {
        padding: 130px 0 50px;
    }
    .page-hero h1 {
        font-size: 32px;
    }
    .sidebar-el {
        position: static;
        margin-top: 30px;
    }
}
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }
    .page-hero h1 {
        font-size: 28px;
    }
    .page-hero-subtitle {
        font-size: 15px;
    }
    .inner-page {
        padding: 50px 0;
    }
    .post-card-horizontal {
        flex-direction: column;
    }
    .post-card-horizontal .post-card-img {
        width: 100%;
        min-width: auto;
        height: 200px;
    }
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .comment-list .children {
        padding-right: 20px;
    }
    .error-404-actions {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 575px) {
    .post-card-img {
        height: 200px;
    }
    .post-card-body {
        padding: 18px 20px 22px;
    }
    .post-card-title {
        font-size: 18px;
    }
}

/* ================================================
   LIBRARY / BOOKS
   ================================================ */

/* Filters */
.library-section { padding-top: 40px; }

.library-filters {
    margin-bottom: 32px;
}

.library-search {
    margin-bottom: 20px;
}

.library-search-input {
    position: relative;
    max-width: 500px;
}

.library-search-input svg {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.library-search-input input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 2px solid #e8e5f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: Cairo, sans-serif;
    background: #fff;
    transition: border-color 0.3s;
}

.library-search-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(95,52,218,0.08);
}

.library-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.library-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 2px solid #e8e5f0;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-family: Cairo, sans-serif;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.library-cat-btn:hover,
.library-cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.library-cat-btn .cat-count {
    background: rgba(0,0,0,0.1);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.library-cat-btn.active .cat-count {
    background: rgba(255,255,255,0.2);
}

.library-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.library-results-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.results-count {
    background: #f4f0ff;
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.book-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e5f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(95,52,218,0.1);
}

.book-card-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f4f0ff;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.book-card:hover .book-card-cover img {
    transform: scale(1.05);
}

.book-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f0ff 0%, #e8e0ff 100%);
    color: #b8a5e0;
    text-decoration: none;
}

.book-card-placeholder.large {
    min-height: 400px;
    border-radius: 14px;
}

.book-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.book-card-info {
    padding: 14px 16px 18px;
}

.book-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-title a {
    color: inherit;
    text-decoration: none;
}

.book-card-title a:hover {
    color: var(--primary);
}

.book-card-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888;
    margin: 0 0 6px;
}

.book-card-author svg {
    flex-shrink: 0;
    color: #bbb;
}

.book-card-desc {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Library Pagination */
.library-pagination {
    margin-top: 40px;
}

.library-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.library-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 2px solid #e8e5f0;
    background: #fff;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.library-pagination .page-numbers:hover,
.library-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95,52,218,0.2);
}

.library-pagination .page-numbers.dots {
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    color: #999;
}

.library-pagination .page-numbers.prev,
.library-pagination .page-numbers.next {
    background: #f8f6ff;
    border-color: #e8e5f0;
}

.library-pagination .page-numbers.prev:hover,
.library-pagination .page-numbers.next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Library Empty */
.library-empty {
    text-align: center;
    padding: 80px 20px;
}

.library-empty svg {
    margin-bottom: 16px;
}

.library-empty h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.library-empty p {
    color: #888;
    margin-bottom: 20px;
}

/* Single Book */
.book-single-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.book-single-cover img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.book-single-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 20px;
    line-height: 1.4;
}

.book-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.book-meta-item {
    background: #f8f6ff;
    padding: 14px 18px;
    border-radius: 10px;
}

.book-meta-label {
    display: block;
    font-size: 12px;
    color: #8b7ab8;
    margin-bottom: 4px;
}

.book-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

.book-meta-value a {
    color: var(--primary);
    text-decoration: none;
}

.book-meta-value a:hover {
    text-decoration: underline;
}

.book-single-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 12px;
}

.book-single-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}


/* Related Books */
.related-books {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e8e5f0;
}

.related-books-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 24px;
}

/* Library Responsive */
@media (max-width: 991px) {
    .book-single-layout {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .book-single-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .book-single-cover {
        max-width: 250px;
        margin: 0 auto;
    }

    .book-single-title {
        font-size: 22px;
    }

    .book-meta-grid {
        grid-template-columns: 1fr;
    }

    .library-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .book-card-info {
        padding: 10px 12px 14px;
    }

    .book-card-title {
        font-size: 13px;
    }

    .book-card-author {
        font-size: 11px;
    }
}
