/**
 * Custom Styles for S2S Core Theme
 *
 * @package S2S_Core
 * @since 1.0.0
 */

/* ===================================
   Preloader
   =================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader .preloader-spinner {
    width: 50px;
    height: 50px;
}

/* Ensure content is visible even if AOS hasn't initialized */
body {
    opacity: 1 !important;
    visibility: visible !important;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Prevent horizontal scroll */
/* Ensure hero section doesn't cause overflow */
.hero-slider-section,
.hero-section {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent scrollbars on sections during lazy load */
section {
    overflow-x: hidden;
    overflow-y: visible;
}

.section-padding {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Make sure elements with AOS are visible by default */
[data-aos] {
    opacity: 1;
    pointer-events: auto;
}

/* Only apply AOS effects after initialization */
html:not(.no-js) [data-aos].aos-init {
    opacity: 0;
}

html:not(.no-js) [data-aos].aos-animate {
    opacity: 1;
}

/* ===================================
   Header / Navigation - Transparent on Load
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Transparent header only on front page */
.home .site-header {
    background-color: transparent;
    box-shadow: none;
}

.site-header.scrolled,
.home .site-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Add top padding to content on non-front-page pages */
.site-main {
    padding-top: 70px;
}

.home .site-main {
    padding-top: 0;
}

.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background-color: transparent !important;
}

.site-header.scrolled .navbar {
    padding: 0.4rem 0;
}

/* Navbar Brand Colors */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.home .site-header .navbar-brand {
    color: #ffffff;
}

.site-header.scrolled .navbar-brand {
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--secondary-color);
}

.site-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.home .site-header .site-title {
    color: #ffffff;
}

.site-header.scrolled .site-title {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.875rem;
    color: var(--medium-gray);
    transition: all 0.3s ease;
}

.home .site-header .site-description {
    color: rgba(255, 255, 255, 0.8);
}

.site-header.scrolled .site-description {
    color: var(--medium-gray);
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #333333;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 1.75rem);
}

/* White links on front page only (transparent header) */
.home .site-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.home .site-header .navbar-nav .nav-link:hover,
.home .site-header .navbar-nav .nav-link.active {
    color: #ffffff;
}

.home .site-header .navbar-nav .nav-link::after {
    background: #ffffff;
}

/* Dark links when scrolled */
.site-header.scrolled .navbar-nav .nav-link {
    color: #333333;
}

.site-header.scrolled .navbar-nav .nav-link:hover,
.site-header.scrolled .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.site-header.scrolled .navbar-nav .nav-link::after {
    background: var(--primary-color);
}

/* Burger icon styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Dark burger icon for white header */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2851, 51, 51, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* White burger on transparent home header */
.home .site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark burger when scrolled */
.site-header.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2851, 51, 51, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hide Bootstrap default dropdown arrow */
.navbar-nav .dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0;
}

/* Add padding to dropdown container to create hover bridge */
.navbar-nav > .dropdown {
    padding-bottom: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Multi-level dropdown styling */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.125rem;
    display: none;
}

.dropdown .dropend {
    position: relative;
}

.dropdown .dropend > .dropdown-toggle::after {
    display: none;
}

/* Show submenu on hover for desktop */
@media (min-width: 992px) {
    .dropdown .dropend:hover > .dropdown-menu {
        display: block;
    }
}

/* Mobile - submenu styling */
@media (max-width: 991.98px) {
    /* Hide dropdown menus by default - controlled by JavaScript */
    .navbar-collapse .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    /* Nested dropdown styling */
    .dropdown-submenu {
        position: static;
        box-shadow: none;
        border-left: 2px solid var(--primary-color);
        margin-left: 1rem;
        padding-left: 0.5rem;
        border-radius: 0;
    }

    /* Style for dropdown items in mobile */
    .navbar-collapse .dropdown-item {
        padding: 0.5rem 1rem;
        white-space: normal;
    }

    /* Add spacing for mobile nav items */
    .navbar-collapse .nav-item {
        margin: 0.25rem 0;
    }

    /* Dropdown toggle icon rotation on mobile */
    .navbar-collapse .dropdown.show > .nav-link .fa-chevron-down,
    .navbar-collapse .dropend.show > .dropdown-item .fa-chevron-right {
        transform: rotate(180deg);
    }
}

