/* Modern Homepage Design - Iteration 3 (Colorful Grid) */
/* Home FAQ keeps admin content/layout/colors; only its spacing and controls are scoped here. */
.home-faq > :is(.home-htmlfaq-module-inside-area,.home-htmlfaq-module-inside-area-boxed),
.home-faq > .home-htmlfaq-module-faq-area {
    width:calc(100% - 32px);max-width:1200px;box-sizing:border-box;
}
.home-faq :is(.home-htmlfaq-module-leftside-txt-h,.home-htmlfaq-module-center-txt-h,.home-htmlfaq-module-rightside-txt-h){margin-bottom:8px;}
.home-faq :is(.home-htmlfaq-module-leftside-txt-h2,.home-htmlfaq-module-center-txt-h2,.home-htmlfaq-module-rightside-txt-h2){font-size:28px;line-height:1.3;margin-bottom:12px;}
.home-faq :is(.home-htmlfaq-module-leftside-txt-s,.home-htmlfaq-module-center-txt-s,.home-htmlfaq-module-rightside-txt-s){font-size:15px;line-height:1.7;margin-bottom:0;}
.home-faq :is(.home-htmlfaq-module-leftside-txt-s,.home-htmlfaq-module-center-txt-s,.home-htmlfaq-module-rightside-txt-s) > :last-child{margin-bottom:0;}
.home-faq :is(.home-htmlfaq-module-leftside-txt-button-area,.home-htmlfaq-module-center-txt-button-area,.home-htmlfaq-module-rightside-txt-button-area){margin-top:16px;}
.home-faq > .home-htmlfaq-module-faq-area{margin-top:24px;}
.home-faq .home-faq-list-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-bottom:14px;font-family:var(--font-body,sans-serif);}
.home-faq .home-faq-list-title{font:700 20px/1.35 var(--font-body,sans-serif);}
.home-faq .home-faq-list-description{font:400 13px/1.5 var(--font-body,sans-serif);}
.home-faq .home-faq-list{display:grid;gap:8px;margin:0;padding:0;width:100%;border:0;box-shadow:none;background:transparent;}
.home-faq .home-faq-item{min-width:0;border:1px solid #dce5eb;border-radius:12px;background:#fff;overflow:hidden;transition:border-color .15s ease;}
.home-faq .home-faq-item:hover,
.home-faq .home-faq-item.active{border-color:var(--site-brand-primary,#1c7ba8);}
.modern-layout-wrapper .home-faq h3.home-faq-question-heading{margin:0;padding:0;font:inherit;color:inherit;}
.home-faq .home-faq-list .home-faq-question{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:52px;padding:14px 18px;border:0;border-radius:0;background:transparent;color:#263b4c;font:600 15px/1.5 var(--font-body,sans-serif);text-align:start;cursor:pointer;}
.home-faq .home-faq-question > span:first-child{min-width:0;overflow-wrap:anywhere;}
.home-faq .home-faq-list .home-faq-question[aria-expanded=true]{color:var(--site-brand-primary,#1c7ba8);background:#f4f9fc;}
.home-faq .home-faq-question:focus-visible{outline:2px solid var(--site-brand-primary,#1c7ba8);outline-offset:-3px;}
.home-faq .home-faq-icon{position:relative;display:block;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#edf5f9;color:var(--site-brand-primary,#1c7ba8);}
.home-faq .home-faq-icon::before,.home-faq .home-faq-icon::after{content:"";position:absolute;inset:11px 7px auto;height:2px;border-radius:2px;background:currentColor;}
.home-faq .home-faq-icon::after{transform:rotate(90deg);}
.home-faq [aria-expanded=true] .home-faq-icon::after{display:none;}
.home-faq .home-faq-answer[hidden]{display:none!important;}
.home-faq .home-faq-answer-content{padding:14px 18px 18px;border-top:1px solid #e9eff3;color:#536372;font-size:14px;line-height:1.75;overflow-wrap:anywhere;}
.home-faq .home-faq-answer-content :last-child{margin-bottom:0;}
.home-faq .home-faq-answer-content img{max-width:100%;height:auto;}
@media(max-width:767px){
    .home-faq > :is(.home-htmlfaq-module-inside-area,.home-htmlfaq-module-inside-area-boxed),.home-faq > .home-htmlfaq-module-faq-area{width:calc(100% - 24px);}
    .home-faq :is(.home-htmlfaq-module-leftside-txt-h2,.home-htmlfaq-module-center-txt-h2,.home-htmlfaq-module-rightside-txt-h2){font-size:23px;}
    .home-faq .home-faq-list .home-faq-question{gap:12px;padding:12px 14px;font-size:14px;}
    .home-faq .home-faq-answer-content{padding:12px 14px 14px;}
    .home-faq > .home-htmlfaq-module-faq-area{margin-top:20px;}
}
@media(prefers-reduced-motion:reduce){.home-faq .home-faq-item{transition:none;}}

:root {
    --primary-color: var(--site-brand-primary, #1c7ba8);
    /* Cyan/Blue from reference */
    --secondary-color: #F58220;
    /* Orange from reference */
    --accent-color: #F58220;
    --text-color: #333333;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius-box: 15px;
    /* Distinct rounded corners */
    --border-width: 2px;
}

/* Global Reset & Container */
.modern-layout-wrapper {
    font-family: var(--font-body) !important;
    background-color: var(--white) !important;
    /* Full White Background */
    color: var(--text-color) !important;
}

.modern-layout-wrapper h1,
.modern-layout-wrapper h2,
.modern-layout-wrapper h3,
.modern-layout-wrapper h4,
.modern-layout-wrapper h5,
.modern-layout-wrapper h6 {
    font-family: var(--font-heading) !important;
    color: #000 !important;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    /* Wide layout */
    margin: 0 auto;
    padding: 0 15px;
}

/* 
   ------------------------
   MODULE SECTIONS 
   ------------------------
*/
section.dynamic-module {
    background: var(--white) !important;
    margin: 3rem auto !important;
    padding: 0 !important;
    max-width: 1400px;
}

section.dynamic-module:nth-child(even) {
    background: var(--white) !important;
}

/* Search Bar - Boxy & colorful */
.header-desktop-search1 input {
    border: 2px solid var(--primary-color) !important;
    border-radius: 50px !important;
    background: white !important;
}



/* 
   ------------------------
   SECTION TITLES (Centered & Big)
   ------------------------
*/
.modules-head-text-main {
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    border-left: none !important;
}

.modules-head-forbg-text {
    font-size: 2.2rem !important;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Orange underline effect */
.modules-head-forbg-text-out::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 4px;
}

.modules-head-text-s {
    text-align: center !important;
    font-size: 1.1rem;
    color: #666;
}

/* 
   ------------------------
   PRODUCT GRID & CARDS (Ref: Colorful Borders)
   ------------------------
*/
.modern-layout-wrapper .urunler-module-main-div .home-product-tabcontent-in {
    display: grid !important;
    grid-template-columns: repeat(var(--home-product-columns, 4), minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.modern-layout-wrapper .urunler-module-main-div .home-product-tabcontent-in > .cat-detail-products-box {
    min-width: 0;
    max-width: 100%;
    width: 100% !important;
}

@media (max-width: 1199px) {
    .modern-layout-wrapper .urunler-module-main-div .home-product-tabcontent-in {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .modern-layout-wrapper .urunler-module-main-div .home-product-tabcontent-in {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Compact showcase cards. Colors and radii come from the admin settings. */
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box {
    overflow: hidden;
    position: relative;
    padding: 0;
    height: 100%;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform .2s ease, border-color .2s ease;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box:hover {
    transform: translateY(-3px);
    border-color: var(--showcase-accent);
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-img {
    width: 100%;
    aspect-ratio: 1;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-img > a {
    display: block;
    width: 100%;
    height: 100%;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box:hover .cat-detail-products-box-img img {
    transform: scale(1.03);
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-kargo {
    bottom: 8px;
    left: 8px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 14px;
    box-shadow: 0 1px 5px #0f172a0d;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-info {
    padding: 10px 10px 6px;
    min-height: 76px;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-stars {
    font-size: 12px;
    line-height: 14px;
    margin-bottom: 5px;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-h {
    display: block;
    min-height: 36px;
    height: 36px;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-h a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-fiyat {
    min-height: 36px;
    padding: 0 10px 10px;
    margin: auto 0 0;
    gap: 4px;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-fiyat-mevcut {
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 24px;
    font-weight: 700;
    white-space: nowrap;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-fiyat-eski {
    font-size: 11px;
    line-height: 16px;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 {
    position: static;
    display: flex;
    padding: 9px 10px;
    margin-top: auto;
    gap: 0;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 form {
    min-width: 0;
    width: 100%;
    margin: 0;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100% !important;
    min-height: 36px;
    padding: 7px 8px;
    margin: 0;
    border: 0;
    border-radius: 7px;
    background: var(--showcase-accent);
    color: var(--showcase-on-accent);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 button:hover {
    filter: brightness(.94);
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 button:disabled {
    background: #edf5fa;
    color: #526779;
    opacity: 1;
    cursor: default;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 > a {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 29px;
    height: 29px;
    padding: 0;
    margin: 0;
    border: 1px solid #e4edf3 !important;
    border-radius: 50%;
    background: #fff !important;
    color: #526779 !important;
    font-size: 13px !important;
    box-shadow: 0 2px 5px #0f172a0a;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 > a:last-of-type:not(:first-of-type) {
    right: 43px;
}
.modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 > a:hover {
    color: var(--showcase-accent) !important;
    border-color: var(--showcase-accent) !important;
}
.modern-layout-wrapper .urunler-module-main-div :is(button, a):focus-visible {
    outline: 2px solid var(--showcase-accent);
    outline-offset: -3px;
}
.modern-layout-wrapper .urunler-module-main-div .home-product-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
}
.modern-layout-wrapper .urunler-module-main-div .home-product-tablinks {
    padding: 0;
    min-height: 38px;
}
.modern-layout-wrapper .urunler-module-main-div .home-product-tablinks p {
    padding: 8px 18px;
    line-height: 20px;
}
.modern-layout-wrapper .urunler-module-main-div .home-product-tablinks.active::after {
    display: none;
}
.modern-layout-wrapper .urunler-module-main-div .wrapper_tabcontent {
    margin: 18px 0 0;
}
@media (max-width: 767px) {
    .modern-layout-wrapper .urunler-module-main-div .home-product-tablinks {
        flex: 0 1 calc(50% - 4px);
        min-width: 0;
    }
    .modern-layout-wrapper .urunler-module-main-div .home-product-tablinks p {
        padding: 7px 6px;
        font-size: 11px;
    }
    .modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-info {
        padding: 8px 8px 6px;
    }
    .modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-fiyat {
        padding-right: 8px;
        padding-left: 8px;
    }
    .modern-layout-wrapper .urunler-module-main-div .cat-detail-products-box-cart-2 {
        padding: 8px;
    }
}


/* 
   ------------------------
   FOOTER
   ------------------------
*/
.footer-module-main-div {
    /* Background image/color are managed by footer_ayar via site-main-stil.php. */
    margin-top: 5rem;
    border-top: 4px solid var(--footer-border-color, var(--secondary-color));
}

/* Footer text colors are supplied by the panel in site-main-stil.php. */
.footer-module-links-div a:hover {
    color: var(--footer-link-hover-color, var(--secondary-color)) !important;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .modules-head-forbg-text {
        font-size: 1.5rem !important;
    }
}

/* 
   ------------------------
   PHOTO GALLERY (Polaroid Style)
   ------------------------
*/
.pgallery-module-inside-box-area {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
}

#portfolio-static-grid {
    display: contents !important;
}

.pgallery-module-inside-box {
    background: white !important;
    border: 1px solid #e2e8f0;
    padding: 15px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: rotate(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-radius: 4px;
    /* Slight rounding for polaroid feel */
    height: auto !important;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pgallery-module-inside-box:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
    z-index: 2;
}

.pgallery-module-inside-box img {
    width: 100% !important;
    height: 250px !important;
    /* Fixed height for uniformity */
    object-fit: cover !important;
    /* "Tam otursun" */
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
    order: 1;
}

.pgallery-module-inside-box a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
}

/* Transform the overlay into a static text block below image */
.pgallery-module-box-overlay {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin-top: 10px;
    opacity: 1 !important;
    /* Always visible */
    visibility: visible !important;
    height: auto !important;
    transform: none !important;
    display: block !important;
    /* Ensure it takes up space */
    order: 2;
    width: 100% !important;
}

.pgallery-module-box-overlay-in {
    position: static !important;
    transform: none !important;
    color: var(--text-color) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: capitalize;
    font-family: var(--font-heading) !important;
    text-align: center;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Hide the icon (magnifying glass) as requested */
.pgallery-module-box-overlay-in i {
    display: none !important;
}

@media (max-width: 767px) {
    .pgallery-module-inside-box-area {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch;
    }

    .pgallery-module-inside-box {
        background: #fff !important;
        border: 1px solid #e5e7eb !important;
        padding: 10px !important;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06) !important;
        border-radius: 10px !important;
        justify-content: flex-start;
    }

    .pgallery-module-inside-box:hover {
        transform: none !important;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06) !important;
        border-color: #e5e7eb !important;
    }

    .pgallery-module-inside-box img {
        width: 100% !important;
        height: 128px !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-bottom: 10px;
        border-bottom: 0 !important;
        aspect-ratio: auto;
        object-fit: contain !important;
        object-position: center center !important;
        background: #f8fafc;
        border-radius: 8px;
    }

    .pgallery-module-box-overlay {
        margin-top: 0;
    }

    .pgallery-module-box-overlay-in {
        font-size: 15px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
        padding: 0 4px 2px;
        min-height: 40px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
        hyphens: auto;
    }
}

@media (max-width: 420px) {
    .pgallery-module-inside-box-area {
        gap: 10px !important;
    }

    .pgallery-module-inside-box {
        padding: 8px !important;
        border-radius: 8px !important;
    }

    .pgallery-module-inside-box img {
        height: 110px !important;
    }

    .pgallery-module-box-overlay-in {
        font-size: 14px !important;
        min-height: 36px;
    }
}

/* 
   ------------------------
   SERVICES MODULE (3-Column Grid)
   ------------------------
*/
.hizmetler-box-main-div {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.hizmetler-box {
    background: #fff !important;
    border: none !important;
    /* Clean look */
    /* If user wants a border similar to products, uncomment below: */
    /* border: 1px solid #e2e8f0 !important; */
    border-radius: 8px !important;
    padding: 0 !important;
    /* Image takes full width */
    margin: 0 !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    /* Left aligned text per reference */
    float: none !important;
    /* Override legacy floats */
    height: auto !important;
}

.hizmetler-box-img {
    width: 100% !important;
    height: 220px !important;
    /* Fixed height for uniformity */
    overflow: hidden;
    border-radius: 8px;
    /* Rounded images */
    margin-bottom: 20px !important;
}

.hizmetler-box-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.hizmetler-box:hover .hizmetler-box-img img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

/* Hide legacy hover lines/overlays */
.hizmetler-box-line {
    display: none !important;
}

.hizmetler-box-h {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
    font-size: 1.25rem !important;
    /* Larger heading */
    line-height: 1.4 !important;
    height: auto !important;
}

.hizmetler-box-h a {
    color: #000 !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
}

.hizmetler-box-s {
    color: #666 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
    height: auto !important;
}

/* Responsive for Services */
@media (max-width: 992px) {
    .hizmetler-box-main-div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 600px) {
    .hizmetler-box-main-div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hizmetler-box-img {
        height: 200px !important;
    }
}

/* Homepage blog layout; panel colors are supplied by blog_ayar. */
.modern-layout-wrapper .home-blog-editorial {
    border-radius: 28px;
    overflow: hidden;
}
.modern-layout-wrapper .home-blog-editorial .bloglar-module-inside-area {
    width: 100%;
    max-width: 1280px;
    padding: 0 28px;
    box-sizing: border-box;
}
.modern-layout-wrapper .home-blog-editorial .modules-head-text-main {
    margin-bottom: 30px !important;
}
.modern-layout-wrapper .home-blog-editorial .modules-head-text-h,
.modern-layout-wrapper .home-blog-editorial .modules-head-forbg-text {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 32px) !important;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.7px;
    text-transform: none;
    color: var(--home-blog-heading) !important;
}
.modern-layout-wrapper .home-blog-editorial .modules-head-text-s {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0;
}
.modern-layout-wrapper .home-blog-editorial .modules-head-text-main::after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 10px;
    background: var(--home-blog-link);
    margin: 17px auto 0;
    opacity: .7;
}
.modern-layout-wrapper .home-blog-editorial .modules-head-forbg-text-out::after {
    display: none;
}
.home-blog-editorial .home-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    align-items: stretch;
}
.home-blog-editorial .home-blog-layout.has-list {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.home-blog-editorial .home-blog-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    min-width: 0;
    align-items: stretch;
}
.home-blog-editorial .home-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 9px;
    background: var(--home-blog-card);
    border: 1px solid rgba(38, 157, 214, .12);
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(32, 76, 101, .035);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.home-blog-editorial .home-blog-card:hover,
.home-blog-editorial .home-blog-card:focus-within {
    border-color: rgba(38, 157, 214, .28);
    box-shadow: 0 10px 26px rgba(32, 76, 101, .07);
}
.home-blog-editorial .home-blog-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 13px;
    background: #f7f9fb;
    flex: none;
}
.home-blog-editorial .home-blog-media img,
.home-blog-editorial .home-blog-list-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    transform: none;
}
.home-blog-editorial .home-blog-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 21px 11px 13px;
}
.modern-layout-wrapper .home-blog-editorial .home-blog-card-title {
    margin: 0 0 18px;
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: -.3px;
    overflow-wrap: anywhere;
}
.home-blog-editorial .home-blog-card-title a {
    display: block;
}
.home-blog-editorial .home-blog-card-title a:hover,
.home-blog-editorial .home-blog-list-link:hover {
    color: var(--primary-color) !important;
}
.home-blog-editorial .home-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    min-height: 44px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.home-blog-editorial .home-blog-read-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(245, 130, 32, .085);
    border-radius: 50%;
    font-size: 11px;
}
.home-blog-editorial .home-blog-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 4px 0 0 2px;
}
.modern-layout-wrapper .home-blog-editorial .home-blog-list-heading {
    margin: 0 0 5px;
    color: var(--home-blog-heading) !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -.2px;
}
.home-blog-editorial .home-blog-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.home-blog-editorial .home-blog-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(38, 157, 214, .12);
}
.home-blog-editorial .home-blog-list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    min-height: 84px;
    text-decoration: none;
}
.home-blog-editorial .home-blog-list-media {
    display: block;
    width: 68px;
    height: 60px;
    padding: 3px;
    box-sizing: border-box;
    flex: none;
    border-radius: 9px;
    border: 1px solid rgba(38, 157, 214, .09);
    background: var(--home-blog-card);
    overflow: hidden;
}
.home-blog-editorial .home-blog-list-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.home-blog-editorial .home-blog-list-arrow {
    flex: none;
    color: var(--primary-color);
    font-size: 18px;
}
.home-blog-editorial .home-blog-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin-top: auto;
    padding: 13px 18px;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
}
.home-blog-editorial .home-blog-all.button-blue-out {
    color: var(--primary-color);
    border: 1px solid rgba(38, 157, 214, .22);
    background: rgba(255, 255, 255, .8);
}
.home-blog-editorial .home-blog-all.button-blue-out:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.home-blog-editorial .home-blog-all-standalone {
    width: auto;
    margin: 24px auto 0;
}
.home-blog-editorial a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}
.home-blog-editorial .home-blog-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .6);
    pointer-events: none;
}
@media (max-width: 1100px) {
    .home-blog-editorial .home-blog-layout.has-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
    .home-blog-editorial .home-blog-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
    .home-blog-editorial .home-blog-all {
        width: auto;
        align-self: flex-start;
    }
}
@media (max-width: 600px) {
    .modern-layout-wrapper .home-blog-editorial {
        border-radius: 20px;
    }
    .modern-layout-wrapper .home-blog-editorial .bloglar-module-inside-area {
        padding: 0 16px;
    }
    .modern-layout-wrapper .home-blog-editorial .modules-head-text-s {
        font-size: 13px;
    }
    .home-blog-editorial .home-blog-featured,
    .home-blog-editorial .home-blog-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .home-blog-editorial .home-blog-list {
        gap: 0;
    }
    .home-blog-editorial .home-blog-card-body {
        padding: 17px 8px 8px;
    }
    .home-blog-editorial .home-blog-all {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-blog-editorial .home-blog-card {
        transition: none;
    }
}


/* Homepage hero uses the selected width; the optional category list sits beside it. */
.modern-layout-wrapper section.dynamic-module.module-id-27 {
    margin: 0 auto !important;
    padding: 0 15px !important;
}
.modern-layout-wrapper section.dynamic-module.module-id-27:has(.slider-main-div-in2) {
    width: 100%;
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.main-body-2.modern-layout-wrapper:has(.module-id-27 .slider-main-div-in2) {
    overflow: visible;
}
.main-body-2.modern-layout-wrapper section.dynamic-module.module-id-27:has(.slider-main-div-in2) {
    width: 111.111111%;
    left: -5.555555%;
    position: relative;
}
.modern-layout-wrapper .module-id-27 .slider-main-div-in {
    width: 100%;
    max-width: 1280px;
}
.modern-layout-wrapper .module-id-27 .swiper-container {
    min-width: 0;
    width: 100%;
}
.modern-layout-wrapper .module-id-27 .slider-main-div-in2 .slide-top-desktop {
    background-size: cover !important;
}
.modern-layout-wrapper section.module-id-27 + section.dynamic-module {
    margin-top: 0 !important;
}
@media (max-width: 767px) {
    /* The server reads the first selected artwork's dimensions before paint.
       Keep the stage stable when Swiper advances or the image arrives late. */
    .modern-layout-wrapper .module-id-27 .slider-main-div .swiper-container {
        aspect-ratio: var(--home-hero-mobile-ratio, 1280 / 450) !important;
        max-height: 220px;
        max-height: min(220px, 30svh);
    }
    .modern-layout-wrapper .module-id-27 .slide-top-mobile {
        background-size: contain !important;
    }
    .modern-layout-wrapper section.dynamic-module.module-id-27 {
        margin-top: 0 !important;
        padding: 0 12px !important;
    }
    .modern-layout-wrapper section.dynamic-module.module-id-27:has(.slider-main-div-in2) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .modern-layout-wrapper section.module-id-27 + section.dynamic-module {
        margin-top: 16px !important;
    }
}

.home-mobile-discovery { display: none; }
@media (max-width: 767px) {
    .modern-layout-wrapper .home-mobile-discovery {
        display: block;
        margin: 12px 12px 0;
        padding: 12px;
        border: 1px solid #d5e6ef;
        border-radius: 10px;
        background: #f5f9fc;
        color: #153e56;
    }
    .home-mobile-discovery-heading { display: flex; align-items: center; gap: 12px; }
    .home-mobile-discovery-heading h2 {
        flex: 1; min-width: 0; margin: 0;
        font-size: 18px; line-height: 24px; font-weight: 700;
        overflow-wrap: anywhere;
    }
    .home-mobile-discovery-search {
        display: inline-flex; align-items: center; justify-content: center; gap: 6px;
        flex-shrink: 0; min-height: 44px; padding: 8px 12px;
        border-radius: 7px; background: var(--site-brand-primary, #17628c); color: var(--site-brand-primary-text, #fff);
        font-size: 12px; line-height: 18px; font-weight: 700;
    }
    .home-mobile-discovery-search:hover { background: var(--site-brand-primary-hover, #124e70); color: var(--site-brand-primary-text, #fff); }
    .home-mobile-discovery-categories {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px; margin-top: 10px;
    }
    .home-mobile-discovery-categories a {
        display: flex; align-items: center; justify-content: center;
        min-width: 0; min-height: 56px; padding: 8px 5px;
        border: 1px solid #cedfe9; border-radius: 7px;
        background: #fff; color: #153e56; text-align: center;
        font-size: 11px; line-height: 15px; font-weight: 600;
        overflow-wrap: anywhere;
    }
    .home-mobile-discovery a:focus-visible { outline: 2px solid #17628c; outline-offset: 3px; }
}

/* Grouped showcases share the tabbed showcase's product cards. */
.modern-layout-wrapper .banner-product-showcase .group-urun-module-inside-area {
    width:100%;max-width:1280px;padding:0 15px;box-sizing:border-box;
}
.banner-product-showcase .banner-product-group {
    display:grid;grid-template-columns:minmax(0,1fr);gap:24px;padding:24px 0;
}
.banner-product-showcase .banner-product-group.has-banner {grid-template-columns:220px minmax(0,1fr);}
.banner-product-showcase .banner-product-content {min-width:0;}
.banner-product-showcase .banner-product-banner {position:relative;display:block;overflow:hidden;border-radius:14px;align-self:start;}
.banner-product-showcase .banner-product-banner img {display:block;width:100%;height:auto;}
.banner-product-showcase .banner-product-banner span {display:block;padding:12px;text-align:center;}
.banner-product-showcase .banner-product-header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;}
.modern-layout-wrapper .banner-product-showcase .banner-product-header h2 {margin:0;font-size:24px;line-height:1.3;color:var(--banner-product-heading) !important;}
.banner-product-showcase .banner-product-header p {margin:7px 0 0;font-size:13px;}
.banner-product-showcase .banner-product-category-link {display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--showcase-accent);font-size:12px;font-weight:600;flex:none;}
.banner-product-showcase .banner-product-slider {width:100%;overflow:hidden;padding:4px 0;}
.modern-layout-wrapper .banner-product-showcase .banner-product-slider .cat-detail-products-box {height:auto;flex-shrink:0;}
@media(max-width:1199px){.banner-product-showcase .banner-product-group.has-banner{grid-template-columns:180px minmax(0,1fr);}}
@media(max-width:767px){
    .banner-product-showcase .banner-product-group.has-banner{grid-template-columns:minmax(0,1fr);}
    .banner-product-showcase .banner-product-banner{max-width:220px;width:100%;margin:0 auto;}
    .modern-layout-wrapper .banner-product-showcase .banner-product-header h2{font-size:20px;}
    .banner-product-showcase .banner-product-header{align-items:flex-start;gap:10px;}
    .banner-product-showcase .banner-product-category-link{font-size:11px;}
}
