@import url('https://fonts.cdnfonts.com/css/gotham');

/* ================================================================
   TDCV - Türk Dünyası Çocuk Vakfı
   Custom CSS
================================================================ */

:root {
    --primary: #D82028;
    --primary-dark: #b81820;
    --primary-light: #f0474e;
    --secondary: #1a1a2e;
    --secondary-light: #16213e;
    --accent: #e8b84b;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

/* Sticky Navbar */
header#header {
    position: sticky;
    top: -50px; /* Offset the top black bar on desktop */
    z-index: 9999;
}
.header-nav {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
@media (max-width: 767px) {
    header#header { top: 0; }
}

body, h1, h2, h3, h4, h5, h6, p, a, input, button, textarea, select, .menuzord-menu > li > a, .btn {
    font-family: 'Gotham', sans-serif !important;
}

body {
    color: var(--text-dark);
    line-height: 1.7;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }

/* ================================================================
   LANGUAGE SWITCHER
================================================================ */
.btn-lang {
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    transition: var(--transition);
}
.btn-lang:hover, .btn-lang.active-lang {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}

/* ================================================================
   HERO SLIDER
================================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.owl-carousel.hero-carousel .owl-item {
    position: relative;
}

.slide-item {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slide-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(216,32,40,0.5) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.slide-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin-bottom: 35px;
    line-height: 1.8;
}

.slide-btns a {
    margin-right: 12px;
    margin-bottom: 10px;
}

.owl-controls {
    margin-top: 0 !important;
}

.hero-carousel .owl-nav .owl-prev,
.hero-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3) !important;
}

.hero-carousel .owl-nav .owl-prev:hover,
.hero-carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.hero-carousel .owl-nav .owl-prev { left: 20px; }
.hero-carousel .owl-nav .owl-next { right: 20px; }

.hero-carousel .owl-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-carousel .owl-dot span {
    background: rgba(255,255,255,0.4) !important;
    width: 8px !important;
    height: 8px !important;
}

.hero-carousel .owl-dot.active span {
    background: var(--primary) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

@media (max-width: 768px) {
    .slide-item { min-height: 450px; }
    .slide-title { font-size: 32px; }
    .slide-desc { font-size: 14px; }
}

/* ================================================================
   SECTION TITLES
================================================================ */
.section-title-default {
    text-align: center;
    margin-bottom: 50px;
}

.section-tagline {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(216,32,40,0.08);
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 20px;
    border-radius: 3px;
}

/* ================================================================
   STAT COUNTER
================================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(216,32,40,0.08);
    border-radius: 50%;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number span.plus { color: var(--primary); }

.stat-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ================================================================
   PROJECT CARDS
================================================================ */
.project-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-badge.completed { background: #27ae60; }

.project-card-body {
    padding: 25px;
}

.project-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.project-card-title a:hover { color: var(--primary); }

.project-card-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.progress-bar-project {
    background: var(--bg-light);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar-project .progress {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s ease;
}

.project-funding-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 18px;
}

.project-funding-info .raised { color: var(--primary); font-weight: 700; }
.project-funding-info .goal { color: var(--text-muted); }

/* ================================================================
   NEWS CARDS
================================================================ */
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-card-body {
    padding: 22px;
}

.news-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card-title a:hover { color: var(--primary); }

.news-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

/* ================================================================
   ABOUT SECTION
================================================================ */
.about-section {
    padding: 80px 0;
}

.about-feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(216,32,40,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.about-feature-item:hover .about-feature-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(5deg);
}

.about-feature-text h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.about-feature-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ================================================================
   CTA SECTION
================================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #ff6b35 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white-custom {
    background: #fff;
    color: var(--primary);
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-white-custom:hover {
    background: transparent;
    color: #fff;
}

/* ================================================================
   EVENTS
================================================================ */
.event-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.event-date-box {
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    min-width: 70px;
    flex-shrink: 0;
}

.event-date-box .day {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.event-date-box .month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.event-info h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 16px;
}

.event-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.event-meta i { color: var(--primary); margin-right: 5px; }

/* ================================================================
   PAGE TITLE
================================================================ */
.page-title-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(216,32,40,0.05)"/><circle cx="80" cy="80" r="20" fill="rgba(216,32,40,0.05)"/></svg>') center/cover;
}

.page-title-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.page-title-section .breadcrumb-custom {
    position: relative;
}

.breadcrumb-custom a,
.breadcrumb-custom span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-decoration: none;
}

