@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

:root {
    --primary-color: #000000;
    --secondary-color: #E30613; /* Precise Corporate Red */
    --text-color: #1a1a1a;
    --text-dark: #333333;
    --light-text: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-cabin: "Cabin", sans-serif;
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overhaul - CABIN (v30-33) */
h1, .hero-content h1 {
    font-family: var(--font-cabin) !important;
    font-size: clamp(2.5rem, 8vw, 80px) !important;
    line-height: clamp(3rem, 9vw, 88px) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

h2, h3, .section-tag {
    color: inherit;
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.hero-content h2, .mega-menu-image-content h2 {
    color: #ffffff !important;
}

.section-title {
    font-family: var(--font-cabin) !important;
    font-size: clamp(1.4rem, 3.5vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.1;
    color: var(--primary-color);
}

body, p, li, .page-content p {
    font-family: var(--font-cabin) !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
    color: #000000;
}

.mega-menu-image-content h2 {
    color: #ffffff !important;
    font-size: 1.6rem !important; /* Smaller */
    line-height: 1.2 !important;
    text-transform: none !important; /* Small non-caps */
}

/* Layout Utilities */
section {
    padding: 50px 8%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-tag {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-cabin) !important;
    font-size: clamp(1.4rem, 3.5vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.1;
    color: var(--primary-color);
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition-slow);
}

.logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition-slow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700; /* Bold (v49) */
    font-size: 0.88rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-transform: uppercase; /* ALL CAPS (v49) */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

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

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Language Button Redesign */
.nav-extra .btn-main {
    padding: 5px 10px !important;
    font-size: 11px !important;
    letter-spacing: 0.5px;
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-extra .btn-main:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Mega Menu Styles (v25) */
.nav-links li {
    position: static; /* Required for full-width mega menu */
}

.mega-menu-container {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mega-menu-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-panel {
    display: none;
    grid-template-columns: 2.2fr 1.8fr;
    max-width: 1250px;
    margin: 0 !important; /* FIXED - Zero margin for left alignment (v52) */
    background: transparent;
    overflow: hidden;
    height: auto;
    min-height: 240px;
    padding: 10px 0;
}

.mega-menu-panel.active {
    display: grid;
}

.mega-menu-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 15px 0;
    border-radius: 0 !important; /* FIXED - Square corners as requested (v52) */
}

.mega-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mega-menu-panel.active .mega-menu-image img {
    transform: scale(1.05);
}

.mega-menu-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}

.mega-menu-image-content {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: #fff;
}

.mega-menu-image-content h2 {
    color: #ffffff !important;
    font-size: 1.6rem !important; /* Smaller */
    line-height: 1.2 !important;
    text-transform: none !important; /* Small non-caps */
}

.mega-menu-links {
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    position: relative;
}

.mega-menu-links::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 60px;
    bottom: 60px;
    width: 1px;
    background: #eee;
}

.mega-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 !important;
    text-decoration: none;
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    font-family: -apple-system, 'SF Pro Text', 'SF Pro Display', system-ui, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: 0.02em !important;
    border-bottom: 2px solid #ddd !important; /* Constant 2px grey line by default (v50) */
    transition: all 0.3s ease;
}

.mega-link-item:hover {
    color: #000000 !important; /* FIXED - Black hover color as requested (v53) */
    border-bottom: 2px solid var(--secondary-color) !important;
    font-weight: 700 !important; /* FIXED - Bold on hover as requested (v52) */
    /* Removed padding-left to ensure absolute stability (v51) */
}

/* Dim others on hover effect (v51) */
.mega-menu-links:hover .mega-link-item {
    opacity: 0.4;
}

.mega-menu-links .mega-link-item:hover {
    opacity: 1 !important; /* Forces hovered item to stay bright */
}

.mega-link-item i {
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Tüm mega menu panelleri — eşit stil */
.mega-menu-links {
    padding: 20px 60px;
}
.mega-link-item {
    padding: 7px 0 !important;
    font-size: 1.1rem !important;
}

.mega-link-item:hover i {
    opacity: 1;
    transform: translateX(10px);
}

/* Nav Item Arrow */
.nav-links a i {
    margin-left: 5px;
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-links li.active a i {
    transform: rotate(180deg);
}

.nav-links li.active a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.nav-links li.active a::after {
    width: 100%;
}

/* Overlay to close menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end; /* Align slogan towards bottom (v58) */
    justify-content: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    padding-bottom: 60px; /* Cushion for bottom slogan */
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Slogan Overlay (v58) */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.hero-slogan-wrapper {
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 0.5s;
}

.hero-slogan, header.hero .hero-slogan {
    font-family: 'Zapfino', 'Pinyon Script', cursive !important;
    font-size: clamp(1.5rem, 4vw, 3.2rem) !important;
    font-weight: 400 !important;
    color: #000 !important;
    text-shadow: none !important;
    margin: 0;
    line-height: 1.6;
    padding: 0 20px;
    letter-spacing: 1px;
    text-transform: none !important;
    filter: none;
}

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

/* Sector Summary Grid (Homepage) */
.sector-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.sector-summary-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    text-decoration: none;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sector-summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}

.sector-summary-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.sector-summary-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.sector-summary-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

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

@media (max-width: 600px) {
    .sector-summary-grid { grid-template-columns: 1fr; }
}

/* Widget Section Headers */
.widget-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.widget-title {
    font-family: var(--font-cabin);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: none; /* Changed from uppercase to mixed case */
    margin: 0;
}

.widget-centered-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.vertical-red-line {
    width: 2px;
    height: 60px;
    background: var(--secondary-color);
    margin: 50px auto 0;
}

/* Global Footprint Section (V60) */
#global-footprint {
    position: relative;
    padding: 50px 0;
    min-height: 650px;
    background: #000c24;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}

.global-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.global-map-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: scale(1.1);
    filter: brightness(0.8) contrast(1.2);
}

.global-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 12, 36, 0.4) 0%, rgba(0, 12, 36, 0.9) 80%);
    z-index: 2;
}

