/*
Theme Name: Nex-Lite
Theme URI: https://nexpowersolutions.co.uk
Author: Sami
Author URI: https://nexpowersolutions.co.uk
Description: Custom WordPress Theme by Nexpower Solutions.
Version: 1.0
License: GPL v2 or later
Text Domain: nex-lite
*/

/* =============================================
   HEADER STYLES
   ============================================= */

/* TOP BAR */
.child-top-bar {
    background-color: #0d4f5c;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.child-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
    position: relative;
}

/* LEFT - Social Icons */
.child-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.child-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    text-decoration: none;
}
.child-social-icons a:hover {
    background-color: rgba(255,255,255,0.35);
}

/* CENTER - Logo */
.child-top-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.child-top-logo a {
    text-decoration: none;
    display: block;
}
.child-top-logo img {
    max-height: 68px !important;
    width: auto !important;
    height: 68px !important;
}
.child-site-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* RIGHT - Search + Newsletter */
.child-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* Search Toggle Button */
.child-search-wrap {
    position: relative;
}
.child-search-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
}
.child-search-toggle:hover {
    background: rgba(255,255,255,0.35);
}

/* Search Dropdown */
.child-search-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    width: 240px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 8px;
}
.child-search-dropdown.active {
    display: block;
}
.child-search-dropdown form {
    display: flex;
    align-items: center;
    gap: 0;
}
.child-search-dropdown input[type="search"] {
    flex: 1;
    border: 1px solid #ddd;
    border-right: none;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    outline: none;
    color: #333;
}
.child-search-dropdown button[type="submit"] {
    background: #0d4f5c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Newsletter Button */
.child-newsletter-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #0d4f5c !important;
    padding: 7px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    white-space: nowrap;
}
.child-newsletter-btn:hover {
    background-color: transparent;
    color: #ffffff !important;
}

/* NAV BAR */
.child-nav-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}
.child-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}
.child-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.child-nav-menu li a {
    display: block;
    padding: 14px 18px;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.child-nav-menu li a:hover {
    color: #0d4f5c !important;
}

/* =============================================
   HERO SLIDER STYLES
   ============================================= */

.nex-hero-swiper {
    width: 100%;
    height: 520px;
    position: relative;
}
.hero-slide-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #fff;
    max-width: 760px;
}
.hero-slide-content .post-meta {
    font-size: 13px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.85);
}
.hero-slide-content .post-category,
.hero-slide-content .post-date,
.hero-slide-content .divider {
    color: rgba(255,255,255,0.85);
}
.hero-slide-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
}
.hero-slide-title a {
    color: #fff;
    text-decoration: none;
}
.hero-slide-title a:hover {
    text-decoration: underline;
}
.hero-slide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.hero-slide-btn:hover {
    background: #111;
    color: #fff;
}

/* Hide slider arrows — dots only */
.nex-hero-swiper .swiper-button-prev,
.nex-hero-swiper .swiper-button-next {
    display: none !important;
}

.nex-hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
}
.nex-hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
}
@media (max-width: 768px) {
    .nex-hero-swiper { height: 360px; }
    .hero-slide-content { padding: 24px; }
    .hero-slide-title { font-size: 22px; }
}
/* ================================
   CATEGORY CARDS - CIRCULAR ICON STYLE
   ================================ */

#category-cards-slider {
    width: 100%;
    padding: 35px 0;
    background: #ffffff;
}

.cat-slider-wrap {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 30px;
    scroll-behavior: smooth;
    justify-content: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cat-slider-wrap::-webkit-scrollbar {
    display: none;
}

.cat-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    width: 110px;
    transition: transform 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d4f5c, #156b7a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(13, 79, 92, 0.25);
    transition: box-shadow 0.3s ease;
}

.cat-card:hover .cat-card-icon {
    box-shadow: 0 6px 18px rgba(13, 79, 92, 0.4);
}

.cat-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #222 !important;
    text-align: center;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .cat-slider-wrap {
        padding: 10px 15px;
        gap: 18px;
        justify-content: flex-start;
    }
    .cat-card {
        width: 85px;
    }
    .cat-card-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    .cat-card-name {
        font-size: 12px;
    }
}

