/* ROOT VARIABLES FOR THEME */
:root {
    --primary-green: #064022;
    /* British Racing Green */
    --dark-green: #032614;
    --light-green: #f0f5f2;
    --accent-color: #b38b4d;
    /* Muted Gold / Brass */
    --accent-orange: #FF6B35;
    /* Energetic Orange */
    --accent-red: #E74C3C;
    /* Warm Red */
    --bg-color: #f8faf9;
    --text-dark: #0f1a14;
    --text-muted: #53645b;
    --white: #ffffff;

    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    --gradient-energy: linear-gradient(135deg, #FF6B35, #E74C3C);
    --gradient-warm: linear-gradient(135deg, var(--primary-green), #0a7a3e);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(143, 30%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(143, 30%, 90%, 1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-green {
    color: var(--primary-green);
}

.bg-light {
    background-color: transparent;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 3.5rem;
    position: relative;
    letter-spacing: -2px;
    color: var(--dark-green);
    text-transform: uppercase;
}

.section-title.text-center::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 0;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-energy);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.btn-primary::after {
    content: ' →';
    opacity: 0;
    transition: all 0.3s ease;
    margin-left: 0;
}

.btn-primary:hover::after {
    opacity: 1;
    margin-left: 10px;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-warm);
    transition: width 0.6s ease, height 0.6s ease, top 0.6s ease, left 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-outline:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline:hover {
    color: var(--white);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* GLASSMORPHISM UTILITY */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    /* Daha ciddi, daha az yuvarlak */
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    padding: 0 clamp(0.75rem, 2vw, 2rem);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 3px solid var(--primary-green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.header .logo {
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.logo-green {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-search {
    position: relative;
    flex: 0 0 auto;
    width: 7.25rem;
    margin: 0;
    align-self: center;
}

.site-search-input {
    width: 100%;
    padding: 0.42rem 0.7rem 0.42rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    background-color: #f7f9f8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.6rem center;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.site-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.15);
    background: #fff;
}

.site-search-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: min(360px, 92vw);
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    z-index: 1100;
    padding: 0.5rem 0;
}

.site-search-hint {
    margin: 0;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-search-hit {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease;
}

.site-search-list li:first-child .site-search-hit {
    border-top: none;
}

.site-search-hit:hover,
.site-search-hit:focus {
    background: rgba(0, 104, 55, 0.08);
    outline: none;
}

.site-search-hit-type {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-green);
}

.site-search-hit-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.site-search-hit-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[dir="rtl"] .site-search {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .site-search-panel {
    left: 0;
    right: auto;
}

.header-actions .site-search-panel {
    left: auto;
    right: 0;
    min-width: min(320px, 85vw);
}

.nav-links {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
    align-self: center;
}

.nav-links > a,
.nav-links > .dropdown {
    flex: 0 0 auto;
    align-self: center;
}

.nav-links > a,
.nav-links > .dropdown > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    padding-bottom: 4px;
}

.menu-toggle {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #064022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='4' y1='7' x2='20' y2='7'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='17' x2='20' y2='17'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    border: 2px solid #064022;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 8px rgba(6, 64, 34, 0.25);
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-open .menu-toggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E");
}

.nav-links > a,
.nav-links > .dropdown > a {
    color: var(--primary-green);
    transition: var(--transition-smooth);
    position: relative;
}

.dropdown-content > .nav-dropdown-row,
.nav-submenu-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.25rem;
    column-gap: 0.5rem;
    align-items: center;
    min-height: 44px;
    padding: 12px 20px;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-row-link {
    grid-column: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-row-spacer {
    grid-column: 2;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.nav-dropdown-row:hover,
.nav-submenu-head:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.nav-dropdown-row:hover .nav-dropdown-row-link {
    color: var(--primary-green);
}

/* Eski HTML: düz <a> satırları da aynı grid hizası */
.dropdown-content > a:not(.nav-dropdown-row-link) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.25rem;
    column-gap: 0.5rem;
    align-items: center;
    min-height: 44px;
    padding: 12px 20px;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content > a:not(.nav-dropdown-row-link)::after {
    content: '';
    grid-column: 2;
    width: 1.25rem;
    height: 1.25rem;
}

.dropdown-content > a:not(.nav-dropdown-row-link):hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.dropdown-content a {
    white-space: nowrap;
}

.nav-links > a::after,
.nav-links > .dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-energy);
    transition: width 0.3s ease;
}

.nav-links > a:hover::after,
.nav-links > .dropdown > a:hover::after {
    width: 100%;
}

.nav-links > a:hover,
.nav-links > .dropdown > a:hover {
    color: var(--accent-orange);
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 248px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    top: 100%;
    padding: 6px 0;
    left: -15px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-submenu {
    margin: 0;
}

.nav-submenu-head {
    width: 100%;
    cursor: default;
}

.nav-submenu-title,
button.nav-submenu-title {
    grid-column: 1;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    min-height: 0;
    display: block;
    box-sizing: border-box;
    font-family: var(--font-heading);
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-align: left;
    color: inherit !important;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.nav-submenu-toggle {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.nav-submenu-chevron {
    transition: transform 0.2s ease;
}

.nav-submenu.is-open .nav-submenu-chevron {
    transform: rotate(180deg);
}

.nav-submenu-items {
    display: none;
}

.nav-submenu.is-open .nav-submenu-items {
    display: block;
}

.nav-submenu-items a {
    padding: 10px 20px 10px 36px !important;
    font-size: 0.88rem !important;
    font-weight: 500;
    min-height: 40px;
    display: flex;
    align-items: center;
    line-height: 1.35;
    white-space: normal;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-submenu-items a:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.lang-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background 0.3s;
}

.lang-btn:hover {
    background: var(--dark-green);
}

.lang-select {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 72px;
}

.lang-select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* RTL (Arabic) */
html[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', var(--font-body), sans-serif;
}

html[dir="rtl"] .header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .dropdown-content {
    right: auto;
    left: 0;
    text-align: right;
}

html[dir="rtl"] .article-content ul,
html[dir="rtl"] .article-content ol {
    padding-right: 2rem;
    padding-left: 0;
}

html[dir="rtl"] .glass-panel {
    text-align: right;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .whatsapp-float {
    left: 24px;
    right: auto;
}

.breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* HERO SLIDER — flex yok; display:block ile her zaman çalışır */
.hero {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
}

.slider-container {
    width: 100%;
    height: clamp(520px, 78vh, 860px);
    min-height: 520px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #064022 0%, #032614 100%);
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 72px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.slide-content {
    max-width: 860px;
    width: 100%;
    padding: 0 12px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.4rem, 1.5vh, 0.85rem);
    flex-shrink: 0;
    margin: auto 0;
}

/* Slide 1 — uzun metin + CTA tek ekranda (temel; aşağıda override) */
.slide-content--intro h1,
.slide-content--intro h2 {
    font-size: clamp(1.25rem, 2.2vh + 0.85rem, 3rem);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.5px;
}

.slide-content--intro .hero-lead {
    font-size: clamp(0.88rem, 1.1vh + 0.55rem, 1.28rem);
    line-height: 1.35;
    margin: 0;
    max-width: 38em;
}

.slide-content--intro p:not(.hero-lead) {
    font-size: clamp(0.82rem, 0.95vh + 0.5rem, 1.08rem);
    line-height: 1.4;
    margin: 0;
    max-width: 40em;
}

.slide-content--intro .btn-hero-quote {
    font-size: clamp(0.88rem, 0.9vh + 0.45rem, 1.05rem);
    padding: clamp(10px, 1.4vh, 14px) clamp(22px, 4vw, 36px);
    margin-top: clamp(0.2rem, 0.6vh, 0.45rem);
    white-space: nowrap;
}

.slide-content h1,
.slide-content h2 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: white;
    margin: 0 0 1rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    line-height: 1.15;
    letter-spacing: -1px;
}

/* Rusça / Arapça — uzun metinler, üst kesilmesin */
html[lang="ru"] .slide-content h1,
html[lang="ru"] .slide-content h2,
html[lang="ar"] .slide-content h1,
html[lang="ar"] .slide-content h2 {
    font-size: clamp(1.65rem, 4vw, 2.85rem);
    line-height: 1.22;
    letter-spacing: 0;
}

html[lang="ru"] .slide-content p,
html[lang="ar"] .slide-content p {
    font-size: clamp(0.95rem, 1.9vw, 1.12rem);
    line-height: 1.5;
    max-width: 36em;
}

.slide-content p {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 1.1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
    max-width: 42em;
}

.slide-content .hero-lead {
    font-size: clamp(1.1rem, 2.4vw, 1.42rem);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 1rem;
    max-width: 40em;
}

.slide-content .hero-pitch {
    font-weight: 700;
    font-size: clamp(1.05rem, 2.1vw, 1.22rem);
    margin: 0;
    color: #f8e8c8;
    letter-spacing: 0.01em;
}

/* Intro slide — genel kuralların üstüne (daha yüksek özgüllük) */
.slide-content.slide-content--intro h1,
.slide-content.slide-content--intro h2 {
    font-size: clamp(1.25rem, 2.2vh + 0.85rem, 3rem);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.5px;
}

.slide-content.slide-content--intro .hero-lead {
    font-size: clamp(0.88rem, 1.1vh + 0.55rem, 1.28rem);
    line-height: 1.35;
    margin: 0;
    max-width: 38em;
}

.slide-content.slide-content--intro p:not(.hero-lead) {
    font-size: clamp(0.82rem, 0.95vh + 0.5rem, 1.08rem);
    line-height: 1.4;
    margin: 0;
    max-width: 40em;
}

html[lang="ru"] .slide-content.slide-content--intro h1,
html[lang="ru"] .slide-content.slide-content--intro h2,
html[lang="ar"] .slide-content.slide-content--intro h1,
html[lang="ar"] .slide-content.slide-content--intro h2 {
    font-size: clamp(1.1rem, 2vh + 0.65rem, 2.35rem);
    line-height: 1.14;
    letter-spacing: 0;
}

html[lang="ru"] .slide-content.slide-content--intro p,
html[lang="ar"] .slide-content.slide-content--intro p {
    font-size: clamp(0.8rem, 0.9vh + 0.45rem, 1rem);
    line-height: 1.38;
    max-width: 36em;
}

.slide-content.slide-content--intro .btn-hero-quote {
    font-size: clamp(0.88rem, 0.9vh + 0.45rem, 1.05rem);
    padding: clamp(10px, 1.4vh, 14px) clamp(22px, 4vw, 36px);
    margin-top: clamp(0.2rem, 0.6vh, 0.45rem);
    white-space: nowrap;
}

.slide-content .btn-primary {
    flex-shrink: 0;
    margin-top: 0.25rem;
    position: relative;
    z-index: 12;
}

.slide-content .btn-hero-quote {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e85a24 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-size: 1.15rem;
    padding: 16px 44px;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 32px rgba(255, 107, 53, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.slide-content .btn-hero-quote::before {
    background: linear-gradient(135deg, #ff8c5a 0%, var(--accent-orange) 100%);
}

.slide-content .btn-hero-quote:hover {
    box-shadow: 0 14px 40px rgba(255, 107, 53, 0.62), 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Caldomax slider — okunur logo + metin paneli */
.slide-caldomax {
    text-align: left;
}

.slide-content--caldomax {
    align-items: flex-start;
    text-align: left;
    max-width: min(560px, 92vw);
    margin-right: auto;
    margin-left: clamp(12px, 4vw, 48px);
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
    background: rgba(6, 64, 34, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.slide-caldomax-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.slide-caldomax-inline {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.12em;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    transition: color 0.2s ease;
}

.slide-caldomax-inline:hover {
    color: #f8e8c8 !important;
}

.slide-caldomax-colon {
    color: #ffffff;
    font-weight: 700;
    margin-right: 0.2em;
}

.slide-content--caldomax p {
    margin-bottom: 1.35rem;
}

.slide-content .btn-caldomax-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #9a7338 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.slide-content a.caldomax-link,
.slide-content--caldomax a.caldomax-link {
    color: #f5d78e !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.slide-content a.caldomax-link:hover,
.slide-content--caldomax a.caldomax-link:hover {
    color: #ffffff !important;
}

/* Elektrikli kazan ürün detay — tablo ve zengin içerik */
.product-detail-body__content--rich table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.25rem;
    font-size: 0.95rem;
}

.product-detail-body__content--rich table td,
.product-detail-body__content--rich table th {
    border: 1px solid rgba(6, 64, 34, 0.15);
    padding: 0.55rem 0.75rem;
    vertical-align: top;
}

.product-detail-body__content--rich table tr:first-child td {
    background: rgba(6, 64, 34, 0.06);
    font-weight: 600;
    color: var(--primary-green);
}

.product-detail-body__content--rich img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

html[dir="rtl"] .slide-content--caldomax {
    margin-left: auto;
    margin-right: clamp(12px, 4vw, 48px);
    align-items: flex-end;
    text-align: right;
}

/* Kısa ekranlar — slider metni + buton tek pencerede */
@media (max-height: 780px) {
    .slide-content--intro h1,
    .slide-content--intro h2 {
        font-size: clamp(1.1rem, 2vh + 0.7rem, 2.2rem);
    }

    .slide-content--intro .hero-lead {
        font-size: clamp(0.82rem, 1vh + 0.48rem, 1.05rem);
    }

    .slide-content--intro p:not(.hero-lead) {
        font-size: clamp(0.78rem, 0.85vh + 0.42rem, 0.95rem);
    }

    .slide-content--intro .btn-hero-quote {
        padding: 9px 22px;
        font-size: 0.85rem;
    }

    .quick-stats-banner {
        padding: 1rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item {
        padding: 0.5rem;
    }
}

@media (max-height: 620px) {
    .slide {
        padding-bottom: 40px;
    }

    .slide-content--intro h1,
    .slide-content--intro h2 {
        font-size: clamp(1rem, 1.8vh + 0.55rem, 1.65rem);
        line-height: 1.1;
    }

    .slide-content--intro .hero-lead,
    .slide-content--intro p:not(.hero-lead) {
        line-height: 1.3;
    }

    .slide-content {
        gap: 0.25rem;
    }
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 30;
    pointer-events: none;
}

.slider-controls .dot {
    pointer-events: auto;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-green);
}

/* SECTIONS */
section {
    padding: 10rem 0;
    /* Boşluklar %50 artırıldı (Caldomax ferahlığı) */
}

/* SPA PAGE STYLES */
.page {
    display: none;
    animation: pageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

/* SEO alt sayfaları (Hakkımızda, Ürünler vb.) — tek section.page olduğunda içerik gizlenmesin */
main#main-content:not(:has(> section.page ~ section.page)) > section.page {
    display: block !important;
}

/* Ürün kataloğu alt sayfaları — SPA .page gizlemesinden muaf */
main#main-content > section.seo-subpage,
body.seo-standalone-page main section.seo-subpage {
    display: block !important;
}

/* HOME ONLY SECTIONS */
.home-only {
    display: block;
}

body:not(.on-home) .home-only {
    display: none;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Page exit animation */
.page.exiting {
    animation: pageSlideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-page-grid {
    margin-bottom: 0.5rem;
}

.about-page-title {
    margin-bottom: 2rem;
    font-size: 2.75rem;
}

.about-page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    transform: none;
    width: 72px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-text-content p,
.about-chapter__text p,
.about-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text-dark);
}

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

.about-milestones {
    padding: 1.75rem 2rem;
    background: var(--light-green);
    border-left: 4px solid var(--primary-green);
}

.about-milestone {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 0.35rem 0;
}

.about-milestone__year {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    min-width: 4.5rem;
    line-height: 1;
}

.about-milestone__label {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-milestone-divider {
    border: none;
    border-top: 1px solid rgba(10, 145, 76, 0.2);
    margin: 0.65rem 0;
}

.about-services-panel {
    padding: 1.75rem 2rem;
}

.about-services-panel h3,
.about-caldomax-panel h4,
.about-card h3 {
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.about-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.about-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.about-section-divider {
    border: none;
    height: 3px;
    margin: 3rem 0;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-color) 45%, transparent 100%);
    border-radius: 2px;
}

.about-chapter {
    margin-top: 0.5rem;
}

.about-chapter__title {
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 1.75rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
    line-height: 1.35;
}

.about-chapter-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.about-caldomax-panel {
    padding: 1.75rem 2rem;
    background: linear-gradient(145deg, rgba(10, 145, 76, 0.06) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-top: 3px solid var(--primary-green);
}

.about-panel-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--primary-green);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.about-caldomax-panel h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

a.caldomax-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

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

.caldomax-panel-cta {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.caldomax-external-banner {
    border-top: 3px solid var(--primary-green);
}

.product-info .caldomax-external-btn {
    display: inline-block;
    margin-bottom: 0.65rem;
    width: 100%;
    text-align: center;
}

.about-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    padding: 2rem;
    border-radius: 16px;
}

.about-card--accent {
    border-top: 4px solid var(--accent-color);
}

.about-card--green {
    border-top: 4px solid var(--primary-green);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8e4;
}

.about-image .image-wrapper {
    padding: 10px;
}

/* PRODUCTS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.product-card {
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    border-radius: 16px;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-energy);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 107, 53, 0.15);
    border-color: var(--accent-orange);
}

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

.product-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-info {
    padding: 1.5rem 1.75rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-info p {
    color: var(--text-muted);
    height: auto;
    min-height: 0;
    margin-bottom: 1.25rem;
    overflow: visible;
    line-height: 1.5;
}

.product-info h2,
.product-info h3 {
    height: auto;
    min-height: 0;
    overflow: visible;
    line-height: 1.4;
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
    color: var(--text-dark);
}

.product-grid .product-info > a,
.product-grid .product-info > span.btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

/* Ürünler sayfası: uzun açıklamada buton metnin üstüne binmesin */
.products-section .product-info > a + a {
    margin-top: 0.75rem;
}

/* CONTACT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--dark-green);
    border-radius: 16px;
}

.contact-dealer-box {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-dealer-link {
    display: inline-block;
    color: #ffb347;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 179, 71, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-dealer-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.contact-info {
    padding: 4rem;
    color: white;
    background: var(--dark-green);
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item p {
    margin-top: 5px;
    color: #e6f7ed;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 4rem;
}

.contact-captcha-wrap label {
    display: block;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-captcha-wrap input[type="number"] {
    font-size: 1.1rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #f9fbf9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(-5deg);
    animation: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* FOOTER */
footer {
    background: #111;
    color: #666;
    padding: 2rem 0;
}

/* QUICK STATS BANNER — slider altında */
.quick-stats-banner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    position: relative;
    width: 100%;
    z-index: 20;
}

.stat-banner-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    transition: var(--transition-smooth);
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.stat-item:hover .stat-number {
    background: var(--gradient-energy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.stat-item p {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HOME — equipment showcase */
.equipment-showcase {
    background: #fff;
    padding: 4.5rem 0 5rem;
    border-top: 1px solid rgba(6, 64, 34, 0.08);
}

.equipment-showcase-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3rem;
}

.equipment-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.equipment-showcase-header .section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.equipment-showcase-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.equipment-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fbf9 0%, #f0f5f2 100%);
    border-radius: 20px;
    border: 1px solid rgba(6, 64, 34, 0.08);
}

.equipment-feature-media {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 40px rgba(6, 64, 34, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-feature-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(6, 64, 34, 0.16);
}

.equipment-feature-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 1rem;
    min-height: 280px;
}

.equipment-feature-body h3 {
    font-size: 1.65rem;
    color: var(--text-dark);
    margin: 0.5rem 0 1rem;
}

.equipment-feature-body p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.equipment-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-green);
    background: rgba(6, 64, 34, 0.08);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

.equipment-link {
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 2px solid rgba(6, 64, 34, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.equipment-link:hover {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.equipment-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.equipment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(6, 64, 34, 0.12);
    border-color: rgba(6, 64, 34, 0.2);
}

.equipment-card-img {
    background: linear-gradient(180deg, #f7faf8 0%, #fff 100%);
    padding: 1rem 1rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-card-img img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.equipment-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
}

.equipment-card-body h3 {
    font-size: 1.05rem;
    margin: 0.4rem 0 0.5rem;
    color: var(--text-dark);
}

.equipment-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.equipment-showcase-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.equipment-showcase-cta .btn-outline {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.equipment-showcase-cta .btn-outline:hover {
    background: var(--primary-green);
    color: #fff;
}

@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-feature {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .equipment-showcase {
        padding: 3rem 0;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .equipment-card-img {
        min-height: 160px;
    }
}

/* BRANDS ROW */
.brand-logo {
    color: #cbd5d1;
    transition: all 0.3s;
    cursor: default;
}

.brand-logo:hover {
    color: var(--primary-green);
    transform: scale(1.05);
}

/* FOOTER EXTRA */
.footer-links a:hover {
    color: var(--primary-green) !important;
}

/* TECHNICAL TABLES */
.tech-table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
}

.tech-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    font-weight: 600;
}

.tech-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e8e4;
    color: var(--text-muted);
}

.tech-table tr:nth-child(even) {
    background-color: var(--light-green);
}

.tech-table tr:hover {
    background-color: #eaf8ef;
}

/* ARTICLE PAGE STYLES */
.article-page .article-content {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.article-page .article-content h2 {
    scroll-margin-top: 100px;
}

.article-page .article-content h3 {
    scroll-margin-top: 100px;
}

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

.article-page .article-content ul,
.article-page .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-page .article-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-page .article-content strong {
    color: var(--primary-green);
    font-weight: 600;
}

.article-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.article-page .back-link:hover {
    transform: translateX(-5px);
}

.article-page .article-title {
    color: var(--dark-green);
}

.article-page .article-meta {
    border-bottom: 1px solid #e1e8e4;
    padding-bottom: 1rem;
}

/* Responsive article images */
.article-page img {
    max-width: 100%;
    height: auto;
}

/* SCROLL ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* FEATURE BOX ENHANCEMENTS */
.feature-box {
    transition: var(--transition-smooth);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-orange) !important;
}

.feature-icon {
    transition: var(--transition-smooth);
}

.feature-box:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

/* TRUST BADGE ANIMATIONS */
.trust-badge {
    transition: var(--transition-smooth);
    cursor: default;
}

.trust-badge:hover {
    transform: translateY(-10px) scale(1.05);
}

/* CTA BOX ANIMATIONS */
.cta-box {
    transition: var(--transition-smooth);
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(6, 64, 34, 0.4);
}

.cta-box .btn-primary {
    transition: var(--transition-smooth);
}

.cta-box .btn-primary:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-box .btn-outline:hover {
    background: white;
    color: var(--primary-green);
    border-color: white;
}

/* PULSE ANIMATION FOR IMPORTANT ELEMENTS */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

/* GRADIENT TEXT EFFECT */
.gradient-text {
    background: var(--gradient-energy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ENHANCED STAT NUMBERS */
.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-energy);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.stat-item:hover .stat-number::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {

    .about-grid,
    .about-chapter-grid,
    .about-bottom-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-page-title {
        font-size: 2.25rem;
    }
    
    .article-page .article-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .article-page .article-title {
        font-size: 2rem !important;
    }

    .slide {
        padding: calc(var(--mobile-header-total, 6.625rem) + 1.25rem) 16px 64px;
    }

    .slider-container {
        height: clamp(460px, 72vh, 680px);
        min-height: 460px;
    }

    .slide-content--intro h1,
    .slide-content--intro h2 {
        font-size: clamp(1.15rem, 5vw, 1.75rem);
        line-height: 1.15;
    }

    .slide-content--intro .hero-lead {
        font-size: clamp(0.86rem, 3.4vw, 1rem);
    }

    .slide-content--intro p:not(.hero-lead) {
        font-size: clamp(0.82rem, 3.1vw, 0.92rem);
    }

    .slide-content--intro .btn-hero-quote {
        font-size: 0.88rem;
        padding: 11px 26px;
    }

    html[lang="ru"] .slide,
    html[lang="ar"] .slide {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    html[lang="ru"] .slide-content h1,
    html[lang="ru"] .slide-content h2,
    html[lang="ar"] .slide-content h1,
    html[lang="ar"] .slide-content h2 {
        font-size: clamp(1.45rem, 6.5vw, 2rem);
    }

    .slider-controls {
        bottom: 12px;
    }

    .slide-caldomax {
        background-position: center bottom !important;
        background-size: min(70%, 300px) auto, cover !important;
    }

    .slide-content--caldomax {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    html[dir="rtl"] .slide-content--caldomax {
        margin-left: auto;
        margin-right: auto;
    }

    .header {
        --mobile-header-total: 6.625rem;
        top: 0;
        left: 0;
        width: 100%;
        min-height: var(--mobile-header-total);
        height: auto;
        padding: 0.5rem 0.75rem 0.55rem;
        overflow: visible;
        gap: 0.4rem 0.35rem;
        background: #ffffff;
        border-bottom: 3px solid var(--primary-green);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "logo lang menu"
            "search search search";
        align-items: center;
    }

    .header .logo img {
        height: 40px;
        max-width: min(150px, 42vw);
        width: auto;
        object-fit: contain;
    }

    .logo {
        grid-area: logo;
        order: unset;
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 0;
    }

    .header-actions {
        display: contents;
    }

    .header-actions .site-search {
        display: block !important;
        grid-area: search;
        width: 100%;
        max-width: none;
        margin: 0;
        z-index: 1003;
    }

    .header-actions .site-search-input {
        width: 100%;
        font-size: 16px;
        padding: 0.55rem 0.75rem 0.55rem 2.15rem;
    }

    .header-actions .site-search-panel {
        position: fixed;
        top: var(--mobile-header-total);
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: min(55dvh, 420px);
        z-index: 1105;
    }

    .lang-switch-container {
        grid-area: lang;
    }

    .lang-select {
        padding: 6px 10px;
        font-size: 0.82rem;
        min-width: 64px;
    }

    .menu-toggle {
        display: block;
        grid-area: menu;
        order: unset;
        margin-left: 0;
        flex-shrink: 0;
        z-index: 1002;
        background-color: #064022;
        border-color: #064022;
    }

    .nav-links {
        position: fixed;
        top: var(--mobile-header-total);
        left: 0;
        right: 0;
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex: none;
        margin: 0;
        justify-content: flex-start;
        background: #ffffff;
        border: none;
        border-bottom: 3px solid var(--primary-green);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        border-radius: 0;
        padding: 0.35rem 0 1rem;
        z-index: 1001;
        color: var(--primary-green);
    }

    .menu-open .nav-links {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 999;
    }

    .nav-links > a,
    .nav-links > .dropdown > a {
        width: 100%;
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        white-space: normal;
        color: var(--primary-green);
        border-bottom: 1px solid rgba(6, 64, 34, 0.12);
    }

    .nav-links > a:hover,
    .nav-links > .dropdown > a:hover {
        color: var(--accent-orange);
        background: var(--light-green);
    }

    .nav-links .dropdown-content a {
        color: #0f1a14;
        font-weight: 500;
    }

    .nav-links .dropdown-content a:hover {
        color: var(--primary-green);
        background: var(--light-green);
    }

    .nav-links > a::after,
    .nav-links > .dropdown > a::after {
        display: none;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: block;
        border: none;
        box-shadow: none;
        background: transparent;
        min-width: 100%;
        padding: 0;
        margin-top: 0;
    }

    .dropdown-content > a:not(.nav-dropdown-row-link) {
        padding: 0.75rem 1.25rem 0.75rem 2rem;
        min-height: 44px;
        font-size: 0.92rem;
    }

    .dropdown-content > .nav-dropdown-row,
    .nav-submenu-head {
        padding: 0.75rem 1.25rem 0.75rem 2rem;
        min-height: 44px;
        font-size: 0.92rem;
    }

    .nav-dropdown-row-link {
        padding: 0 !important;
        font-size: inherit;
    }

    .nav-submenu-title,
    button.nav-submenu-title {
        padding: 0 !important;
        min-height: 0;
        font-size: inherit;
        background: transparent;
    }

    .nav-submenu-toggle,
    .nav-dropdown-row-spacer {
        width: 1.25rem;
        height: 1.25rem;
        min-height: 0;
        background: transparent;
        border-left: none;
    }

    .nav-submenu-items a {
        padding: 0.65rem 1.25rem 0.65rem 2.75rem !important;
        min-height: 40px;
        font-size: 0.88rem !important;
    }
}

@media (max-width: 480px) {
    .header {
        --mobile-header-total: 6.35rem;
        padding: 0.45rem 0.6rem 0.5rem;
    }

    .header .logo img {
        height: 36px;
        max-width: min(130px, 38vw);
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .quick-stats-banner {
        padding: 1.25rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Sıcak su kazanı — kullanıcı metni (boşsa panel gizlenir) */
.product-detail-body__content:empty {
    display: none;
}

.product-detail-body:has(.product-detail-body__content:empty) {
    display: none;
}

.product-detail-body__content h3 {
    color: var(--primary-green);
    margin: 1.75rem 0 1rem;
    font-size: 1.35rem;
}

.product-detail-body__content p {
    margin-bottom: 1.15rem;
}

.product-detail-body__content ul {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.35rem;
}

.product-detail-body__content li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

.spare-parts-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.spare-parts-spec-table td,
.spare-parts-spec-table th {
    border: 1px solid rgba(6, 64, 34, 0.12);
    padding: 0.55rem 0.75rem;
    vertical-align: top;
}

.spare-parts-spec-table tr:nth-child(even) {
    background: rgba(6, 64, 34, 0.03);
}

.spare-parts-pdf-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.spare-parts-pdf-link:hover {
    text-decoration: underline;
}

.spare-parts-body .spare-parts-note {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.burner-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.75rem 0;
}

.burner-detail-content a {
    color: var(--primary-green);
}

.product-detail-body__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.product-detail-body__content th,
.product-detail-body__content td {
    border: 1px solid rgba(6, 64, 34, 0.2);
    padding: 0.65rem 0.85rem;
    text-align: left;
}

.product-detail-body__content th {
    background: var(--light-green);
    color: var(--primary-green);
}

/* Elektrikli / kalorifer kazanı detay — iletişim bloğu (yalnızca #electric-boilers) */
.product-detail-contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2rem;
}

.product-detail-contact__item strong {
    color: var(--primary-green);
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.product-detail-contact__item p {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
    font-size: 1rem;
}

.product-detail-contact__item a {
    color: var(--primary-green);
    text-decoration: none;
}

.product-detail-contact__item a:hover {
    text-decoration: underline;
}

.product-detail-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.automation-detail-content .product-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.automation-detail-content .product-spec-table th,
.automation-detail-content .product-spec-table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.65rem 1rem;
    text-align: left;
    vertical-align: top;
}

.automation-detail-content .product-spec-table th {
    color: var(--primary-green);
    width: 38%;
    font-weight: 600;
}