/* ==========================================================================
   SAMSUNTESISAT.COM.TR - FIXIFY INDEX-2.HTML OZEL TEMA KATMANI (#CA232A / #000047)
   ========================================================================== */

:root {
    --sam-red: #CA232A;
    --sam-red-dark: #a31920;
    --sam-navy: #000047;
    --sam-ink: #162456;
    --sam-muted: #5a647d;
    --sam-bg: #f6f8fb;
    --sam-border: #e1e6ef;
}

.preloader,
#style-switcher {
    display: none !important;
}

html {
    scroll-behavior: auto !important;
}

body {
    overflow-x: hidden;
    color: var(--sam-ink);
}

/* Header & Navigation */
.header-style-two .logo-box .logo img {
    max-height: 58px;
    width: auto;
}

.sticky-header .logo img {
    max-height: 48px;
    width: auto;
}

.header-style-two .header-lower .main-box {
    justify-content: space-between;
}

.header-style-two .header-lower .right-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone_box .info,
.header-phone_box strong,
.header-style-two .theme-btn {
    white-space: nowrap !important;
}

.header-style-two .header-lower .left-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-menu .navigation {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.main-menu .navigation > li {
    margin-right: 11px !important;
    padding: 26px 0 !important;
}

.main-menu .navigation > li > a {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    color: var(--sam-navy) !important;
    padding: 4px 0 !important;
}

@media (max-width: 1380px) {
    .header-style-two .header-lower .left-box { gap: 12px; }
    .main-menu .navigation > li { margin-right: 9px !important; }
    .main-menu .navigation > li > a { font-size: 13px !important; }
}

.main-menu .navigation > li.current > a,
.main-menu .navigation > li:hover > a {
    color: var(--sam-red) !important;
    font-weight: 800 !important;
}

.main-menu .navigation > li.current > a::before,
.main-menu .navigation > li.current > a::after {
    display: none !important;
}

.main-menu .navigation > li.current > a {
    border-bottom: 2px solid var(--sam-red);
}

/* Dropdown & 2. Seviye Alt Menu (Overflow Visible!) */
.main-menu .navigation > li > ul {
    width: max-content !important;
    min-width: 240px;
    max-width: 330px;
    overflow: visible !important;
    max-height: none !important;
    margin-top: 0 !important;
    z-index: 9999 !important;
    border-top: 3px solid var(--sam-red);
}

.main-menu .navigation > li > ul:not(:has(li.dropdown)) {
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.main-menu .navigation > li > ul > li > a,
.main-menu .navigation > li > ul > li > ul > li > a {
    margin: 0 !important;
    padding: 9px 26px 9px 18px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-transform: none !important;
}

.main-menu .navigation > li > ul > li > ul {
    width: max-content !important;
    min-width: 260px;
    max-width: 350px;
    left: 100% !important;
    top: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    border: 2px solid var(--sam-red);
    z-index: 9999 !important;
}

.main-menu .navigation li.dropdown:hover > ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-top: 0 !important;
}

.main-menu .navigation > li > ul li.current > a {
    background: var(--sam-red) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.main-header:not(.fixed-header) .sticky-header:not(.fixed-header) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Dinamik Banner Section Two */
.sam-hero-section {
    position: relative;
    background: #041226;
    color: #ffffff;
    overflow: hidden;
}

.sam-hero-slide {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 85px 0 90px;
    background-size: cover;
    background-position: center;
}

.sam-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(0, 0, 71, 0.90) 0%, rgba(0, 0, 71, 0.72) 52%, rgba(0, 0, 71, 0.38) 100%);
    z-index: 1;
}

.sam-hero-slide .auto-container {
    position: relative;
    z-index: 2;
}

.sam-hero-eyebrow {
    display: inline-block;
    background: rgba(202, 35, 42, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.sam-hero-slide h1,
.sam-hero-slide h2 {
    color: #ffffff !important;
    font-family: var(--heading-font-family);
    font-size: clamp(1.95rem, 3.8vw, 3.2rem) !important;
    line-height: 1.18 !important;
    font-weight: 700;
    max-width: 740px;
    margin-bottom: 18px;
}

.sam-hero-desc {
    color: rgba(255, 255, 255, 0.90);
    font-size: 17px;
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 26px;
}

.sam-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.sam-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
}

.sam-hero-badge i {
    color: #ff6b72;
}

.sam-hero-nav {
    position: absolute;
    right: 220px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.sam-hero-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 71, 0.65);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sam-hero-nav button:hover {
    background: var(--sam-red);
    border-color: var(--sam-red);
}

/* Butonlar & Bolumler */
.sam-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sam-red);
    color: #ffffff !important;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.sam-btn-primary:hover {
    background: var(--sam-red-dark);
    transform: translateY(-2px);
}

.sam-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--sam-navy) !important;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--sam-border);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.sam-btn-secondary:hover {
    background: var(--sam-bg);
    border-color: var(--sam-navy);
}

.sam-section-pad {
    padding: 72px 0;
    background: var(--sam-bg);
}