/* Hide sub-categories from nav menu */
.child-nav-menu li ul,
.child-nav-menu li .sub-menu {
    display: none !important;
}

/* ================================
   CATEGORY PAGE - HUNKER STYLE
   ================================ */

/* ---- CATEGORY BANNER ---- */
.cat-page-banner {
    background: #ffffff;
    border-bottom: none;
    padding: 50px 20px 35px;
    text-align: center;
}

.cat-page-banner-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cat-page-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.cat-page-desc {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Sub-category Pills */
.cat-page-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cat-pill {
    display: inline-block;
    border: 1px solid #cccccc;
    color: #333 !important;
    background: #ffffff;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.cat-pill:hover {
    background: #0d4f5c;
    color: #fff !important;
    border-color: #0d4f5c;
}

/* ---- POSTS GRID ---- */
.cat-page-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cat-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-post-card {
    border: 1px solid #eeeeee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.cat-post-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.cat-post-thumb {
    display: block;
    overflow: hidden;
    height: 200px;
}

.cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cat-post-card:hover .cat-post-thumb img {
    transform: scale(1.04);
}

.cat-post-info {
    padding: 18px;
}

.cat-post-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d4f5c;
}

.cat-post-cat a {
    color: #0d4f5c !important;
    text-decoration: none !important;
}

.cat-post-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 8px 0 10px;
}

.cat-post-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.cat-post-title a:hover {
    color: #0d4f5c !important;
}

.cat-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
}

.cat-post-meta time {
    font-size: 12px;
    color: #999;
}

/* Pagination */
.cat-pagination {
    margin-top: 40px;
    text-align: center;
}

.cat-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cat-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px;
}

.cat-pagination .page-numbers.current,
.cat-pagination .page-numbers:hover {
    background: #0d4f5c;
    color: #fff !important;
    border-color: #0d4f5c;
}

/* Mobile */
@media (max-width: 768px) {
    .cat-page-title { font-size: 28px; }
    .cat-posts-grid { grid-template-columns: 1fr; gap: 20px; }
    .cat-post-thumb { height: 180px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cat-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   MOBILE HEADER FIX
   ================================ */

@media (max-width: 768px) {
    .child-top-bar-inner {
        flex-wrap: nowrap;
        padding: 8px 12px;
        gap: 8px;
    }
    .child-top-logo {
        position: absolute;
        left: 45%;
        transform: translateX(-50%);
    }
    .child-top-logo img {
        max-height: 65px !important;
        height: 65px !important;
        width: auto !important;
    }
    .child-social-icons a {
        width: 26px;
        height: 26px;
    }
    .child-newsletter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    .child-nav-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .child-nav-inner {
        justify-content: flex-start;
        padding: 0 10px;
        min-width: max-content;
    }
    .child-nav-menu li a {
        padding: 12px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    body, html {
        overflow-x: hidden;
        max-width: 100%;
    }
    .child-custom-slider {
        height: 280px;
    }
}

/* Grid-1 full width after removing grid-2 */
#after-hero {
    display: block;
}

#after-hero .grid-1 {
    width: 100%;
}

/* ================================
   FIX ALL HOMEPAGE GRID IMAGES
   ================================ */

#after-hero .grid-1 img,
#various img,
#mesh img,
#tiled img,
#highlights img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block;
}

#after-hero .grid-1 a img,
#various a img,
#mesh a img,
#tiled a img,
#highlights a img {
    border-radius: 4px;
}

#featured-post img {
    width: 100% !important;
    height: 480px !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    #after-hero .grid-1 img,
    #various img,
    #mesh img,
    #tiled img,
    #highlights img {
        height: 180px !important;
    }
    #featured-post img {
        height: 280px !important;
    }
}

/* ================================
   VARIOUS, MESH, TILED SECTIONS
   ================================ */

#various {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.various-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.various-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.various-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.various-thumb {
    display: block;
    height: 160px;
    overflow: hidden;
}

.various-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.various-info {
    padding: 14px;
}

.various-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d4f5c;
    letter-spacing: 0.5px;
}

.various-title {
    font-size: 15px;
    font-weight: 700;
    margin: 6px 0 8px;
    line-height: 1.4;
}

.various-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.various-title a:hover {
    color: #0d4f5c !important;
}

