/*
Theme Name: Etalasio Core
Theme URI: https://etalasio.com
Author: Niko
Author URI: https://etalasio.com
Description: Parent theme for Etalasio providing core functions and Elementor support. Child themes should be used for UI/Layout changes.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etalasio-core
Tags: elementor, base-theme, framework
*/

/*
This theme is intended to be a parent theme.
Styles should be added to the child theme.
*/

/* ==========================================================================
   Default Commerce Theme Base Styles (Modern Minimalist)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Palette - Modern Minimalist */
    --def-black: #111827;
    /* Deep Black for primary text and elements */
    --def-black-hover: #374151;
    --def-white: #FFFFFF;
    --def-offwhite: #F9FAFB;
    --def-gray-light: #F3F4F6;
    --def-gray: #E5E7EB;
    /* Borders */
    --def-gray-dark: #6B7280;
    /* Secondary text */
    --def-accent: #2563EB;
    /* Very subtle blue accent if needed */

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Layout variables */
    --radius: 4px;
    /* Minimalist sharp/soft corners */
    --radius-lg: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--def-white);
    color: var(--def-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--def-black);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-title {
    font-size: 3.5rem;
}

.hero-desc {
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--def-black);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--def-gray-dark);
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--def-black);
    color: var(--def-white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--def-black);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--def-black-hover);
    border-color: var(--def-black-hover);
    color: var(--def-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--def-black);
    border-color: var(--def-gray);
}

.btn-outline:hover {
    background-color: var(--def-gray-light);
    border-color: var(--def-black);
    color: var(--def-black);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--def-white);
    border-bottom: 1px solid var(--def-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--def-black);
    color: var(--def-white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--def-black);
    letter-spacing: -1px;
    text-transform: uppercase;
    display: inline-block;
}

.logo img,
.custom-logo {
    max-width: 220px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--def-black);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--def-gray-dark);
}

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

.action-btn {
    color: var(--def-black);
    font-size: 1.2rem;
    position: relative;
}

.action-btn:hover {
    color: var(--def-gray-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--def-black);
    color: var(--def-white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--def-gray);
    border-radius: var(--radius);
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background-color: var(--def-white);
    color: var(--def-black);
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--def-black);
}

input[type="file"]::file-selector-button {
    background-color: var(--def-gray-light);
    color: var(--def-black);
    border: 1px solid var(--def-gray);
    padding: 8px 15px;
    margin-right: 15px;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--def-gray);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--def-black);
}

/* ==========================================================================
   Product Grid
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--def-white);
    transition: all 0.3s ease;
    position: relative;
    group: hover;
}

.product-img-wrapper {
    position: relative;
    background-color: var(--def-gray-light);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--def-black);
    color: var(--def-white);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-info {
    padding: 0 5px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-title a {
    color: var(--def-black);
}

.product-price {
    font-size: 1rem;
    color: var(--def-gray-dark);
    font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--def-offwhite);
    border-top: 1px solid var(--def-gray);
    padding: 80px 0 30px;
    margin-top: 0px !important;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: var(--def-gray-dark);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--def-gray-dark);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--def-black);
}

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

.social-links a {
    color: var(--def-black);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--def-gray-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--def-gray);
    color: var(--def-gray-dark);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Mobile App Navigation
   ========================================================================== */
.mobile-app-nav {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--def-white);
    border-top: 1px solid var(--def-gray);
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-app-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.mobile-app-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--def-gray-dark);
    font-size: 0.7rem;
    gap: 4px;
    font-weight: 600;
}

.mobile-app-nav a.active {
    color: var(--def-black);
}

.mobile-app-nav i {
    font-size: 1.25rem;
}

