/*
Theme Name: OneSpace AI Theme 3
Theme URI: https://onespaceai.com/
Author: OneSpace AI
Author URI: https://onespaceai.com/
Description: A modern custom WordPress theme with responsive design, dark/light mode toggle, dynamic post meta, newsletter subscription, and elegant UI components.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onespaceai-theme3
Tags: blog, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, responsive-layout, newsletter
*/

/* ✅ ADD CSS VARIABLES */
:root {
    --text-color: #333;
    --header-bg: #fff;
}

html.dark-mode,
body.dark-mode,
.dark-mode {
    --text-color: #f1f1f1;
    --header-bg: #222;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
    background: #fff;
    color: var(--text-color);
    overflow-x: hidden; /* prevent horizontal scroll from off-canvas menu */
}

html.dark-mode,
body.dark-mode,
.dark-mode {
    background: #111 !important;
    color: #f1f1f1 !important;
}

/* ========================================= Navbar ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    position: relative; /* mobile search overlay positioning */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
}

.nav-logo .site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.nav-logo .site-tagline {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.dark-mode .nav-logo .site-tagline {
    color: #aaa;
}

.navbar {
    background: #fff;
}

.dark-mode .navbar {
    background:  #615d5d; /*#222*/
    border-color: #444;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    display: inline-block;   /* ✅ horizontal on desktop */
    margin: 0 15px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

.dark-mode .nav-menu a {
    color: #ddd;
}

/* Nav Right Controls */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ====================== SEARCH EXPAND ====================== */
.search-area {
    position: relative;
    display: flex;
    align-items: center;
}

.search-area #searchIcon {
    cursor: pointer;
}

.search-wrap {
    position: absolute;
    top: 50%;
    right: 35px; /* sits just left of icon when closed */
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    transition: transform 0.25s ease;
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 230px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    z-index: 1200;
}

.search-wrap.active {
    transform: translateY(-50%) scaleX(1);
}

.search-field {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-color);
}

.search-submit {
    /* Visually hidden, keeps native form submit for accessibility */
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: none;
}

.dark-mode .search-wrap {
    background: #222;
    border-color: #444;
}

.dark-mode .search-field {
    color: #f1f1f1;
}


.nav-right img {
    display: block;
    margin: 0;
    /* height: 24px; */
    cursor: pointer;
    margin-left: 18px;
}

#searchIcon {
    height: 22px;
}

img#themeToggle {
    height: 30px;
    position: relative;
    top: -2px;
}
/* ========================================= FOOTER ========================================= */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Widget Area */
.footer-widget-area h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #fff;
}

.footer-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-list li {
    margin-bottom: 12px;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

/* Social Media */
.footer-social-area {
    text-align: center;
}

.footer-social-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #fff;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-icon.facebook {
    background: #1877f2;
    color: #fff;
}

.social-icon.youtube {
    background: #ff0000;
    color: #fff;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.social-icon.linkedin {
    background: #0077b5;
    color: #fff;
}

.social-icon.whatsapp {
    background: #25d366;
    color: #fff;
}

/* Newsletter */
.footer-newsletter-area {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    padding: 50px 40px;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(124,58,237,0.4);
    text-align: center;
}

.footer-newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 30px;
}

.newsletter-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255,255,255,0.95);
    color: #333;
    outline: none;
    transition: background 0.2s;
    text-align: center;
    box-sizing: border-box;
    display: block;
}

.newsletter-input::placeholder {
    color: #888;
}

.newsletter-input:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}

.newsletter-submit {
    width: 100%;
    padding: 18px 40px;
    background: #ff4d00;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255,77,0,0.4);
    box-sizing: border-box;
    display: block;
}

.newsletter-submit:hover {
    background: #e64500;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,77,0,0.5);
}

.newsletter-submit:active {
    transform: translateY(0);
}

/* === Overlap Safeguards (Newsletter) === */
/* Ensures the form elements never overlap or cause horizontal scroll on very small screens */
.footer-newsletter-form {
    position: relative;
}
.footer-newsletter-form .newsletter-input,
.footer-newsletter-form .newsletter-submit {
    width: 100%;
    display: block;
}


/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 28px;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    color: #888;
    font-size: 14px;
}

.footer-copyright p {
    margin: 0;
}

/* Dark Mode */
.dark-mode .site-footer {
    background: #0d0d0d;
}

