/**
 * WEB99 Theme Styles
 *
 * @package WEB99
 * @version 1.0.4
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-blue: #1498d6;
    --primary-orange: #F1811C;
    --dark-blue: #1565C0;
    --light-blue: #E6F7FB;
    --gray-dark: #2C3E50;
    --gray-light: #F8F9FA;
    --text-dark: #333333;
    --text-muted: #6C757D;

    --clr-bg:            #ffffff;
   --clr-surface:       var(--gray-light);        /* #F8F9FA — card / section bg */
   --clr-surface2:      var(--light-blue);        /* #E6F7FB — avatar bg, accent surface */
   --clr-accent:        var(--primary-blue);      /* #1498d6 — primary accent */
   --clr-accent2:       var(--primary-orange);    /* #F1811C — secondary accent */
   --clr-accent-dim:    rgba(20,152,214,0.08);    /* faint blue tint */
   --clr-text:          var(--text-dark);         /* #333333 */
   --clr-text-dim:      var(--text-muted);        /* #6C757D */
   --clr-border:        #e0e6ec;                  /* soft gray border */
   --clr-heading:       var(--gray-dark);         /* #2C3E50 — headings */
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px; /* Space for fixed navbar */
    overflow-x: hidden; /* CRITICAL: Prevent horizontal scroll from sub-menus */
}

/* Add extra padding when admin bar is present */
body.admin-bar {
    padding-top: 88px; /* 80px navbar + 32px admin bar */
}

