/*
Theme Name: Travel Aga
Theme URI: http://localhost:6123
Author: Aleksandra
Author URI: http://localhost:6123
Description: Custom theme for Travel Aga based on the provided design.
Version: 1.0
Text Domain: travel-aga
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #111111;
    --primary-hover: #555555;
    --dark-bg: #ffffff;
    --light-bg: #fafafa;
    --text-color: #333333;
    --text-light: #111111;
    --text-gray: #888888;
    --font-family: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.btn-dark {
    background-color: #000000;
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-dark:hover {
    background-color: #333333;
}

/* Header */
header.site-header {
    position: relative;
    width: auto;
    margin-left: -24px;
    margin-right: -24px;
    padding: 10px 24px;
    z-index: 1000;
    background: #222222;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Home Page specific absolute dark header */
body.home header.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* WP Admin Bar compatibility: prevent admin toolbar from covering the top bar when logged in */
body.admin-bar.home header.site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.home header.site-header {
        top: 46px;
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.main-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.header-social {
    position: absolute;
    right: 24px;
    margin-right: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-social a {
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: flex;
}

.header-social a:hover {
    opacity: 1;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #dddddd;
}

/* Submenu dropdown */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-menu li:hover ul {
    display: block;
}

.nav-menu li ul li {
    padding: 5px 20px;
}

.nav-menu li ul li a {
    font-size: 12px;
    text-transform: none;
    color: #333333;
}
.nav-menu li ul li a:hover {
    color: #000000;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 400;
    font-family: var(--font-heading);
    margin-bottom: 50px;
    position: relative;
    color: #111111;
}

.section-title-left {
    text-align: left;
    font-size: 36px;
    font-weight: 400;
    font-family: var(--font-heading);
    margin-bottom: 40px;
    position: relative;
    color: #111111;
}

/* Destinations */
.destinations {
    padding: 80px 0;
    background-color: #ffffff;
}

.destinations .container {
    max-width: 80%;
}

.destinations-slider {
    padding-bottom: 40px;
}

.dest-card {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.splide__pagination__page.is-active {
    background: #111;
}

.splide__arrow {
    background: rgba(255, 255, 255, 0.9);
}

.splide__arrow:hover {
    background: #fff;
}

.dest-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s ease;
}

.dest-card:hover img {
    transform: scale(1.03);
}

.dest-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 2;
}

.dest-info {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.dest-name {
    color: #ffffff;
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Newsletter Banner */
.newsletter-banner {
    background-color: var(--dark-bg);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.nl-left {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 60%;
}

.nl-icon {
    font-size: 40px;
    color: var(--primary-color);
}

.nl-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.nl-desc {
    font-size: 14px;
    color: #cccccc;
}

.nl-right {
    display: flex;
    gap: 10px;
}

.nl-input {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background-color: rgba(255,255,255,0.1);
    color: white;
    width: 250px;
}

/* Latest Posts */
.latest-posts {
    padding: 60px 0;
    background-color: #fafafa;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.post-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.post-card img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.post-card:hover img {
    opacity: 0.9;
}

.post-content {
    padding: 40px;
    color: #333333;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 14px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-title {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #111111;
}

/* Ebooks Section */
.ebooks-section {
    padding: 60px 0;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.ebook-block {
    flex: 1;
    display: flex;
    background-color: #fffaf5;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.ebook-img-wrap {
    flex: 1;
}

.ebook-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebook-content-wrap {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.ebook-block:nth-child(2) .ebook-content-wrap {
    align-items: center;
}

.ebook-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: rgba(255, 107, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ebook-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.ebook-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

/* Instagram */
.instagram {
    padding: 40px 0;
}

.insta-slider {
    margin-top: 30px;
}

.insta-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section & Footer */
.about-box {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    margin-top: 120px;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #eeeeee;
    overflow: hidden;
}

.about-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
    height: 400px;
    display: flex;
    align-items: center;
}

.about-marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.about-marquee-track:hover {
    animation-play-state: paused;
}

.marquee-img {
    height: 280px;
    width: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.marquee-img:nth-child(4n+1) {
    height: 350px;
    width: 250px;
}
.marquee-img:nth-child(4n+2) {
    height: 220px;
    width: 320px;
}
.marquee-img:nth-child(4n+3) {
    height: 300px;
    width: 300px;
}
.marquee-img:nth-child(4n) {
    height: 250px;
    width: 200px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

.about-content {
    padding: 80px 40px;
}

.about-title-left {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 25px;
    color: #111111;
}

.about-desc {
    font-size: 14px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.8;
}



.site-footer {
    background-color: #f5f5f5;
    color: #000000;
    padding-top: 60px;
    border-top: 1px solid #eeeeee;
}

.site-footer .container {
    max-width: 80%;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eeeeee;
}

.widget-title {
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-logo {
    color: #111111;
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.footer-text {
    font-size: 13px;
    margin-bottom: 20px;
    color: #777777;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border: 1px solid #dddddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

.social-icons a:hover {
    background-color: #111111;
    border-color: #111111;
    color: #ffffff;
}

.widget-links li {
    margin-bottom: 12px;
}

.widget-links a {
    font-size: 13px;
    color: #555555;
}

.widget-links a:hover {
    color: #111111;
}

.footer-nl-form {
    display: flex;
    margin-top: 15px;
}

.footer-nl-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    color: white;
    border-radius: 20px 0 0 20px;
    width: 100%;
}

.footer-nl-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 0 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.site-info {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

/* Blog Categories Page */
.page-blog-categories {
    padding-top: 60px;
    padding-bottom: 60px;
}
.blog-categories-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.blog-category-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.blog-category-card .card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.blog-category-card:hover .card-bg {
    transform: scale(1.05);
}
.blog-category-card .card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.blog-category-card .category-script-title {
    color: #ffffff;
    font-size: 28px;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

/* ==========================================================================
   Single Post Layout
   ========================================================================== */

.single-post-wrapper {
    background-color: #fcfcfc;
    padding-bottom: 80px;
}

/* Hero Section */
.single-hero {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-wave {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 6vw;
    min-height: 40px;
}
.hero-wave path {
    fill: #fcfcfc;
}

/* Container & Grid */
.single-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    max-width: 1400px;
}

/* Left Content Area */
.entry-header {
    margin-bottom: 40px;
}
.entry-title {
    font-size: 42px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: #222;
    line-height: 1.2;
    margin-bottom: 20px;
}
.entry-content {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    font-weight: 300;
}
.entry-content p {
    margin-bottom: 30px;
}
.entry-content h2, .entry-content h3 {
    font-family: var(--font-heading);
    color: #222;
    font-weight: 400;
    margin-top: 50px;
    margin-bottom: 25px;
}
.entry-content h2 {
    font-size: 32px;
}

/* Right Sidebar Area */
.single-sidebar {
    padding-top: 20px;
}
.sidebar-widget {
    margin-bottom: 50px;
}
.widget-title, .toc-title, .author-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.author-avatar {
    text-align: center;
    margin-bottom: 15px;
}
.author-avatar img {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    max-width: 240px;
    height: auto;
    border: 2px solid #eee;
    padding: 3px;
}

/* Share Icons */
.share-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.share-icons a {
    color: #999;
    transition: color 0.3s;
}
.share-icons a:hover {
    color: #222;
}

/* Categories */
.widget-categories {
    text-align: center;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.widget-categories a {
    color: #666;
}
.widget-categories a:hover {
    color: #222;
}

/* Promo Banner */
.widget-promo a {
    display: block;
    background: #fdfdfd;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    text-decoration: none;
    color: #444;
    font-size: 12px;
    line-height: 1.6;
    border-radius: 4px;
}
.widget-promo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}
.promo-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-top: 10px;
    color: #b05c5c;
    letter-spacing: 1px;
}

/* Table of Contents */
.widget-toc {
    border-top: 1px solid #222;
    padding-top: 20px;
}
.toc-title {
    font-family: 'Caveat', cursive;
    text-transform: none;
    font-size: 28px;
    letter-spacing: 0;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toc-title::after {
    content: '';
    display: inline-block;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #222;
}
.toc-list {
    padding: 0;
    margin: 0;
}
.toc-list li {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}
.toc-list a {
    color: #666;
}
.toc-list a:hover {
    color: #222;
}

/* Scroll Top */
.scroll-top-wrapper {
    text-align: center;
    margin: 60px 0;
}
.scroll-top {
    display: inline-block;
    padding: 10px;
}

/* Author Box */
.widget-author {
    text-align: center;
}
.author-title {
    font-family: 'Caveat', cursive;
    text-transform: none;
    font-size: 32px;
    letter-spacing: 0;
}
.author-desc {
    font-size: 11px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}
.author-desc strong {
    font-weight: 600;
    color: #222;
}
.author-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.author-socials a {
    color: #aaa;
}

/* WordPress Core Gallery & Columns Support */
.wp-block-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.wp-block-column {
    flex: 1;
}
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ==========================================================================
   Category Archive Layout
   ========================================================================== */

.page-category .container {
    max-width: 100%;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-post-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f2f2f2;
}

.cat-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.cat-post-img-wrapper {
    width: 100%;
    aspect-ratio: 16/12;
    overflow: hidden;
    border-radius: 12px;
}

.cat-post-img-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.cat-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-post-card:hover .cat-post-img {
    transform: scale(1.05);
}

.cat-post-content {
    padding: 15px 15px 5px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cat-post-title {
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: #222;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.cat-post-title a {
    color: inherit;
    text-decoration: none;
}

.cat-post-date {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.cat-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
    margin-top: auto;
}

/* Footer Newsletter Form */
.footer-nl-form {
    display: flex;
    align-items: center;
    margin-top: 25px;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 400px;
}

.footer-nl-form:focus-within {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(0,0,0,0.1);
}

.footer-nl-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 15px;
    color: #333;
    outline: none;
    font-family: inherit;
}

.footer-nl-input::placeholder {
    color: #a0a0a0;
}

.footer-nl-btn {
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 20px;
}

.footer-nl-btn:hover {
    background-color: #333;
    transform: translateX(4px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}
.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #eee;
    color: #555;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}
.page-numbers.current, .page-numbers:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ebooks-section {
        flex-direction: column;
    }
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-banner {
        flex-direction: column;
        text-align: center;
    }
    .nl-left {
        max-width: 100%;
        flex-direction: column;
        margin-bottom: 20px;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-social {
        display: none;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        background: #222222;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }
    
    body.home header.site-header .main-navigation {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul.nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .main-navigation ul.nav-menu li {
        width: 100%;
        text-align: center;
    }
}



/* ==========================================================================
   Comments Section Styling (2026 Professional Layout)
   ========================================================================== */
#comments {
    margin-top: 80px;
    padding-top: 50px;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--heading-color);
    border-bottom: 2px solid #111;
    display: inline-block;
    padding-bottom: 10px;
}

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



/* Base Comment Body - Editorial Style */
.comment-body {
    display: block !important;
    padding: 25px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}



.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-author .avatar {
    position: static !important;
    margin-top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.comment-meta b.fn {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-right: 15px;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #888;
}

.comment-metadata a {
    color: #888;
    text-decoration: none;
}


.comment-content p { margin-bottom: 5px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-content {
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-top: 10px;
}

/* Threading (Shifted Start / Indentation for Replies) */
.commentlist .children {
    list-style: none;
    margin: 30px 0 0 20px; /* Shift to the right */
    padding-left: 30px;    /* Inner spacing */
    border-left: 2px solid #eaeaea; /* Thread line indicator */
}

/* Smaller avatars for replies to show hierarchy */
.commentlist .children .comment-author .avatar {
    position: static !important;
    margin-top: 0;
    width: 36px;
    height: 36px;
}

/* Reply Link - Subtle Text */
.reply {
    margin-top: 5px;
}

.reply a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.reply a:hover {
    color: var(--primary-color);
}

/* Comment Form */
#respond {
    margin-top: 40px;
    background: #fafafa;
    padding: 40px;
    border-radius: 12px;
}

#reply-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.comment-notes {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--heading-color);
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.3s;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-comment {
    margin-bottom: 25px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 20px;
}

.comment-form-cookies-consent {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #666;
}

.form-submit {
    margin-top: 30px;
}

.form-submit .submit {
    background: var(--primary-color, #111);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.form-submit .submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Fix for links in comments (Logged in / Edit links) */
.logged-in-as a,
.comment-metadata a.comment-edit-link {
    color: var(--primary-color, #111) !important;
    text-decoration: underline !important;
    font-weight: 600;
    transition: opacity 0.2s;
    margin-left: 10px;
}

.logged-in-as a:hover,
.comment-metadata a.comment-edit-link:hover {
    opacity: 0.7;
}/* Spacing Logic for Threads */

/* Strip all default list margins/paddings to prevent hidden gaps */
.commentlist, .commentlist ul, .commentlist li {
    margin: 0 !important;
    padding: 0 !important;
}

/* 1. Distance between completely separate top-level threads (HUGE) */
.commentlist > .comment {
    margin-bottom: 20px !important;
}

/* 2. Distance between a parent comment box and its nested reply box (VERY TIGHT) */
.commentlist .children {
    margin-top: 5px !important; /* Only 5px between boxes */
    margin-left: 30px !important; /* Indent */
    margin-bottom: 0 !important;
}

/* 3. Distance between multiple sibling replies */
.commentlist .children > .comment {
    margin-bottom: 10px !important;
}

/* Ensure the last sibling doesn't add extra space */
.commentlist .children > .comment:last-child {
    margin-bottom: 0 !important;
}

/* Ensure comment boxes themselves don't push each other away */
.comment-body {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}