.sam-card {
    background: #ffffff;
    border: 1px solid var(--sam-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 22px rgba(0, 0, 71, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sam-card:hover {
    transform: translateY(-4px);
    border-color: var(--sam-red);
    box-shadow: 0 14px 32px rgba(202, 35, 42, 0.14);
}

.sam-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #edf1f7;
    overflow: hidden;
    border-bottom: 1px solid var(--sam-border);
}

.sam-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sam-card:hover .sam-thumb img {
    transform: scale(1.04);
}

.sam-card-body {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sam-card-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sam-red);
    margin-bottom: 6px;
}

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

.sam-card-title a {
    color: var(--sam-navy);
}

.sam-card-title a:hover {
    color: var(--sam-red);
}

.sam-card-desc {
    color: var(--sam-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.sam-read-more {
    color: var(--sam-red);
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sam-read-more:hover {
    color: var(--sam-navy);
}

/* Hosgeldiniz 576x528 */
.sam-featured-photo {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--sam-border);
    background: #f5f7fa;
}

.sam-featured-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.sam-hosgeldiniz-section .sam-featured-photo {
    max-width: 576px;
    margin-left: auto;
    margin-right: auto;
}

.sam-hosgeldiniz-section .sam-featured-photo img {
    aspect-ratio: 576 / 528 !important;
    object-fit: contain !important;
}

/* Ic Sayfa & Makale */
.page-title {
    min-height: 260px !important;
    padding: 40px 0 36px !important;
    position: relative;
}

.page-title .title {
    margin-bottom: 10px !important;
}

@media (max-width: 767px) {
    .page-title {
        min-height: 195px !important;
        padding: 28px 0 26px !important;
    }
}

.page-title::before {
    background: linear-gradient(100deg, rgba(0, 0, 71, 0.90) 35%, rgba(22, 36, 86, 0.78) 100%) !important;
}

.sam-article-card {
    background: #ffffff;
    border: 1px solid var(--sam-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 26px rgba(0, 0, 71, 0.04);
}

.sam-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 10px 15px;
    background: var(--sam-bg);
    border: 1px solid var(--sam-border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--sam-muted);
    margin-bottom: 22px;
}

.sam-meta-strip i {
    color: var(--sam-red);
}

.sam-prose {
    font-size: 15.5px;
    line-height: 1.75;
    color: #26314d;
}

.sam-prose h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 26px;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--sam-border);
    color: var(--sam-navy);
}

.sam-prose h3 {
    font-size: 18.5px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--sam-red);
}

.sam-prose p {
    margin-bottom: 14px;
}

.sam-prose ul,
.sam-prose ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.sam-prose li {
    margin-bottom: 8px;
    list-style: disc;
}

.sam-prose ol li {
    list-style: decimal;
}

.content-tags-area {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--sam-border);
}

.sam-tag-pill {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 6px 8px 0;
    background: var(--sam-bg);
    border: 1px solid var(--sam-border);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sam-navy);
    transition: all 0.2s ease;
}

.sam-tag-pill:hover {
    background: var(--sam-red);
    border-color: var(--sam-red);
    color: #ffffff;
}

.sam-side-card {
    background: #ffffff;
    border: 1px solid var(--sam-border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 71, 0.04);
}

.sam-side-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--sam-red);
    color: var(--sam-navy);
}

.sam-side-links li + li {
    border-top: 1px solid var(--sam-border);
}

.sam-side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 4px;
    color: #26314d;
    font-size: 14px;
    font-weight: 500;
}

.sam-side-links li.active a,
.sam-side-links a:hover {
    color: var(--sam-red);
    font-weight: 700;
}

.sam-district-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    background: #ffffff;
    border: 1px solid var(--sam-border);
    border-radius: 8px;
    color: var(--sam-navy);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sam-district-pill:hover {
    background: var(--sam-red);
    border-color: var(--sam-red);
    color: #ffffff;
}

.sam-pagination .page-link {
    color: var(--sam-navy);
    border-color: var(--sam-border);
    margin: 0 3px;
    border-radius: 6px;
    font-weight: 600;
}

.sam-pagination .page-item.active .page-link {
    background: var(--sam-red);
    border-color: var(--sam-red);
    color: #ffffff;
}

/* Why Choose Us Compact Contrast */
.why-choose-us-section-two {
    background: var(--sam-navy);
    padding: 68px 0;
}

.sam-stat-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    height: 100%;
}

.sam-stat-num {
    font-family: var(--heading-font-family);
    font-size: 36px;
    font-weight: 800;
    color: #ff7b80;
    line-height: 1.1;
    margin-bottom: 8px;
}

.sam-stat-label {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
}

/* Footer Compact & Floating WhatsApp + Mobile Alt Bar */
.main-footer.footer-style-two {
    background: #06112b;
    padding-top: 60px;
}

.main-footer.footer-style-two .widgets-section {
    padding: 0 0 42px;
}

.main-footer.footer-style-two .widget-title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 16px;
}

.main-footer.footer-style-two .user-links li a,
.main-footer.footer-style-two .social-info li a {
    color: rgba(255, 255, 255, 0.80);
    font-size: 14.5px;
    line-height: 2;
}

.main-footer.footer-style-two .user-links li a:hover,
.main-footer.footer-style-two .social-info li a:hover {
    color: #ff8a8e;
}

.desktop-whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 995;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
    transition: transform 0.2s ease;
}

.desktop-whatsapp-float:hover {
    transform: translateY(-3px);
}

.desktop-whatsapp-float img {
    width: 170px;
    height: auto;
    display: block;
}

.mobile-bottom-bar {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #06112b;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 12px;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.28);
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 11px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-bottom-bar .btn-call {
    background: var(--sam-red);
    color: #ffffff !important;
}

.mobile-bottom-bar .btn-wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
}

@media (max-width: 1199px) {
    .main-menu .navigation > li {
        margin-right: 12px !important;
    }
    .main-menu .navigation > li > a {
        font-size: 13px !important;
    }
}

@media (max-width: 991px) {
    body {
        padding-bottom: 66px;
    }
    .sam-hero-slide {
        min-height: 440px;
        padding: 58px 0 65px;
    }
    .desktop-whatsapp-float {
        display: none !important;
    }
    .mobile-bottom-bar {
        display: flex !important;
    }
    #aichatbot_ra_div_id .rcw-widget-container {
        bottom: 72px !important;
    }
    .back-to-top-wrapper {
        bottom: 78px !important;
    }
    .sam-article-card {
        padding: 18px;
    }
}