/* ========================================
   Navbar Styles
   ======================================== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

/* Ensure sub-menus are not cut off by the container */
.navbar .container {
    overflow: visible !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.custom-logo {
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    transition: max-width 0.3s ease;
}

.navbar.scrolled img,
.navbar.scrolled .custom-logo {
    max-width: 180px !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 700;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}
.dropdown-menu .nav-link {
 margin: 0; 
}
/* Hide default Bootstrap dropdown arrow (caret) */
.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

/* Toggle button for mobile menu dropdowns */
.dropdown-toggle-btn {
    display: none; /* Hidden on desktop by default */
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.dropdown-toggle-btn:hover {
    color: var(--primary-blue);
}

.dropdown-toggle-btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

/* Rotate icon when submenu is open on mobile */
.nav-item.show > .dropdown-toggle-btn i {
    transform: rotate(180deg);
}

/* Main Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 280px; 
    max-width: 320px; 
    margin: 0;
}
ul.dropdown-menu .menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;

    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
    white-space: normal; 
    word-break: break-word;
}

ul.dropdown-menu .menu-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: transparent;
    color: var(--primary-blue);
}
.dropdown-item.active {
    color: var(--primary-blue) !important;
    text-decoration: none;
    background-color: transparent;
}

.dropdown-item i.bi {
    font-size: 0.8rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Multi-level Dropdown Logic for Desktop (XL breakpoint - 1200px+) */
@media (min-width: 1200px) {
    /* Main dropdown visibility */
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }

    /* Sub-menu position and logic */
    .dropdown-menu .dropdown-menu {
        top: -5px;
        left: 100%;
        margin-top: 0;
        margin-left: 0;
        display: none;
    }

    .dropdown-menu .dropdown:hover > .dropdown-menu {
        display: block;
    }

    /* Reverse sub-menu position to prevent overflow */
    .dropdown-reverse > .dropdown-menu {
        left: auto !important;
        right: 100% !important;
        margin-right: 0;
    }
}

/* ========================================
   Hamburger Menu Button
   ======================================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1050;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: var(--primary-blue);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile: Make hamburger button easier to tap */
@media (max-width: 767px) {
    .hamburger-menu {
        width: 32px;
        height: 32px;
    }

    .hamburger-menu span {
        height: 3.5px;
    }
}

/* ========================================
   Mobile Menu Sidebar
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 1050;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-sidebar.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    min-height: 80px;
}

/* Mobile: Better spacing for header */
@media (max-width: 767px) {
    .mobile-menu-header {
        padding: 1.2rem 1rem;
        min-height: 72px;
    }
}

.mobile-menu-logo img {
    max-height: 40px;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border: none;
    border-radius: 8px;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    line-height: 1;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.mobile-menu-close i {
    display: block;
    line-height: 1;
    font-size: inherit;
}

.mobile-menu-close:hover {
    background: var(--primary-blue);
    color: white;
    transform: rotate(90deg);
}

/* Mobile: Make close button easier to tap */
@media (max-width: 767px) {
    .mobile-menu-close {
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }
}

.mobile-menu-content {
    padding: 1rem 0;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hide chevron icon inside nav-link on mobile, use toggle button instead */
.mobile-nav-menu .nav-link i.bi-chevron-down,
.mobile-nav-menu .nav-link i.bi-chevron-right,
.mobile-nav-menu a i.bi {
    display: none !important;
}

.mobile-nav-menu a:hover {
    background: transparent;
    color: var(--primary-blue);
}

/* Mobile Submenu Styles */
.mobile-nav-menu .dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border: none;
    box-shadow: none;
    position: static !important;
    float: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.3s ease;
}

.mobile-nav-menu .dropdown-menu.show {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu .dropdown-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-menu .dropdown-menu a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
}

/* Nested Submenu (2nd level dropdown inside 1st level) */
.mobile-nav-menu .dropdown-menu .dropdown-menu {
    background: #e9ecef;
}

.mobile-nav-menu .dropdown-menu .dropdown-menu a {
    padding-left: 3.5rem;
    font-size: 0.9rem;
}

/* Nested Submenu (3rd level) */
.mobile-nav-menu .dropdown-menu .dropdown-menu .dropdown-menu a {
    padding-left: 4.5rem;
    font-size: 0.85rem;
}

/* Dropdown Toggle Button Icon Animation */
.mobile-nav-menu .dropdown-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    display: inline-block; /* Ensure transform works */
}

/* Rotate icon 90deg when submenu is open (down arrow → right arrow) */
.mobile-nav-menu li.show > .dropdown-toggle-btn i,
.mobile-nav-menu .nav-item.show > .dropdown-toggle-btn i,
.mobile-nav-menu .dropdown-toggle-btn[aria-expanded="true"] i {
    transform: rotate(-90deg);
}

/* Style for nav-link with children to be a flex container */
.mobile-nav-menu .nav-item.dropdown {
    position: relative;
}

.mobile-nav-menu .nav-item.dropdown > .nav-link {
    flex: 1;
}

/* Show toggle button only on mobile */
.mobile-nav-menu .dropdown-toggle-btn {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    max-height: 57px !important;
    padding: 0 1.5rem;
    z-index: 1;
}

.mobile-menu-cta {
    padding: 1.5rem;
    margin-top: 1rem;
}

/* ========================================
   Mobile & Tablet Menu Styles (Below 1200px)
   ======================================== */

/* Tablet & Mobile: Show hamburger menu below XL breakpoint */
@media (max-width: 1199px) {
    .hamburger-menu {
        display: flex;
    }

    .navbar-collapse {
        display: none !important;
    }

    .dropdown-menu {
        border: none;
        padding-left: 1.5rem;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
        position: static !important;
        float: none;
        width: 100%;
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Tablet Only Styles (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    /* Show CTA button in mobile menu for tablet */
    .mobile-menu-cta {
        display: block !important;
    }

    .mobile-menu-sidebar {
        width: 380px;
        left: -380px;
    }

    .mobile-nav-menu a {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile Only Styles (Below 768px) */
@media (max-width: 767px) {
    .mobile-menu-sidebar {
        width: 320px;
        left: -320px;
    }

    .mobile-nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

.btn-primary-custom {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(25, 152, 219, 0.3);
    color: white;
}

/* ========================================
   Language Switcher
   ======================================== */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.language-btn i.bi-globe {
    font-size: 1.1rem;
}

.language-btn i.bi-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-switcher.active .language-btn i.bi-chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.language-item.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.language-flag {
    font-size: 1.3rem;
    line-height: 1;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 1rem;
}

/* Show/Hide based on screen size */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile & Tablet Controls (Below 1200px) */
@media (max-width: 1199px) {
    .mobile-controls {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Tablet: Larger language button */
@media (min-width: 768px) and (max-width: 1199px) {
    .language-btn {
        padding: 0.5rem 1rem;
        border-width: 2px;
        font-size: 0.95rem;
    }

    .language-btn i.bi-globe {
        font-size: 1.1rem;
    }
}

/* Mobile: Smaller language button */
@media (max-width: 767px) {
    .language-btn {
        padding: 0.4rem 0.8rem;
        border-width: 1.5px;
        font-size: 0.9rem;
    }

    .language-btn i.bi-globe {
        font-size: 1rem;
    }
}


/* ========================================
   Footer Styles
   ======================================== */
footer {
    background: var(--gray-dark);
    color: white;
    padding: 80px 0 0;
}

.footer-logo img {
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a::before {
    content: '\f285';
    font-family: 'bootstrap-icons';
    margin-right: 0.5rem;
    font-size: 0.7em;
    color: var(--primary-orange);
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-orange);
}

.footer-contact i {
    color: var(--primary-orange);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 992px) {
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-description,
    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .feature-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .service-card,
    .problem-card,
    .blog-card {
        margin-bottom: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Utility Classes
   ======================================= */
.text-start {
    text-align: left !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ========================================
   WordPress Admin Bar Fix
   ======================================== */
.admin-bar .navbar.fixed-top {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 88px !important;
    }

    .admin-bar .navbar.fixed-top {
        top: 46px !important;
    }
}

/* ========================================
   Archive Pages - Post Thumbnail Styles
   ======================================== */
.post-thumbnail-link {
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    display: block;
}

.post-thumbnail-image {
    transition: all 0.4s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Hover effect for thumbnail */
.post-thumbnail-link:hover .post-thumbnail-image {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Card styling for archive pages */
.post-item .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.post-item .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Archive header styling */
.page-header .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Post meta icons */
.post-meta i {
    color: var(--primary-blue);
    margin-right: 4px;
}

/* Placeholder SVG */
.post-placeholder-svg {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
}

/* Card title link */
.post-item .card-title a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item .card-title a:hover {
    color: var(--primary-blue);
}

/* Read more button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: var(--dark-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 152, 214, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .post-thumbnail-link {
        border-radius: 8px 8px 0 0;
        max-height: 200px;
    }

    .post-item .card .row {
        display: flex;
        flex-direction: column;
    }
}

/* ========================================
   Pagination Styles
   ======================================== */
.navigation.pagination {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

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

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-links .page-numbers:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 152, 219, 0.25);
}

/* Current page */
.nav-links .page-numbers.current {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 8px rgba(25, 152, 219, 0.3);
    cursor: default;
}

/* Dots */
.nav-links .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    cursor: default;
}

.nav-links .page-numbers.dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Previous/Next buttons */
.nav-links .prev,
.nav-links .next {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: #ffffff;
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 0 16px;
}

.nav-links .prev:hover,
.nav-links .next:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    border-color: var(--dark-blue);
}

.nav-links .prev i,
.nav-links .next i {
    font-size: 14px;
}

/* Screen reader text in pagination */
.nav-links .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .nav-links {
        gap: 6px;
    }

    .nav-links .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
        padding: 0 10px;
    }

    /* Hide some page numbers on mobile to save space */
    .nav-links .page-numbers:not(.current):not(.prev):not(.next):not(.dots) {
        display: none;
    }

    .nav-links .page-numbers.current,
    .nav-links .page-numbers.dots {
        display: inline-flex;
    }

    /* Show one number before and after current */
    .nav-links .page-numbers.current + .page-numbers,
    .nav-links .page-numbers + .page-numbers.current {
        display: inline-flex;
    }
}

/* ===================================================================
   Single Post Styling
   =================================================================== */

/* Entry Content */
.single-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--clr-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.single-post .entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--clr-heading);
}

.single-post .entry-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--clr-heading);
}

.single-post .entry-content h4 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--clr-heading);
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.single-post .entry-content figure {
    margin: 2rem 0;
}

.single-post .entry-content figure img {
    margin: 0;
    border-radius: 0.5rem;
}

.single-post .entry-content figcaption {
    font-size: 0.875rem;
    color: var(--clr-text-dim);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.single-post .entry-content blockquote {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--clr-accent);
    background: var(--clr-surface);
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #555;
}

.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-post .entry-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--clr-text-dim);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.single-post .entry-content li > ul,
.single-post .entry-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.single-post .entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.single-post .entry-content table th,
.single-post .entry-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--clr-border);
    text-align: left;
}