.custom-logo-link img {
    max-height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .custom-logo-link img {
    max-height: 36px;
}

/* Header Centered Navigation Styles */
.navbar .row {
    margin: 0;
}

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.dropdown .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.show .fa-chevron-down {
    transform: rotate(180deg);
}

/* Search Toggle Button */
.search-toggle {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #333333 !important;
}

.home .site-header .search-toggle {
    color: #ffffff !important;
}

.site-header.scrolled .search-toggle {
    color: #333333 !important;
}

.search-toggle:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* CTA Button in Header */
.header-cta .btn-primary {
    padding: 10px 24px;
    font-size: 0.875rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.header-cta .btn-primary:hover {
    background: var(--primary-dark, #0d8ab8);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    max-width: 800px;
    width: 90%;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.search-wrapper {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 1.5rem 5rem 1.5rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    background: #fff;
    outline: none;
}

.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   Hero Slider Section - Touches Top of Page
   =================================== */

/* Remove top spacing for pages with hero slider */
body .site-content {
    padding-top: 0;
}

.hero-slider-section {
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider-section .carousel {
    height: 100vh;
    min-height: 600px;
}

.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
    height: 100%;
}

.hero-slider-section .carousel-item {
    position: relative;
}

/* Hero Background with Fade Effect */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.carousel-item.active .hero-bg {
    animation: kenBurns 10s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-slider-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 162, 215, 0.7) 0%, rgba(17, 162, 215, 0.3) 100%);
    z-index: 1;
}

.hero-slider-section .carousel-caption {
    position: static;
    z-index: 2;
    height: 100%;
    padding: 0;
}

.hero-slider-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color) !important;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Carousel Controls */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.hero-slider-section .carousel-control-prev {
    left: 30px;
}

.hero-slider-section .carousel-control-next {
    right: 30px;
}

.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-slider-section .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Carousel Indicators */
.hero-slider-section .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-slider-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-slider-section .carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.3);
}

/* Legacy Hero Section Styles */
/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    margin: 0.5rem;
    min-width: 180px;
}