.various-date {
    font-size: 12px;
    color: #999;
}

/* ---- MESH ---- */
#mesh {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.mesh-heading {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.mesh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mesh-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.mesh-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.mesh-thumb {
    display: block;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.mesh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mesh-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
}

.mesh-info {
    padding: 14px;
}

.mesh-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d4f5c;
    letter-spacing: 0.5px;
}

.mesh-title {
    font-size: 15px;
    font-weight: 700;
    margin: 6px 0 8px;
    line-height: 1.4;
}

.mesh-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.mesh-title a:hover {
    color: #0d4f5c !important;
}

.mesh-views {
    font-size: 12px;
    color: #999;
}

/* ---- TILED ---- */
#tiled {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.tiled-heading {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.tiled-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.tiled-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    background: linear-gradient(145deg, #ffffff, #f3f3f3);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 28px 22px;
    width: 170px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tiled-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(13, 79, 92, 0.18);
    border-color: #0d4f5c;
}

.tiled-avatar {
    position: relative;
}

.tiled-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid #0d4f5c;
    padding: 2px;
}

.tiled-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a !important;
    margin: 14px 0 6px;
}

.tiled-count {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #0d4f5c;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ================================
   FIX SPACING
   ================================ */

#various, #mesh, #tiled, #highlights {
    margin: 0 !important;
    padding-top: 10px !important;
}

.mesh-heading, .tiled-heading {
    margin-bottom: 18px !important;
}

@media (max-width: 768px) {
    .various-grid,
    .mesh-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .tiled-card {
        width: 140px;
        padding: 20px 16px;
    }
    .tiled-avatar img {
        width: 65px;
        height: 65px;
    }
}

/* ================================
   FEATURED SECTION (1 big + 3 small)
   ================================ */

#hp-featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hp-featured-inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

.hp-feat-big {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    width: 100%;
}

.hp-feat-big-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.hp-feat-big-img-wrap {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    border-radius: 10px;
}

.hp-feat-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hp-feat-big-link:hover .hp-feat-big-img {
    transform: scale(1.03);
}

.hp-feat-big-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
    border-radius: 10px;
    z-index: 1;
}

.hp-feat-big-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}

.hp-feat-cat {
    display: inline-block;
    background: #0d4f5c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.hp-feat-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 8px;
}

.hp-feat-date {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

/* Small posts column */
.hp-feat-smalls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-feat-small {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.hp-feat-small:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hp-feat-small-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 110px;
    overflow: hidden;
    display: block;
}

.hp-feat-small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hp-feat-small:hover .hp-feat-small-thumb img {
    transform: scale(1.05);
}

.hp-feat-small-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.hp-feat-small-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0d4f5c;
    margin-bottom: 5px;
    display: block;
}

.hp-feat-small-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hp-feat-small-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.hp-feat-small-title a:hover {
    color: #0d4f5c !important;
}

.hp-feat-small-date {
    font-size: 11px;
    color: #999;
}

@media (max-width: 900px) {
    .hp-featured-inner {
        grid-template-columns: 1fr;
    }
    .hp-feat-big-img {
        height: 300px;
    }
    .hp-feat-smalls {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hp-feat-small {
        flex: 1 1 calc(50% - 8px);
    }
}

/* ================================
   VARIOUS SECTION - 3 column
   ================================ */

.various-section-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 16px;
}

.various-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 4px solid #0d4f5c;
    padding-left: 14px;
    margin: 0;
}

#various {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}

.various-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ================================
   TRENDING SECTION - Dark bg
   ================================ */

#hp-trending {
    background: #0d2d35;
    padding: 50px 20px;
    margin: 0;
}

.hp-trending-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hp-trending-heading {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 28px;
}

/* Swiper trending slider */
.hp-trending-swiper {
    width: 100%;
    padding-bottom: 10px;
}

.hp-trending-swiper .swiper-button-prev,
.hp-trending-swiper .swiper-button-next {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    top: 40%;
}

.hp-trending-swiper .swiper-button-prev::after,
.hp-trending-swiper .swiper-button-next::after {
    font-size: 14px;
}

.hp-trending-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.3s ease;
    height: 100%;
}