.single-post .entry-content table th {
    background: var(--clr-surface);
    font-weight: 600;
    color: var(--clr-heading);
}

.single-post .entry-content table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.single-post .entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.single-post .entry-content code {
    background: var(--clr-surface);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #d63384;
}

.single-post .entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.single-post .entry-content hr {
    border: none;
    border-top: 2px solid var(--clr-border);
    margin: 2.5rem 0;
}

.single-post .entry-content .wp-caption {
    max-width: 100%;
    margin: 2rem 0;
}

.single-post .entry-content .wp-caption-text {
    font-size: 0.875rem;
    color: var(--clr-text-dim);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.single-post .entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.single-post .entry-content .alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.single-post .entry-content .alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.single-post .entry-content iframe,
.single-post .entry-content .wp-block-embed {
    margin: 2rem 0;
    max-width: 100%;
}

/* Post Entry Footer */
.single-post .entry-footer {
    background: transparent;
    color: var(--clr-text);
}

/* ===================================================================
   Share & Rating Bar
   =================================================================== */

.post-share-rating {
    gap: 1rem;
}

.share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    color: var(--clr-text-dim);
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
}

.share-buttons .share-btn:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}

.share-buttons .btn-copy-link.copied {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #198754;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Rating Stars */
.post-rating .rating-star {
    cursor: pointer;
    font-size: 1.15rem;
    color: #ddd;
    transition: color 0.2s ease;
    padding: 0 1px;
}

.post-rating .rating-star.active i,
.post-rating .rating-star.hover i {
    color: #ffc107;
}

.post-rating .rating-star.active i::before,
.post-rating .rating-star.hover i::before {
    content: "\f586";
}

.post-rating .rating-result {
    font-size: 0.95rem;
}

.post-rating .rating-count {
    font-size: 0.85rem;
}

/* ===================================================================
   Author Box
   =================================================================== */

.post-author-box {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
}

.post-author-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.post-author-name {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.post-author-name a {
    color: var(--clr-heading);
    text-decoration: none;
    font-weight: 700;
}

.post-author-name a:hover {
    color: var(--clr-accent);
}

.post-author-bio {
    color: var(--clr-text);
    line-height: 1.6;
}

/* ===================================================================
   Single Post Tags Section
   =================================================================== */

.single-post-tags-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none;
    padding: 0 !important;
}

.single-tags-list a {
    display: inline-block !important;
    padding: 0.5rem 1.25rem !important;
    margin: 0.25rem 0.25rem 0.25rem 0 !important;
    background: #fff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 25px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.single-tags-list a:hover {
    background: var(--clr-accent) !important;
    color: white !important;
    border-color: var(--clr-accent) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(20, 152, 214, 0.3) !important;
}

/* ===================================================================
   Related Posts Section
   =================================================================== */

.related-post-thumbnail {
    height: 180px;
}

.related-post-thumbnail img,
.related-post-thumbnail .post-placeholder-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-thumbnail:hover img,
.related-post-thumbnail:hover .post-placeholder-svg {
    transform: scale(1.05);
}

.related-post a:hover h4 {
    color: var(--clr-accent) !important;
}

/* Single Post Link Colors */
.single-post .entry-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.single-post .entry-content a:hover {
    color: var(--dark-blue);
}

.single-post .entry-meta a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post .entry-meta a:hover {
    color: var(--primary-blue);
}

/* ===================================================================
   Comments Section
   =================================================================== */
.comments-area {
    margin-top: 0;
}

.comments-area .comments-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 1.5rem;
}

