/* style.css - Kırıkkale Çölyak Derneği Ana Stil Dosyası */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --secondary: #10b981;
    --accent: #fbbf24;
    --gray-dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Skip link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.sr-only.focus\:not-sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 0.375rem;
    z-index: 1000;
    text-decoration: none;
    clip: auto;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    overflow: hidden;
    
background: transparent;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-dark);
}
.logo-text p {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}
@media (min-width: 768px) {
    .logo-img {
        width: 5rem;
        height: 5rem;
    }
    .logo-text h1 {
        font-size: 1.5rem;
    }
}

/* Desktop nav */
.nav-menu {
    display: none;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dark);
    text-decoration: none;
    transition: all 0.2s;
}
.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}
.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}
@media (min-width: 768px) {
    .nav-menu {
        display: block;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--gray-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
}
.mobile-menu-btn:hover {
    color: var(--primary);
}
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile menu dropdown */
.mobile-menu {
    background: var(--white);
    border-top: 1px solid #e5e7eb;
    position: absolute;
    width: 100%;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}
.mobile-menu ul {
    list-style: none;
    padding: 0.5rem 0;
}
.mobile-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-dark);
    text-decoration: none;
}
.mobile-menu li a:hover,
.mobile-menu li a.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Breadcrumb */
.breadcrumb {
    background: #f3f4f6;
    padding: 0.75rem 0;
}
.breadcrumb ol {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.875rem;
}
.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #9ca3af;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
    color: #6b7280;
    font-weight: 500;
}

/* Main content */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 60vh;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-body {
    padding: 1.5rem;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}
.card-text {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 2rem 0;
    margin-top: 3rem;
}
.footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}
.footer-logo {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    overflow: hidden;
    background: #374151;
}
.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.footer-nav {
    margin-bottom: 1.5rem;
}
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
}
.footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: var(--white);
}
.footer-copyright {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.footer-disclaimer {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Hero sections (ortak) */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 2rem 1rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
}
.hero-text {
    flex: 2;
}
.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}
.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-image-circle {
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.3);
}
.hero-image-circle img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* News Slider */
.news-slider-container {
    position: relative;
    overflow: hidden;
}
.news-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    scrollbar-width: none;
}
.news-scroll::-webkit-scrollbar {
    display: none;
}
.news-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.news-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}
.news-slider-container:hover .slider-arrow {
    opacity: 1;
}
.slider-arrow.left {
    left: 0.5rem;
}
.slider-arrow.right {
    right: 0.5rem;
}
.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Video section */
.video-section {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.video-nav {
    display: flex;
    gap: 0.5rem;
}
.video-nav button {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}
.video-nav button:hover:not(:disabled) {
    background: var(--primary-light);
}
.video-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.video-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .video-wrapper {
        flex-direction: row;
    }
}
.video-description {
    flex: 1;
    font-size: 0.875rem;
    color: #4b5563;
}
.video-container {
    flex: 2;
    position: relative;        /* İçindeki videoyu mutlak konumlamak için */
    width: 100%;
    padding-bottom: 56.25%;    /* 16:9 oranı (9/16 = 0.5625) */
    height: 0;                 /* padding-bottom ile yükseklik kontrol edilir */
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f3f4f6;       /* Video yüklenirken hafif gri fon (siyah yerine) */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;         /* Videoyu kırparak kutuyu tamamen doldurur */
    border-radius: 0.75rem;
    display: block;
}
@media (min-width: 492px) {  /* Masaüstü ekranlar için */
    .video-container {
padding-bottom: 25%; 
        max-width: 400px;    /* İstediğiniz maksimum genişlik (örnek 640px) */
    }
}



/* Info boxes */
.info-box {
    background: #ecfdf5;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}
.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.submit-btn:hover {
    background: var(--primary-dark);
}
.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
#success-message {
    text-align: center;
    padding: 2rem;
}
.checkmark {
    font-size: 3rem;
    color: var(--primary);
}

/* Map */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}
.leaflet-control-layers {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow) !important;
}
.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    padding: 0;
}
.leaflet-popup-content {
    margin: 0;
    padding: 1rem;
    min-width: 200px;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
}
.timeline-item:last-child {
    border-left-color: transparent;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.375rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Responsive helpers */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.grab-cursor {
    cursor: grab;
}
.grab-cursor:active {
    cursor: grabbing;
}

/* ========== MOBİLDE KARTLARI GENİŞLET (EKLENEN KISIM) ========== */
@media (max-width: 640px) {

    /* --- TEŞHİS SÜRECİ KARTLARI (teshis-sureci) --- */
    .teshis-sureci .bg-white {
        padding: 2rem;               /* Kart iç boşluğu */
    }
    .teshis-sureci h4 {
        font-size: 1.4rem;           /* Başlık büyüklüğü */
    }
    .teshis-sureci p,
    .teshis-sureci li {
        font-size: 1rem;             /* Açıklama metinleri */
        line-height: 1.5;
    }
    .teshis-sureci img {
        height: 220px;                /* Görsel yüksekliği */
        object-fit: cover;
        border-radius: 0.75rem;
    }
    /* Adım numarası kutuları (mavi/mor/yeşil) */
    .teshis-sureci [class*="bg-"]:has(i) {
        padding: 1rem;
        font-size: 1.2rem;
    }

    /* --- YOL HARİTASI KARTLARI (yol-haritasi) --- */
    .yol-haritasi .card-body {
        padding: 2rem;                /* İç boşluk */
    }
    .yol-haritasi .card-title {
        font-size: 1.5rem;            /* Başlık */
        margin-bottom: 0.75rem;
    }
    .yol-haritasi .card-text {
        font-size: 1rem;              /* İçerik metni */
    }
    .yol-haritasi .card-img {
        height: 220px;                 /* Görsel yüksekliği */
    }
    /* Kart üzerindeki ikon dairesi */
    .yol-haritasi .w-12.h-12 {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        margin-top: -2rem;             /* İkonu yarıya kadar taşırma */
    }
}






.logo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 50%;
}

/* Logo */
.logo {
  display: block;
  width: 250px; /* isteğe göre değiştir */
  height: auto;
}

/* Parlama efekti */
.logo-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}