/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #0f172a;
    /* Koyu Lacivert */
    --secondary: #3b82f6;
    /* Parlak Mavi */
    --accent: #f59e0b;
    /* Altın/Turuncu */
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light-pattern: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
    --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --header-height: 80px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
}

/* SCROLL PROGRESS BAR */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    width: 0%;
    transition: width 0.1s ease-out;
}


/* GLOBAL RESET & OVERFLOW FIX */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden !important;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    padding: 0 5% !important;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: var(--secondary);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

nav a.active::after {
    width: 100%;
}

.btn-contact {
    background: var(--secondary);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 2px solid transparent;
    flex-shrink: 0;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: none;
    z-index: -1;
}

.btn-contact:hover::before {
    animation: shine 0.8s ease;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

.btn-contact:hover {
    background: var(--primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SLIDER --- */
.slider-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 7s linear;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right bottom, rgba(15, 23, 42, 0.8), rgba(59, 130, 246, 0.3));
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    margin-top: var(--header-height);
}

.slide-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(40px);
    line-height: 1.1;
    font-weight: 800;
}

.slide.active .slide-content h1 {
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.slide.active .slide-content p {
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.slide.active .slide-content .btn-contact {
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.slide-content p {
    color: #f1f5f9;
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 7rem 8%;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
}

.bg-light {
    background: var(--bg-light-pattern);
}

/* --- ABOUT US --- */
.about-container {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img img {
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2), 30px 30px 0 -10px var(--secondary);
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-img:hover img {
    transform: scale(1.03) translateY(-10px);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(241, 245, 249, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.2);
}

.value-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

/* --- TECHNOLOGY SECTION (ZIG-ZAG) --- */
.tech-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.tech-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.tech-row:nth-child(even) {
    flex-direction: row-reverse;
}

.tech-content {
    flex: 1;
    position: relative;
    padding: 2rem;
}

.tech-content::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.tech-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.tech-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.tech-list li i {
    color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.tech-image {
    flex: 1.1;
    position: relative;
}

.tech-image img {
    border-radius: 30px;
    box-shadow: 20px 20px 0 -5px rgba(59, 130, 246, 0.1), 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.tech-row:hover .tech-image img {
    transform: scale(1.02) translateY(-10px);
}

/* --- IMPACT SECTION --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.impact-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.2);
}

.impact-icon {
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.impact-card:hover .impact-icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(10deg) scale(1.1);
}

.impact-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.impact-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* --- SERVICES & GENERAL GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 2rem;
    margin: 0 auto 2rem auto;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* --- POCKET CARD DESIGN --- */
.business-pocket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pocket-card {
    position: relative;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pocket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pocket-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.pocket-card:hover .pocket-img {
    transform: scale(1.15);
}

.pocket-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 10%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.pocket-card:hover .pocket-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.1) 100%);
}

.pocket-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.pocket-card:hover .pocket-content {
    transform: translateY(-5px);
}

.pocket-content i {
    font-size: 1.8rem;
    color: var(--accent);
    /* Default: Turuncu */
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.pocket-content h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pocket-card.blue-theme .pocket-content i {
    color: var(--secondary);
}

/* --- SDG SECTION --- */
/* --- SDG SECTION BACKGROUND FIX --- */

.sdg-section {
    /* Açık Gri/Beyaz geçişi */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary);
    /* Yazıları koyu lacivert yapar */
    position: relative;
    overflow: hidden;
    padding: 6rem 8%;
}

/* Başlık ve metin renklerini koyuya çevirmek için ek kural */
.sdg-section h2,
.sdg-section p {
    color: var(--primary) !important;
    /* Zorla koyu renk yap */
}

/* Açıklama metnini biraz daha gri yapalım */
.sdg-section p {
    color: var(--text-dark) !important;
}

.sdg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zM32 63c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm57-13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.sdg-section h2,
.sdg-section p {
    color: var(--white);
}

.sdg-section .section-header p {
    opacity: 0.8;
    font-size: 1.2rem;
}

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.sdg-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sdg-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.sdg-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent), #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    margin-bottom: 1rem;
    line-height: 1;
}

.sdg-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.sdg-text {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    color: #cbd5e1;
}

/* --- SDG SECTION RE-DESIGN --- */
.sdg-section {
    padding: 8rem 5%;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.sdg-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.sdg-detail-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.sdg-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.sdg-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.sdg-detail-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    padding-right: 3rem;
    /* Space for number */
}

.sdg-detail-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sdg-details-grid {
        grid-template-columns: 1fr;
    }

    .sdg-detail-card {
        padding: 2rem;
    }
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f8fafc;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    opacity: 0.2;
    position: absolute;
    top: 3rem;
    left: 3rem;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 0;
    border: none;
}

.client-avatar {
    margin-right: 1.2rem;
}

.client-avatar img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 5px 15px -5px rgba(59, 130, 246, 0.3);
}