/* Responsive */
@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-newsletter-area {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-social-area {
        text-align: left;
    }
    
    .footer-social-icons {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 435px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-newsletter-area {
        padding: 36px 24px;
        border-radius: 24px;
    }
    
    .footer-newsletter-title {
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
    }
    
    .newsletter-icon {
        font-size: 40px;
    }
    
    .footer-newsletter-form {
        gap: 16px;
    }
    
    .newsletter-input {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .newsletter-submit {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

/* =================================== HAMBURGER CSS ======================================== */
.hamburger {
    width: 28px;
    height: 22px;
    display: none; /* hidden on desktop by default; shown in mobile media query */
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: 0.3s ease;
    display: block !important;
}

.dark-mode .hamburger span {
    background: #f1f1f1;    
}

/* ✅ ACTIVE = X ICON */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* @media only screen and (max-width: 2000px) {
    body::before {
        content: "MEDIA WORKING";
        color: red;
        font-size: 20px;
        position: fixed;
        top: 0;
        left: 0;
    }
} */
/* ✅ MOBILE RESPONSIVE */
@media (max-width: 768px) {

    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* position: relative;*/
        z-index: 10001; 
    }

    .hamburger span {
        display: block !important;
        visibility: visible !important;
    }
    
    .nav-menu ul {
        flex-direction: column !important;
        padding-top: 20px !important;
    }
    
    .nav-menu ul li {
        display: block !important;
        margin: 15px 0 !important;
    }
    
    .nav-menu ul li a {
        font-size: 18px !important;
        display: block !important;
        padding: 10px 0 !important;
    }
       
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important; /* dock to right edge */
        width: 70% !important;
        height: 100vh !important;
        background: #fff !important;
        padding: 80px 20px !important;
        transition: transform 0.3s ease !important;
        transform: translateX(100%) !important; /* hidden off-canvas by default */
        display: block !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        will-change: transform;
        pointer-events: none; /* hidden should not capture taps */
    }
    
    /* Show the menu when .show class is added */
    .nav-menu.show {
        transform: translateX(0) !important;
        pointer-events: auto;
    }
    
    .dark-mode .nav-menu {
        background: #222 !important;
        border-left: 1px solid #444;
    }

    /* (handled above) */

    .nav-menu ul {
        display: block !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* menu items vertical on mobile */
    .nav-menu ul li {
        display: block !important;
        margin: 20px 0 !important;
    }

    .nav-menu ul li a {
        font-size: 18px !important;
        color: #333 !important;
    }  
    
    .dark-mode .nav-menu ul li a {
        color: #fff !important;
    }

    .menu-items {
        display: block !important;
    }

    .menu-items li {
        display: block !important;
        margin: 20px 0 !important;
    }

    .nav-right {
        gap: 12px;
    }

    /* Make logo + search + toggle + hamburger align perfectly */
    header {
        padding: 10px 15px;
    }

    #searchIcon { height: 22px; }
    #themeToggle { height: 22px; top: 0; }

    /* collapse duplicate nested media query; base placement for default small search */
    .search-wrap {
        right: 10px;
        min-width: 70vw;
    }

    /* Full-width expanding search state */
    .navbar.search-open .nav-logo,
    .navbar.search-open #themeToggle,
    .navbar.search-open #hamburger {
        display: none !important;
    }

    .navbar.search-open { justify-content: center; }
    .navbar.search-open .search-area { flex: 1; position: static; }

    /* Ensure searchWrap stretches across header (minus icon area) */
    .navbar.search-open .search-wrap {
        left: 12px;
        right: 44px; /* leave room for icon */
        top: 50%;
        min-width: unset;
        width: auto;
        transform: translateY(-50%) scaleX(1); /* center vertically inside header */
        z-index: 1200;
    }

    /* ensure header has enough height so centered input is fully visible */
    .navbar.search-open {
        min-height: 56px;
    }

    /* Keep icon visible at far right while open */
    .navbar.search-open #searchIcon {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        z-index: 1300;
    }

}

/* ✅ DESKTOP */
@media (min-width: 769px) {
    .hamburger {
        display: none;   /* hide on desktop */
    }

    .nav-menu {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        gap: 25px;
        pointer-events: auto;

    }

    .nav-menu .menu-items {
        display: flex;
        gap: 25px;
    }
}

/* ======================= LAYOUT CONTAINER ======================= */
.banner-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px 60px;
}

.content-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 30px 60px;
}

