/*
Theme Name: Sleep Calculator
Theme URI: https://example.com/
Author: Sleep Calculator
Description: Minimal responsive WordPress theme for a Sleep Calculator website.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sleep-calculator
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{--bg:#f6f8fc;--card:rgba(255,255,255,.95);--text:#14213d;--muted:#738096;--primary:#315efb;--primary-dark:#2349d6;--border:#e7ebf2;--shadow:0 20px 60px rgba(28,44,80,.09);--recommended-bg:#f4f7ff;--recommended-border:rgba(49,94,251,.30)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 50% -10%,rgba(49,94,251,.10),transparent 35%),var(--bg);min-height:100vh}
a{color:inherit}
img{max-width:100%;height:auto}
.page-shell{min-height:100vh;display:flex;flex-direction:column}
.site-header{    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 22px 24px;
    background: #fff;}
.header-inner{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{color:var(--text);text-decoration:none;font-weight:800;display:inline-flex;align-items:center;gap:10px;font-size:17px;white-space:nowrap}
.brand:hover{color:var(--text)}
.brand-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:#fff;background:var(--text);font-size:19px}
.desktop-nav{display:flex;align-items:center;gap:22px;list-style-type: none;}
.desktop-nav a{text-decoration:none;font-size:14px;font-weight:600;color:var(--muted)}
.desktop-nav a:hover{color:var(--text)}
.header-search{width:270px;position:relative}
.header-search input{width:100%;height:42px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:0 42px 0 14px;outline:none;font:inherit;font-size:13px;color:var(--text)}
.header-search input:focus{border-color:rgba(49,94,251,.5);box-shadow:0 0 0 4px rgba(49,94,251,.08)}
.header-search button{position:absolute;right:0;top:0;width:42px;height:42px;border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:17px}
.mobile-menu-toggle{display:none;width:42px;height:42px;border:1px solid var(--border);background:#fff;border-radius:12px;cursor:pointer;color:var(--text);font-size:20px}
.mobile-drawer{position:fixed;inset:0;z-index:9999;visibility:hidden;pointer-events:none}
.mobile-drawer.is-open{visibility:visible;pointer-events:auto}
.mobile-drawer-backdrop{position:absolute;inset:0;background:rgba(20,33,61,.35);opacity:0;transition:.25s}
.mobile-drawer.is-open .mobile-drawer-backdrop{opacity:1}
.mobile-drawer-panel{position:absolute;top:0;right:0;width:min(86vw,360px);height:100%;background:#fff;box-shadow:-20px 0 60px rgba(20,33,61,.16);padding:22px;transform:translateX(100%);transition:.28s ease;display:flex;flex-direction:column}
.mobile-drawer.is-open .mobile-drawer-panel{transform:translateX(0)}
.drawer-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.drawer-close{width:40px;height:40px;border:0;background:#f1f4f8;border-radius:12px;cursor:pointer;font-size:20px;color:var(--text)}
.drawer-search{position:relative;margin-bottom:25px}
.drawer-search input{width:100%;height:48px;border:1px solid var(--border);border-radius:13px;padding:0 44px 0 14px;font:inherit;outline:none}
.drawer-search button{position:absolute;right:0;top:0;width:44px;height:48px;border:0;background:transparent;cursor:pointer;color:var(--muted)}
.mobile-nav{display:flex;flex-direction:column;gap:5px;    list-style-type: none;}
.mobile-nav a{padding:14px 12px;border-radius:12px;text-decoration:none;font-weight:600}
.mobile-nav a:hover{background:#f6f8fc}
.main-content{width:100%;max-width:800px;margin:0 auto;padding:30px 20px 50px;flex:1}
.calculator-card,.result-card,.how-card,.content-card{background:var(--card);border:1px solid rgba(255,255,255,.8);border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(12px)}
.calculator-card{padding:48px}
.hero-copy{text-align:center;margin-bottom:38px}
.eyebrow{color:var(--primary);font-size:11px;font-weight:800;letter-spacing:2px;margin-bottom:12px}
.hero-copy h1{font-size:clamp(28px,5vw,42px);line-height:1.25;font-weight:800;margin:0 auto 15px;max-width:610px}
.hero-copy p{color:var(--muted);line-height:1.8;margin:0 auto;max-width:540px}
.time-panel{max-width:430px;margin:0 auto}
.form-label{display:block;font-weight:700;margin-bottom:10px}
.time-panel input{height:62px;border:1px solid var(--border);border-radius:16px;text-align:center;font-size:26px;font-weight:700;color:var(--text);box-shadow:none;width:100%;background:#fff}
.time-panel input:focus{border-color:rgba(49,94,251,.55);box-shadow:0 0 0 4px rgba(49,94,251,.10);outline:0}
.action-btn{margin-top:14px;height:58px;border-radius:15px;font-weight:700;border:0;width:100%;cursor:pointer;font:inherit}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 10px 22px rgba(49,94,251,.22)}
.btn-primary:hover{background:var(--primary-dark)}
.btn-light{background:#f1f4f8;color:var(--text)}
.btn-light:hover{background:#e8edf4}
.btn-icon{margin-left:7px;font-size:18px}
.divider{display:flex;align-items:center;gap:15px;color:#a4adbb;margin:20px 0 5px;font-size:13px}
.divider:before,.divider:after{content:"";height:1px;background:var(--border);flex:1}
.result-card{padding:34px}
.back-btn{border:0;background:transparent;color:var(--muted);font:inherit;font-weight:600;padding:5px 0 18px;cursor:pointer}
.result-head{text-align:center;padding:10px 15px 25px}
.result-kicker{color:var(--primary);font-size:13px;font-weight:800;margin-bottom:12px}
.result-head h2{font-size:clamp(22px,4vw,30px);line-height:1.45;font-weight:800;margin:0 auto 10px;max-width:610px}
.result-head p{color:var(--muted);margin:0;font-size:14px}
.time-results{display:grid;gap:10px;max-width:510px;margin:0 auto}
.time-result{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;border:1px solid var(--border);border-radius:17px;background:#fff;transition:.2s ease}
.time-result:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(28,44,80,.07)}
.time-result .time{direction:ltr;font-size:24px;font-weight:800;white-space:nowrap}
.time-result .cycles{color:var(--muted);font-size:13px}
.time-result.recommended{border-color:var(--recommended-border);background:var(--recommended-bg)}
.badge-recommended{display:inline-block;margin-top:5px;color:var(--primary);font-size:11px;font-weight:800}
.info-box{max-width:510px;margin:22px auto 0;display:flex;gap:12px;padding:16px;border-radius:16px;background:#f7f9fc;color:var(--muted);font-size:12px;line-height:1.7}
.info-box p{margin:0}.info-icon{color:var(--primary);font-size:17px}
.how-card{margin-top:18px;padding:28px;display:grid;grid-template-columns:1fr 260px;gap:28px;align-items:center}
.mini-icon{color:var(--primary);font-size:22px}
.how-card h2{font-size:19px;margin:8px 0;font-weight:800}
.how-card p{color:var(--muted);line-height:1.8;font-size:13px;margin:0}
.cycle-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.cycle-grid div{background:#f7f9fc;border-radius:14px;padding:15px;text-align:center}
.cycle-grid .recommended-cycle{background:var(--recommended-bg);outline:1px solid rgba(49,94,251,.20)}
.cycle-grid strong{display:block;font-size:22px}.cycle-grid span{color:var(--muted);font-size:11px}
.content-card{padding:36px;margin: 15px 0;}.content-card h1{font-size:34px;margin-top:0}.content-card h2{margin-top:30px}.content-card p,.content-card li{color:var(--muted);line-height:1.9}
.site-footer{text-align:center;color:#9aa4b3;font-size:11px;padding:0 20px 25px}
.site-footer a{text-decoration:none}
.d-none{display:none!important}
@media(max-width:800px){.site-header{padding:18px 15px}.desktop-nav,.header-search{display:none}.mobile-menu-toggle{display:block}.main-content{padding-top:18px}.calculator-card{padding:30px 20px;border-radius:22px}.result-card{padding:24px 17px;border-radius:22px}.how-card{grid-template-columns:1fr;padding:22px}.content-card{padding:25px;border-radius:22px}}
@media(min-width:801px){.header-inner{display:grid;grid-template-columns:1fr auto 1fr}.brand{grid-column:3;justify-self:end}.desktop-nav{grid-column:2;justify-self:center}.header-search{grid-column:1;grid-row:1;justify-self:start}}
@media(max-width:600px){.time-result{padding:15px}.time-result .time{font-size:21px}.hero-copy h1{font-size:29px}}
body.menu-open{overflow:hidden}


/* ===== Blog Section ===== */
.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ===== Blog Header ===== */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    position: relative;
    display: inline-block;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a6cf7, #6a4cf7);
    border-radius: 2px;
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* ===== More Button ===== */
.blog-footer {
    text-align: center;
    margin-top: 10px;
}