/* Hero Section Button Overrides */
.hero-section .btn-primary,
.hero-slider-section .btn-primary {
    padding: 18px 40px;
    font-size: 1.0625rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-primary:hover,
.hero-slider-section .btn-primary:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-section .btn-secondary,
.hero-slider-section .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.hero-section .btn-secondary:hover,
.hero-slider-section .btn-secondary:hover {
    border-color: #ffffff;
    color: var(--text-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-down {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    padding-top: 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
}

.footer-widgets {
    padding: 60px 0 50px;
}

.footer-widgets .widget {
    margin-bottom: 0;
}

/* Base widget title styles for footer */
.footer-widgets > .container > .row > div > .widget > .widget-title,
.footer-widgets > .container > .row > div > .widget > h3,
.footer-widgets > .container > .row > div > .widget > h4,
.footer-widgets .s2score-widget > .widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

footer .footer-menu-list li {
    border-bottom: none !important;
}

.footer-widgets > .container > .row > div > .widget > .widget-title::after,
.footer-widgets > .container > .row > div > .widget > h3::after,
.footer-widgets > .container > .row > div > .widget > h4::after,
.footer-widgets .s2score-widget > .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.footer-widgets p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-widgets a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-widgets a:hover {
    color: var(--primary-color);
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
}

.footer-widgets ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-widgets ul li:hover::before {
    transform: translateX(3px);
}

/* Footer Bottom Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 20px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.875rem;
}

.footer-menu .list-inline-item {
    margin: 0 12px;
}

.footer-menu .list-inline-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.footer-menu ul.list-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-menu ul.list-inline li {
    display: inline-block;
    margin: 0 5px;
}

/* ===================================
   Back to Top Button
   =================================== */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: none;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

#back-to-top.show {
    display: flex;
}

/* ===================================
   Sidebar
   =================================== */

.widget {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

aside .widget {
    padding: 0 !important;
    /* margin: 0 !important; */
}
.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }

    /* Force dark text on mobile menu when opened */
    .navbar-collapse .navbar-nav .nav-link {
        color: #444444 !important;
    }

    .navbar-collapse .navbar-nav .nav-link:hover,
    .navbar-collapse .navbar-nav .nav-link:focus {
        color: var(--primary-color) !important;
    }

    /* Dark dropdown items on mobile */
    .navbar-collapse .dropdown-item {
        color: #444444 !important;
    }

    .navbar-collapse .dropdown-item:hover {
        color: var(--primary-color) !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* ===================================
   Accessibility
   =================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   Owl Carousel Custom Navigation
   =================================== */

/* Portfolio Carousel Navigation */
.portfolio-carousel-wrapper {
    position: relative;
    padding-bottom: 60px;
}

.portfolio-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.portfolio-prev,
.portfolio-next {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.portfolio-prev:hover,
.portfolio-next:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.portfolio-prev i,
.portfolio-next i {
    font-size: 18px;
}

/* Testimonials Carousel Navigation */
/* Carousel Wrapper - Elegant Navigation */
.testimonials-carousel-wrapper {
    position: relative;
    padding-bottom: 80px;
}

.testimonials-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* Navigation Buttons - Modern Elegant Design */
.testimonials-prev,
.testimonials-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(var(--primary-rgb), 0.25),
        0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.testimonials-prev::before,
.testimonials-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonials-prev:hover::before,
.testimonials-next:hover::before {
    opacity: 1;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(var(--primary-rgb), 0.35),
        0 4px 8px rgba(0, 0, 0, 0.12);
}

.testimonials-prev:active,
.testimonials-next:active {
    transform: translateY(0);
}

.testimonials-prev i,
.testimonials-next i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* Owl Carousel Overrides */
.owl-carousel .owl-stage-outer {
    padding: 10px 0;
}

.owl-carousel .owl-item {
    opacity: 1;
}

@media (max-width: 767px) {
    .portfolio-carousel-wrapper,
    .testimonials-carousel-wrapper {
        padding-bottom: 70px;
    }

    .portfolio-nav,
    .testimonials-nav {
        right: 50%;
        transform: translateX(50%);
        bottom: 15px;
    }

    .portfolio-prev,
    .portfolio-next,
    .testimonials-prev,
    .testimonials-next {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .portfolio-prev i,
    .portfolio-next i,
    .testimonials-prev i,
    .testimonials-next i {
        font-size: 16px;
    }
}

/* ===================================
   Custom S2Score Widgets - Beautiful Pre-styled Widgets
   =================================== */

/* Widget Base Styles */
.s2score-widget {
    margin-bottom: 2rem;
}
.s2score-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.s2score-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* About Widget */
.s2score-about-widget-content .widget-logo {
    max-width: 180px;
}

.s2score-about-widget-content .widget-logo img {
    width: 100%;
    height: auto;
}

.s2score-about-widget-content .widget-description {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.s2score-about-widget-content .widget-description p {
    margin-bottom: 1rem;
}

.s2score-about-widget-content .widget-description p:last-child {
    margin-bottom: 0;
}

/* Contact Info Widget */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}





.contact-info-list .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.contact-info-list .contact-item:first-child {
    padding-top: 0;
}

.contact-info-list .contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-list .contact-item:hover {
    padding-left: 0.5rem;
}

.contact-info-list .contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.contact-info-list .contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    transform: scale(1.05);
}

.contact-info-list .contact-text {
    flex: 1;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.contact-info-list .contact-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-list .contact-link:hover {
    color: var(--primary-color);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list .recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.recent-posts-list .recent-post-item:first-child {
    padding-top: 0;
}

.recent-posts-list .recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts-list .recent-post-item:hover {
    padding-left: 0.5rem;
}

.recent-posts-list .post-thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.recent-posts-list .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-posts-list .recent-post-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.recent-posts-list .post-details {
    flex: 1;
}

.recent-posts-list .post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.recent-posts-list .post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts-list .post-title a:hover {
    color: var(--primary-color);
}

.recent-posts-list .post-date {
    font-size: 0.8125rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.recent-posts-list .post-date i {
    font-size: 0.75rem;
}

/* Social Media Widget */
.social-links-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links-widget .social-link-widget {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    color: var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links-widget .social-link-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-links-widget .social-link-widget:hover::before {
    opacity: 1;
}

.social-links-widget .social-link-widget:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.3);
}

.social-links-widget .social-link-widget i {
    position: relative;
    z-index: 1;
}

/* Newsletter Widget */
.s2score-newsletter-widget-content .newsletter-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    position: relative;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.newsletter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.newsletter-button:hover::before {
    opacity: 1;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.newsletter-button i,
.newsletter-button .button-text {
    position: relative;
    z-index: 1;
}

.newsletter-button i {
    transition: transform 0.3s ease;
}

.newsletter-button:hover i {
    transform: translateX(3px);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 3px solid #10b981;
}

.newsletter-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 3px solid #ef4444;
}

/* Widget Responsive Styles */
@media (max-width: 767px) {
    .s2score-widget .widget-title {
        font-size: 1.125rem;
    }

    .contact-info-list .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .recent-posts-list .post-thumbnail {
        width: 60px;
        height: 60px;
    }

    .social-links-widget .social-link-widget {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Sidebar Specific Styles */
.sidebar .s2score-widget {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

/* Footer Widget Styles */
/* Remove white background from all footer widgets */
.site-footer .widget,
.site-footer .s2score-widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Footer Widget Titles - Only direct widget titles */
.site-footer .widget > .widget-title,
.site-footer .s2score-widget > .widget-title,
.site-footer .widget > h3,
.site-footer .widget > h4 {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    position: relative;
}

.site-footer .widget > .widget-title::after,
.site-footer .s2score-widget > .widget-title::after,
.site-footer .widget > h3::after,
.site-footer .widget > h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Ensure post titles don't get widget title styles */
.site-footer .post-title,
.site-footer .recent-posts-list h5,
.site-footer .most-visited-post-title {
    text-transform: none !important;
    letter-spacing: normal !important;
    padding-bottom: 0 !important;
    margin-bottom: 0.5rem !important;
}

.site-footer .post-title::after,
.site-footer .recent-posts-list h5::after,
.site-footer .most-visited-post-title::after {
    display: none !important;
}

/* All text elements in footer widgets */
.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget span:not(.input-group-text):not(.button-text):not(.button-loading),
.site-footer .widget label {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .widget a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .widget a:hover {
    color: var(--primary-color);
}

.site-footer .s2score-about-widget-content .widget-description {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.site-footer .s2score-about-widget-content .widget-description p {
    margin-bottom: 0.75rem;
}

.site-footer .s2score-about-widget-content .widget-description p:last-child {
    margin-bottom: 0;
}

/* Contact Widget in Footer */
.site-footer .contact-info-list .contact-item {
    border-bottom: none;
    padding: 1rem 0;
}

.site-footer .contact-info-list .contact-item:first-child {
    padding-top: 0;
}

.site-footer .contact-info-list .contact-icon {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 10px;
}

.site-footer .contact-info-list .contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.site-footer .contact-info-list .contact-text,
.site-footer .contact-info-list .contact-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

.site-footer .contact-info-list .contact-link:hover {
    color: var(--primary-color) !important;
}

/* Quick Links Widget in Footer */
.site-footer .quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .quick-links-list li {
    padding-left: 20px;
    margin-bottom: 0.75rem;
    position: relative;
}

.site-footer .quick-links-list li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.site-footer .quick-links-list a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: all 0.3s ease;
}

.site-footer .quick-links-list a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* Social Links Widget in Footer */
.site-footer .social-links-widget {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-footer .social-link-widget {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer .social-link-widget:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Newsletter Widget in Footer */
.site-footer .newsletter-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
}

.site-footer .newsletter-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    color: #ffffff;
}

.site-footer .newsletter-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: none;
}

.site-footer .newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

/* Recent Posts Widget in Footer - Improved Design */
.site-footer .recent-posts-list {
    margin: 0;
    padding: 0;
}

.site-footer .recent-posts-list .recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.site-footer .recent-posts-list .recent-post-item:first-child {
    padding-top: 0;
}

.site-footer .recent-posts-list .recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.site-footer .recent-posts-list .recent-post-item:hover {
    padding-left: 0;
}

.site-footer .recent-posts-list .post-thumbnail {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.site-footer .recent-posts-list .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.site-footer .recent-posts-list .recent-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
    opacity: 1;
}

.site-footer .recent-posts-list .post-details {
    flex: 1;
    min-width: 0;
}

.site-footer .recent-posts-list .post-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    text-transform: none !important;
}

.site-footer .recent-posts-list .post-title::after {
    display: none !important;
}

.site-footer .recent-posts-list .post-title a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer .recent-posts-list .post-title a:hover {
    color: var(--primary-color) !important;
    padding-left: 0;
}

.site-footer .recent-posts-list .post-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5) !important;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.site-footer .recent-posts-list .post-date i {
    font-size: 0.6875rem;
    color: var(--primary-color);
}

/* Most Visited Posts Widget in Footer */
.site-footer .most-visited-post-title {
    font-size: 0.813rem;
}

.site-footer .most-visited-post-title a {
    color: #ffffff;
}

.site-footer .most-visited-post-meta {
    color: rgba(255, 255, 255, 0.6);
}


.site-footer .social-links-widget .social-link-widget {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .social-links-widget .social-link-widget::before {
    display: none;
}

.site-footer .social-links-widget .social-link-widget:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.site-footer .newsletter-description {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.site-footer .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer .newsletter-input-wrapper {
    margin-bottom: 0;
}

.site-footer .newsletter-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.site-footer .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.site-footer .newsletter-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    outline: none;
}

/* Newsletter CAPTCHA in Footer */
.site-footer .newsletter-captcha-wrapper {
    margin-bottom: 0;
}

.site-footer .newsletter-captcha-wrapper .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.site-footer .newsletter-captcha-wrapper .input-group-text {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.site-footer .newsletter-captcha-wrapper .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: none !important;
    color: #ffffff !important;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.site-footer .newsletter-captcha-wrapper .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.site-footer .newsletter-captcha-wrapper .form-control:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none;
    outline: none;
}

.site-footer .newsletter-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.site-footer .newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.site-footer .newsletter-message {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.site-footer .newsletter-message.success {
    color: #10b981 !important;
}

.site-footer .newsletter-message.error {
    color: #ef4444 !important;
}

/* Footer Menu Widget Styles */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0;
}

.footer-menu-list li:last-child {
    margin-bottom: 0;
}

.footer-menu-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-menu-list li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-menu-list li a:hover {
    color: #ffffff;
    padding-left: 25px;
    transform: translateX(2px);
}

.footer-menu-list li a:hover::before {
    opacity: 1;
    color: var(--primary-light);
}

/* Footer Menu in Sidebar (if used) */
.sidebar .footer-menu-list li a {
    color: var(--text-dark);
}

.sidebar .footer-menu-list li a:hover {
    color: var(--primary-color);
}

/* ===================================
   Most Visited Posts Widget
   =================================== */

.widget.s2score-most-visited-widget {
    background: #fff;
    padding: 20px !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Widget Title Styling */
.widget.s2score-most-visited-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    color: #1a1a1a;
}

.most-visited-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.most-visited-post-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.most-visited-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.most-visited-post-content {
    display: flex;
    gap: 15px;
}

.most-visited-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

.most-visited-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.most-visited-post-item:hover .most-visited-post-thumbnail img {
    transform: scale(1.1);
}

.most-visited-post-details {
    flex: 1;
    min-width: 0;
}

.most-visited-post-title {
    margin: 0 0 8px 0;
    font-size: 0.938rem;
    font-weight: 600;
    line-height: 1.4;
}

.most-visited-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-visited-post-title a:hover {
    color: #2563eb;
}

.most-visited-post-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.813rem;
    color: #666;
}

.most-visited-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.most-visited-post-meta i {
    font-size: 0.75rem;
}

.post-views {
    color: #2563eb;
    font-weight: 500;
}

/* ===================================
   Google Ad Widget
   =================================== */

.widget.s2score-google-ad-widget {
    background: #fff;
    padding: 15px !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.s2score-google-ad-widget-content .widget-title.ad-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
}

.s2score-google-ad-widget-content .widget-title.ad-label::after {
    display: none;
}

.google-ad-container {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-ad-container .adsbygoogle {
    width: 100%;
}

/* Ad Placeholder for admin preview */
.ad-placeholder {
    width: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder-inner {
    text-align: center;
    color: #64748b;
}

.ad-placeholder-inner i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    color: #94a3b8;
}

.ad-placeholder-inner span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.ad-placeholder-inner small {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Footer Google Ad Widget */
.site-footer .s2score-google-ad-widget-content .widget-title.ad-label {
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .ad-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.site-footer .ad-placeholder-inner {
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .ad-placeholder-inner i {
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Themes Showcase Section
   =================================== */

.themes-showcase-section {
    background: #f8f9fa;
    overflow: hidden;
}

.themes-carousel-wrapper {
    position: relative;
    margin-top: 50px;
}

.themes-carousel {
    position: relative;
}

.theme-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.theme-slide.active {
    display: block;
    opacity: 1;
}

/* Left Column - Theme Details */
.theme-details {
    padding: 30px;
}

.theme-price-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.theme-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.theme-description {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.theme-features {
    margin-bottom: 30px;
}

.features-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
}

.features-list li i {
    color: #00a32a;
    font-size: 1.125rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.theme-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.theme-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.theme-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.theme-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.theme-actions .btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.theme-actions .btn-outline-primary:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Right Column - Browser Mockup */
.theme-preview-wrapper {
    position: relative;
}

.browser-mockup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.browser-header {
    background: #e5e7eb;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #d1d5db;
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
}

.browser-dots span:nth-child(1) {
    background: #ef4444;
}

.browser-dots span:nth-child(2) {
    background: #f59e0b;
}

.browser-dots span:nth-child(3) {
    background: #10b981;
}

.browser-url {
    flex: 1;
    background: #fff;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.browser-content {
    height: 500px;
    overflow: hidden;
    position: relative;
    background: #f9fafb;
}

.screenshot-scroller {
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Auto-scroll Animation */
.screenshot-scroller:hover .theme-screenshot {
    animation: auto-scroll 20s linear infinite;
}

@keyframes auto-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-100% + 500px));
    }
}

.theme-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.screenshot-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Carousel Navigation */
.themes-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding: 20px 0;
}

.carousel-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-indicators {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 200px;
}

.carousel-indicators .indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.carousel-indicators .indicator:hover {
    background: var(--secondary-color);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 991px) {
    .theme-title {
        font-size: 2rem;
    }

    .browser-content {
        height: 400px;
    }

    .themes-carousel-nav {
        gap: 20px;
        margin-top: 40px;
    }

    .carousel-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .carousel-indicators {
        gap: 10px;
    }

    .carousel-indicators .indicator {
        width: 12px;
        height: 12px;
    }

    @keyframes auto-scroll {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(calc(-100% + 400px));
        }
    }
}

@media (max-width: 767px) {
    .theme-details {
        padding: 20px 0;
    }

    .theme-title {
        font-size: 1.75rem;
    }

    .browser-content {
        height: 300px;
    }

    .theme-actions {
        flex-direction: column;
    }

    .theme-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .themes-carousel-nav {
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 30px;
        padding: 15px 10px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-indicators {
        order: 3;
        width: 100%;
        max-width: none;
        justify-content: center;
        gap: 8px;
        margin-top: 5px;
    }

    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }

    @keyframes auto-scroll {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(calc(-100% + 300px));
        }
    }
}

/* ===================================
   Single Post Styles
   =================================== */

/* Entry Title - Single Post */
.entry-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Entry Meta */
.entry-meta {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.entry-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: var(--primary-color);
}

/* Entry Content */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Post Navigation */
.post-navigation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: #1a202c;
    transition: color 0.3s ease;
}

.post-navigation a:hover .nav-title {
    color: var(--primary-color);
}

/* Single Post Responsive - Tablet */
@media (max-width: 991px) {
    .entry-title {
        font-size: 1.875rem;
    }
}

/* Single Post Responsive - Mobile */
@media (max-width: 767px) {
    .entry-title {
        font-size: 1.5rem;
        line-height: 1.35;
    }

    .entry-meta {
        font-size: 0.8125rem;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    article.p-4 {
        padding: 1.25rem !important;
    }
}

/* Single Post Responsive - Small Mobile */
@media (max-width: 480px) {
    .entry-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .entry-meta {
        font-size: 0.75rem;
        gap: 0.375rem 0.75rem;
    }

    .entry-content {
        font-size: 0.9375rem;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .top-bar,
    .site-header,
    .hero-section,
    .cta-section,
    #back-to-top,
    .widget {
        display: none;
    }
}

/* ===================================
   News/Magazine Homepage Sections
   =================================== */

/* News Homepage Header Override - Clean white header */
.news-homepage .site-header,
.news-homepage.home .site-header {
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.news-homepage .site-header .navbar-brand,
.news-homepage .site-header .site-title,
.news-homepage.home .site-header .navbar-brand,
.news-homepage.home .site-header .site-title {
    color: var(--primary-color) !important;
}

.news-homepage .site-header .navbar-nav .nav-link,
.news-homepage.home .site-header .navbar-nav .nav-link {
    color: #333333 !important;
}

.news-homepage .site-header .navbar-nav .nav-link:hover,
.news-homepage .site-header .navbar-nav .nav-link.active,
.news-homepage.home .site-header .navbar-nav .nav-link:hover,
.news-homepage.home .site-header .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.news-homepage .site-header .search-toggle,
.news-homepage.home .site-header .search-toggle {
    color: #333333 !important;
}

.news-homepage.home .site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2851, 51, 51, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Section Padding & Common Styles */
.section-padding {
    padding: 60px 0;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 40px 0;
    }
}

/* News Section Header */
.news-section-header {
    margin-bottom: 35px;
    text-align: center;
}

.news-section-header-sm {
    margin-bottom: 25px;
}

.news-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
}

.news-section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* News Category Badge - Pill Shape */
.news-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-category-badge:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
}

/* News Post Meta */
.news-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8125rem;
    color: #64748b;
}

.news-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-post-meta i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.news-meta-date,
.news-meta-author,
.news-meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.8125rem;
}

.news-meta-date i,
.news-meta-author i,
.news-meta-comments i {
    color: var(--primary-color);
}

/* ===================================
   Hero Slider Section
   =================================== */

.news-hero-slider-section {
    padding: 85px 0 50px;
    background: #fff;
    overflow: hidden;
}

.news-hero-slider-section > .container {
    overflow: hidden;
}

.admin-bar .news-hero-slider-section {
    padding-top: 117px;
}

/* Slider Wrapper */
.news-hero-slider-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.news-hero-slider-wrapper .carousel-inner {
    border-radius: 16px;
}

/* Individual Slide */
.news-slider-slide {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a202c;
    display: flex;
    align-items: center;
    border-radius: 16px;
}

.news-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    border-radius: 16px;
}

.news-slider-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Slider Meta Top (Category + Date) */
.news-slider-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news-slider-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.news-slider-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

/* Slider Title */
.news-slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
    color: #fff;
}

.news-slider-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.news-slider-title a:hover {
    opacity: 0.9;
}

/* Slider Author */
.news-slider-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.news-slider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.news-slider-author-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.news-slider-time-ago {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.news-slider-time-ago::before {
    content: '\2022';
    margin-right: 12px;
}

/* Carousel Controls */
.news-hero-slider-wrapper .carousel-control-prev,
.news-hero-slider-wrapper .carousel-control-next {
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
    background: none;
}

.news-hero-slider-wrapper:hover .carousel-control-prev,
.news-hero-slider-wrapper:hover .carousel-control-next {
    opacity: 1;
}

.news-hero-slider-wrapper .carousel-control-prev {
    left: 15px;
}

.news-hero-slider-wrapper .carousel-control-next {
    right: 15px;
}

.news-hero-slider-wrapper .carousel-control-prev-icon,
.news-hero-slider-wrapper .carousel-control-next-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    background-size: 50% 50%;
}

.news-hero-slider-wrapper .carousel-control-prev:hover .carousel-control-prev-icon,
.news-hero-slider-wrapper .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* Post Thumbnails Below Slider */
.news-hero-thumbs-wrapper {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 30px;
    overflow: hidden;
}

/* Fallback: Hide extra items if Owl doesn't load */
.news-hero-thumbs:not(.owl-loaded) {
    display: flex;
    gap: 15px;
    overflow: hidden;
}

.news-hero-thumbs:not(.owl-loaded) .news-thumb-item {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
}

/* Owl Carousel styles */
.news-hero-thumbs.owl-carousel.owl-loaded {
    display: block;
}

.news-hero-thumbs.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.news-hero-thumbs.owl-carousel .owl-stage {
    display: flex;
}

.news-hero-thumbs.owl-carousel .owl-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.news-thumb-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-thumb-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.2);
}

