:root {
    /* Font Sizes */
    --fs-base: clamp(1rem, 1.5vw, 1.125rem); /* scales between 16px and 18px */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 2.82rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 2.35rem);
    --fs-h3: clamp(1.5rem, 3vw + 1rem, 1.88rem);
    --fs-h4: clamp(1.25rem, 2.5vw + 1rem, 1.41rem);
    --fs-h5: clamp(1.1rem, 2vw + 1rem, 1.12rem);
    --fs-h6: clamp(1rem, 1.5vw + 1rem, 1rem);

    /* Vertical Margins */
    --mt-h1: 2rem; /* margin-top vor header1 */
    --mb-h1: 2rem;
    --mb-h2: 2rem;
    --mb-h3: 1rem;
    --mb-h4: 1rem;
    --mb-h5: 1rem;
    --mt-h6: 1rem;
    --mb-h6: 1rem;

    /* Line Height */
    --lh-base: 1.5;

    /* Spacing / Padding */
    --padding-h: 1rem;
    --padding-v: 2rem;

    /* Colors */
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --nav-text: #59595e; /* WCAG AA safe */


    /* Breakpoints (reference only) */
    --bp-sm: 600px;
    --bp-md: 1024px;
    --bp-lg: 1440px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--text-color);
    display: block;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 {font-size: var(--fs-h1); margin-top: var(--mt-h1); margin-bottom: var(--mb-h1);}
h2 {font-size: var(--fs-h2); margin-bottom: var(--mb-h2);}
h3 {font-size: var(--fs-h3); margin-bottom: var(--mb-h3);}
h4 {font-size: var(--fs-h4); margin-bottom: var(--mb-h4);}
h5 {font-size: var(--fs-h5); margin-bottom: var(--mb-h5);}
h6 {font-size: var(--fs-h6); margin-top: var(--mt-h6); margin-bottom: var(--mb-h5);}


a {
    text-decoration: none;
    color: #1d1d1f;
}

p {
    margin-top: 1.6rem;
}

p + p {
    margin-top: 0.8rem;
}

ul {
    list-style: none;
}


table {
    min-width:100%;
    border-collapse: collapse;
}

th {
    border-color: #1d1d1f; 
    width: 1%; 
    min-width: 6rem; 
    border-style: solid; 
    font-size: 1rem;
    font-weight: 600; 
    border-width: 0 0 1px 0;
    padding: 0.5rem;
    text-align: left;
    vertical-align: bottom;
}

td {
    border-color: #d2d2d7; 
    width: 1%; 
    min-width: 6rem; 
    border-style: solid; 
    color: #6e6e73;
    font-size: 0.9rem;
    font-weight: 400; 
    border-width: 1px 0 0 0;
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

th p, td p {
    margin:0;
}

.logo {
    font-size: 1.41rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    white-space: nowrap;
}
.main-nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    text-align: center;
}

/* ================================= 
Upper menu - start
==================================== */

.header {
    min-height: 4rem;
    position: fixed;
    left:0;
    right:0;
    z-index: 9997;
    background-color: #ffffff; /* Solid fallback */
    background-color: hsla(0, 0%, 100%, .7); /* Semi-transparent for modern browsers */
    -webkit-backdrop-filter: saturate(180%) blur(20px); /* Safari/Webkit */
    backdrop-filter: saturate(180%) blur(20px); 
}

.header-line {
    border-bottom: 1px solid #1d1d1f33;
    position: fixed;
    top: 4rem;
    left:0;
    right:0;
    z-index: 1;
}

.header-spacer {
    height: 5rem;
}

.header,
.icerik {
    padding-left: var(--padding-h);
    padding-right: var(--padding-h);
}

/* ================================= 
Upper menu - end
============================================================================================================ */


/* ================================= 
Küçük menü - start
==================================== */
.kucuk-menu-sol, .kucuk-menu-sag {
    height: 40px;
    width: 40px;
    cursor: pointer;
    position: relative;
    display:none;
}
.kucuk-menu-sol, .kucuk-menu-sag,
.kucuk-menu-sol *, .kucuk-menu-sag * {
    box-sizing: border-box;
}
.kucuk-menu-sol .cizgi-genel {
    height: 1px;
    width: 32px;
    background: #222;
    border-radius: 4px;
    position: absolute;
    transition: transform 200ms ease-out;
    transform: none;

}
.kucuk-menu-sol .cizgi-1{
    top: 15px;
} 
.kucuk-menu-sol .cizgi-2{
    bottom: 12px;
}
.kucuk-menu-sol.active .cizgi-1{
    top: 15px;
    transform: translateY(5px) rotateZ(45deg);
} 
.kucuk-menu-sol.active .cizgi-2{
    bottom: 12px;
    transform: translateY(-7px) rotateZ(-45deg);
}
.kucuk-menu-sol.active .cizgi-genel {
    transition: transform 200ms ease-in-out;
}

