/*
|--------------------------------------------------------------------------
| PREMIUM PUBLIC FRONT-END STYLESHEET
|--------------------------------------------------------------------------
*/

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

body {
    background: var(--body-bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* --- LAYOUT WRAPPERS & CONSTANTS --- */
.site-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Boxed Layout modifier on site wrapper */
.site-wrapper.layout-boxed {
    max-width: var(--boxed-width);
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center;
    justify-self: center;
    background: var(--boxed-bg);
    box-shadow: 0 0 50px rgba(15, 23, 42, 0.08);
    border-left: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
}

.main-wrapper {
    width: 100%;
    max-width: var(--main-outer-width);
    margin: 0 auto;
    min-height: calc(100vh - 350px);
    background: var(--main-bg);
    padding-top: 40px;
    padding-bottom: 60px;
}

.main-wrapper > * {
    max-width: min(var(--main-inner-width), var(--global-max-width));
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    background: var(--inner-bg);
    padding-top: var(--inner-padding-top);
    padding-right: var(--inner-padding-right);
    padding-bottom: var(--inner-padding-bottom);
    padding-left: var(--inner-padding-left);
    box-sizing: border-box;
}

/* --- AD PLACEMENT WRAPPERS --- */
.ad-banner-top-container,
.ad-banner-bottom-container {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-banner-bottom-container {
    border-top: 1px solid var(--card-border);
    border-bottom: none;
}

.ad-banner-wrapper {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.ad-banner-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- HEADER NAVIGATION --- */
.main-header {
    background: var(--header-bg);
    height: auto;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: var(--header-outer-width);
    margin: 0 auto;
}

.header-top-bar-row {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--card-border);
    font-size: 13px;
    padding: 8px 0;
}

.header-main-bar-row {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header-bottom-bar-row {
    background: rgba(0, 0, 0, 0.01);
    border-top: 1px solid var(--card-border);
    padding: 10px 0;
}

.header-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.header-row-right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.header-row-full {
    width: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-ticker-placeholder {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--card-border);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    gap: 8px;
    max-width: 100%;
}

.ticker-badge {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    animation: pulseTicker 2s infinite;
}

.ticker-text {
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes pulseTicker {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.header-social-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link-icon {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
}

.social-link-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.header-date-text {
    color: var(--text-muted);
    font-weight: 500;
}

.banner-notification-text {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

.header-middle-ad-wrapper {
    flex: 1;
    max-width: 728px;
    margin: 0 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.header-middle-ad-wrapper img {
    max-height: 90px;
    width: auto;
    border-radius: 4px;
}

.header-middle-socials {
    display: flex;
    gap: 16px;
}

.search-form-top {
    display: flex;
    align-items: center;
}

.search-input-top {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    outline: none;
    width: 180px;
    transition: width 0.25s;
}

.search-input-top:focus {
    width: 240px;
    border-color: var(--primary);
}

.header-container {
    width: 100%;
    max-width: min(var(--header-inner-width), var(--global-max-width));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

.header-main-bar-row .header-container {
    height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
}

.desktop-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.text-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
}

.desktop-nav {
    display: flex;
    height: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    gap: 32px;
}

.menu-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.menu-link {
    color: var(--menu-color);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.menu-link:hover {
    color: var(--primary);
}

.menu-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-form-header {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 4px 6px 4px 16px;
    transition: border-color 0.2s, background-color 0.2s;
}

.search-form-header:focus-within {
    border-color: var(--primary);
    background: var(--card-bg);
}

.search-input-header {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text);
    width: 140px;
    transition: width 0.25s;
}

.search-input-header:focus {
    width: 200px;
}

.search-btn-header {
    border: none;
    background: var(--primary);
    color: #ffffff;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.search-btn-header:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--heading);
    cursor: pointer;
    padding: 6px;
}

/* --- MOBILE DRAWER OVERLAY --- */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active .mobile-drawer {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.drawer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--heading);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.drawer-search {
    margin-bottom: 24px;
}

.search-form-drawer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-input-drawer {
    border: 1px solid var(--card-border);
    padding: 10px 16px;
    border-radius: var(--btn-radius);
    outline: none;
    font-size: 14px;
}

.search-btn-drawer {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    cursor: pointer;
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
}

.drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-menu-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--menu-color);
    display: block;
    padding: 6px 0;
}

.drawer-menu-link:hover {
    color: var(--primary);
}

/* --- FOOTER STYLES --- */
.main-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    border-top: 1px solid var(--card-border);
    width: 100%;
    max-width: var(--footer-outer-width);
    margin: 0 auto;
}

.footer-container {
    width: 100%;
    max-width: min(var(--footer-inner-width), var(--global-max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom-container {
    width: 100%;
    max-width: min(var(--footer-inner-width), var(--global-max-width));
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-text-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

.footer-logo {
    max-height: 40px;
    width: auto;
}

.footer-description {
    font-size: 14px;
    max-width: 400px;
    line-height: 1.6;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.copyright-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- HELPER CLASSES & GRID CARDS --- */
.w-16 { width: 16px; }
.h-16 { height: 16px; }
.w-20 { width: 20px; }
.h-20 { height: 20px; }

/* --- HOMEPAGE HERO SLIDER --- */
.hero-slider-section {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--secondary);
    position: relative;
}

.slider-container {
    height: 480px;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    display: flex;
    align-items: flex-end;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}

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

.slide-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 800px;
    color: #ffffff;
}

.slide-category {
    background: var(--primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.slide-title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.slide-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 16px;
}

.slider-nav {
    position: absolute;
    bottom: 24px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, width 0.2s;
}

.slider-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 50px;
}

/* --- CATEGORY TABBED SECTION --- */
.tabs-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 45px;
    box-shadow: var(--shadow);
}

.section-header-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 24px;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    list-style: none;
}

.tab-btn {
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- POSTS GRID LAYOUT --- */
.grid-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.08);
}

.post-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #0f172a;
    overflow: hidden;
}

.post-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.post-card-title a {
    color: var(--heading);
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-description {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
}

/* --- SIDEBAR WIDGETS --- */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.widget-ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.trending-number {
    font-size: 28px;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.15);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2px;
}

.trending-title a {
    color: var(--heading);
}

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

.trending-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- RESPONSIVE MEDIA BREAKPOINTS --- */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .hero-slider-section {
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .slider-container {
        height: 380px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .search-form-header {
        display: none;
    }
}

/* --- CENTRALIZED CONTENT SECTIONS LAYOUT BUILDER STYLES --- */
.content-section {
    width: 100%;
}
.section-container {
    max-width: var(--main-inner-width);
    margin: 0 auto;
    padding: 0 20px;
}
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-gap, 20px);
}
.card-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.form-theme {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.form-theme label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-theme input[type="text"],
.form-theme input[type="email"],
.form-theme textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--btn-radius);
    background: var(--body-bg);
    color: var(--text);
    margin-bottom: 1.25rem;
}

/* Category posts widgets layouts */
.posts-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-gap, 20px);
}
.posts-layout-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-gap, 20px);
}
.posts-layout-slider {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-gap, 20px);
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.posts-layout-slider::-webkit-scrollbar {
    height: 6px;
}
.posts-layout-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
.posts-layout-slider .post-card-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