.news-thumb-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.news-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.news-thumb-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-thumb-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-thumb-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-thumb-title a:hover {
    color: var(--primary-color);
}

.news-thumb-date {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Hero Slider Responsive */
@media (max-width: 1199px) {
    .news-slider-title {
        font-size: 2rem;
    }

    .news-slider-content {
        padding: 40px;
    }
}

@media (max-width: 991px) {
    .news-hero-slider-section {
        padding: 80px 0 40px;
    }

    .news-slider-slide {
        min-height: 400px;
    }

    .news-slider-title {
        font-size: 1.75rem;
    }

    .news-slider-content {
        padding: 30px;
        max-width: 100%;
    }

    .news-hero-thumbs-wrapper {
        margin-top: 20px;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .news-hero-slider-section {
        padding: 75px 0 30px;
    }

    .news-slider-slide {
        min-height: 350px;
    }

    .news-slider-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .news-slider-content {
        padding: 25px;
    }

    .news-slider-author {
        flex-wrap: wrap;
    }

    .news-thumb-image {
        width: 70px;
        height: 70px;
    }

    .news-thumb-title {
        font-size: 0.875rem;
    }

    .news-hero-slider-wrapper .carousel-control-prev,
    .news-hero-slider-wrapper .carousel-control-next {
        display: none;
    }
}

@media (max-width: 575px) {
    .news-slider-slide {
        min-height: 300px;
    }

    .news-slider-title {
        font-size: 1.25rem;
    }

    .news-slider-meta-top {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .news-thumb-item {
        padding: 12px;
    }

    .news-thumb-image {
        width: 60px;
        height: 60px;
    }
}

/* ===================================
   Editor's Choice Section
   =================================== */

.news-editors-section {
    background: #fff;
}

.news-editors-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
}

.news-editors-large {
    height: 100%;
}

.news-editors-center {
    height: 100%;
}

/* News Card Styles */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-image .news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-title-sm {
    font-size: 0.9375rem;
}

.news-card-excerpt {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vertical Card (Editor's Choice Large) */
.news-card-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-vertical .news-card-image {
    flex: 1;
    min-height: 250px;
}

.news-card-vertical .news-card-image img {
    height: 100%;
}

/* Small Card */
.news-card-small {
    height: 100%;
}

.news-card-small .news-card-image {
    height: 140px;
}

.news-card-small .news-card-content {
    padding: 15px;
}

.news-card-small .news-card-title {
    font-size: 0.9375rem;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grid Card */
.news-card-grid .news-card-image {
    height: 200px;
}

/* Compact Card */
.news-card-compact {
    height: 100%;
}

.news-card-compact .news-card-image {
    height: 120px;
}

.news-card-compact .news-card-content {
    padding: 12px;
}

.news-card-compact .news-card-title {
    font-size: 0.875rem;
    margin-bottom: 6px;
}

/* Horizontal Card */
.news-card-horizontal {
    height: 100%;
}

.news-card-horizontal .news-card-image-full {
    height: 100%;
    min-height: 220px;
}

.news-card-horizontal .news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* List Card */
.news-card-list {
    margin-bottom: 20px;
    border-radius: 12px;
}

.news-card-list .news-card-image {
    height: 100%;
    min-height: 180px;
    border-radius: 12px 0 0 12px;
}

.news-card-list .news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px 25px;
}

.news-card-list .news-category-badge {
    position: static;
    margin-bottom: 12px;
    align-self: flex-start;
}

.news-card-list .news-card-title {
    font-size: 1.25rem;
}

@media (max-width: 991px) {
    .news-editors-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-editors-center {
        grid-column: 1 / -1;
        order: 3;
    }

    .news-editors-left {
        order: 1;
    }

    .news-editors-right {
        order: 2;
    }
}

@media (max-width: 767px) {
    .news-editors-grid {
        grid-template-columns: 1fr;
    }

    .news-card-list .news-card-image {
        min-height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .news-card-list .news-card-title {
        font-size: 1.125rem;
    }
}

/* ===================================
   Picked Posts Section (Tabbed)
   =================================== */

.news-picked-section {
    background: #f8fafc;
}

.news-picked-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.news-tab-btn {
    padding: 12px 28px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.news-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.news-picked-content {
    position: relative;
    min-height: 400px;
}

.news-picked-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.news-picked-content.loading .news-picked-loading {
    display: flex;
}

.news-picked-grid {
    transition: opacity 0.3s ease;
}

.news-picked-content.loading .news-picked-grid {
    opacity: 0.3;
}

/* ===================================
   Multi-Column Section
   =================================== */

.news-multicolumn-section {
    background: #fff;
}

/* Sidebar Box */
.news-sidebar-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.news-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-sidebar-title i {
    color: var(--primary-color);
}

/* Trending List */
.news-trending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-trending-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.news-trending-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.news-trending-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
}

.news-trending-content {
    flex: 1;
}

.news-trending-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-trending-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-trending-title a:hover {
    color: var(--primary-color);
}

.news-trending-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Newsletter Box */
.news-newsletter-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 25px;
}

.news-newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.news-newsletter-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.news-newsletter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.news-newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.news-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-newsletter-form .newsletter-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.95);
}

.news-newsletter-form .newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.news-newsletter-form .newsletter-button {
    width: 100%;
    padding: 12px 20px;
    background: #1a202c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-newsletter-form .newsletter-button:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Newsletter CAPTCHA */
.news-newsletter-form .newsletter-captcha {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px 12px;
}

.news-newsletter-form .captcha-question {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-newsletter-form .captcha-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.news-newsletter-form .captcha-input {
    flex: 1;
    min-width: 60px;
    max-width: 80px;
    padding: 6px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
    background: #fff;
}

.news-newsletter-form .captcha-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.news-newsletter-form .captcha-input::placeholder {
    color: #94a3b8;
}

.news-newsletter-form .newsletter-message {
    font-size: 0.8125rem;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 5px;
}

.news-newsletter-form .newsletter-message.success {
    background: rgba(255, 255, 255, 0.9);
    color: #059669;
}

.news-newsletter-form .newsletter-message.error {
    background: rgba(255, 255, 255, 0.9);
    color: #dc2626;
}

/* Sidebar Posts */
.news-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-sidebar-post-item {
    display: flex;
    gap: 12px;
}

.news-sidebar-post-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.news-sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-sidebar-post-item:hover .news-sidebar-post-image img {
    transform: scale(1.1);
}

.news-sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.news-sidebar-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-sidebar-post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-sidebar-post-title a:hover {
    color: var(--primary-color);
}

/* ===================================
   Featured Banner Section
   =================================== */

.news-banner-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .news-banner-section {
        background-attachment: scroll;
    }
}

.news-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.85) 0%, rgba(var(--primary-rgb), 0.7) 100%);
}