.comments-area .comments-title span {
    color: var(--primary-blue);
}

/* Comment list */
.comments-area .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-area .comment-list .children {
    list-style: none;
    padding-left: 2.5rem;
    margin-top: 1rem;
    border-left: 2px solid var(--clr-border);
}

/* Individual comment */
.comments-area .comment-item {
    margin-bottom: 1rem !important;
}

.comments-area .comment-item > .card {
    border: none;
    background: var(--clr-surface);
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.comments-area .comment-item > .card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.comments-area .comment-item > .card > .card-body {
    padding: 1.25rem;
}

/* Comment meta - avatar & author */
.comments-area .comment-meta {
    gap: 0;
}

.comments-area .comment-author-avatar img {
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.comments-area .comment-author h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.comments-area .comment-author h6 a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.comments-area .comment-author h6 a:hover {
    color: var(--primary-blue);
}

.comments-area .comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comments-area .comment-date i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Comment content */
.comments-area .comment-content {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.comments-area .comment-content p {
    margin-bottom: 0.5rem;
}

.comments-area .comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply link */
.comments-area .comment-actions .comment-reply-link,
.comments-area .comment-actions .btn-outline-primary {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.comments-area .comment-actions .comment-reply-link::before {
    content: '\F168';
    font-family: 'bootstrap-icons';
    font-size: 0.75rem;
}

.comments-area .comment-actions .comment-reply-link:hover,
.comments-area .comment-actions .btn-outline-primary:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Nested comments depth styling */
.comments-area .children .comment-item > .card {
    background: #fff;
    border: 1px solid var(--clr-border);
}

.comments-area .children .children .comment-item > .card {
    background: var(--clr-surface);
    border: none;
}

/* Comment form */
.comments-area .comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
}

.comments-area .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 1.25rem;
}

.comments-area .comment-reply-title small a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 0.5rem;
}

.comments-area .comment-reply-title small a:hover {
    color: #dc3545;
}

.comments-area .comment-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.35rem;
}