/* Post Card Item */
.post-card-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Direction layout classes */
.dir-top { flex-direction: column; }
.dir-bottom { flex-direction: column-reverse; }
.dir-left { flex-direction: row; }
.dir-right { flex-direction: row-reverse; }

@media (max-width: 768px) {
    .dir-left, .dir-right {
        flex-direction: column;
    }
}

/* Image crop shapes */
.post-thumb-wrapper {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    width: 100%;
}
.post-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card-item:hover .post-thumb-wrapper img {
    transform: scale(1.05);
}

.ratio-landscape { aspect-ratio: 16/9; }
.ratio-portrait { aspect-ratio: 3/4; }
.ratio-square { aspect-ratio: 1/1; }
.ratio-circle { 
    aspect-ratio: 1/1; 
    border-radius: 50%;
    margin: 15px;
    max-width: 150px;
    align-self: center;
}
.ratio-hidden { display: none !important; }

/* Left/Right image sizes */
.dir-left .post-thumb-wrapper, .dir-right .post-thumb-wrapper {
    width: 200px;
}
@media (max-width: 768px) {
    .dir-left .post-thumb-wrapper, .dir-right .post-thumb-wrapper {
        width: 100%;
    }
}

.post-details-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.post-category-tag {
    align-self: flex-start;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.post-title a {
    color: var(--heading);
    transition: color 0.2s;
}
.post-title a:hover {
    color: var(--primary);
    text-decoration: none;
}

.post-meta-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Spotlight Highlight Layout */
.posts-layout-highlight {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-gap, 20px);
}
.highlight-main-post {
    grid-column: span 1;
}
.highlight-side-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-gap, 20px);
}
.highlight-side-list .post-card-item {
    flex-direction: row;
}
.highlight-side-list .post-thumb-wrapper {
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1;
}
@media (max-width: 992px) {
    .posts-layout-highlight {
        grid-template-columns: 1fr;
    }
}

/* Glass Hover Overlay Card Layout */
.posts-layout-overlay {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-gap, 20px);
}
.overlay-card-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}
.overlay-card-item:hover {
    transform: translateY(-5px);
}
.overlay-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 1;
}
.overlay-card-item:hover .overlay-bg-image {
    transform: scale(1.05);
}
.overlay-color-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}
.overlay-details-panel {
    position: relative;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1rem;
    transition: transform 0.3s ease;
}
.btn-theme {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: #ffffff !important;
    border-radius: var(--btn-radius);
    font-weight: 500;
    text-align: center;
    box-shadow: var(--btn-shadow);
    transition: background 0.2s, transform 0.2s;
}
.btn-theme:hover {
    background: var(--primary-hover, var(--primary));
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Magazine Grid Layout */
.posts-layout-magazine_grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: var(--spacing-gap, 20px);
}
.posts-layout-magazine_grid .magazine-lead {
    display: flex;
    flex-direction: column;
}
.posts-layout-magazine_grid .magazine-lead .post-card-item {
    flex: 1;
    height: 100%;
}
.posts-layout-magazine_grid .magazine-lead .post-thumb-wrapper {
    aspect-ratio: 16/9;
}
.posts-layout-magazine_grid .magazine-side-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.posts-layout-magazine_grid .magazine-side-list .post-card-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
}
.posts-layout-magazine_grid .magazine-side-list .post-thumb-wrapper {
    width: 80px;
    height: 80px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}