.blog-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #4a6cf7, #6a4cf7);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
    border: none;
    cursor: pointer;
}

.blog-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
    background: linear-gradient(135deg, #3a5ce7, #5a3ce7);
    color: #ffffff !important;
}

.blog-more-btn:active {
    transform: translateY(0px);
}

/* ===== استایل‌های قبلی Blog Grid ===== */
.content-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.content-card-link:hover {
    transform: translateY(-5px);
}

.blog-card {
    background: transparent !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blog-thumbnail {
    position: relative !important;
    width: 100% !important;
    padding-top: 75% !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    background: #1a1a2e !important;
    display: block !important;
}

.blog-thumbnail .blog-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 16px !important;
    transition: transform 0.5s ease !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.blog-card:hover .blog-image {
    transform: scale(1.05) !important;
}

.blog-title-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 40px 20px 20px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%) !important;
    pointer-events: none !important;
    border-radius: 0 0 16px 16px !important;
    z-index: 2 !important;
}

.blog-title-overlay h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    background: transparent !important;
    padding: 0 !important;
}

.no-image-placeholder {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #2c3e6b, #1a2a4a) !important;
    font-size: 4rem !important;
    border-radius: 16px !important;
}

/* ===== حذف استایل‌های اضافی ===== */
.blog-card .wp-post-image,
.blog-card img[class*="wp-image-"] {
    display: none !important;
}

