@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary: #14b8a6;
    --dark: #1f2937;
    --dark-2: #111827;
    --light: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --purple-dark: #7e22ce;
    --purple-light: rgba(126, 34, 206, 0.08);
    --blue-dark: #2563eb;
    --blue-light: rgba(37, 99, 235, 0.08);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Header & Sticky Navigation — matching reference site style */
header#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e8e8e8;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
    padding: 0.75rem 0;
}

header#main-header.sticky {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
}

/* Logo: Icon + Site Name (left side) */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon-box {
    width: 34px;
    height: 34px;
    background-color: #f59e0b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    font-family: var(--font-sans);
    flex-shrink: 0;
}

.logo-site-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
    white-space: nowrap;
}

/* Desktop Navigation — centered */
.desktop-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a,
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #111827;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: block;
    transition: color 0.15s ease;
}

.nav-menu li a:hover,
.nav-link:hover {
    color: #111827;
    background-color: transparent;
    opacity: 0.7;
}

/* Right side: search icon only (plain, no background circle) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.search-btn-trigger {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    padding: 0;
    color: #111827;
}

.search-btn-trigger:hover {
    opacity: 0.6;
}

/* Mobile Menu Toggle */
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    padding: 0;
}

.menu-toggle-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #111827;
    transition: all 0.3s ease;
}

.menu-toggle-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle-btn.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile dropdown */
.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    z-index: 999;
}

.mobile-menu-dropdown.active {
    display: flex;
}

/* Mobile nav links */
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu a,
.mobile-menu-dropdown a.nav-link {
    color: #111827;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 0;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f3f4f6;
}

/* Responsive: hide desktop nav on mobile */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-toggle-btn { display: flex; }
    .logo-site-name { font-size: 1rem; }
}

@media (min-width: 769px) {
    .menu-toggle-btn { display: none; }
    .mobile-menu-dropdown { display: none !important; }
}

/* Main Layout Padding */
main {
    margin-top: 80px;
    padding-bottom: 4rem;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
    background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.8rem;
}

/* Cards System */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-wrap {
    overflow: hidden;
    position: relative;
}

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

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

/* Large Featured Card */
.large-featured-card {
    display: flex;
    flex-direction: column;
    grid-row: span 2;
}

.large-featured-card .card-img-wrap {
    height: 350px;
}

.large-featured-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Secondary Stack Cards */
.secondary-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 190px;
}

.horizontal-card .card-img-wrap {
    height: 100%;
}

.horizontal-card .card-img {
    height: 100%;
}

.horizontal-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Category Badge tags */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 0.8rem;
    align-self: flex-start;
    text-transform: capitalize;
}

.badge-jobs {
    color: var(--purple-dark);
    background-color: var(--purple-light);
}

.badge-tech {
    color: var(--blue-dark);
    background-color: var(--blue-light);
}

.badge-lifestyle {
    color: #0d9488;
    background-color: rgba(13, 148, 136, 0.08);
}

.badge-culture {
    color: #b45309;
    background-color: rgba(180, 83, 9, 0.08);
}

.badge-news {
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.08);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-2);
    margin-bottom: 0.75rem;
}

.horizontal-card .card-title {
    font-size: 1.1rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel Section */
.carousel-section {
    padding: 4rem 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--gray-100);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-2);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.carousel-outer {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: calc(33.333% - 1rem);
    flex-shrink: 0;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background-color: var(--gray-100);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Category Filter Bar */
.category-filter-section {
    padding: 3rem 0;
    background-color: var(--light);
}

.category-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.scroll-cat-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.scroll-cat-btn:hover {
    background-color: var(--gray-100);
}

.category-buttons-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem 0;
    scrollbar-width: none; /* Firefox */
}

.category-buttons-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cat-btn {
    background-color: white;
    border: 1px solid var(--gray-200);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    border-color: var(--dark);
    background-color: var(--dark);
    color: white;
}

.cat-btn.active {
    background-color: var(--dark-2);
    border-color: var(--dark-2);
    color: white;
}

/* Dynamic Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.articles-grid .card {
    display: flex;
    flex-direction: column;
}

.articles-grid .card-img-wrap {
    height: 200px;
}

.articles-grid .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.browse-more-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-outline {
    border: 1px solid var(--dark);
    background-color: transparent;
    color: var(--dark);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--dark);
    color: white;
}

/* ============================================================
   SINGLE POST PAGE — matching reference design exactly
   ============================================================ */

.single-post-main {
    margin-top: 80px;
    padding-bottom: 5rem;
    background: #ffffff;
}

.single-post-wrap {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem 0;
}

/* 1. Header: Title + Excerpt + Date */
.single-post-header {
    margin-bottom: 1.5rem;
}

.single-post-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f1729;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

@media (max-width: 600px) {
    .single-post-title { font-size: 1.6rem; }
}

/* Excerpt in blue — exactly like reference */
.single-post-excerpt {
    font-size: 1rem;
    color: #1e40af;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

/* Date: small plain text below excerpt */
.single-post-date {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 400;
}

/* 2. Ad space below the title */
.single-ad-top {
    width: 100%;
    margin: 1.25rem 0 1.75rem;
    text-align: center;
}

.single-ad-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

#av_top_wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: block;
    text-align: center;
}

/* 3. Article Body Content */
.single-post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2937;
}

.single-post-body p {
    margin-bottom: 1.5rem;
}

/* H2 in article — bold, dark, like reference */
.single-post-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}