.comments-area .comment-form .form-control {
    border: 2px solid var(--clr-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comments-area .comment-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(20, 152, 214, 0.12);
}

.comments-area .comment-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.comments-area .comment-form .required {
    color: #dc3545;
}

.comments-area .comment-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border: none;
    padding: 0.65rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.comments-area .comment-form .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Comment navigation */
.comments-area .comment-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin: 1rem 0;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.comments-area .comment-navigation a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.comments-area .comment-navigation a:hover {
    color: var(--dark-blue);
}

/* Comments wrapper card override */
.comments-wrapper.card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.comments-wrapper.card > .card-body {
    padding: 0 !important;
}

/* Responsive comments */
@media (max-width: 767px) {
    .comments-area .comment-list .children {
        padding-left: 1rem;
    }

    .comments-area .comment-item > .card > .card-body {
        padding: 1rem;
    }

    .comments-area .comment-author-avatar img {
        width: 36px;
        height: 36px;
    }

    .comments-area .comment-author h6 {
        font-size: 0.875rem;
    }
}

/* ===================================================================
   Sidebar Widgets
   =================================================================== */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-widgets .widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sidebar-widgets .widget:last-child {
    margin-bottom: 0;
}

.sidebar-widgets .widget-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widgets .widget-title::before {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 1.1rem;
}

/* Categories widget icon */
.sidebar-widgets .widget_categories .widget-title::before {
    content: '\F36A';
}

/* Recent posts widget icon */
.sidebar-widgets .widget_recent_entries .widget-title::before {
    content: '\F47E';
}

/* Search widget icon */
.sidebar-widgets .widget_search .widget-title::before {
    content: '\F52A';
}

/* Tag cloud widget icon */
.sidebar-widgets .widget_tag_cloud .widget-title::before {
    content: '\F5E5';
}

/* Archive widget icon */
.sidebar-widgets .widget_archive .widget-title::before {
    content: '\F133';
}

/* Widget content area */
.sidebar-widgets .widget > ul,
.sidebar-widgets .widget > div:not(.wp-block-group),
.sidebar-widgets .widget > form {
    padding: 1rem 1.25rem;
}

/* Image widget - no padding */
.sidebar-widgets .widget_media_image {
    text-align: center;
}

.sidebar-widgets .widget_media_image img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-widgets .widget_media_image .widget-title + div {
    padding: 0;
}

/* Widget lists */
.sidebar-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widgets .widget > ul {
    padding: 0.5rem 0;
}

.sidebar-widgets .widget li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widgets .widget li:last-child {
    border-bottom: none;
}

.sidebar-widgets .widget li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.925rem;
    transition: all 0.25s ease;
}