/* ======================= HERO / BANNER ======================= */
.banner { position: relative; margin-bottom: 36px; }
.banner-slider { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.banner-slide { display: none; grid-template-columns: 0.3fr 0.7fr; column-gap: 8px; align-items: stretch; background: linear-gradient(to right, #0f0f10 30%, #e8e8e8 30%, #e8e8e8 calc(30% + 8px), #0f0f10 calc(30% + 8px)); }
.banner-slide.active { display: grid; }
.banner-aside { padding: 20px 22px; color: #fff; display:flex; flex-direction:column; justify-content:flex-start; min-height:360px; }
.banner-title-wrap { flex:1; display:flex; align-items:center; }
.banner-title { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
.banner-title a { color:#fff; text-decoration:none; display:-webkit-box; -webkit-line-clamp:5; line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; line-height: 40px; }
.banner-meta { margin-top:auto; display:flex; flex-direction:column; align-items:flex-start; gap:14px; } /* push author/date block to bottom of panel */
.banner-meta { display:flex; align-items:center; gap:7px; }
.banner-meta .post-meta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.banner-aside .post-meta .meta-item { color:#fff; }
.banner-aside .post-meta .meta-author { background:#4f8fcd; padding:6px 14px; border-radius:8px; display:flex; align-items:center; gap:12px; }
.banner-aside .post-meta .meta-avatar { width:35px; height:35px; border-radius:50%; border:2px solid rgba(255,255,255,.8); }
.banner-aside .post-meta .meta-author .meta-text { color:#fff; font-weight:800; font-size:16px; letter-spacing:0.2px; max-width:170px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.banner-aside .post-meta .meta-date { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }
.banner-aside .post-meta .meta-date .meta-icon { width:20px; height:20px; display:inline-block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.banner-aside .post-meta .meta-label { display:none; }
.banner-aside .post-meta .meta-value { color:#fff; font-weight:700; }
.author-chip { display:flex; align-items:center; gap:12px; background:#4f8fcd; color:#fff; padding:5px 14px; border-radius:8px; width:100%; }
.author-chip img { width:38px; height:38px; border-radius:50%; }
.author-name { font-weight:800; font-size:18px; letter-spacing:0.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-transform: capitalize; }
.banner-date { display:flex; align-items:center; gap:8px; color:#fff; font-weight:700; font-size:14px; }
.banner-date::before { content:''; display:inline-block; width:20px; height:20px; background:url('assets/images/schedule.png') center/contain no-repeat; }
.banner-media { display:block; overflow:hidden; border-radius: 0 8px 8px 0; min-height: 360px; background:#f0f0f0; }
.banner-media img { width:100%; height:100%; min-height: 360px; object-fit:cover; display:block; }
.default-banner-image { width:100%; height:360px !important; object-fit:cover; display:block; background:#f0f0f0; }
.dark-mode .banner-media { background:#2a2a2a; }
.dark-mode .default-banner-image { background:#2a2a2a; }
.banner-arrow { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:none; cursor:pointer; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.25); z-index:10; }
.banner-arrow.prev { left: 8px; }
.banner-arrow.next { right: 8px; }
.banner-arrow::before { content:''; display:block; width:100%; height:100%; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>') center/14px no-repeat; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>') center/14px no-repeat; background:#111; }
.banner-arrow.next::before { transform: scaleX(-1); }
.dark-mode .banner-slide { background: linear-gradient(to right, #1b1b1c 30%, #444 30%, #444 calc(30% + 8px), #1b1b1c calc(30% + 8px)); }
.dark-mode .banner-arrow { background:#e0e0e0; box-shadow:0 2px 8px rgba(255,255,255,.15); }
.dark-mode .banner-arrow::before { background:#222; }

/* ======================= POSTS GRID ======================= */
.content-grid { display:grid; grid-template-columns: 1fr 400px; gap:40px; max-width: 1450px; margin: 0 auto; }
.posts-grid { display:grid; gap:28px; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); align-items:start; }
.post-card { background:#fff; border-radius:6px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 2px 6px rgba(0,0,0,.08); align-self:start; height:auto; }
.dark-mode .post-card { background:#1e1e1e; box-shadow:0 2px 6px rgba(0,0,0,.6); }
.card-media { display:block; position:relative; background:#f5f5f5; min-height:200px; overflow:hidden; }
.card-media img { width:100%; height:auto; display:block; }
.default-thumbnail { width:100%; height:200px; display:block; object-fit:cover; }
.dark-mode .card-media { background:#2a2a2a; }
.card-body { padding:16px 16px 18px; display:flex; flex-direction:column; flex:0 0 auto; }
.card-title { margin:0 0 8px; font-size:18px; line-height:1.3; }
.card-title a { text-decoration:none; color:#111; }
.dark-mode .card-title a { color:#eee; }
.card-meta { font-size:12px; display:flex; gap:6px; color:#666; margin-bottom:10px; }
.dark-mode .card-meta { color:#aaa; }
.card-excerpt { font-size:14px; line-height:1.45; margin:0 0 14px; color:#333; }
.dark-mode .card-excerpt { color:#cfcfcf; }
.card-read { margin-top:auto; align-self:flex-start; font-size:13px; text-decoration:none; background:#0077ff; color:#fff; padding:6px 14px; border-radius:20px; font-weight:600; }
.card-read:hover { background:#005fcc; }

/* ======================= PAGINATION ======================= */
.pagination {
    grid-column: 1 / -1;
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-list li {
    margin: 0;
}

.pagination-list a,
.pagination-list .current {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #ddd;
    transition: all 0.2s;
}

.pagination-list a:hover {
    background: #0077ff;
    color: #fff;
    border-color: #0077ff;
}

.pagination-list .current {
    background: #0077ff;
    color: #fff;
    border-color: #0077ff;
}

.pagination-list .dots {
    padding: 10px 8px;
    color: #666;
}

.dark-mode .pagination-list a,
.dark-mode .pagination-list .current {
    background: #2a2a2a;
    color: #fff;
    border-color: #444;
}

.dark-mode .pagination-list a:hover {
    background: #00d9ff;
    color: #111;
    border-color: #00d9ff;
}

.dark-mode .pagination-list .current {
    background: #00d9ff;
    color: #111;
    border-color: #00d9ff;
}

.dark-mode .pagination-list .dots {
    color: #888;
}

/* ======================= SIDEBAR ======================= */
.sidebar .widget { background:#fff; border-radius:6px; padding:18px 18px 22px; box-shadow:0 2px 6px rgba(0,0,0,.08); margin-bottom:30px; }
.dark-mode .sidebar .widget { background:#1e1e1e; box-shadow:0 2px 6px rgba(0,0,0,.6); }
.widget-title { margin:0 0 14px; font-size:18px; }
.widget-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:14px; }
.widget-list a { text-decoration:none; color:#222; }
.dark-mode .widget-list a { color:#ddd; }
.widget-list a:hover { text-decoration:underline; }

/* Recent Posts with Thumbnails */
.widget_recent_posts .widget-list { gap: 14px; }
.widget_recent_posts .widget-list li { display: flex; gap: 12px; align-items: flex-start; }
.widget_recent_posts .widget-list li img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.widget_recent_posts .widget-list li a { flex: 1; line-height: 1.4; }
.default-thumbnail-small { width: 70px; height: 70px; display: block; object-fit: cover; border-radius: 6px; flex-shrink: 0; }

/* Recent Comments with Profile Images */
.widget_recent_comments .widget-list { gap: 14px; }
.widget_recent_comments .widget-list li { display: flex; gap: 12px; align-items: flex-start; }
.widget_recent_comments .comment-author-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: #ccc; }
.widget_recent_comments .comment-content { flex: 1; line-height: 1.4; font-size: 14px; }
.widget_recent_comments .comment-author { font-weight: 600; color: #111; margin-bottom: 4px; }
.dark-mode .widget_recent_comments .comment-author { color: #eee; }

/* ======================= RESPONSIVE BREAKPOINTS ======================= */
@media (max-width:1100px){
    .home-hero { grid-template-columns:1fr; }
    .hero-side { display:none; }
    .content-grid { grid-template-columns:1fr; }
    .banner-slide { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto 1fr;
        background: none;
    }
    .banner-media { 
        order: -1;
        border-radius: 8px 8px 0 0; 
        min-height: 240px;
    }
    .banner-media img,
    .default-banner-image { 
        min-height: 240px;
        height: 240px;
    }
    .banner-aside {
        background: #0f0f10;
        border-radius: 0 0 8px 8px;
        padding: 24px 20px;
        min-height: auto;
    }
    .banner-title { font-size: 24px; }
    .banner-title a { line-height: 32px; -webkit-line-clamp: 3; line-clamp: 3; }
    .dark-mode .banner-slide { background: none; }
    .dark-mode .banner-aside { background: #1b1b1c; }
}
@media (max-width:768px){
    .banner-container { padding: 0; }
    .content-container { padding: 20px; }
    .banner { margin-bottom: 24px; }
    .banner-slider { border-radius: 0; }
    .banner-media { border-radius: 0; }
    .banner-aside { border-radius: 0; padding: 15px 20px; }
    .banner-meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; max-width: 550px; margin-left: auto; }
    .author-chip { width: auto; flex: 1; max-width: 265px; }
    .author-chip .author-name { 
        font-size: 14px; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        max-width: 200px; 
    }
    .author-chip .author-name { font-size: 14px; }
    .author-chip img { width:32px; height:32px; }
    .banner-title a { 
        -webkit-line-clamp: 2; 
        line-clamp: 2; 
        font-size: 20px;
        height: 56px !important; /* Fixed height for 2 lines (20px * 1.4 line-height * 2 lines) */
        line-height: 1.4;
        display: flex;
        align-items: center;
    }
    
    
}
@media (max-width:680px){
    .card-title { font-size:16px; }
    .hero-title { font-size:24px; }
    .banner-title { font-size: 20px; }
    .banner-title a { line-height: 28px; }
    .banner-aside { padding: 20px 16px; }
    .author-name { font-size: 16px; }
    .banner-arrow { width: 38px; height: 38px; }
    .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width:435px){
    .author-chip { width: auto; flex: 1; max-width: 285px; padding: 3px 12px; gap: 7px; }
    .author-chip .author-name { 
        font-size: 10px; 
        max-width: 170px;           
    }
    .banner-title a { 
        -webkit-line-clamp: 2; 
        line-clamp: 2; 
        font-size: 16px; 
        line-height: 1.3;
        max-height: 41.6px; /* 16px * 1.3 * 2 lines */
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    .banner-date { font-size: 10px; }
    .banner-aside { padding: 16px 12px; }
    .author-chip img { width:28px; height:28px; }
    .banner-arrow { width: 32px; height: 32px; }
    .banner-arrow::before { mask-size: 12px; -webkit-mask-size: 12px; }
}

/* ======================= SINGLE POST PAGE ======================= */
/* CONTENT AREA */
.single-content-container {
    padding: 10px 60px;
    max-width: 100%;
    margin: 0 auto;
}

.single-content-wrapper {
    max-width: 100%;
    padding: 0 30px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.single-article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dark-mode .single-article {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.single-title {
    font-size: 36px;
    line-height: 1.3;
    color: #111;
    margin: 0 0 24px;
    font-weight: 800;
}

.dark-mode .single-title {
    color: #00d9ff;
}

.single-featured-image {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #f5f5f5;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dark-mode .single-meta {
    background: rgba(255,255,255,0.05);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #0077ff;
}

.dark-mode .meta-author img {
    border-color: #00d9ff;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.meta-label {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.dark-mode .meta-label {
    color: #fff;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}

.dark-mode .meta-item {
    color: #ccc;
}

.meta-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    object-fit: contain;
}

.meta-value {
    font-weight: 600;
    color: #111;
}

.dark-mode .meta-value {
    color: #fff;
}

/* Reusable compact meta block used in banner, cards and single header */
.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.post-meta .meta-item { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    color: #666; 
    font-size: 13px; 
}
.post-meta .meta-label { font-weight: 600; color: #333; }
.post-meta .meta-value { color: #111; font-weight: 600; }
.post-meta .meta-avatar { width: 28px; height: 28px; border-radius: 50%; }
.dark-mode .post-meta .meta-item { color: #cfcfcf; }
.dark-mode .post-meta .meta-label { color: #f1f1f1; }
.dark-mode .post-meta .meta-value { color: #fff; }
.dark-mode .post-meta .meta-icon { filter: brightness(1.2) saturate(1.1); }

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.dark-mode .article-content {
    color: #e0e0e0;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 28px;
    margin: 30px 0 16px;
    color: #111;
}

.dark-mode .article-content h2 {
    color: #fff;
}

.article-content h3 {
    font-size: 22px;
    margin: 24px 0 12px;
    color: #111;
}

.dark-mode .article-content h3 {
    color: #fff;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #0077ff;
    text-decoration: underline;
}

.dark-mode .article-content a {
    color: #4da6ff;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content > blockquote {
    margin: 30px 0;
    padding: 24px 30px 24px 26px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #00d9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    color: #2c3e50;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-content > blockquote::before {
    content: '"';
    font-size: 60px;
    font-family: Georgia, serif;
    color: #00d9ff;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 12px;
    line-height: 1;
}

.article-content > blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.article-content > blockquote blockquote {
    margin: 15px 0;
    padding: 12px 15px;
    background: rgba(255,255,255,0.5);
    border-left: 3px solid #00b8d9;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    box-shadow: none;
}

.article-content > blockquote blockquote::before {
    display: none;
}

.article-content > blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    color: #6c757d;
    font-weight: 600;
}

.article-content > blockquote cite::before {
    content: '— ';
}

.dark-mode .article-content > blockquote {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-left-color: #00d9ff;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.dark-mode .article-content > blockquote::before {
    color: #00d9ff;
}

.dark-mode .article-content > blockquote blockquote {
    background: rgba(0,0,0,0.3);
    border-left-color: #00b8d9;
}

.dark-mode .article-content blockquote cite {
    color: #aaa;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #f9f9f9;
}

.dark-mode .article-content table {
    background: #2a2a2a;
}

.article-content table th,
.article-content table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
}

.dark-mode .article-content table th,
.dark-mode .article-content table td {
    border-color: #444;
}

.article-content table th {
    background: #f0f0f0;
    font-weight: 600;
}

.dark-mode .article-content table th {
    background: #333;
}

/* TAGS */
.post-tags {
    margin: 40px 0;
    padding: 24px;
    background: #f5f5f5;
    border-radius: 8px;
}

.dark-mode .post-tags {
    background: #2a2a2a;
}

.tags-title {
    font-size: 20px;
    font-style: italic;
    margin: 0 0 16px;
    color: #111;
}

.dark-mode .tags-title {
    color: #fff;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #00d9ff;
    color: #111;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.tag-badge:hover {
    transform: translateY(-2px);
    background: #00b8d9;
}

/* ABOUT AUTHOR */
.about-author {
    margin: 40px 0;
    padding: 30px;
    background: #2a2a2a;
    color: #fff;
    border-radius: 8px;
}

.about-author-title {
    font-size: 20px;
    font-style: italic;
    margin: 0 0 20px;
}

.about-author-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-author-content img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-bio {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* COMMENT SECTION */
.comment-section {
    margin: 40px 0;
    padding: 36px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dark-mode .comment-section {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.comment-title {
    font-size: 26px;
    margin: 0 0 28px;
    color: #111;
    font-weight: 700;
}

.dark-mode .comment-title {
    color: #fff;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
/* Ensure inputs never overflow their containers */
.comment-form,
.comment-form * {
    box-sizing: border-box;
    max-width: 100%;
}

.comment-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.comment-form .name-email-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 20px;
    margin-bottom: 5px;
}

@media (max-width: 680px) {
    .comment-form .name-email-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.dark-mode .comment-form label {
    color: #e0e0e0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #d5d9dd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #222;
    font-family: Arial, sans-serif;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    outline: none;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 0 0 rgba(0,0,0,0);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #00c4ec;
    box-shadow: 0 0 0 3px rgba(0,196,236,0.18);
    background:#fcfeff;
}

.dark-mode .comment-form input[type="text"],
.dark-mode .comment-form input[type="email"],
.dark-mode .comment-form input[type="url"],
.dark-mode .comment-form textarea {
    background: #262829;
    border-color: #3d4347;
    color: #e5e7e9;
}

.dark-mode .comment-form input[type="text"]:focus,
.dark-mode .comment-form input[type="email"]:focus,
.dark-mode .comment-form input[type="url"]:focus,
.dark-mode .comment-form textarea:focus {
    border-color: #00c4ec;
    box-shadow: 0 0 0 3px rgba(0,196,236,0.25);
    background:#1f2223;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 5px;
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.dark-mode .comment-form-cookies-consent {
    background: rgba(0, 217, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.25);
}

.comment-form-cookies-consent.comment-form-top {
    order: -1;
    margin-bottom: 5px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #00d9ff;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
    color: #555;
}

.dark-mode .comment-form-cookies-consent label {
    color: #ddd;
}

.comment-form {
    display: flex;
    flex-direction: column;
}

.comment-form-comment {
    order: 1;
}

.comment-form-author,
.comment-form-email {
    order: 2;
}

.comment-form-url {
    order: 3;
}

.comment-form-cookies-consent.comment-form-bottom {
    order: 4;
}

.form-submit {
    order: 5;
}

.submit-btn {
    background: #00d9ff;
    color: #111;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.submit-btn:hover {
    background: #00b8d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 217, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-submit {
    margin-top: 8px;
}

/* POST NAVIGATION */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nav-post {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.dark-mode .nav-post {
    background: #2a2a2a;
}

.nav-post:hover {
    transform: translateY(-4px);
}

.nav-post a {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.nav-prev a {
    flex-direction: row;
}

.nav-next a {
    flex-direction: row-reverse;
}

.nav-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-post-content {
    flex: 1;
}

.nav-label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 6px;
}

.dark-mode .nav-label {
    color: #aaa;
}

.nav-post-title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .nav-post-title {
    color: #fff;
}

/* CTA BUTTON */
.single-cta {
    text-align: center;
    margin: 40px 0 0;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: #00d9ff;
    color: #111;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.cta-button:hover {
    background: #00b8d9;
    transform: translateY(-2px);
}

/* SIDEBAR */
.single-sidebar .widget {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.dark-mode .single-sidebar .widget {
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .single-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .single-content-wrapper {
        padding: 0 7px;
    }
    
    .single-title {
        font-size: 28px;
    }
    
    .single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .single-content-container {
        padding: 20px 7px;
    }
    
    .single-article {
        padding: 24px 20px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .about-author-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 435px) {
    .single-title {
        font-size: 22px;
    }
    
    .single-article {
        padding: 20px 16px;
    }
    
    .nav-post a {
        flex-direction: column !important;
        text-align: center;
    }
    
    .nav-post img {        
        width: 70px;
        height: 55px;
    }
}

/* ========================================= ONESPACE AI PAGES STYLING ========================================= */

/* Page Content Layout - No sidebar, no banner, full width */
.page-content {
    width: 100%;
    min-height: 50vh;
    background: #f8f9fa;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.dark-mode .page-content {
    background: #0d1117;
}

.page-content .page-container {
    max-width: 900px;
    width: 100%;
    margin: 10px auto;
    padding: 0 20px;
    background: transparent;
}

/* Strong rules to hide banner and sidebar on specific page types */
body.page-template-page-about .banner-container,
body.page-template-page-contact .banner-container,
body.page-template-page-terms .banner-container,
.about-page .banner-container,
.contact-page .banner-container,
.terms-page .banner-container,
body.page .banner-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.page-template-page-about .content-grid .sidebar,
body.page-template-page-contact .content-grid .sidebar,
body.page-template-page-terms .content-grid .sidebar,
.about-page .content-grid .sidebar,
.contact-page .content-grid .sidebar,
.terms-page .content-grid .sidebar,
body.page-template-page-about .sidebar,
body.page-template-page-contact .sidebar,
body.page-template-page-terms .sidebar,
body.page .sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Force full width layout for page templates */
body.page-template-page-about main,
body.page-template-page-contact main,
body.page-template-page-terms main,
.about-page main,
.contact-page main,
.terms-page main,
body.page main {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}

body.page-template-page-about .content-grid,
body.page-template-page-contact .content-grid,
body.page-template-page-terms .content-grid,
body.page .content-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
}

/* Hide any posts grid on page templates */
body.page-template-page-about .posts-grid,
body.page-template-page-contact .posts-grid,
body.page-template-page-terms .posts-grid,
body.page .posts-grid {
    display: none !important;
}

/* Page Article */
.page-article {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .page-article {
    background: #161b22;
    box-shadow: 0 4px 20px rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Page Header with gradient */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 40px 40px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

/* Ensure proper title styling for all pages */
body.page h1,
body.page-template-page-about h1,
body.page-template-page-contact h1,
body.page-template-page-terms h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px; /* Reduced padding */
    text-align: center;
    margin: 0;
    font-size: 1.6rem; /* Reduced font size */
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    border-radius: 12px 12px 0 0; /* Slightly smaller radius */
    position: relative;
    letter-spacing: -0.5px;
}

/* Forces proper styling even when template isn't applied */
body.page h1:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 60px 40px !important;
    text-align: center !important;
}

body.page .entry-content {
    background: #fff !important;
    padding: 60px 50px !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* Page Content Area */
.page-content-area {
    padding: 60px 50px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-color);
    max-width: 100%;
}

.page-content-area h2 {
    color: #667eea;
    font-size: 2.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.dark-mode .page-content-area h2 {
    color: #9baef7;
}

.page-content-area h3 {
    color: #764ba2;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-mode .page-content-area h3 {
    color: #b899d4;
}

.page-content-area p {
    margin-bottom: 20px;
    color: #555;
}

.dark-mode .page-content-area p {
    color: #ccc;
}

.page-content-area ul,
.page-content-area ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content-area li {
    margin-bottom: 12px;
    color: #555;
}

.dark-mode .page-content-area li {
    color: #ccc;
}

.page-content-area strong {
    color: #667eea;
    font-weight: 600;
}

.dark-mode .page-content-area strong {
    color: #9baef7;
}

/* Default Content Styling */
.default-page-content {
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0 auto;
}

.dark-mode .default-page-content {
    background: #161b22;
    box-shadow: 0 4px 20px rgba(255,255,255,0.05);
}

/* Style for any page content that doesn't have proper template */
body.page .entry-title,
body.page h1.page-title,
body.page h1:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 20px 30px !important;
    text-align: center !important;
    margin: 0 0 0 0 !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    border-radius: 16px 16px 0 0 !important;
    position: relative;
    letter-spacing: -0.5px !important;
}

body.page .entry-title::before,
body.page h1.page-title::before,
body.page h1:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 40px 40px;
}

/* Force proper page content wrapper */
body.page .entry-content,
body.page .page-content-area {
    background: #fff !important;
    padding: 60px 50px !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    margin: 0 auto !important;
    line-height: 1.8 !important;
}

.dark-mode body.page .entry-content,
.dark-mode body.page .page-content-area {
    background: #161b22 !important;
    box-shadow: 0 4px 20px rgba(255,255,255,0.05) !important;
}

/* Ensure proper container for page content */
body.page .entry-header + .entry-content,
body.page .page-header + .page-content-area {
    margin-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
}

/* Style the wrapper to center content */
body.page article,
body.page .hentry {
    max-width: 900px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    background: transparent !important;
}

/* Contact Methods Grid */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-method {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .contact-method {
    background: #21262d;
    border-left-color: #9baef7;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.contact-method h3 {
    color: #667eea !important;
    margin-top: 0 !important;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.dark-mode .contact-method h3 {
    color: #9baef7 !important;
}

.contact-method p {
    margin-bottom: 10px;
    color: #666;
}

.dark-mode .contact-method p {
    color: #bbb;
}

.contact-method a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.dark-mode .contact-method a {
    color: #9baef7;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Navigation Links Styling */
.additional-nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link-item .nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.nav-link-item .nav-link:hover {
    background: #667eea;
    color: white;
}

/* Footer Links Styling */
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: color 0.3s ease;
    font-size: 14px;
}

.dark-mode .footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: #667eea;
}

.dark-mode .footer-links a:hover {
    color: #9baef7;
}

/* Responsive Design for Page Templates */
@media (max-width: 768px) {
    .page-container {
        max-width: 100%;
        margin: 0;
        padding: 3px;
    }
    
    .page-content {
        padding: 0;
        margin: 0;
    }
    
    .page-content .page-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 3px;
        background: transparent;
    }
    
    .page-content-area {
        padding: 3px;
        margin: 0;
    }
    
    .page-header {
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
    
    .page-title {
        font-size: 1.4rem;
        padding: 10px 3px;
        margin: 0;
    }
    
    /* Mobile responsive for forced page styles */
    body.page h1,
    body.page .entry-title,
    body.page h1.page-title,
    body.page h1:first-child {
        padding: 10px 3px !important;
        font-size: 1.4rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .additional-nav-links {
        display: none; /* Hide on mobile, show in hamburger menu */
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .page-content p {
        padding: 0 3px;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    /* .page-content {
        padding: 15px 10px;
    } */
    body.page article {
        margin: 3px 0 !important;
        padding: 0 !important;
    }
    
    body.page .page-content-area {
        padding: 0 7px !important;
    }
    
    .page-header {
        padding: 12px 15px;
    }
    
    .page-content-area h2 {
        font-size: 1.8rem;
    }
    
    .page-content-area h3 {
        font-size: 1.3rem;
    }
    
    .contact-method {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    /* Small mobile responsive for forced page styles */
    body.page h1,
    body.page .entry-title,
    body.page h1.page-title,
    body.page h1:first-child {
        padding: 12px 15px !important;
        font-size: 1.3rem !important;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .page-content {
        padding: 60px 40px;
    }
    
    .page-content .page-container {
        max-width: 1100px;
        padding: 0 60px;
    }
    
    .page-content-area {
        padding: 80px 60px;
    }
    
    .page-header {
        padding: 25px 40px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    /* Large screen for forced page styles */
    body.page h1,
    body.page .entry-title,
    body.page h1.page-title,
    body.page h1:first-child {
        padding: 25px 40px !important;
        font-size: 2.2rem !important;
    }
}

@media (min-width: 1440px) {
    .page-content .page-container {
        max-width: 1200px;
        padding: 0 80px;
    }
}