.client-details h5 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.client-details span {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --- CONTACT --- */
.contact-container {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.contact-info {
    flex: 1;
    background: linear-gradient(150deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 5rem 4rem;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border: 30px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-info ul li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.1rem;
}

.contact-info ul li i {
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
}

.contact-info ul li:hover i {
    background: var(--white);
    color: var(--secondary);
    transform: scale(1.1);
}

.contact-form {
    flex: 1.4;
    padding: 5rem 4rem;
    background: var(--white);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
    background: #f8fafc;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 5px 15px -5px rgba(59, 130, 246, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.3);
}

.btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.4);
}

/* --- FOOTER --- */
footer {
    background: #020617;
    color: #94a3b8;
    padding: 6rem 8% 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    margin-top: 8px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col h4::after {
        margin: 8px auto 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
    }
}

/* --- NEWS PAGE STYLES --- */
.subpage-hero {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(to right bottom, rgba(15, 23, 42, 0.9), rgba(59, 130, 246, 0.6)), url('https://images.unsplash.com/photo-1503428593586-e225b39bddfe?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    color: var(--white);
    padding: 0 5%;
}

.subpage-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.subpage-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

.news-section {
    padding: 5rem 5%;
    background: var(--bg-light-pattern);
    min-height: 100vh;
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.news-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
    scroll-margin-top: 100px;
    /* Header offset */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.news-date {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.8rem;
    border-radius: 16px;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

.news-title-area h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0 0 0;
    color: var(--primary);
}

.news-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
}

.news-body p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.news-gallery {
    display: grid;
    gap: 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.news-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.news-gallery img:hover {
    transform: scale(1.03);
}

.news-gallery.gallery-1 {
    grid-template-columns: 1fr;
}

.news-gallery.gallery-1 img {
    max-height: 400px;
}

.news-gallery.gallery-2 {
    grid-template-columns: 1fr 1fr;
    height: 300px;
}

.news-gallery.gallery-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 150px 150px;
    height: 310px;
}

.news-gallery.gallery-3 img:first-child {
    grid-row: 1 / 3;
    height: 100%;
}

.news-gallery.gallery-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
}

/* --- COURSE DETAILS PAGE STYLES --- */
.course-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
    position: relative;
    margin-top: 0;
}

.course-hero-content {
    max-width: 800px;
    z-index: 2;
}

.course-badge {
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.course-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: var(--white) !important;
    /* Başlık rengi zorla beyaz */
}

.course-hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.course-layout-section {
    padding: 5rem 8%;
    background: var(--bg-light-pattern);
}

.course-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.course-main {
    flex: 2;
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.course-sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
}

.course-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tab-btn:hover {
    color: var(--secondary);
}

.tab-btn.active {
    color: var(--secondary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px 3px 0 0;
}

.tab-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.check-list,
.module-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-list li,
.module-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: 0.3s;
}

.check-list li:hover,
.module-list li:hover {
    transform: translateX(5px);
    background: #eff6ff;
}

.check-list li i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.module-list li i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 3px;
}

.logistics-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.logistics-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logistics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.logistics-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logistics-list li i {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.logistics-list li div {
    display: flex;
    flex-direction: column;
}

.logistics-list li strong {
    font-size: 0.9rem;
    color: var(--text-light);
}

.logistics-list li span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: 0.3s;
}

.btn-download:hover {
    background: #e2e8f0;
}

.btn-register-course {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-register-course::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: none;
    z-index: -1;
}

.btn-register-course:hover::before {
    animation: shine 0.8s ease;
}

