:root {
    --fs-0: clamp(14px, 1.2vw, 16px);
    --fs-1: clamp(18px, 1.6vw, 20px);
    --fs-2: clamp(22px, 2.0vw, 28px);
    --fs-3: clamp(28px, 3.2vw, 40px);
    --fs-4: clamp(34px, 4.0vw, 56px);

    --space-1: clamp(8px, 1.2vw, 12px);
    --space-2: clamp(12px, 1.8vw, 18px);
    --space-3: clamp(16px, 2.4vw, 24px);
    --space-4: clamp(24px, 3.2vw, 40px);
    --space-5: clamp(32px, 4.4vw, 64px);

    --radius-2: 12px;
    --radius-3: 16px;
}

html {
    font-size: 100%;
    scroll-padding-top: 80px;
    scroll-behavior: smooth;


}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 300;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1 {
    font-size: var(--fs-4);
    line-height: 1.15;
    margin-bottom: var(--space-2)
}

h2 {
    font-size: var(--fs-3);
    line-height: 1.2;
    margin-bottom: var(--space-2)
}

h3 {
    font-size: var(--fs-2);
    line-height: 1.25;
    margin-bottom: var(--space-1)
}

section {
    padding-block: var(--space-5)
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.container-info {
    max-width: 1140px;
    margin-inline: auto
}

.navbar .container {
    gap: var(--space-2)
}

.navbar img[alt*="Logo"] {
    height: clamp(40px, 6vh, 64px);
    width: auto;
    object-fit: contain;
}

.card {
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid #000;
    border-radius: var(--radius-2)
}


/* ROW ve kolonlar eşit yükseklik */
.row.align-items-stretch > [class*="col-"] {
    display: flex;
    min-width: 0;
}

/* Yazı Kartı */
.about-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
    border-left: 4px solid #212529;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.about-card h4 {
    margin-bottom: 1rem;
}

.about-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto; /* içerik uzun olursa kendi içinde scroll */
    line-height: 1.7;
    color: #444;
}

/* Görseller Sütunu */
.about-media-grid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

/* Her görsel alanı eşit yükseklik paylaşır */
.about-media {
    flex: 1 1 0;
    min-height: 180px; /* garanti görünürlük için */
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    background: #f8f9fa;
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* kırparak doldurur */
    display: block;
}

/* Placeholder */
.about-media--empty {
    flex: 1 1 0;
    min-height: 180px;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Küçük ekranlarda üst üste gelsin */
@media (max-width: 767.98px) {
    .row.align-items-stretch > [class*="col-"] {
        display: block;
    }

    .about-card {
        height: auto;
    }

    .about-content {
        overflow: visible;
    }

    .about-media-grid {
        flex: initial;
    }

    .about-media {
        flex: initial;
        height: auto;
        aspect-ratio: 4 / 3; /* mobilde dengeli görünüm */
    }
}

@media (min-width: 768px ) and (max-width: 991px) {
    .about-media-grid {
        gap: 217px;
    }
}

@media (min-width: 992px ) and (max-width: 1200px) {
    .about-media-grid {
        gap: 101px;
    }
}

@media (min-width: 1201px ) and (max-width: 1400px) {
    .about-media-grid {
        gap: 57px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    #hakkimizda .row:nth-of-type(2) .about-media-grid {
        gap: 195px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    #hakkimizda .row:nth-of-type(2) .about-media-grid {
        gap: 76px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    #hakkimizda .row:nth-of-type(2) .about-media-grid {
        gap: 33px;
    }
}


.benefit-card {
    position: relative;
    border: 0;
    border-radius: 12px;
    overflow: hidden
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent, #212529);
    transition: filter .2s ease, opacity .2s ease;
}

.benefit-card:hover::before {
    filter: brightness(1.2);
    opacity: 1
}

.benefit-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem
}

.icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(59, 130, 246, .15);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(480px, 64vh, 840px);
    background: url('/media/images/anagiris.jpg') center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(60% 60% at 60% 45%, transparent 0 55%, rgba(0, 0, 0, .18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .22), transparent 35%);
}

.hero .pins {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    align-items: start;
}

.pin {
    display: grid;
    gap: var(--space-1);
    align-content: start;
}

.pin--left {
    justify-self: start;
    text-align: left;
    transform: translateX(320px)
}

.pin--right {
    justify-self: end;
    text-align: right;
    transform: translateX(-320px)
}

.pin__dot {
    width: clamp(68px, 12vw, 130px);
    aspect-ratio: 1;
    border: 3px solid rgba(0, 0, 0, .15);
    border-radius: 9999px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
    overflow: hidden;
    background: #fff;
}

.pin__dot img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pin__label {
    background: rgba(255, 255, 255, .92);
    color: #0e1116;
    padding: var(--space-2);
    border-radius: var(--radius-3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    max-width: min(42ch, 38vw);
    font-size: var(--fs-0);
}

.pin__label strong {
    font-size: var(--fs-1)
}

#stats .counter {
    font-size: clamp(32px, 8vw, 56px);
    line-height: 1.1
}

#stats p {
    margin: 0;
    font-size: var(--fs-0);
    opacity: .9
}

input, textarea {
    font-size: var(--fs-0)
}

.btn {
    font-size: var(--fs-0);
    padding: .6rem 1rem;
    border-radius: 999px
}

[data-aos] {
    transition-duration: .4s
}

@media (min-width: 992px) {
    [data-aos] {
        transition-duration: .8s
    }
}

.py-5 {
    padding-block: var(--space-5) !important
}

.mb-4 {
    margin-bottom: var(--space-3) !important
}

.mb-5 {
    margin-bottom: calc(var(--space-5) - var(--space-2)) !important
}

.shadow-lg {
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18) !important
}

footer p {
    font-size: clamp(12px, 1.2vw, 14px);
    margin: 0
}


.accordion-item,
.accordion-button,
.accordion-body {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.accordion-button::after {
    filter: invert(0.5);
}

.comments-section {
    display: flex;
    gap: 20px;
}

.comments-list {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
}

.comments-list .border {
    background: #f9f9f9;
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 150px;
}

@media (max-width: 768px) {
    .comments-section {
        flex-direction: column;
    }

    .comments-list {
        max-height: none;
    }
}

.referans-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    height: 180px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.referans-card img {
    max-height: 80px;
    object-fit: contain;
}

.referans-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


@media (max-width: 991px) and (max-height: 384px) {

    .navbar .collapse {
        max-height: 75vh;
        overflow-y: scroll;
    }

}

@media (min-width: 767px) and (max-width: 991px) {
    .row .col-lg-4:last-child {
        margin-left: auto;
        margin-right: auto;
    }
}


#anasayfa {
    min-height: 100vh;
    background: url('/media/arkaplan_training.png') center/cover no-repeat;
}

@media (max-width: 450px) {
    #anasayfa {
        background-image: url('/media/arkaplan_training_mobile.png');
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #2f2f2f;
    color: #f1f1f1;
    font-size: 20px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);

    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    transition: opacity .3s ease, transform .3s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


@media (max-width: 768px) {
    #scrollTopBtn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

.contact-link {
  color: inherit;
  text-decoration: none;
  font-weight: 300;
}

.contact-link:hover {
  text-decoration: none;
  color: #555;
}