.sidebar-widgets .widget li a:hover {
    background: var(--clr-accent-dim);
    color: var(--primary-blue);
    padding-left: 1.5rem;
}

/* Category count badge */
.sidebar-widgets .widget_categories li a .count,
.sidebar-widgets .widget_categories li a .post-count {
    background: var(--clr-accent-dim);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

/* Archive count styling */
.sidebar-widgets .widget_archive li a {
    display: flex;
    justify-content: space-between;
}

/* Recent Posts widget */
.sidebar-widgets .widget_recent_entries li a {
    font-weight: 500;
}

.sidebar-widgets .widget_recent_entries li .post-date {
    display: block;
    padding: 0 1.25rem 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Search widget */
.sidebar-widgets .widget_search form {
    padding: 1.25rem;
}

.sidebar-widgets .widget_search .search-field {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid #e0e6ec;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.sidebar-widgets .widget_search .search-field:focus {
    border-color: var(--primary-blue);
}

.sidebar-widgets .widget_search .search-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sidebar-widgets .widget_search .search-submit:hover {
    opacity: 0.9;
}

/* Tag Cloud widget */
.sidebar-widgets .widget_tag_cloud .tagcloud {
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-widgets .widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--clr-surface);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.85rem !important;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--clr-border);
}

.sidebar-widgets .widget_tag_cloud .tagcloud a:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* Text widget */
.sidebar-widgets .widget_text .textwidget {
    padding: 1.25rem;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Custom HTML widget */
.sidebar-widgets .widget_custom_html .custom-html-widget {
    padding: 1.25rem;
}

/* ===================================================================
   Single Post Responsive Media Queries
   =================================================================== */

@media (max-width: 991px) {
    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .site-main {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .single-post .card-body {
        padding: 1.5rem !important;
    }

    .single-post .entry-title {
        font-size: 1.75rem !important;
    }

    .single-post-tags-section {
        padding: 1rem !important;
    }

    .sidebar-widgets .widget-title {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }

    .sidebar-widgets .widget li a {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .single-post-tags-section .single-tags-icon {
        display: none !important;
    }
}

/* ========================================
   Service Template Styles
   ======================================== */

/* Service Content Section */
.service-content-section {
    padding: 60px 0 80px;
}

/* Service Sidebar */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.service-sidebar-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.service-sidebar-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-sidebar-title i {
    font-size: 1.25rem;
}

/* Service Menu Navigation */
.service-menu-nav {
    padding: 0;
}

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

.service-menu-list > li {
    border-bottom: 1px solid #f0f0f0;
}

.service-menu-list > li:last-child {
    border-bottom: none;
}

.service-menu-list a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.service-menu-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-menu-list a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 1.75rem;
}

.service-menu-list a:hover::before {
    transform: scaleY(1);
}

/* Current menu item */
.service-menu-list .current-menu-item > a,
.service-menu-list .current_page_item > a {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding-left: 1.75rem;
}

.service-menu-list .current-menu-item > a::before,
.service-menu-list .current_page_item > a::before {
    transform: scaleY(1);
}

/* Submenu Styles */
.service-menu-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.service-menu-list .sub-menu li {
    border-bottom: 1px solid #e9ecef;
}

.service-menu-list .sub-menu li:last-child {
    border-bottom: none;
}

.service-menu-list .sub-menu a {
    padding: 0.875rem 1.5rem 0.875rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.service-menu-list .sub-menu a::before {
    content: '→';
    position: static;
    width: auto;
    background: none;
    transform: none;
    margin-right: 0.5rem;
    color: var(--primary-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-menu-list .sub-menu a:hover::before {
    opacity: 1;
}

/* Menu Placeholder */
.service-menu-placeholder {
    padding: 1.5rem;
}

.service-menu-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Service Content Wrapper */
.service-content-wrapper .entry-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Page Title inside content */
.service-content-wrapper .entry-content .page-title {
    color: var(--gray-dark);
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-blue);
}

.service-content-wrapper .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.service-content-wrapper .entry-content h3 {
    color: var(--gray-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-content-wrapper .entry-content h4 {
    color: var(--gray-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-content-wrapper .entry-content p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.service-content-wrapper .entry-content ul,
.service-content-wrapper .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.service-content-wrapper .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Images and Figures */
.service-content-wrapper .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.service-content-wrapper .entry-content figure {
    max-width: 100%;
    margin: 1.5rem 0;
    overflow: hidden;
}

.service-content-wrapper .entry-content figure img {
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
    margin: 0;
}

.service-content-wrapper .entry-content figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Service Template Responsive */
@media (max-width: 991px) {
    .service-content-section {
        padding: 40px 0 60px;
    }

    .service-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .service-content-wrapper .entry-content {
        padding: 2rem;
    }

    .service-content-wrapper .entry-content .page-title {
        font-size: 1.875rem;
    }

    .service-content-wrapper .entry-content h2 {
        font-size: 1.5rem;
    }

    .service-content-wrapper .entry-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .service-content-section {
        padding: 30px 0 50px;
    }

    /* Mobile: Content trước, Sidebar sau (dưới) */
    .service-content-section .row {
        display: flex;
        flex-direction: column;
    }

    .service-sidebar {
        order: 2;
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .service-content-section .col-lg-9 {
        order: 1;
    }

    .service-sidebar-title {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .service-menu-list a {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .service-menu-list .sub-menu a {
        padding: 0.75rem 1.25rem 0.75rem 2rem;
        font-size: 0.9rem;
    }

    .service-content-wrapper .entry-content {
        padding: 1.5rem;
    }

    .service-content-wrapper .entry-content .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .service-content-wrapper .entry-content h2 {
        font-size: 1.25rem;
    }

    .service-content-wrapper .entry-content h3 {
        font-size: 1.125rem;
    }

    .service-content-wrapper .entry-content h4 {
        font-size: 1rem;
    }
}

/* ========================================
   Contact Page Styles
   ======================================== */

/* Remove padding top for contact page */
.page-template-page-contact .site-main {
    padding-top: 0 !important;
}

/* Page Header */
.page-template-page-contact .page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 80px 0;
    margin-top: 0;
}

.page-header-content {
    text-align: center;
    color: #fff;
}

/* ========================================
   Default Page Styles
   ======================================== */

.default-page .page-header-title {
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-blue);
}

.default-page .entry-title {
    color: var(--clr-heading);
}

.default-page .entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--clr-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.default-page .entry-content p {
    margin-bottom: 1.5rem;
}

.default-page .entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--clr-heading);
}

.default-page .entry-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--clr-heading);
}

.default-page .entry-content h4 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--clr-heading);
}

.default-page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.default-page .entry-content figure {
    margin: 2rem 0;
}

.default-page .entry-content figure img {
    margin: 0;
    border-radius: 0.5rem;
}

.default-page .entry-content figcaption {
    font-size: 0.875rem;
    color: var(--clr-text-dim);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.default-page .entry-content blockquote {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--clr-accent);
    background: var(--clr-surface);
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #555;
}

.default-page .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.default-page .entry-content ul,
.default-page .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.default-page .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.default-page .entry-content li > ul,
.default-page .entry-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.default-page .entry-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.default-page .entry-content a:hover {
    color: var(--dark-blue);
}

.default-page .entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.default-page .entry-content table th,
.default-page .entry-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--clr-border);
    text-align: left;
}

.default-page .entry-content table th {
    background: var(--clr-surface);
    font-weight: 600;
    color: var(--clr-heading);
}

.default-page .entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.default-page .entry-content code {
    background: var(--clr-surface);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #d63384;
}

.default-page .entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.default-page .entry-content hr {
    border: none;
    border-top: 2px solid var(--clr-border);
    margin: 2.5rem 0;
}

.page-template-page-contact .page-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #f8fafc;
}