.breadcrumb-custom .sep {
    color: var(--primary);
    margin: 0 8px;
}

.breadcrumb-custom .current { color: var(--primary); }

/* ================================================================
   FORMS
================================================================ */
.form-control-custom {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    width: 100%;
    background: #fff;
    font-family: 'Inter', sans-serif;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216,32,40,0.1);
}

.form-label-custom {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

/* ================================================================
   FOOTER OVERRIDES
================================================================ */
.footer-social-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-right: 8px;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}

.footer-social-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ================================================================
   GALLERY
================================================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(216,32,40,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    font-size: 28px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ================================================================
   CONTACT
================================================================ */
.contact-info-card {
    text-align: center;
    padding: 35px 25px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 65px;
    height: 65px;
    background: rgba(216,32,40,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    margin: 0 auto 18px;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background: var(--primary);
    color: #fff;
}

/* ================================================================
   ADMIN BADGE
================================================================ */
.admin-login-link {
    display: none; /* Hidden by default, accessible via /admin */
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 767px) {
    .section-title { font-size: 26px; }
    .stat-number { font-size: 36px; }
    .cta-title { font-size: 26px; }
    .page-title-section h1 { font-size: 28px; }
    .event-card { flex-direction: column; }
}

/* ================================================================
   HEADER LOGO ALIGNMENT
================================================================ */
/* Tema'nın hardcoded margin-top:18px'ini azaltarak logoyu
   nav linkleriyle (padding:26px) dikeyde ortaya hizala */
.menuzord-brand {
    margin: 6px 30px 6px 0 !important;
}

/* ================================================================
   TURK NATIONS FLAGS — Top Bar
================================================================ */
.turk-nations-flags {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 2px;
}

.flag-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
}

.flag-img {
    height: 22px;
    width: auto;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.flag-item:hover .flag-img {
    transform: scale(1.25);
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.9);
    z-index: 10;
}

.flag-tooltip {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
}


.flag-item:hover .flag-tooltip {
    opacity: 1;
}

/* ================================================================
   SOCIAL ICONS (Top bar & Footer)
================================================================ */
.social-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-icon-circle:hover {
    background: #fff !important;
    color: #D82028 !important;
}


/* ================================================================
   PROJECTS SLIDER BUTTONS
================================================================ */
.projects-side-btn:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
}

/* ================================================================
   MOBILE RESPONSIVENESS OVERRIDES 
================================================================ */
@media (max-width: 767px) {
    /* 1. Top Bar Configuration */
    .turk-nations-flags {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 5px;
    }
    .header-top .widget.no-border ul {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    /* 2. Hide Giant Arrows on Touch Devices */
    .projects-side-btn, .news-side-btn, [id*='-slider-prev'], [id*='-slider-next'] {
        display: none !important;
    }
    
    /* 3. Typography Clamping */
    h1 { font-size: 28px !important; line-height: 1.3 !important; }
    h2 { font-size: 24px !important; line-height: 1.3 !important; }
    h3 { font-size: 20px !important; line-height: 1.4 !important; }
    
    /* 4. Footer Newsletter Stack */
    #footer-newsletter-form > div {
        flex-direction: column !important;
        height: auto !important;
        gap: 10px;
    }
    #footer-newsletter-email {
        border-right: 1px solid rgba(255,255,255,0.2) !important;
        border-radius: 4px !important;
        height: 48px !important;
        width: 100% !important;
    }
    #footer-newsletter-form button {
        border-radius: 4px !important;
        height: 48px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* 5. Contact Map Height */
    iframe, .map-canvas iframe {
        max-height: 250px !important;
    }

    /* 6. Header Menuzord Adjustments */
    .menuzord-brand {
        margin: 6px 0 !important;
        max-width: 70%;
    }
    .menuzord-brand img {
        max-height: 50px !important;
    }
    .menuzord-actions {
        width: 100% !important;
        padding: 10px 15px !important;
    }
    .menuzord-actions .btn {
        width: 100% !important;
    }
}