.posts-layout-magazine_grid .magazine-side-list .post-details-wrapper {
    padding: 0;
    flex-grow: 1;
}
.posts-layout-magazine_grid .magazine-side-list .post-excerpt,
.posts-layout-magazine_grid .magazine-side-list .btn-theme {
    display: none !important;
}
.posts-layout-magazine_grid .magazine-side-list .post-title {
    font-size: 15px;
    margin-bottom: 4px;
}
@media (max-width: 992px) {
    .posts-layout-magazine_grid {
        grid-template-columns: 1fr;
    }
}

/* Masonry Grid Layout */
.posts-layout-masonry_grid {
    column-count: 3;
    column-gap: var(--spacing-gap, 20px);
    width: 100%;
}
.posts-layout-masonry_grid .post-card-item {
    display: inline-block;
    width: 100%;
    margin-bottom: var(--spacing-gap, 20px);
    break-inside: avoid;
}
@media (max-width: 992px) {
    .posts-layout-masonry_grid {
        column-count: 2;
    }
}
@media (max-width: 576px) {
    .posts-layout-masonry_grid {
        column-count: 1;
    }
}

/* Horizontal Scroll Carousel */
.posts-layout-horizontal_carousel {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-gap, 20px);
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.posts-layout-horizontal_carousel::-webkit-scrollbar {
    height: 6px;
}
.posts-layout-horizontal_carousel::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}
.posts-layout-horizontal_carousel .post-card-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
}
@media (max-width: 576px) {
    .posts-layout-horizontal_carousel .post-card-item {
        flex: 0 0 260px;
    }
}

/* Alternating List View */
.posts-layout-alternating_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.posts-layout-alternating_list .post-card-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
}
.posts-layout-alternating_list .post-card-item:nth-child(even) {
    flex-direction: row-reverse;
}
.posts-layout-alternating_list .post-thumb-wrapper {
    width: 40%;
    flex-shrink: 0;
    margin-bottom: 0;
}
.posts-layout-alternating_list .post-details-wrapper {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 768px) {
    .posts-layout-alternating_list .post-card-item,
    .posts-layout-alternating_list .post-card-item:nth-child(even) {
        flex-direction: column;
    }
    .posts-layout-alternating_list .post-thumb-wrapper,
    .posts-layout-alternating_list .post-details-wrapper {
        width: 100%;
    }
}

/* Spotlight Grid Layout */
.posts-layout-spotlight_grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr;
    gap: var(--spacing-gap, 20px);
}
.posts-layout-spotlight_grid .spotlight-main {
    display: flex;
    flex-direction: column;
}
.posts-layout-spotlight_grid .spotlight-main .post-card-item {
    flex: 1;
    height: 100%;
}
.posts-layout-spotlight_grid .spotlight-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.posts-layout-spotlight_grid .spotlight-sub-grid .post-card-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
}
.posts-layout-spotlight_grid .spotlight-sub-grid .post-thumb-wrapper {
    width: 70px;
    height: 70px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}
.posts-layout-spotlight_grid .spotlight-sub-grid .post-details-wrapper {
    padding: 0;
    flex-grow: 1;
}
.posts-layout-spotlight_grid .spotlight-sub-grid .post-excerpt,
.posts-layout-spotlight_grid .spotlight-sub-grid .btn-theme {
    display: none !important;
}
.posts-layout-spotlight_grid .spotlight-sub-grid .post-title {
    font-size: 14.5px;
    margin-bottom: 4px;
}
@media (max-width: 992px) {
    .posts-layout-spotlight_grid {
        grid-template-columns: 1fr;
    }
}

/* Headline Bullet Ticker */
.posts-layout-headline_ticker {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    gap: 15px;
    width: 100%;
}
.posts-layout-headline_ticker .ticker-badge {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}
.posts-layout-headline_ticker marquee {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}
.posts-layout-headline_ticker marquee a {
    color: var(--heading);
    margin-right: 30px;
    transition: color 0.2s;
}
.posts-layout-headline_ticker marquee a:hover {
    color: var(--primary);
}
.posts-layout-headline_ticker marquee a::after {
    content: '  •  ';
    margin-left: 30px;
    color: var(--primary);
}

/* --- MOBILE & TABLET LAYOUT RESPONSIVENESS OVERRIDES --- */
@media (max-width: 768px) {
    .site-wrapper.layout-boxed {
        max-width: 100% !important;
        margin: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
    }
    .main-wrapper {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .main-wrapper > * {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