.news-banner-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    width: 100%;
}

.news-banner-inner {
    text-align: center;
}

.news-banner-inner .news-category-badge {
    margin-bottom: 20px;
}

.news-banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.news-banner-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-banner-title a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.news-banner-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.news-banner-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.news-banner-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-banner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.news-banner-author-info {
    text-align: left;
}

.news-banner-author-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
}

.news-banner-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
}

.news-banner-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-banner-readmore:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.news-banner-readmore i {
    transition: transform 0.3s ease;
}

.news-banner-readmore:hover i {
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .news-banner-section {
        min-height: 450px;
    }

    .news-banner-title {
        font-size: 1.75rem;
    }

    .news-banner-excerpt {
        font-size: 1rem;
    }

    .news-banner-meta {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===================================
   Recent Posts Section
   =================================== */

.news-recent-section {
    background: #f8fafc;
}

.news-recent-posts {
    margin-bottom: 30px;
}

/* Load More Button */
.news-load-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

.news-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.news-load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
}

.news-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sidebar Widgets */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.news-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.news-widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.news-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Widget Posts */
.news-widget-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.news-widget-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-widget-post-image {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
}

.news-widget-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-widget-post:hover .news-widget-post-image img {
    transform: scale(1.1);
}

.news-widget-post-content {
    flex: 1;
    min-width: 0;
}

.news-widget-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-widget-post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-widget-post-title a:hover {
    color: var(--primary-color);
}

/* Categories List */
.news-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-categories-list li {
    margin-bottom: 10px;
}

.news-categories-list li:last-child {
    margin-bottom: 0;
}

.news-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-categories-list a:hover {
    background: var(--primary-color);
    color: #fff;
    padding-left: 20px;
}

.news-categories-list .count {
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-categories-list a:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Tags Cloud */
.news-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ===================================
   News Section Responsive Adjustments
   =================================== */

@media (max-width: 991px) {
    .news-sidebar {
        position: static;
        margin-top: 40px;
    }

    .news-card-list .row {
        flex-direction: column;
    }

    .news-card-list .col-md-4,
    .news-card-list .col-md-8 {
        width: 100%;
    }

    .news-card-list .news-card-image {
        border-radius: 12px 12px 0 0;
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .news-section-title {
        font-size: 1.5rem;
    }

    .news-tab-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .news-sidebar-box {
        padding: 20px;
    }

    .news-newsletter-box {
        padding: 25px 20px;
    }

    .news-card-grid .news-card-image {
        height: 180px;
    }
}

/* ===================================
   Remove top padding on news homepage
   =================================== */

.home.news-homepage .site-main,
.news-homepage .site-main.front-page {
    padding-top: 0 !important;
}

/* Ensure proper spacing from fixed header */
.news-homepage .news-hero-section {
    margin-top: 0;
}