.hp-trending-card:hover {
    background: rgba(255,255,255,0.1);
}

.hp-trending-thumb {
    display: block;
    height: 160px;
    overflow: hidden;
}

.hp-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-trending-card:hover .hp-trending-thumb img {
    transform: scale(1.04);
}

.hp-trending-info {
    padding: 14px;
}

.hp-trending-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5ecfdf;
    display: block;
    margin-bottom: 6px;
}

.hp-trending-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}

.hp-trending-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.hp-trending-title a:hover {
    color: #5ecfdf !important;
}

.hp-trending-date {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

/* ================================
   NEWSLETTER BANNERS (top + bottom)
   ================================ */

#hp-newsletter-top {
    background: linear-gradient(135deg, #0d4f5c 0%, #156b7a 100%);
    padding: 50px 20px;
}

#hp-newsletter {
    background: linear-gradient(135deg, #0d4f5c 0%, #156b7a 100%);
    padding: 50px 20px;
}

.hp-newsletter-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hp-newsletter-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.hp-newsletter-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.hp-newsletter-btn {
    display: inline-block;
    background: #ffffff;
    color: #0d4f5c !important;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hp-newsletter-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hp-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    .hp-newsletter-title {
        font-size: 20px;
    }
}

/* ================================
   MORE POSTS SECTION
   ================================ */

#hp-more-posts {
    padding: 50px 20px;
}

.hp-more-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hp-more-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 4px solid #0d4f5c;
    padding-left: 14px;
    margin: 0 0 28px;
}

.hp-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.hp-more-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.hp-more-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.hp-more-thumb {
    display: block;
    height: 200px;
    overflow: hidden;
}

.hp-more-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-more-card:hover .hp-more-thumb img {
    transform: scale(1.04);
}

.hp-more-info {
    padding: 18px;
}

.hp-more-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d4f5c;
    display: block;
    margin-bottom: 6px;
}

.hp-more-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}

.hp-more-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.hp-more-title a:hover {
    color: #0d4f5c !important;
}

.hp-more-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px;
}

.hp-more-date {
    font-size: 11px;
    color: #999;
}

@media (max-width: 768px) {
    .various-grid,
    .hp-more-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .various-grid,
    .hp-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hp-trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   SINGLE POST PAGE STYLES
   ================================ */

/* Featured Image */
.post-featured-image {
    width: 100%;
    max-width: 860px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    margin: 0 auto 28px;
}

/* Force image container to match content width */
.post-wrapper > img.post-featured-image {
    max-width: 860px;
    margin-left: 0;
    margin-right: auto;
}

/* Post Wrapper */
.post-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post Header */
.post-header {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 20px;
    box-sizing: border-box;
}

.post-header .entry-title,
.post-header .post-categories,
.post-header .post-excerpt,
.post-header .post-meta {
    max-width: 820px;
}

.post-categories {
    display: block;
    margin-bottom: 14px;
}

.post-categories a {
    display: inline-block;
    background: #0d4f5c;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none !important;
}

.entry-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.post-excerpt {
    font-size: 17px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
    border-left: 4px solid #0d4f5c;
    padding-left: 16px;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

/* Remove extra space between meta and content */
.post-container {
    margin-top: 24px;
}

.plain-post-content {
    margin-top: 0;
}

.nex-lite-post-content p:first-child {
    margin-top: 0;
}

.post-meta .author-block {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-weight: 600;
}

.post-meta .author-block img {
    border-radius: 50%;
}

.post-meta .divider {
    color: #ccc;
}

/* Post Content */
.post-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.nex-lite-post-content {
    font-size: 17px;
    line-height: 1.85;
    color: #2c2c2c;
}

/* Paragraph spacing */
.nex-lite-post-content p {
    margin-bottom: 24px;
}

/* Headings inside content */
.nex-lite-post-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.nex-lite-post-content h3 {
    font-size: 21px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 32px 0 12px;
}

.nex-lite-post-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 10px;
}

/* Images inside content */
.nex-lite-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    display: block;
}

/* Links */
.nex-lite-post-content a {
    color: #0d4f5c;
    text-decoration: underline;
}

.nex-lite-post-content a:hover {
    color: #156b7a;
}