.single-post-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 1.5rem 0 0.6rem;
}

/* Full-width images in articles */
.single-post-body img,
.single-post-body figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 1.5rem 0 0.5rem;
}

.single-post-body figure {
    margin: 1.75rem 0;
}

/* Centered image captions like reference */
.single-post-body figcaption,
.single-post-body .wp-caption-text {
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.35rem;
    font-style: normal;
    line-height: 1.4;
}

/* Offer/Website block inside article content — like reference */
.single-post-body .offer-block,
.single-post-body .avpress-offer-block {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* Numbered list steps like reference */
.single-post-body ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.single-post-body ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.single-post-body ul {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.single-post-body ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Horizontal rule styling */
.single-post-body hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* OLD article classes — keep for compatibility */
.article-detail-container {
    max-width: 780px;
    margin: 100px auto 4rem auto;
    padding: 0 1.5rem;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f1729;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.article-meta-info {
    font-size: 0.82rem;
    color: #6b7280;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2937;
}

.article-content p { margin-bottom: 1.5rem; }

.article-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 0.75rem;
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 1.5rem 0 0.6rem;
}

.article-content figure { margin: 2rem 0; }

.article-content figure img {
    width: 100%;
    border-radius: 4px;
}

.article-content figcaption {
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.35rem;
}

/* MOCK ADS PLACEMENTS styling */
#av_top_wrapper {
    width: 100%;
    margin: 2rem 0;
    padding: 1rem;
    border: 1px dashed var(--gray-300);
    background-color: var(--gray-100);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ad-placeholder-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.ad-placeholder-banner span {
    font-size: 1.1rem;
}

.ad-placeholder-banner small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Inside Article Offer Blocks (Ad / Affiliate Block) */
.avpress-offer-block {
    background-color: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s ease;
}

.avpress-offer-block:hover {
    box-shadow: var(--shadow-lg);
}

.offer-block-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-2);
}

.offer-block-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.offer-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.offer-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-desc-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-2);
    margin-bottom: 0.5rem;
}

.offer-desc {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.offer-btn {
    align-self: flex-end;
    background-color: #15803d;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.offer-btn:hover {
    background-color: #166534;
}

/* Related Article Highlight Card (Related Block) */
.avpress-related-block {
    background-color: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s ease;
}

.avpress-related-block:hover {
    box-shadow: var(--shadow-lg);
}

.related-block-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-2);
}

.related-block-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.related-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.related-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-desc-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-2);
    margin-bottom: 0.5rem;
}

.related-desc {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.related-btn {
    align-self: flex-end;
    background-color: #15803d;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.related-btn:hover {
    background-color: #166534;
}

/* Related Bottom Section */
.related-posts-section {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--gray-200);
    background-color: var(--light);
}

/* Footer Section */
footer {
    position: relative;
    background-color: #ffffff;
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--dark-2);
}

.footer-bottom-bar {
    background-color: #ffffff;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Search Modal Overlay */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.search-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    width: 100%;
    max-width: 700px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.search-modal-overlay.active .search-modal-content {
    transform: translateY(0);
}

.search-form {
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.search-input {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 2rem;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--dark-2);
}

.search-close-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.2s ease;
}

.search-close-btn:hover {
    color: var(--dark-2);
}

.search-results-header {
    background-color: var(--gray-100);
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.search-results-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.search-result-item {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
}

.search-result-item:hover {
    background-color: var(--gray-100);
}

.search-result-title {
    font-weight: 600;
    color: var(--dark-2);
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    font-size: 0.85rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-status-msg {
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Floating Language Switcher (TranslatePress Style) */
#trp-floater-ls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 150;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.trp-ls-current-flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trp-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    border-radius: 2px;
}

.trp-ls-dropdown-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    width: 140px;
}

.trp-ls-dropdown-panel.active {
    display: flex;
}

.trp-ls-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.trp-ls-lang-option:hover {
    background-color: var(--gray-100);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .large-featured-card {
        grid-row: auto;
    }
    
    .carousel-slide {
        min-width: calc(50% - 0.75rem);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-actions .search-btn-trigger {
        display: none;
    }
    
    .menu-toggle-btn {
        display: flex;
    }
    
    .horizontal-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .horizontal-card .card-img-wrap {
        height: 180px;
    }
    
    .carousel-slide {
        min-width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-block-grid, .related-block-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-img, .related-img {
        height: 180px;
    }
    
    .offer-btn, .related-btn {
        align-self: stretch;
        text-align: center;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

/* Contact Page Layout Styles */
.contact-page-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-form-section {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.contact-form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-2);
    font-size: 1.3rem;
}

.contact-details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-block h3 {
    color: var(--dark-2);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-block p {
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.contact-block a {
    color: var(--primary);
    font-weight: 500;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Contact Form 7 Form Fields Styling */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-text, .wpcf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--dark-2);
    outline: none;
    transition: border-color 0.2s ease;
}

.wpcf7-text:focus, .wpcf7-textarea:focus {
    border-color: var(--primary);
}

.wpcf7-submit {
    align-self: flex-start;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .contact-page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive Ad Spots */
#av_top_wrapper, #av_top, .ad-spot {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
#av_top img, #av_top iframe, #av_top ins,
.ad-spot img, .ad-spot iframe, .ad-spot ins,
#av_top_wrapper img, #av_top_wrapper iframe, #av_top_wrapper ins {
    max-width: 100% !important;
    height: auto !important;
}
