body {
  margin: 0;
  font-family: system-ui;
  background: #f7f7f7;
  color: #222;
}

.icon-text {
  display: inline-block;
  line-height: 1;
}



.site-header {
  height: 0;
  padding: 0;
  margin: 0;
}

.menu-theme button {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.menu-theme button #themeIcon {
  color: #222;
  transition: color 0.2s ease;
}

.menu-theme button:hover #themeIcon {
  opacity: 0.7;
}

.menu-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s ease;
}

.menu-btn:hover {
  opacity: 0.7;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-close:hover {
  opacity: 0.7;
}

.menu-lang a {
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 0.5rem;
}

.menu-lang a.active {
  color: red !important;
}



/* MENU */
.menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
}

.menu-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-inner {
  text-align: center;
  padding: 60px 0;
}

.menu-links a {
  display: block;
  font-size: 1.4rem;
  margin: 0.5rem 0;
  text-decoration: none;
}

hr.menu-hr {
    width: 40%;
    margin: auto;
    color: #a8a4a4;
}

.a-main {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.a-main:hover {
  color: red;
}

.breadcrumb .active {
  color: gray;
}



/* ORTA ALAN */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 10px;
}

/* ABOUT */
.about {
  text-align: center;
  margin-bottom: 60px;
}

.about img {
  width: 180px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {

    .about img {
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 1rem;
}
}

.about-text {
  padding: 0;
}

.about-more {
  display: inline-block;
  text-decoration: none;
}

.social a, .social span {
  margin: 0 6px;
  font-size: 1rem;
  text-decoration: none;
  color: #555;
}

.social a:hover, .social span:hover {
  color: #000;
}

.category-list input {
  padding: 14px;
  border: 0px !important;
}

/* === Kapak görsel maskesi === */
.category-list .card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* standart oran */
    overflow: hidden;
    border-radius: 0.5rem;
}

.category-list .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* BOZULMA YOK */
    display: block;
}

/* Kart gorsellerinde oran bozulmasini engelle */
.card-img-top {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    display: block;
    object-fit: cover;
}

/* === Gizli kartlar === */
.category-list .card.hidden {
    display: none;
}

.category-list .card-image-wrapper {
    position: relative; /* 🔥 referans burası */
}

.category-list .card-image-wrapper .type {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
}


.horizontal-card .card-link {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

/* FOTOĞRAF */
.card-thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TYPE (küçük ikon) */
.card-thumb .type {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,0.7);
    color: #f2c300;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 50%;
}

/* SAĞ İÇERİK */
.card-content {
    flex: 1;
    min-width: 0;
    padding: 12px 12px 12px 0;
}

.card-content .card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}

.card-content .card-text {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* HOVER */
.horizontal-card:hover .card-title {
    color: #dc3545; /* danger */
}


@media (max-width: 768px) {

    .horizontal-card .card-link {
        gap: 10px;
    }

    .card-thumb img {
        width: 100%;
        height: 100%;
    }

    .card-content .card-title {
        font-size: 15px;
    }
}

@media (max-width: 576px) {

    .horizontal-card .card-link {
        gap: 10px;
    }

    .card-thumb img {
        width: 100%;
        height: 100%;
    }

    .card-content .card-title {
        font-size: 15px;
    }
}


.course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 10px 12px;
    gap: 12px;
}

/* SIRA NUMARASI */
.course-order {
    min-width: 56px;
    height: 56px;
    background: #f2c300;
    color: #000;
    font-weight: 600;
    font-size: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-align: center;
    padding-top: 10px;
}

/* KAPAK */
.course-thumb img {
    width: 120px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

/* METİN */
.course-content {
    flex: 1;
    min-width: 0;
}

.course-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1d;
    text-decoration: none;
    margin-bottom: 4px;
}

.course-title:hover {
    color: #f2c300;
}

.course-summary {
    font-size: 13px;
    color: #353535;
    margin: 0;
    line-height: 1.4;
}

/* BUTON */
.course-action {
    margin-left: 8px;
}


@media (max-width: 768px) {

    .course-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    /* FOTOĞRAF ÜSTTE GENİŞ */
    .course-thumb img {
        width: 100%;
        height: auto;
        max-height: 220px;
        margin-bottom: 10px;
    }

    /* NUMARA + METİN YAN YANA */
    .course-content {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .course-order {
        min-width: 48px;
        height: 48px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .course-text {
        flex: 1;
    }

    /* BUTON ALTA */
    .course-action {
        margin-top: 10px;
        text-align: right;
    }
}

.search-hidden {
    display: none !important;
}

#backToTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 42px;
  height: 42px;
  background: #222;
  color: #fff;
  border-radius: 10%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
  font-size: 20px;
}

#backToTop :hover {
  color: red;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:focus {
  outline: 2px solid rgba(255, 255, 255, 0.2);
}

/* Detay iceriklerinde gorsellerin mobilde ezilmesini engelle */
.card-body img {
  max-width: 100%;
  height: auto !important;
}







body.dark {
  margin: 0;
  font-family: system-ui;
  background: #111;
  color: #eee;
}

body.dark .menu-btn {
  color: white !important;
}

body.dark .menu-close {
  color: white !important;
}

body.dark .menu-theme button #themeIcon {
  color: #eee !important;
}

body.dark .a-main {
  color: #eee !important;
}

body.dark .a-main:hover {
  color: red !important;
}

body.dark .breadcrumb .active {
  color: #969696 !important;
}

body.dark .breadcrumb-item + .breadcrumb-item::before {
  color: #969696 !important;
}

body.dark .menu-lang a.active {
  color: red !important;
}

body.dark .social a, body.dark .social span {
  color: #dcdcdcff !important;
}

body.dark .social a:hover, body.dark .social span:hover {
  color: red !important;
}

body.dark .menu-overlay {
  background: #111 !important;
}

body.dark hr.menu-hr {
    color: #4c4c4cff !important;
}

body.dark #backToTop {
  background: #eee !important;
  color: #111 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

}


body.dark .card {
  background: black !important;
  color: white !important;
}

body.dark .category-list input {
  padding: 14px;
  border: 0px !important;
  background: black !important;
  color: white !important;
}

body.dark .category-list input::placeholder {
    color: #dcdcdc !important;
}

body.dark .course-item {
    background: black;
}

body.dark .course-title {
    color: #f3f3f3;
}

body.dark .course-title:hover {
    color: #f2c300;
}

body.dark .course-summary {
    color: #cacaca;
}