.global-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.global-title {
    font-family: var(--font-cabin);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
    text-transform: none !important;
}

.global-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 600px;
}

.global-stats {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--secondary-color);
    padding-left: 15px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.stat-sublabel {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    #global-footprint {
        padding: 80px 0;
        text-align: center;
    }
    .global-content {
        margin: 0 auto;
    }
    .global-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .global-stats {
        justify-content: center;
        gap: 40px;
    }
}

.widget-link {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-link:hover {
    text-decoration: underline;
}

/* Dense Widget Logo Grid (v37) */
.widget-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.widget-logo-item {
    background: transparent;
    padding: 10px;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    width: 300px; /* Fixed width for flex items to maintain grid look */
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.widget-logo-item:hover {
    transform: scale(1.08);
    z-index: 2;
}

.widget-logo-item img {
    max-width: 95%;
    max-height: 160px;
    object-fit: contain;
    filter: none; /* Removed grayscale */
    opacity: 1;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
}

.widget-logo-item:hover img {
    opacity: 1;
}

.small-logos .widget-logo-item img {
    max-height: 40px;
}

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


/* Redesigned Power Counters */
.counters {
    background: var(--primary-color);
    padding: 40px 8%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.counters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(227, 6, 19, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.counter-item {
    text-align: center;
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    transition: var(--transition-slow);
}

.counter-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.counter-item h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.counter-item p {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Global Map Section */
.global-section {
    background: var(--bg-light);
    text-align: center;
}

.hub-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 60px;
}

.hub-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hub-item p {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.value-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.value-item h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Buttons */
.btn-main {
    padding: 1.5rem 4rem;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    transition: var(--transition-slow);
    display: inline-block;
}

.btn-main:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Reveal */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Inner Pages (Subpages) - Cinematic Update (v42) */
.page-header {
    background: #1a1a1a; /* Fallback */
    padding: 75px 0; /* Reduced height further (v55, ~50% total reduction) */
    position: relative;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4) !important; /* 40% Black Opacity (v56) */
    z-index: 1; /* Moved forward (v56) */
}

.page-header h1 {
    font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    line-height: 1.2 !important;
    font-weight: 300 !important;
    text-transform: none !important;
    color: #fff !important;
    margin: 0;
    position: relative; /* Required for z-index (v56) */
    z-index: 2; /* Stay above overlay (v56) */
    
    /* Removed Glassmorphism Effect as requested (v54) */
    display: inline-block;
    padding: 10px 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}


.page-content {
    padding: 60px 8% 100px;
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    min-height: 40vh;
    text-align: center; /* Centered main text (v54) */
}

/* Red vertical line at the end of content (v54) */
.page-content::after {
    content: '';
    display: block;
    width: 2px;
    height: 60px;
    background: var(--secondary-color);
    margin: 50px auto 0;
}

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

.brand-intro {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.brand-intro p {
    margin-bottom: 1rem;
}

.brand-intro p:last-child {
    margin-bottom: 0;
}

.page-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style-position: inside;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Board Members — Yönetim Kurulu */
.board-member {
    margin: 0 auto 60px;
    max-width: 780px;
    text-align: center;
}

.board-member:not(:last-child) {
    border-bottom: 1px solid #eee;
    padding-bottom: 60px;
}

.board-member-header {
    text-align: center;
    margin-bottom: 28px;
}

.board-member-name {
    font-family: var(--font-cabin);
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.board-member-title {
    font-family: var(--font-cabin);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.board-member p {
    font-size: 16px !important;
    line-height: 24px !important;
    color: #444;
    margin-bottom: 14px;
}

/* Şirketlerimiz: Publico logosu */
.widget-logo-item:has(img[src="sirket-ylogo-7.png"]) {
    padding: 2px;
}
.widget-logo-item:has(img[src="sirket-ylogo-7.png"]) img {
    max-height: 100%;
    max-width: 100%;
    transform: scale(1.8);
}

/* Widget: M5 logosu container'ı doldurarak büyüt (taşma yok) */
.widget-logo-item:has(img[src="marka-ylogo-1.png"]) {
    padding: 2px;
}
.widget-logo-item:has(img[src="marka-ylogo-1.png"]) img {
    max-height: 100%;
    max-width: 100%;
}

/* Widget: Publico Coffee logosu — şirketlerimiz ile eşit */
.widget-logo-item:has(img[src="marka-ylogo-7.png"]) {
    padding: 2px;
}
.widget-logo-item:has(img[src="marka-ylogo-7.png"]) img {
    max-height: 100%;
    max-width: 100%;
    transform: scale(1.8);
}

/* VEGA logosu diğerlerine göre görsel olarak büyük — boyutu kısıtla */
.widget-logo-item:has(img[src="marka-ylogo-3.png"]) img {
    max-width: 55%;
    max-height: 55%;
}
.brand-card-top:has(img[src="marka-ylogo-3.png"]) img {
    max-width: 55%;
    max-height: 55%;
}

/* Markalarımız sayfası (brand-card): M5 ve Publico padding küçült */
.brand-card-top:has(img[src="marka-ylogo-1.png"]),
.brand-card-top:has(img[src="marka-ylogo-7.png"]) {
    padding: 8px;
}
.brand-card-top:has(img[src="marka-ylogo-1.png"]) img,
.brand-card-top:has(img[src="marka-ylogo-7.png"]) img {
    max-width: 100%;
    max-height: 100%;
}

/* Country Grid — Faaliyet Gösterilen Ülkeler */
.country-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 30px auto;
}

.country-item {
    border: 1px solid #ddd;
    padding: 14px 24px;
    font-family: var(--font-cabin);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, color 0.2s ease;
    cursor: default;
}

.country-item:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Timeline — Tarihçe (tl-* prefix) */
.tl-wrap {
    position: relative;
    max-width: 640px;
    margin: 40px auto 10px;
    text-align: left;
}

.tl-wrap::before {
    content: '';
    position: absolute;
    left: 48px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--secondary-color);
}

.tl-item {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
    position: relative;
}

.tl-year {
    width: 44px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--secondary-color);
    text-align: right;
    padding-right: 8px;
}

.tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    flex-shrink: 0;
    margin: 0 14px;
}

.tl-text {
    font-size: 0.95rem;
    color: #333;
}

.tl-item--last .tl-year { color: #000; font-size: 0.9rem; }
.tl-item--last .tl-dot  { background: #000; width: 10px; height: 10px; margin: 0 13px; }
.tl-item--last .tl-text { font-weight: 700; color: #000; }

@media (max-width: 600px) {
    .tl-wrap { max-width: 100%; }
    .tl-wrap::before { left: 40px; }
    .tl-year { width: 36px; font-size: 0.75rem; }
}

/* Footer Redesign (V63 - Koç Style) */
.site-footer {
    background: #ffffff;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #eee;
}

.footer-bg-symbol {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    background: url('footer-zeminlogo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 0 5% 60px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-cabin);
}

.footer-subtitle {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 380px;
}

.footer-social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social-links a {
    color: #1a1a1a;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-contact-info {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.8;
}

.footer-contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-info i {
    color: var(--secondary-color);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-legal-bar {
    border-top: 1px solid #f2f2f2;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
    position: relative;
    z-index: 1;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--secondary-color);
}

.footer-red-strip {
    height: 6px;
    background: var(--secondary-color);
    width: 100%;
}

/* Şirket alt sayfası logo */
.company-page-logo {
    text-align: center;
    margin-bottom: 24px;
}
.company-page-logo img {
    max-height: 90px;
    max-width: 320px;
    object-fit: contain;
}

/* Footer mobil uyum */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 5% 40px;
    }

    .footer-legal-links {
        display: none;
    }

    .footer-legal-bar {
        justify-content: center;
        padding: 20px 5%;
    }

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

/* Hide mobile-only dropdowns on desktop */
@media (min-width: 1301px) {
    .mobile-dropdown {
        display: none !important;
    }
}

/* @media rules are already present below, might need update if they overlap */

/* Large Laptop & Tablet Optimizations */
@media (max-width: 1440px) {
    nav { padding: 1rem 4%; }
    .nav-links { gap: 0.8rem; }
    .nav-links a { font-size: 0.65rem; letter-spacing: 0.05em; }
    .logo-img { height: 38px; }
}

@media (max-width: 1300px) {
    .nav-extra { display: flex; align-items: center; gap: 15px; }
    .menu-toggle { display: flex; order: 2; }
    .nav-extra .btn-main { order: 1; }
    .nav-extra:has(.menu-toggle.active) .btn-main { display: none; }
    
    .mega-menu-container, #menuOverlay { display: none !important; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px; /* Full width yerine daha kompakt bir yan menü */
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 40px;
        transition: var(--transition-slow);
        display: flex;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links > li {
        width: 100%;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        border: none;
        padding: 0;
        background: #fafafa;
        transition: max-height 0.4s ease;
    }

    .dropdown.active > .dropdown-menu {
        max-height: 2000px;
        padding-bottom: 10px;
    }

    .dropdown-menu a {
        padding: 10px 20px !important;
        font-size: 0.85rem;
        color: #000 !important;
        text-decoration: none !important;
    }

    .dropdown-submenu .dropdown-menu {
        padding-left: 10px;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }
    
    .dropdown-submenu.active > a i {
        transform: rotate(90deg);
    }

    .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .sector-detail-grid, .values-grid { grid-template-columns: 1fr; }
    .hub-grid { flex-direction: column; gap: 40px; }
    .hero-content h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

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

@media (max-width: 768px) {
    .nav-links { width: 100%; } /* Mobilde full width */
    .counters { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr !important; }
    .page-header { padding: 140px 8% 60px; }
}
/* Markalar�m�z Grid (v27) */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row */
    gap: 20px;
    margin-top: 40px;
}

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

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.brand-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1; /* Square */
    overflow: hidden;
    position: relative;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
    z-index: 2;
}

.brand-card-top {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.brand-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-container img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.brand-name {
    display: none !important; /* Removed name next to logo */
}

.brand-divider {
    height: 1px; /* Thinner line */
    background: #f0f0f0;
    width: 80%;
    margin: 0 auto;
    border: none;
}

.brand-card-bottom {
    padding: 12px;
    text-align: center;
    background: #fff;
}

.brand-fullname {
    display: none !important; /* Removed name above URL */
}

.brand-url {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.02em;
}



/* Breadcrumb Bar (v34) */
.breadcrumb-bar {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 10px 8%; /* Aligned with logo */
    font-size: 0.85rem;
    font-family: var(--font-cabin);
    font-weight: 400;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 100px; /* Push below fixed nav */
}

.breadcrumb-bar a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.breadcrumb-bar a:hover {
    opacity: 1;
}

.breadcrumb-separator {
    margin: 0 10px;
    opacity: 0.7;
}

.breadcrumb-current {
    font-weight: 700;
}

/* Companies Grid Revert (v34 Fix) */
.companies-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* Back to 3 columns */
}

.companies-grid .brand-card {
    aspect-ratio: auto !important; /* Not square */
}

.companies-grid .brand-name {
    display: block !important;
    font-size: 0.9rem;
    font-weight: 700;
    color: #004c97; /* Corporate Blue */
    margin-left: 15px;
}

.companies-grid .brand-fullname {
    display: block !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 5px;
}

.companies-grid .brand-divider {
    height: 3px !important; /* Thicker divider for companies */
    background: #000 !important;
    width: 100% !important;
}

.companies-grid .brand-card-top {
    height: 180px !important;
    flex: none !important;
    padding: 20px !important;
}

.companies-grid .brand-logo-container {
    width: 100% !important;
    height: 100% !important;
}

.companies-grid .brand-logo-container img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.companies-grid .brand-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

@media (max-width: 992px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .companies-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Contact Form Styles (v40) */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.third-width { grid-column: span 2; }
.half-width { grid-column: span 3; }
.full-width { grid-column: span 6; }

@media (max-width: 768px) {
    .third-width, .half-width, .full-width { grid-column: span 6; }
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--primary-color);
    background: #fcfcfc;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 10px 20px rgba(181, 28, 28, 0.05);
    outline: none;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-submit {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(181, 28, 28, 0.2);
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(181, 28, 28, 0.3);
    background: #d41f1f;
}

.kvkk-text {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.kvkk-text a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Swiper Slider Overrides (v41) */
.swiper-container {
    width: 100%;
    padding: 20px 60px 60px !important;
    position: relative !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

.faaliyet-swiper .swiper-wrapper {
    align-items: stretch;
}

.faaliyet-swiper .swiper-slide {
    height: auto;
}

.faaliyet-swiper .sector-summary-card {
    height: 100%;
    box-sizing: border-box;
}

#faaliyetler-widget {
    overflow: hidden;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--secondary-color) !important;
    background: #fff;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: 900;
}

/* Global Widget Height Refinement (v40) */
.global-summary-box {
    max-height: 400px;
    overflow: hidden;
}

@media (max-width: 992px) {
    .global-summary-box {
        flex-direction: column;
        max-height: none;
        gap: 30px !important;
    }
}