.btn-register-course:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* --- RESPONSIVE / MOBILE OPTIMIZATIONS --- */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    header {
        padding: 0 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-container.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav a {
        font-size: 1.1rem;
    }

    nav a::after {
        display: none;
    }

    .btn-contact {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    section {
        padding: 5rem 5%;
    }

    .slide-content h1 {
        font-size: 3rem;
    }

    .about-container,
    .contact-container {
        flex-direction: column;
        gap: 4rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 3rem;
    }

    /* Technology Mobile */
    .tech-row,
    .tech-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .tech-content {
        padding: 0;
    }

    .tech-content::before {
        margin: 0 auto 1.5rem auto;
    }

    .tech-list {
        align-items: center;
    }

    .tech-image img {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    /* Course Details Tablet/Mobile */
    .course-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .course-sidebar {
        width: 100%;
        position: static;
    }

    .course-hero-content h1 {
        font-size: 2.5rem;
    }

    .course-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

    /* Genel Mobile Adjustments */
    .slider-section {
        height: 80vh;
        /* Reduced height on mobile */
    }

    .slide-content {
        padding: 0 30px;
    }

    .slide-content h1 {
        font-size: 2.2rem;
        /* Even smaller for mobile */
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .contact-container {
        border-radius: 20px;
    }

    .testimonial-card {
        padding: 2.5rem 2rem;
    }

    .quote-icon {
        top: 2rem;
        left: 2rem;
        font-size: 2rem;
    }

    .pocket-card {
        height: 200px;
    }

    .pocket-content h3 {
        font-size: 1.1rem;
    }

    /* News Mobile */
    .subpage-content h1 {
        font-size: 2.5rem;
    }

    .news-card {
        padding: 1.5rem;
    }

    .news-header {
        flex-direction: column;
        gap: 1rem;
    }

    .news-date {
        display: inline-flex;
        width: auto;
        min-width: auto;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
    }

    .news-date .month {
        margin-top: 0;
    }

    .news-date .year {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
        margin-left: 5px;
        font-size: 0.8rem;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        padding-left: 5px;
    }

    .news-gallery.gallery-3,
    .news-gallery.gallery-4 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .news-gallery.gallery-3 img:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 200px;
    }

    /* Course Details Mobile Specific */
    .course-hero {
        height: 50vh;
    }

    .course-hero-content h1 {
        font-size: 2rem;
    }

    .course-layout-section {
        padding: 3rem 5%;
    }

    .course-main {
        padding: 1.5rem;
    }

    .check-list li,
    .module-list li {
        font-size: 0.95rem;
    }
}


/* --- HOMEPAGE LATEST NEWS SECTION --- */

/* Mevcut .news-grid olmadığı için buraya ekliyoruz */
.latest-news-section .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    /* İçeriği ortalamak için */
    margin: 0 auto;
}

/* Home Page'e Özel Kart Stili (Mevcut news.html stilini ezmek için specificity kullanıyoruz) */
.latest-news-section .news-card.home-card-style {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: row;
    /* Yan yana dizilim */
}

/* Hover Efekti */
.latest-news-section .news-card.home-card-style:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Tarih Kutucuğu - EduXperts Laciverti */
.latest-news-section .news-date {
    background: var(--primary);
    color: var(--white);
    padding: 12px 15px;
    border-radius: 16px;
    text-align: center;
    min-width: 75px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px -5px rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-news-section .news-date .day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.latest-news-section .news-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.9;
}

/* İçerik Kısmı */
.latest-news-section .news-content {
    flex: 1;
}

/* Kategori Başlığı - EduXperts Turuncusu/Sarısı */
.latest-news-section .news-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    /* --accent rengini kullandık */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.latest-news-section .news-content h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.latest-news-section .news-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 3 satırdan sonrasını kesip ... koyar */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Linki */
.latest-news-section .read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    /* --secondary (Mavi) rengini kullandık */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.latest-news-section .read-more:hover {
    color: var(--primary);
    gap: 12px;
    /* Ok işareti sağa kayar */
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .latest-news-section .news-card.home-card-style {
        flex-direction: column;
        /* Mobilde tarih üstte olsun */
    }

    .latest-news-section .news-date {
        flex-direction: row;
        width: auto;
        padding: 8px 16px;
        gap: 8px;
        align-items: center;
        margin-bottom: 10px;
    }

    .latest-news-section .news-date .month {
        margin-top: 0;
        font-size: 1rem;
    }

    .latest-news-section .news-date .day {
        font-size: 1.2rem;
    }
}

/* --- SDG SECTION REVAMP (Official Colors) --- */

/* Kartların temel yapısı */
.sdg-card {
    padding: 2rem;
    border-radius: 12px;
    /* SDG kartları genelde daha küt köşelidir */
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* Kenarlık kaldırıyoruz, renk konuşsun */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hover Efekti */
.sdg-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
    /* Hoverda hafif parlasın */
}

/* Kartın Üst Kısmı (Sayı ve İkon) */
.sdg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.sdg-num {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Oswald', sans-serif;
    /* Eğer varsa, yoksa default font kalır */
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
    background: none;
    -webkit-text-fill-color: initial;
    /* Eski gradienti iptal et */
}

.sdg-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Başlık ve Metin */
.sdg-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.sdg-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

/* --- SDG OFFICIAL LOGOS STYLING (Updated for better contrast) --- */

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 4rem;
}