/* Lists */
.nex-lite-post-content ul,
.nex-lite-post-content ol {
    padding-left: 28px;
    margin-bottom: 24px;
}

.nex-lite-post-content ul li,
.nex-lite-post-content ol li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Blockquote */
.nex-lite-post-content blockquote {
    border-left: 4px solid #0d4f5c;
    background: #f0f7f8;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 6px 6px 0;
    font-size: 18px;
    font-style: italic;
    color: #333;
}

/* Tables */
.nex-lite-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 15px;
}

.nex-lite-post-content table th {
    background: #0d4f5c;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
}

.nex-lite-post-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.nex-lite-post-content table tr:nth-child(even) td {
    background: #f8f8f8;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-tag {
    display: inline-block;
    background: #f0f7f8;
    color: #0d4f5c !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #c8e0e4;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background: #0d4f5c;
    color: #fff !important;
}

/* Share buttons */
.tags-and-share {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 30px 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.post-navigation > div {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 20px;
    transition: box-shadow 0.2s ease;
}

.post-navigation > div:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-navigation span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d4f5c;
    margin-bottom: 6px;
}

.post-navigation a {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none !important;
    line-height: 1.4;
    display: block;
}

.post-navigation a:hover {
    color: #0d4f5c !important;
}

.post-navigation .tail-div {
    text-align: right;
}

/* Author Box */
.post-author {
    background: #f0f7f8;
    border: 1px solid #c8e0e4;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 32px 0;
}

.post-author img {
    border-radius: 50%;
    border: 3px solid #0d4f5c;
    margin-bottom: 12px;
}

.post-author span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d4f5c;
}

.post-author h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 8px;
}

.post-author h4 a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.post-author .author-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
}

/* Related Posts */
.related-post {
    margin: 32px 0;
}