/* Contact Info */
.contact-info-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact-info-desc {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-content a:hover {
    color: var(--dark-blue);
}

/* Contact Social */
.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.contact-social h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact-social-links {
    display: flex;
    gap: 0.75rem;
}

.contact-social-links .social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-social-links .social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

.contact-social-links .social-link.facebook { background: #1877f2; }
.contact-social-links .social-link.zalo { background: #0068ff; font-size: 0.75rem; font-weight: 600; }
.contact-social-links .social-link.telegram { background: #0088cc; }
.contact-social-links .social-link.whatsapp { background: #25d366; }

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.contact-form .form-group .required {
    color: #ef4444;
}

.contact-form .form-control,
.contact-form .form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 152, 219, 0.1);
    background: #fff;
}

.contact-form .form-control::placeholder {
    color: #94a3b8;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-submit {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
}

/* Map Section */
.map-section {
    background: #fff;
}

.map-wrapper {
    position: relative;
    overflow: hidden;
}

.map-wrapper iframe {
    display: block;
}

/* Contact CTA Section */
.contact-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.contact-cta-content {
    text-align: center;
    color: #fff;
}

.contact-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: #fff !important;
    color: var(--primary-blue) !important;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background-color: #fff !important;
    color: var(--primary-blue) !important;
}

/* Contact Page Responsive */
@media (max-width: 991px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header .page-title {
        font-size: 2rem;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-info-wrapper,
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 50px 0;
    }

    .page-header .page-title {
        font-size: 1.75rem;
    }

    .contact-info-wrapper,
    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   Search Results Page
   ======================================== */

/* Search Header */
.search-page .search-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 60px 0 50px;
    margin-top: 0;
}

.search-page .site-main {
    padding-top: 0 !important;
}

.search-header-content {
    text-align: center;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
}

.search-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.search-page-title span {
    color: var(--primary-orange);
}

.search-result-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.search-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.search-form-wrapper .search-form .input-group {
    border-radius: 12px;
    overflow: hidden;
}

.search-form-wrapper .search-form .form-control {
    padding: 14px 20px;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    box-shadow: none;
}

.search-form-wrapper .search-form .form-control::placeholder {
    color: #94a3b8;
}

.search-form-wrapper .search-form .form-control:focus {
    box-shadow: none;
    background: #fff;
}

.search-form-wrapper .search-form .btn {
    padding: 14px 24px;
    background: var(--primary-orange);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.search-form-wrapper .search-form .btn:hover {
    background: #d96d0f;
}

/* Search Results Section */
.search-results-section {
    padding: 40px 0 60px;
    background: #f8fafc;
    min-height: 40vh;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search Result Card */
.search-result-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e8ecf1;
}

.search-result-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

/* Thumbnail */
.search-result-thumb {
    flex-shrink: 0;
    width: 240px;
    min-height: 180px;
    overflow: hidden;
    display: block;
}

.search-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.search-result-card:hover .search-thumb-img {
    transform: scale(1.05);
}

/* Content */
.search-result-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.search-result-content.no-thumb {
    padding: 28px 32px;
}

/* Meta */
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.search-result-type {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-type.type-post {
    background: rgba(20, 152, 214, 0.1);
    color: var(--primary-blue);
}

.search-result-type.type-page {
    background: rgba(241, 129, 28, 0.1);
    color: var(--primary-orange);
}

.search-result-type.type-other {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-muted);
}

.search-result-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-result-date i {
    margin-right: 4px;
    color: var(--primary-blue);
}

/* Title */
.search-result-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.search-result-title a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: var(--primary-blue);
}

/* Excerpt */
.search-result-excerpt {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.search-result-excerpt p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.search-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-result-cats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-result-cats i {
    margin-right: 4px;
    color: var(--primary-blue);
}

.search-result-cats a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-cats a:hover {
    color: var(--primary-blue);
}

.search-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-read-more:hover {
    color: var(--dark-blue);
    gap: 10px;
}

/* No Results */
.no-results-wrapper {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: rgba(20, 152, 214, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.no-results-icon i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.no-results-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 0.75rem;
}

.no-results-wrapper p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-back-home:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 152, 214, 0.3);
    color: #fff;
}

/* Search Page Responsive */
@media (max-width: 767px) {
    .search-page .search-header {
        padding: 40px 0 35px;
    }

    .search-page-title {
        font-size: 1.5rem;
    }

    .search-result-card {
        flex-direction: column;
    }

    .search-result-thumb {
        width: 100%;
        min-height: 0;
        max-height: 200px;
    }

    .search-result-content {
        padding: 20px;
    }

    .search-result-title {
        font-size: 1.1rem;
    }

    .search-result-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .no-results-wrapper {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .search-form-wrapper .search-form .search-field {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .search-form-wrapper .search-form .search-submit {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}