.blog-card .entry-content,
.blog-card .post-content,
.blog-card .the-content,
.blog-card .excerpt,
.blog-card .post-excerpt,
.blog-card h1:not(.blog-title-overlay h2),
.blog-card p:not(.blog-title-overlay h2) {
    display: none !important;
}

.content-card-link .blog-card {
    pointer-events: none !important;
}

.content-card-link .blog-title-overlay {
    pointer-events: none !important;
}

.content-card-link {
    pointer-events: auto !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-section {
        padding: 30px 15px 40px;
    }
    
    .blog-header {
        margin-bottom: 30px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .blog-thumbnail {
        padding-top: 65% !important;
    }
    
    .blog-title-overlay h2 {
        font-size: 1.1rem !important;
    }
    
    .blog-title-overlay {
        padding: 30px 16px 16px !important;
    }
    
    .blog-more-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        gap: 25px !important;
    }
}



/* ===== Archive Header ===== */
.archive-header {
    background: linear-gradient(135deg, #f8f9fe 0%, #eef1f8 100%);
    padding: 60px 20px 50px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(74, 108, 247, 0.1);
}

.archive-header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.archive-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    position: relative;
    display: inline-block;
}

.archive-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a6cf7, #6a4cf7);
    border-radius: 2px;
}

.archive-description {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ===== Archive Grid ===== */
.archive-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ===== Pagination ===== */
.pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    text-align: center;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-links .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    min-width: 40px;
    text-align: center;
    background: #ffffff;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.pagination-links .page-numbers:hover {
    background: #4a6cf7;
    color: #ffffff;
    border-color: #4a6cf7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.pagination-links .page-numbers.current {
    background: linear-gradient(135deg, #4a6cf7, #6a4cf7);
    color: #ffffff;
    border-color: #4a6cf7;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.pagination-links .page-numbers.dots {
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: default;
}

.pagination-links .page-numbers.dots:hover {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}

.pagination-links .prev,
.pagination-links .next {
    padding: 8px 20px;
}

/* ===== No Results ===== */
.no-results {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px !important;
    background: #f8f9fe !important;
    border-radius: 16px !important;
}

.no-results h2 {
    color: #1a1a2e;
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-results p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.no-results .blog-more-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #4a6cf7, #6a4cf7);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.no-results .blog-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
    color: #ffffff !important;
}

/* ===== Responsive Archive ===== */
@media (max-width: 768px) {
    .archive-header {
        padding: 40px 15px 30px;
        margin-bottom: 30px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .archive-grid {
        padding: 0 15px 30px;
    }
    
    .pagination {
        padding: 10px 15px 40px;
    }
    
    .pagination-links .page-numbers {
        padding: 6px 12px;
        min-width: 35px;
        font-size: 0.85rem;
    }
    
    .pagination-links .prev,
    .pagination-links .next {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.6rem;
    }
    
    .pagination-links {
        gap: 5px;
    }
    
    .pagination-links .page-numbers {
        padding: 5px 10px;
        min-width: 30px;
        font-size: 0.8rem;
    }
    
    .pagination-links .prev,
    .pagination-links .next {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}



/* ===== Single Content Wrapper ===== */
.single-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ===== Single Content Card (White Background) ===== */
.single-content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 45px 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* ===== Breadcrumb ===== */
.single-breadcrumb {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.single-breadcrumb a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-breadcrumb a:hover {
    color: #3a5ce7;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #a0aec0;
    margin: 0 4px;
}

.breadcrumb-current {
    color: #1a1a2e;
    font-weight: 500;
}

/* ===== Single Title ===== */
.single-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* ===== Single Meta ===== */
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #4a5568;
    font-size: 0.95rem;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    font-size: 1rem;
}

.meta-item a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #3a5ce7;
    text-decoration: underline;
}

.meta-item time {
    color: #4a5568;
}

/* ===== Featured Image ===== */
.single-featured-image {
    margin: 0 0 30px 0;
}

.single-featured-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* ===== Content ===== */
.single-content-inner {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.single-content-inner h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.single-content-inner h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.single-content-inner p {
    margin-bottom: 20px;
}

.single-content-inner ul,
.single-content-inner ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.single-content-inner li {
    margin-bottom: 8px;
}

.single-content-inner blockquote {
    border-left: 4px solid #4a6cf7;
    padding: 20px 25px;
    margin: 30px 0;
    background: #f8f9fe;
    border-radius: 8px;
    font-style: italic;
}

.single-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.single-content-inner .wp-block-image {
    margin: 30px 0;
}

.single-content-inner .wp-block-image figcaption {
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
    margin-top: 10px;
}

.single-content-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.single-content-inner table td,
.single-content-inner table th {
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    text-align: left;
}

.single-content-inner table th {
    background: #f8f9fe;
    font-weight: 600;
}

/* ===== Page Links ===== */
.page-links {
    margin-top: 40px;
    padding: 20px 0 0 0;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.page-link {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f8f9fe;
    color: #4a6cf7;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #4a6cf7;
    color: #ffffff;
}

/* ===== Tags ===== */
.single-tags {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.tags-label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list a {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f4ff;
    color: #4a6cf7;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: #4a6cf7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

/* ===== Author Box ===== */
.author-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4a6cf7;
    padding: 2px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.author-name a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: #4a6cf7;
}

.author-bio {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.author-meta a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-meta a:hover {
    color: #3a5ce7;
    text-decoration: underline;
}

/* ===== Post Navigation ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fe;
    color: #4a6cf7;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #4a6cf7;
    color: #ffffff;
    transform: translateX(-5px);
}

.nav-next a:hover {
    transform: translateX(5px);
}

.nav-next {
    text-align: right;
}

/* ===== Comments Section ===== */
.comments-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Responsive Single ===== */
@media (max-width: 768px) {
    .single-content-wrapper {
        padding: 20px 15px 40px;
    }
    
    .single-content-card {
        padding: 25px 20px 20px;
    }
    
    .single-title {
        font-size: 2rem;
    }
    
    .single-meta {
        gap: 12px;
        font-size: 0.85rem;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .single-content-inner {
        font-size: 1rem;
    }
    
    .single-content-inner h2 {
        font-size: 1.6rem;
    }
    
    .single-content-inner h3 {
        font-size: 1.3rem;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .author-meta {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
    }
    
    .nav-previous a:hover {
        transform: translateX(0);
    }
    
    .nav-next a:hover {
        transform: translateX(0);
    }
    
    .single-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comments-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .single-content-card {
        padding: 20px 15px 15px;
    }
    
    .single-title {
        font-size: 1.6rem;
    }
    
    .single-breadcrumb {
        font-size: 0.8rem;
    }
    
    .single-meta {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .author-box {
        padding: 15px;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .tags-list a {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .post-navigation {
        padding: 12px;
    }
    
    .nav-previous a,
    .nav-next a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}




/* ===== Comments Section ===== */
.comments-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.comments-section .comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

/* ===== Comment List ===== */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment-list .comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-list .comment .comment-body {
    display: flex;
    gap: 20px;
}

.comment-list .comment .comment-author {
    flex-shrink: 0;
}

.comment-list .comment .comment-author .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4a6cf7;
    padding: 2px;
}

.comment-list .comment .comment-author .says {
    display: none;
}

.comment-list .comment .comment-meta {
    flex: 1;
}

.comment-list .comment .comment-meta .fn {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    font-style: normal;
}

.comment-list .comment .comment-meta .fn a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-list .comment .comment-meta .fn a:hover {
    color: #4a6cf7;
}

.comment-list .comment .comment-meta .comment-metadata {
    font-size: 0.85rem;
    color: #718096;
    margin: 5px 0 10px 0;
}

.comment-list .comment .comment-meta .comment-metadata a {
    color: #718096;
    text-decoration: none;
}

.comment-list .comment .comment-meta .comment-metadata a:hover {
    color: #4a6cf7;
    text-decoration: underline;
}

.comment-list .comment .comment-meta .comment-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
}

.comment-list .comment .comment-meta .comment-content p {
    margin: 0 0 10px 0;
}

.comment-list .comment .comment-meta .comment-content p:last-child {
    margin-bottom: 0;
}

.comment-list .comment .reply {
    margin-top: 10px;
}

.comment-list .comment .reply .comment-reply-link {
    display: inline-block;
    padding: 5px 16px;
    background: #f0f4ff;
    color: #4a6cf7;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-list .comment .reply .comment-reply-link:hover {
    background: #4a6cf7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

/* ===== Comment Children ===== */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin: 20px 0 0 0;
}

.comment-list .children .comment {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.comment-list .children .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-list .children .comment .comment-author .avatar {
    width: 45px;
    height: 45px;
}

/* ===== Comment Navigation ===== */
.comment-navigation {
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: space-between;
}

.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
    color: #4a6cf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover {
    color: #3a5ce7;
    text-decoration: underline;
}

/* ===== No Comments ===== */
.comments-section .no-comments {
    color: #4a5568;
    font-size: 1.1rem;
    padding: 20px 0;
}

/* ===== Comment Form ===== */
.comment-respond {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e2e8f0;
}

.comment-respond .comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.comment-respond .comment-reply-title small {
    margin-left: 10px;
}

.comment-respond .comment-reply-title small a {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-respond .comment-reply-title small a:hover {
    text-decoration: underline;
}

.comment-respond .comment-notes {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 20px;
}

.comment-respond .comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-respond .comment-form-comment {
    margin-bottom: 0;
}

.comment-respond .comment-form-comment textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
    background: #fafbfc;
    transition: all 0.3s ease;
    resize: vertical;
}

.comment-respond .comment-form-comment textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
    background: #ffffff;
}

.comment-respond .comment-form-author,
.comment-respond .comment-form-email,
.comment-respond .comment-form-url {
    margin-bottom: 0;
}

.comment-respond .comment-form-author label,
.comment-respond .comment-form-email label,
.comment-respond .comment-form-url label {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.comment-respond .comment-form-author input,
.comment-respond .comment-form-email input,
.comment-respond .comment-form-url input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.comment-respond .comment-form-author input:focus,
.comment-respond .comment-form-email input:focus,
.comment-respond .comment-form-url input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
    background: #ffffff;
}

.comment-respond .form-submit {
    margin: 10px 0 0 0;
}

.comment-respond .form-submit .submit {
    padding: 14px 40px;
    background: linear-gradient(135deg, #4a6cf7, #6a4cf7);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.comment-respond .form-submit .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
    background: linear-gradient(135deg, #3a5ce7, #5a3ce7);
}

.comment-respond .form-submit .submit:active {
    transform: translateY(0px);
}

.comment-respond .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-respond .comment-form-cookies-consent input {
    width: auto;
    accent-color: #4a6cf7;
}

.comment-respond .comment-form-cookies-consent label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 400;
}

.comment-respond .logged-in-as {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.comment-respond .logged-in-as a {
    color: #4a6cf7;
    text-decoration: none;
}

.comment-respond .logged-in-as a:hover {
    text-decoration: underline;
}

/* ===== Comment Form Fields Grid ===== */
.comment-respond .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-respond .comment-form-comment {
    grid-column: 1 / -1;
}

.comment-respond .comment-form-author {
    grid-column: 1 / 2;
}

.comment-respond .comment-form-email {
    grid-column: 2 / 3;
}

.comment-respond .comment-form-url {
    grid-column: 1 / -1;
}

.comment-respond .comment-form-cookies-consent {
    grid-column: 1 / -1;
}

.comment-respond .form-submit {
    grid-column: 1 / -1;
}

/* ===== Responsive Comments ===== */
@media (max-width: 768px) {
    .comments-section {
        padding: 20px;
    }
    
    .comments-section .comments-title {
        font-size: 1.5rem;
    }
    
    .comment-list .comment .comment-body {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-list .comment .comment-author .avatar {
        width: 50px;
        height: 50px;
    }
    
    .comment-list .children {
        padding-left: 20px;
    }
    
    .comment-list .children .comment .comment-author .avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-respond .comment-reply-title {
        font-size: 1.3rem;
    }
    
    .comment-respond .comment-form {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .comment-respond .comment-form-author,
    .comment-respond .comment-form-email,
    .comment-respond .comment-form-url {
        grid-column: 1 / -1;
    }
    
    .comment-respond .form-submit .submit {
        width: 100%;
        padding: 12px 30px;
    }
    
    .comment-navigation {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .comments-section {
        padding: 15px;
    }
    
    .comments-section .comments-title {
        font-size: 1.3rem;
    }
    
    .comment-list .comment .comment-meta .fn {
        font-size: 1rem;
    }
    
    .comment-list .comment .comment-meta .comment-content {
        font-size: 0.95rem;
    }
    
    .comment-list .children {
        padding-left: 10px;
    }
    
    .comment-respond .comment-form-comment textarea {
        min-height: 120px;
        padding: 12px 15px;
    }
    
    .comment-respond .comment-form-author input,
    .comment-respond .comment-form-email input,
    .comment-respond .comment-form-url input {
        padding: 10px 14px;
    }
    
    .comment-respond .form-submit .submit {
        font-size: 0.9rem;
        padding: 10px 25px;
    }
}



/* ============================================
   CONTACT FORM 7 - MODERN STYLING
   ============================================ */

/* ----- FORM CONTAINER ----- */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ----- FORM ROWS ----- */
.wpcf7-form p {
    margin-bottom: 20px;
}

/* ----- LABELS ----- */
.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* ----- INPUT FIELDS ----- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #2d3748;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* ----- FOCUS STATES ----- */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #4299e1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* ----- TEXTAREA ----- */
.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ----- SELECT DROPDOWN ----- */
.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* ----- CHECKBOXES & RADIO BUTTONS ----- */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4299e1;
}

.wpcf7-form .wpcf7-list-item {
    display: inline-block;
    margin: 0 20px 8px 0;
}

.wpcf7-form .wpcf7-list-item-label {
    font-weight: 400;
    color: #4a5568;
}

/* ----- FILE UPLOAD ----- */
.wpcf7-form input[type="file"] {
    padding: 10px;
    background: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.wpcf7-form input[type="file"]:hover {
    background: #edf2f7;
    border-color: #4299e1;
}

/* ----- SUBMIT BUTTON ----- */
.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: #ffffff;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(66, 153, 225, 0.3);
    width: auto;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* ----- REQUIRED FIELD INDICATOR ----- */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.wpcf7-form .wpcf7-validates-as-required:not(.wpcf7-not-valid)::after {
    content: " *";
    color: #e53e3e;
    font-weight: 700;
}

/* ----- ERROR STATES ----- */
.wpcf7-form .wpcf7-not-valid {
    border-color: #e53e3e !important;
    background: #fff5f5 !important;
}

.wpcf7-form .wpcf7-not-valid:focus {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

/* ----- SUCCESS MESSAGE ----- */
.wpcf7-form .wpcf7-response-output {
    padding: 16px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    margin: 20px 0 0 0;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    background: #f0fff4;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

.wpcf7-form .wpcf7-validation-errors {
    background: #fff5f5;
    color: #9b2c2c;
    border-left: 4px solid #fc8181;
}

.wpcf7-form .wpcf7-spam-blocked {
    background: #fefcbf;
    color: #744210;
    border-left: 4px solid #ecc94b;
}

/* ----- LOADING STATE ----- */
.wpcf7-form .wpcf7-submit {
    position: relative;
}

.wpcf7-form .wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ----- AJAX LOADING INDICATOR ----- */
.wpcf7-form .wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 20px;
        max-width: 100%;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
        padding: 16px;
    }
    
    .wpcf7-form .wpcf7-list-item {
        display: block;
        margin: 0 0 8px 0;
    }
}

@media (max-width: 480px) {
    .wpcf7-form {
        padding: 15px;
        border-radius: 8px;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ----- PLACEHOLDER STYLING ----- */
.wpcf7-form ::-webkit-input-placeholder {
    color: #a0aec0;
    font-size: 14px;
}

.wpcf7-form ::-moz-placeholder {
    color: #a0aec0;
    font-size: 14px;
    opacity: 1;
}

.wpcf7-form :-ms-input-placeholder {
    color: #a0aec0;
    font-size: 14px;
}

/* ----- OPTIONAL: DARK THEME VARIANT ----- */
/* Uncomment if you want dark theme */
/*
.wpcf7-form.dark-theme {
    background: #1a202c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wpcf7-form.dark-theme label {
    color: #e2e8f0;
}

.wpcf7-form.dark-theme input,
.wpcf7-form.dark-theme textarea,
.wpcf7-form.dark-theme select {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

.wpcf7-form.dark-theme input:focus,
.wpcf7-form.dark-theme textarea:focus {
    background: #2d3748;
    border-color: #63b3ed;
}
*/