.kucuk-menu-sag .cizgi-genel {
    height: 1px;
    width: 16px;
    background: #222;
    border-radius: 4px;
    position: absolute;
    transition: transform 200ms ease-out;
    transform: none;

}
.kucuk-menu-sag .cizgi-1{
    top: 27px;
    transform: translateY(0px) rotateZ(45deg);
} 
.kucuk-menu-sag .cizgi-2{
    bottom: 0px;
    transform: translateY(-12px) rotateZ(-45deg);
    right:13px; 
}
.kucuk-menu-sag.active .cizgi-1{
    top: 15px;
    transform: translateY(0px) rotateZ(-45deg);
} 
.kucuk-menu-sag.active .cizgi-2{
    bottom: 12px;
    transform: translateY(-12px) rotateZ(45deg);
    right:13px; 
}
.kucuk-menu-sag.active .cizgi-genel {
    transition: transform 200ms ease-in-out;
}

/* ================================= 
Küçük menü - end
============================================================================================================ */


.gorsel-gecis {
    position: relative;
    width: 80%;
    aspect-ratio: 1024/576;
    overflow: hidden;
    margin: auto;
}

.gorsel {
    position: absolute;
    top: 0;
    left: 0;
     width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 2s ease-in-out;
}


.gorsel-sonra {
    opacity: 0;
    animation: gecis 3s forwards ease-in-out;
    animation-delay: 0.5s; /* optional delay */
}

@keyframes gecis {
    to {
        opacity: 1;
    }
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2.5rem;
}

.cekmece-baslik {
    cursor: pointer;
    padding: 17px;
    display: block;
    position: relative;
    margin-bottom: 0;
    transition: all 0.25s ease-out;
    border-style: solid;
    border-color: #696969;
    border-width: 1px 1px 0px 1px;
    border-radius: 1rem 1rem 0px 0px;
    background-color: #f5f5f7;
}

.cekmece-icerik {
    max-height: 0px;
    overflow: hidden;
    transition: 0.5s ease-in-out;
    border-style: solid;
    border-color: #696969;
    border-width: 0px 1px 1px 1px;
    border-radius: 0px 0px 1rem 1rem;
    padding: 0px 1rem 1rem 1rem;
    background-color: #f5f5f7;
    margin-bottom: 1rem;
}

.cekmece-ac:checked + .cekmece-baslik + .cekmece-icerik {
    max-height: 20rem;
    overflow-y: scroll;
}


input[type="checkbox"] {
    display: none;
}

.googleCalendar{
    position: relative;
    height: 0;
    width: 100%;
    padding-bottom: 50%;
}
.googleCalendar iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}             

.gorsel-ve-aciklama {
    display: grid; 
    grid-template-columns: minmax(0, 20rem) 1fr; 
    margin-block-end:2rem;
    gap: 1rem 1rem; 
    align-items: start;
}

.gorsel-ve-aciklama p {
    margin:0;
}

/* ================================= 
In-Page Navigation Panel - start
==================================== */

.nav-panel {
    position: fixed;
    top: 7rem;;
    right: 1rem;
    z-index: 1000;
    font-size: 0.71rem;
    color: #6e6e73;
    font-weight: 400;
    width: 8rem;
}

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

.nav-panel a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 500;
    transition: background 0.3s;
}

.nav-panel a:active {
    color: #1d1d1f;
}

.nav-panel a:hover {
    color: #1d1d1f;
}

.nav-panel a::before {
    position: absolute;
    content: "";
    height: 100%;
    left: 0;
    top: 0;
    width: 1px;
    background: #d2d2d7;
    transition: all .3ms;
}

.nav-panel a:active::before {
    background: #1d1d1f;
}

.nav-panel a.active::before {
    background: #1d1d1f;
}

.nav-panel a:hover::before {
    background: #1d1d1f;
}

section {
    scroll-margin-top: 5rem;
    margin-top: 7rem;
}

/* ================================= 
In-Page Navigation Panel - end
==================================== */




/* ================================= 
Media Queries
==================================== */

@media (min-width: 885px) {
    :root {
        --padding-h: 10rem;
    }    .header,
    .main-nav {
        display: flex;
        align-items: center;
    }
    .header {
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }
}

@media (min-width: 1025px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
    }
} 

@media (max-width: 885px) {
    .gorsel-gecis {
        width: 100%;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.2rem;
    }
    .header {
        display: flex;
        justify-content: space-between;  /* Push first and last to edges */
        align-items: center;             /* Vertically center if needed */
        padding: 10px;
        background-color: #f0f0f0;
        position: fixed;
    }
    .main-nav {
        display: none;
    }
    .main-nav.active {
        position: fixed;
        top: 4rem;
        left: 0;
        width: 11rem;
        background-color: #f8f8f8;
        padding: 1rem 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-panel {
        display: none;
    }
    .nav-panel.active {
        position: fixed;
        top: 4rem;
        right: 0;
        width: 11rem;
        background-color: #f8f8f8;
        padding: 1rem 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .kucuk-menu-sol, .kucuk-menu-sag  {
        display: block;
    }
}