/*mobile.css --> (768px - 1023px - Küçük Tablet & Büyük Telefon)*/
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    overflow-x: hidden; /* Yatay kaydırmayı tamamen engeller */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between; /* Sol ikonlar, logo ve menü butonu hizalı */
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Left Icons */
.left-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #379ed8;
}
.left-icons i {
    font-size: 18px; /* İkon boyutunu belirle */
    color: #379ed8; /* İkon rengi mavi */
}
/* Logo */
.logo {
    flex-grow: 1; /* Ortalamayı kolaylaştırmak için */
    display: flex;
    justify-content: center; /* Ortaya hizalar */
    align-items: center;
}

/* Logo */
.logo img {
    height: 35px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    font-size: 28px; /* Daha büyük ikon */
    cursor: pointer;
    display: block;
    position: absolute;
    right: 45px;
    top: 10px;
    background: none;
    border: none;
    font-weight: bold;
    color: #379ed8; /* Mavi renk */
    z-index: 1100;
}

/* Navigation Menu */
/* Menü (Başlangıçta Gizli) */
.nav-menu {
    position: fixed;
    top: 73px;
    right: 15px; /* Sayfanın sağ üstüne hizalama */
    width: 200px;
    background: white;
    padding: 20px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px); /* Açılmadan önce yukarıda kalıyor */
    pointer-events: none; /* Açılmadığında tıklanamaz yap */
}

/* Menü Açıkken */
.nav-menu.open {
    opacity: 1;
    transform: translateY(0); /* Açılınca kayarak aşağı gelir */
    pointer-events: auto;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
}

.nav-menu ul li {
    padding: 10px 0;
    font-size: 18px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: black;
    font-family: 'Julius Sans One', sans-serif;
    font-weight: 400; /* Julius Sans One tek ağırlıkta mevcut */
    letter-spacing: 1px; /* Harfler arasını açatım*/
}

/* Kapatma Butonu (X) */
.close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-menu span {
    position: absolute;
    width: 22px; /* X'in çizgilerinin uzunluğu */
    height: 2px; /* Kalınlığı azalttık */
    background: #379ed8; /* Mavi renk */
    transform: rotate(45deg);
}

.close-menu span:last-child {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100vh;
    width: 100vw;
    background: url('images/cizim-kursu-banner-1.jpg') no-repeat center center;
    background-size: cover;
    background-color: #f0f0f0; /* Arka planda kalan boşlukları doldurmak için */
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero h1 {
    display: flex;
    flex-direction: column; /* Alt alta dizmek için */
    text-align: center;
    line-height: 1.2;
    gap: 5px; /* Satırlar arasındaki mesafeyi ayarlamak için */
    font-family: 'Julius Sans One', sans-serif;
    font-weight: 400; /* Julius Sans One tek ağırlıkta mevcut */
    font-size: 48px;
    position: relative;
    margin-top: -230px; /* Yukarı çek */
}

.hero p {
    font-family: 'Inter', sans-serif; /* Inter fontunu uygula */
    font-weight: 400; /* Inter tek ağırlıkta mevcut */
    font-size: 30px;
    margin-top: 30px;
}

/* Hakkında Section - Mobil Uyumlu */
.hakkinda-section {
    display: flex;
    flex-direction: column; /* Üst üste sıralansın */
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 10px; /* Kenar boşluklarını azalt */
    margin: 0 auto; /* Ortala */
    overflow: hidden; /* Taşmaları önle */
}

.hakkinda-container {
    display: flex;
    flex-direction: column; /* Mobilde üst üste dizilsin */
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Metin Alanı */
.hakkinda-text {
    width: 100%; /* Tam genişlik */
    padding: 15px;
    background-color: #f0f8ff;
    text-align: center;
    margin: 0;
}

.hakkinda-text h2 {
    font-size: 22px; /* Daha küçük başlık */
    max-width: 100%;
    text-align: center;
}

.hakkinda-text p {
    font-size: 14px; /* Yazı boyutu küçültüldü */
    max-width: 90%;
    margin: 0 auto;
}

/* Görsel Alanı */
.hakkinda-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.hakkinda-image img {
    width: 100%; /* Tam genişlik kaplasın */
    height: auto;
    object-fit: cover;
    max-height: 250px; /* Görselin aşırı uzun olmasını engelle */
}
/* Hakkında Section Sonu */

/* Galeri Genel Alanı */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 sütunlu yapı */
    grid-template-rows: auto;
    gap: 15px; /* Boşlukları biraz azalt */
    max-width: 95%;
    margin: 30px auto;
}

/* Sütunları daha düzgün hale getir */
.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Üçüncü sütunu 2 sütuna böl */
.gallery-column:last-child {
    grid-column: span 2; /* İlk iki sütunun genişliği kadar olacak */
    display: flex;
    flex-direction: column; /* Yan yana yerine alt alta */
    gap: 15px;
}

/* Büyük yatay görseller tam genişlik kaplasın */
.gallery-item.wide {
    flex: none;
    width: 100%;
}

/* Küçük görsellerin yüksekliği fazla olmasın */
.gallery-item.tall {
    flex: none;
    width: 100%;
    height: auto;
}

/* Görsellerin içeriğe uygun şekilde görüntülenmesi */
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Görüntü oranlarını koru */
}

/* References Section */
.references {
    padding: 35px 0;
    margin-bottom: 1px;
}

.references h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.references-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 sütunlu grid */
    gap: 15px;
}

.reference-item {
    padding: 15px;
}

.reference-item img {
    max-width: 65px;
    max-height: 65px;
}

/* Copyright Seciton*/
.copyright {
    background-color: #eaf4fc;
    color: #1d3557;
    text-align: center;
    padding: 10px 5px;
    font-size: 12px; /* Daha küçük font */
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Bağlantılar */
.copyright a {
    color: #1d3557;
    text-decoration: underline;
    font-weight: 600;
}

/* Hover efekti */
.copyright a:hover {
    color: #379ed8;
}

/* ================================
   COURSE DETAIL (768px - 1023px)
================================ */

.course-hero,
.course-main{
  color:#0f172a;         /* body beyaz olsa bile course alanı koyu kalsın */
  background:#fff;
}

.course-hero{
  padding: 40px 0 28px;
}

.course-hero-grid{
  grid-template-columns: 1fr; /* tek kolon */
  gap: 18px;
}

.course-preview img{
  height: 400px; /* daha kompakt */
}

.course-main{
  padding: 22px 0 54px;
}

.course-main-grid{
  grid-template-columns: 1fr; /* tek kolon */
  gap: 18px;
}

.buy{
  position: static; /* sticky kapat */
  top: auto;
}

/* ================================
   COURSE DETAIL end (768px - 1023px)
================================ */

/* Mobil/Tablet: Buy box üste gelsin */
.course-main-grid{
  display: grid;
  grid-template-columns: 1fr;
}

.course-main-grid > div{  /* LEFT */
  order: 2;
}

.course-main-grid > aside.buy{ /* RIGHT (buy) */
  order: 1;
  margin-bottom: 14px; /* buy ile içerik arası boşluk */
}

/* ================================
   MOBILE / TABLET – CARD DETAIL BUTTON
================================ */

.course-card{
  position: relative;
}

.card-detail-btn{
  margin: 10px 12px 14px;
  width: calc(100% - 24px);
  height: 42px;
  border-radius: 999px;
  border: 2px solid #2b4df0;
  background: #fff;
  color: #2b4df0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