.mobile-cart-count {
    position: absolute;
    top: 5px;
    margin-left: 20px;
    background-color: var(--def-black);
    color: var(--def-white);
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ==========================================================================
   Cart Styles
   ========================================================================== */
.cart-item {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid var(--def-gray);
    align-items: center;
}

.cart-item-info {
    flex: 2;
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-item-qty {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cart-item-total {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
}

/* ==========================================================================
   Comprehensive Responsive Overrides
   ========================================================================== */
@media (max-width: 992px) {
    .resp-flex-col {
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .resp-flex-col {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 30px !important;
    }

    .resp-grid-col {
        grid-template-columns: 1fr !important;
    }

    .resp-w-full {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-basis: auto !important;
    }

    .header-main {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .product-title {
        font-size: 0.9rem !important;
    }

    .product-price {
        font-size: 0.9rem !important;
    }

    .mobile-app-nav {
        display: block !important;
    }

    body {
        padding-bottom: 70px !important;
    }

    .site-header .header-actions {
        display: none !important;
    }

    .site-header .main-nav {
        display: none !important;
    }

    .header-main {
        padding: 15px 0 !important;
    }

    #mobileFilterBtn {
        display: block !important;
    }

    .shop-sidebar {
        display: none !important;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 2px dashed var(--def-gray);
    }

    .shop-sidebar.active {
        display: block !important;
    }

    /* Cart Mobile Styles */
    .cart-header {
        display: none !important;
    }

    .cart-item {
        flex-wrap: wrap;
        position: relative;
        padding-right: 30px;
    }

    .cart-item-info {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    .cart-item-qty {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding-left: 120px;
    }

    .cart-item-total {
        flex: 1 1 auto;
        justify-content: flex-end;
        padding-left: 0;
    }

    .cart-remove {
        position: absolute;
        top: 30px;
        right: 0;
    }

    .hero-title {
        font-size: 2.2rem !important;
        letter-spacing: -0.5px !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
    }

    .product-gallery {
        position: static !important;
    }
}

/* ==========================================================================
   Custom Product Page Styles
   ========================================================================== */
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.woocommerce-product-attributes th,
table.woocommerce-product-attributes td {
    padding: 12px 15px !important;
    border: 1px solid var(--def-gray) !important;
}

table.woocommerce-product-attributes th {
    font-weight: 600;
    width: 30%;
    text-align: left;
    color: var(--def-black);
    background-color: var(--def-gray-light) !important;
}

table.woocommerce-product-attributes td {
    color: var(--def-gray-dark);
    font-style: normal !important;
    background-color: var(--def-white) !important;
}

/* Stock Status */
p.stock {
    margin-bottom: 15px;
}

/* Fix Qty & Add to Cart layout */
.woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.woocommerce-variation-add-to-cart .quantity,
form.cart:not(.variations_form) .quantity {
    display: inline-flex;
    border: 1px solid var(--def-gray);
    width: 120px;
    height: 50px;
}

.woocommerce-variation-add-to-cart .quantity input.qty,
form.cart:not(.variations_form) .quantity input.qty {
    flex: 1;
    text-align: center !important;
    border: none;
    border-left: 1px solid var(--def-gray);
    border-right: 1px solid var(--def-gray);
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 600;
    width: 40px;
    height: 100%;
    border-radius: 0;
    appearance: none;
    -moz-appearance: textfield;
}

.woocommerce-variation-add-to-cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-variation-add-to-cart .quantity input.qty::-webkit-inner-spin-button,
form.cart:not(.variations_form) .quantity input.qty::-webkit-outer-spin-button,
form.cart:not(.variations_form) .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    flex: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--def-black);
    font-size: 1.2rem;
}

.qty-btn:hover {
    background-color: var(--def-gray-light);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button,
form.cart:not(.variations_form) .single_add_to_cart_button {
    flex: 1;
    background-color: var(--def-black);
    color: var(--def-white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
form.cart:not(.variations_form) .single_add_to_cart_button:hover {
    background-color: var(--def-gray-dark);
}

/* Variation Price Styling */
.woocommerce-variation-price {
    margin-bottom: 20px !important;
}

.woocommerce-variation-price .price {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--def-black) !important;
}

/* Clear button styling */
.reset_variations {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--def-gray-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Size Guide Modal Styles
   ========================================================================== */
.size-guide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.size-guide-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: var(--def-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 99999;
    max-height: 90vh;
    overflow-y: auto;
}

.size-guide-modal-inner {
    position: relative;
    padding: 30px;
}

.size-guide-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--def-gray-dark);
    padding: 5px;
}

.size-guide-modal-close:hover {
    color: var(--def-black);
}

.size-guide-modal-content {
    /* Style the content fetched from WordPress */
    font-size: 0.95rem;
}

.size-guide-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.size-guide-modal-content th,
.size-guide-modal-content td {
    padding: 12px;
    border: 1px solid var(--def-gray);
    text-align: center;
}

.size-guide-modal-content th {
    background: var(--def-gray-light);
    font-weight: 600;
}

/* ==========================================================================
   Native WooCommerce Product Gallery Styles
   ========================================================================== */
.woocommerce-product-gallery {
    width: 100%;
    position: relative;
}

.woocommerce-product-gallery__wrapper {
    margin-bottom: 20px !important;
}

.woocommerce-product-gallery__image {
    background-color: var(--def-gray-light);
    aspect-ratio: 1/1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.woocommerce-product-gallery__image a {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.woocommerce-product-gallery__image img:not(.zoomImg) {
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Gallery slider thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    aspect-ratio: 1/1;
    background-color: var(--def-gray-light);
    cursor: pointer;
    border: 1px solid var(--def-gray);
    overflow: hidden;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.7;
    transition: all 0.2s;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: var(--def-black);
}

/* Zoom Icon Overlay */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--def-white);
    color: var(--def-black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    text-indent: -9999px;
    border: 1px solid var(--def-gray);
}

.woocommerce-product-gallery__trigger::before {
    content: "🔍";
    /* simple unicode magnifying glass */
    text-indent: 0;
    font-size: 1.2rem;
}

/* Fix accordion bullet points */
.accordion-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.accordion-content li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Extra Product Meta Styles
   ========================================================================== */
.product-extra-meta {
    border-top: 1px solid var(--def-gray);
    padding-top: 30px;
    margin-top: 40px;
}

.extra-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.extra-meta-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--def-gray-dark);
}

.extra-meta-list li svg {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    color: var(--def-black);
}

.extra-meta-list li strong {
    color: var(--def-black);
    font-weight: 600;
}

.extra-meta-list a {
    color: var(--def-gray-dark);
    text-decoration: none;
}

.extra-meta-list a:hover {
    color: var(--def-black);
    text-decoration: underline;
}

.product-native-meta {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--def-gray-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-native-meta span {
    display: block;
}

.product-native-meta strong {
    color: var(--def-black);
    display: inline-block;
    width: 80px;
}

.product-native-meta a {
    color: var(--def-gray-dark);
    text-decoration: none;
}

.product-native-meta a:hover {
    text-decoration: underline;
}

.product-social-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-social-share strong {
    color: var(--def-black);
    margin-right: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.share-btn.fb {
    background-color: #3b5998;
}

.share-btn.tw {
    background-color: #1da1f2;
}

.share-btn.pt {
    background-color: #bd081c;
}

/* Splide Carousel Customization */
.splide__arrow {
    background: var(--def-white);
    border: 1px solid var(--def-gray);
    opacity: 1;
    color: var(--def-black);
}

.splide__arrow:hover {
    background: var(--def-black);
    color: var(--def-white);
    border-color: var(--def-black);
}

.splide__arrow svg {
    fill: currentColor;
}

/* Reviews Section Clean up */
.product-reviews-section #comments h2,
.product-reviews-section #review_form_wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-reviews-section .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.product-reviews-section .commentlist li {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--def-gray-light);
}

.product-reviews-section .comment-text {
    padding: 10px 0;
}

.product-reviews-section .meta {
    font-size: 0.9rem;
    color: var(--def-gray-dark);
    margin-bottom: 10px;
}

.product-reviews-section .star-rating {
    float: right;
    color: var(--def-black);
}

.product-reviews-section .comment-reply-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ==========================================================================
   Blog & Article Styles
   ========================================================================== */
.etalasio-page-header {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.etalasio-page-header .page-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
}

.etalasio-page-header .page-subtitle {
    margin: 10px 0 0;
    color: #666;
    font-size: 1.1rem;
}

/* 2-Column Layout */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
}

.blog-content {
    flex: 1;
    min-width: 0;
}

/* min-width: 0 prevents flex overflow */
.blog-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media(max-width: 991px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

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

.post-card-image {
    display: block;
    overflow: hidden;
    height: 200px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

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

.post-card .post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.post-card .post-title {
    margin: 0 0 15px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.post-card .post-title a {
    color: #111;
    text-decoration: none;
    transition: 0.2s;
}

.post-card .post-title a:hover {
    color: #ff4d4f;
}

.post-card .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.post-card .post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: auto;
    transition: 0.2s;
}

.post-card .post-read-more:hover {
    color: #ff4d4f;
    gap: 12px;
}

/* Sidebar Widgets */
.blog-sidebar .widget {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.blog-sidebar .widget-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
    border-bottom: 2px solid #111;
}

.blog-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar .widget ul li a {
    color: #555;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.blog-sidebar .widget ul li a:hover {
    color: #ff4d4f;
    padding-left: 5px;
}

.blog-sidebar .widget_search form {
    display: flex;
}

.blog-sidebar .widget_search input[type="text"],
.blog-sidebar .widget_search input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.blog-sidebar .widget_search input[type="submit"],
.blog-sidebar .widget_search button {
    padding: 12px 20px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.blog-sidebar .widget_search button:hover {
    background: #ff4d4f;
}

/* Single Article */
.single-article-header {
    padding: 0 0 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.single-article-header .post-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.single-article-header .single-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
    color: #111;
    letter-spacing: -1px;
}

.single-article-image {
    margin-bottom: 40px;
}

.single-article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-article-content p {
    margin-bottom: 25px;
}

.single-article-content h2,
.single-article-content h3 {
    margin: 40px 0 20px;
    color: #111;
}

.single-article-content blockquote {
    border-left: 4px solid #111;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    font-size: 1.25rem;
}

.single-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}


/* Blog Extras (Meta & Sidebar) */
.post-card .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-card .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card .post-meta a {
    color: inherit;
    text-decoration: none;
}

.post-card .post-meta a:hover {
    color: #111;
}

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
    text-decoration: none;
    color: #555;
}

.post-tags a:hover {
    background: #e0e0e0;
}

.blog-sidebar {
    flex: 1;
    min-width: 300px;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.widget_search form {
    display: flex;
    gap: 10px;
}

.widget_search input[type='search'] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.widget_search button {
    padding: 10px 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.widget_categories li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.widget_categories a {
    color: #555;
    text-decoration: none;
    display: block;
}

.widget_categories a:hover {
    color: #111;
}

.tagcloud a {
    display: inline-block;
    background: #f5f5f5;
    padding: 5px 10px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem !important;
}

.tagcloud a:hover {
    background: #e5e5e5;
    color: #111;
}

/* Pagination Styling */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.pagination .page-numbers.current {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Footer Title Visibility Fix */
.site-footer .elementor-widget-theme-site-title a,
.site-footer .elementor-heading-title,
.site-footer .elementor-heading-title a,
.site-footer .logo a {
    color: #ffffff !important;
}

.site-footer .elementor-widget-theme-site-title a:hover,
.site-footer .logo a:hover {
    color: #e0e0e0 !important;
}

/* Global Footer Text Color Override for Dark Backgrounds */
.site-footer,
.site-footer p,
.site-footer a:not(.btn),
.site-footer li,
.site-footer span,
.site-footer .widget {
    color: #e5e7eb !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: #ffffff !important;
}

.site-footer a:not(.btn):hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.site-footer h1.elementor-heading-title,
.site-footer h2.elementor-heading-title,
.site-footer h3.elementor-heading-title,
.site-footer h4.elementor-heading-title,
.site-footer h5.elementor-heading-title,
.site-footer h6.elementor-heading-title {
    color: #ffffff !important;
}

.site-footer .elementor-widget-heading .elementor-heading-title {
    color: #ffffff !important;
}