/* Resim Çerçevesi - Güncellendi */
.sdg-img-wrapper {
    display: block;
    border-radius: 20px;
    /* Biraz daha oval */
    overflow: hidden;
    /* Koyu zemin üzerinde logoları öne çıkaran sihirli dokunuşlar: */
    background: rgba(255, 255, 255, 0.1);
    /* Hafif beyaz şeffaf arka plan */
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* İnce beyaz çerçeve */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    /* Güçlü bir derinlik gölgesi */
    backdrop-filter: blur(5px);
    /* Buzlu cam efekti (destekleyen tarayıcılarda) */
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Resmin Kendisi */
.sdg-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Efekti - Güncellendi */
.sdg-img-wrapper:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.2);
    /* Hover'da arka plan biraz daha parlar */
    border-color: rgba(255, 255, 255, 0.5);
    /* Çerçeve belirginleşir */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    /* Çift gölge ile parlama efekti */
}

/* --- SDG LOGOS ONLY STYLE --- */

.sdg-grid {
    align-items: center;
    /* Dikeyde ortalar */
    justify-content: center;
    /* Yatayda ortalar */
}

.sdg-item {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Resim Çerçevesi (Mevcut efektleri koruyoruz) */
.sdg-img-wrapper {
    display: block;
    width: 100%;
    max-width: 250px;
    /* Logoların aşırı büyümesini engeller */
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sdg-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.sdg-img-wrapper:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* --- SDG SECTION: WHITE THEME --- */

.sdg-section {
    /* Arka planı hafif gri-beyaz geçişli yapıyoruz, gözü yormasın */
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 8%;
}

/* Başlık Rengi: Lacivert (Logodaki renkle uyumlu) */
.sdg-section h2 {
    color: var(--primary);
}

/* Açıklama Yazısı Rengi: Koyu Gri */
.sdg-section p {
    color: var(--text-dark);
}

/* LOGO ÇERÇEVESİ (BEYAZ ZEMİN İÇİN ÖZEL AYAR) */
.sdg-img-wrapper {
    display: block;
    width: 100%;
    max-width: 250px;
    border-radius: 20px;
    overflow: hidden;

    /* Beyaz zemin üzerinde kutunun belli olması için: */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    /* Çok ince gri çerçeve */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Çok hafif gölge */

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sdg-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hover Efekti */
.sdg-img-wrapper:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--secondary);
    /* Üzerine gelince çerçeve mavi olsun */
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    /* Mavi gölge */
}

/* --- NEWS CAROUSEL SECTION --- */
.news-carousel-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.news-slider-wrapper {
    overflow: hidden;
    padding: 1rem 0 2rem 0;
    /* Space for shadow/hover effects */
}

.news-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}

.news-card-home {
    flex: 0 0 calc(33.333% - 1.33rem);
    /* Show 3 items by default */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.news-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFC107;
    /* Yellow badge color */
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    font-weight: 600;
    color: #FFC107;
    /* Yellow/Orange based on image */
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--secondary);
    color: white;
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-card-home {
        flex: 0 0 100%;
        /* 1 item on mobile/small tablets */
        min-height: auto;
    }

    .news-slider {
        gap: 1rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}

@media (max-width: 600px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}