.related-post .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-left: 4px solid #0d4f5c;
    padding-left: 14px;
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-article {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.related-article:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-thumbnail {
    height: 160px;
    background-size: cover;
    background-position: center;
    display: block;
}

.article-title {
    display: block;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none !important;
    line-height: 1.4;
}

.article-title:hover {
    color: #0d4f5c !important;
}

/* Mobile */
@media (max-width: 768px) {
    .entry-title { font-size: 26px; }
    .nex-lite-post-content { font-size: 16px; }
    .post-navigation { grid-template-columns: 1fr; }
    .related-posts { grid-template-columns: 1fr; }
    .nex-lite-post-content h2 { font-size: 22px; }
    .nex-lite-post-content h3 { font-size: 18px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .related-posts { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   SIDEBAR STYLES
   ================================ */

.post-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.plain-post-content {
    flex: 1;
    min-width: 0;
    max-width: 820px;
}

.site-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Sidebar Widget */
.nex-lite-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.nex-lite-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d4f5c;
}

/* Recent Posts Widget */
.nex-lite-widget .recentcomments,
.nex-lite-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nex-lite-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.nex-lite-widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nex-lite-widget ul li a {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none !important;
    line-height: 1.4;
    display: block;
}

.nex-lite-widget ul li a:hover {
    color: #0d4f5c !important;
}

/* Recent Posts with thumbnails */
.widget_recent_entries ul li {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Sidebar post thumbnail */
.sidebar-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-post-item:last-child {
    border-bottom: none;
}

.sidebar-post-thumb {
    width: 65px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-post-info a {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.sidebar-post-info a:hover {
    color: #0d4f5c !important;
}

.sidebar-post-date {
    font-size: 11px;
    color: #999;
}

@media (max-width: 900px) {
    .post-wrapper {
        padding: 0 16px;
    }
    .post-header {
        padding: 0;
        margin: 0 0 20px;
    }
    .post-container {
        flex-direction: column;
        padding: 0 16px;
        gap: 24px;
    }
    .plain-post-content {
        max-width: 100%;
        padding: 0;
    }
    .nex-lite-post-content {
        font-size: 15px;
        padding: 0;
        margin: 0;
    }
    .nex-lite-post-content p {
        margin-bottom: 18px;
        line-height: 1.75;
    }
    .site-sidebar {
        width: 100%;
        position: static;
        padding: 0;
    }
    .entry-title {
        font-size: 24px !important;
        line-height: 1.3;
    }
    .post-featured-image {
        height: auto;
        object-fit: contain;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    .post-meta {
        font-size: 12px;
        gap: 6px;
    }
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .related-posts {
        grid-template-columns: 1fr;
    }
    .nex-lite-post-content h2 {
        font-size: 19px !important;
    }
    .nex-lite-post-content h3 {
        font-size: 16px !important;
    }
    /* Remove any inherited left margin/padding */
    .nex-lite-single-post .site-container {
        padding: 0;
    }
}

/* Mobile site-container override for single post */
@media (max-width: 900px) {
    .nex-lite-single-post > .site-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ================================
   SINGLE POST MOBILE FINAL FIX
   ================================ */
@media (max-width: 768px) {
    /* Remove theme default padding on single post */
    .nex-lite-single-post .site-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* Add our own controlled padding */
    .post-wrapper {
        padding: 0 15px !important;
        box-sizing: border-box;
    }

    .post-container {
        padding: 0 !important;
    }

    /* Fix image on mobile */
    .post-featured-image {
        height: auto !important;
        width: 100% !important;
        border-radius: 6px !important;
        object-fit: contain !important;
    }
}

/* ================================
   AUTHOR PAGE - CIRCLE AVATAR
   ================================ */

.author-avatar img,
.author-avatar .avatar {
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border: 4px solid #fff;
}

/* Archive post card meta - date only, clean */
.post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

/* ================================
   EDITOR'S CHOICE SLIDER (matches Trending Now style)
   ================================ */

#hp-editors-choice {
    background: #0d2d35;
    padding: 50px 20px;
    margin: 0;
}

.hp-editors-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hp-editors-heading {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 28px;
}

.hp-editors-swiper {
    width: 100%;
    max-width: 100%;
    padding-bottom: 10px;
    overflow: hidden;
}

.hp-editors-swiper .swiper-wrapper {
    width: 100%;
}

.hp-editors-swiper .swiper-slide {
    height: auto;
}

.hp-editors-swiper .swiper-button-prev,
.hp-editors-swiper .swiper-button-next {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    top: 40%;
}

.hp-editors-swiper .swiper-button-prev::after,
.hp-editors-swiper .swiper-button-next::after {
    font-size: 14px;
}

.hp-editors-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.3s ease;
    height: 100%;
}

.hp-editors-card:hover {
    background: rgba(255,255,255,0.1);
}

.hp-editors-thumb {
    display: block;
    height: 160px;
    overflow: hidden;
}

.hp-editors-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-editors-card:hover .hp-editors-thumb img {
    transform: scale(1.04);
}

.hp-editors-info {
    padding: 14px;
}

.hp-editors-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5ecfdf;
    display: block;
    margin-bottom: 6px;
}

.hp-editors-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}

.hp-editors-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.hp-editors-title a:hover {
    color: #5ecfdf !important;
}

.hp-editors-date {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

@media (max-width: 768px) {
    .hp-editors-swiper .swiper-button-prev,
    .hp-editors-swiper .swiper-button-next {
        display: none;
    }
}

/* ================================
   SIDEBAR NEWSLETTER WIDGET
   ================================ */

.sidebar-newsletter-widget {
    text-align: center;
    background: linear-gradient(135deg, #f0f7f8 0%, #e3f1f3 100%);
    border: 1px solid #c8e0e4;
}

.sidebar-newsletter-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(13, 79, 92, 0.12);
}

.sidebar-newsletter-title {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.sidebar-newsletter-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 18px;
}

.sidebar-newsletter-btn {
    display: block;
    width: 100%;
    background: #0d4f5c;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.3s ease;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.sidebar-newsletter-btn:hover {
    background: #156b7a;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    border: 1px solid #c8e0e4;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.sidebar-newsletter-input:focus {
    border-color: #0d4f5c;
}

.sidebar-newsletter-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.sidebar-success-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.sidebar-success-text {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
    margin: 0;
}

/* Force post featured image to not exceed content column on desktop */
@media (min-width: 901px) {
    .post-wrapper img.post-featured-image {
        max-width: 860px !important;
        width: 860px !important;
        height: auto !important;
        object-fit: cover !important;
    }
}