:root {
    --background-color: #f6f4f5;
    --background-image: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(204, 204, 204, 0.3) 24px,
            rgba(204, 204, 204, 0.3) 25px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 24px,
            rgba(204, 204, 204, 0.3) 24px,
            rgba(204, 204, 204, 0.3) 25px
        );
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

#loading-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    background-image: var(--background-image);
    background-size: 55px 55px;
    overflow-y: hidden;
}

.main-content {
    margin-left: auto;
    margin-right: 2vw;
    padding: 2.5% 1% 0 8%;
    overflow: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.main-content.hidden-Y {
    opacity: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.main-content.hidden-X {
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.social.hidden-X {
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    margin-top: 0.5%;
}
.logo {
    margin-left: 0.5rem;
}
.logo img {
    width: 10vw;
    height: auto;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2.5vw;
}

.header-right img {
    width: clamp(12rem, 32vw, 42vw);
    object-fit: cover;
}

.motto-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    margin-right: 2vw;
    align-items: flex-start;
}

#motto {
    max-width: 33%;
    height: auto;
    position: relative;
}

.promo-button {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.promo-button img {
    width: clamp(8rem, 8vw, 12rem);
    height: auto;
    display: block;
    object-fit: contain;
}

.promo-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 1), 0 0 0 0 rgba(255, 165, 0, 1),
        0 0 0 0 rgba(10, 193, 10, 1), 0 0 0 0 rgba(158, 6, 223, 1);
    transition: box-shadow 0.4s ease;
}

.promo-button:hover {
    transform: scale(1.05);
}

.promo-button:hover::after {
    box-shadow: 3px 3px 0 rgba(255, 0, 0, 1), 6px 6px 0 rgba(255, 165, 0, 1),
        9px 9px 0 rgba(10, 193, 10, 1), 12px 12px 0 rgba(158, 6, 223, 1);
}

.row {
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
}

.content-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.grade-card {
    background-color: #f0f0f0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.grade-card img {
    width: 13.3vw;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grade-card:hover img {
    transform: scale(1.02);
}
.row-modal-container {
    position: relative;
    overflow: visible;
}

.grade-row-modal {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #fff;
    width: calc(100% - 20vw);
    transform: scale(0);
    transform-origin: top left;
    transition: transform 0.5s ease;
    z-index: 9999;
}

.grade-row-modal.active {
    transform: scale(1);
}

.close-grade-row-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.close-grade-row-modal:hover {
    color: red;
}
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    margin: 5% auto;
    background: none;
    width: 80%;
}
.swiper-container {
    width: 100%;
    max-width: 65%;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slider-button {
    position: absolute;
    bottom: 0;
    right: 0%;
    padding: 0.5vw 1vw;
    background-color: #ff5600;
    color: white;
    border: none;
    border-top-left-radius: 2rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-button img {
    width: 2vw;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.slider-button:hover {
    transform: scale(1.05);
    color: black;
    text-decoration: none;
}

.slider-button:hover img {
    transform: rotate(90deg);
}

.footer-buttons {
    position: fixed;
    bottom: 13%;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    transition: bottom 0.5s ease-in-out;
    z-index: 9;
    right: 5vw;
}

.footer-buttons.collapsed {
    bottom: 90%;
}

.footer-btn {
    position: relative;
    background: none;
    width: 10vw;
    height: 5vh;
    border-top-left-radius: 1.5vw;
    border-top-right-radius: 1.5vw;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    text-align: center;
    padding-top: 0.5rem;
}

.footer-btn img {
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-btn:focus {
    outline: none;
    box-shadow: none;
}

.footer-btn .btn-text {
    text-wrap-mode: nowrap;
    color: white;
    font-size: 1.5vw;
    font-weight: bold;
    font-family: "Comfortaa-VariableFont_wght";
}

.footer-btn.special button,
.footer-btn.special {
    margin-right: 6vw;
    display: flex;
    border-radius: unset;
    align-items: center;
    justify-content: flex-start;
    background: none;
    cursor: pointer;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: unset;
}

.footer-btn.special img {
    width: 2.5vw;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-btn.special span {
    font-size: 1.5vw;
    font-weight: bold;
    color: #000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.footer-btn.special:hover {
    transform: scale(1.05);
}
.footer-buttons .social {
    margin: auto;
    left: 10%;
}
.social {
    position: relative;
    bottom: 10px;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.social-icon {
    width: 4.5vw;
    height: auto;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.support {
    display: none;
}

#external-content-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13%;
    background-color: #7d00fe;
    border: none;
    z-index: 10;
    overflow: hidden;
    transition: bottom 0.5s ease-in-out, height 0.5s ease-in-out,
        width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

#external-content-container.open {
    bottom: 10%;
    height: 80%;
    width: 100%;
}

.external-content-inner {
    padding: 0;
    font-size: 16px;
    color: black;
    overflow: hidden;
    height: 100%;
    position: relative;
}

#external-iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#external-iframe.loaded,
#login-form-container.loaded {
    opacity: 1;
    transform: scale(1);
}

#external-iframe::-webkit-scrollbar {
    display: none;
}

#external-iframe {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.close-btn {
    position: absolute;
    top: 2vw;
    right: 2vw;
    width: 40px;
    height: 40px;
    display: none;
    justify-content: center;
    align-items: flex-start;
    font-size: 24px;
    font-weight: lighter;
    font-family: "system-ui";
    cursor: pointer;
    color: white;
    background-color: black;
    border: none;
    border-radius: 50%;
    z-index: 2100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
    background-color: #555;
}

#external-content-container.open .close-btn {
    display: flex;
}

#external-footer {
    position: fixed;
    bottom: 0;
    right: 5%;
    width: 100%;
    height: 10%;
    background-color: transparent;
    color: black;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.7s ease, opacity 0.7s ease, visibility 0.7s ease;
    z-index: 2000;
    transform: translateY(100%);
}

#external-footer.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#external-footer a {
    border: 1px solid black;
    padding: 5px 10px;
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
}

#external-footer a:hover {
    text-decoration: underline;
}

#external-footer .copyright {
    margin-left: 20px;
    font-size: 14px;
}

.header-container {
    width: 100%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.motto-container-inner {
    width: 100%;
    max-width: 70%;
    margin-left: auto;
    margin-right: unset;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

@media screen and (min-width: 1024px) and (max-width: 1600px) {
    /* Genel Küçültmeler */
    body {
        background-size: 45px 45px; /* Orjinal: 55px 55px */
    }

    /* Header Bölümü */
    .header {
        margin-top: 0.3%; /* Orjinal: 0.5% */
    }
    .header-container {
        max-width: 75%;
    }
    .logo {
        margin-left: 0.4rem; /* Orjinal: 0.5rem */
    }
    .logo img {
        width: 8vw; /* Orjinal: 10vw */
    }

    .header-right {
        gap: 2vw; /* Orjinal: 2.5vw */
    }
    .motto-container-inner {
        margin-right: 9.5vw;
    }
    .promo-button:hover::after {
        box-shadow: 2px 2px 0 rgba(255, 0, 0, 1), 4px 4px 0 rgba(255, 165, 0, 1),
            6px 6px 0 rgba(10, 193, 10, 1), 8px 8px 0 rgba(158, 6, 223, 1);
    }

    /* Grade Kartları */
    .grade-card img {
        width: 10.5vw;
    }
    .close-grade-row-modal {
        top: 0.8rem; /* Orjinal: 1rem */
        right: 0.8rem; /* Orjinal: 1rem */
        font-size: 1.3rem; /* Orjinal: 1.5rem */
    }

    /* Swiper (Slider) */
    .swiper-container {
        max-width: 50%; /* Orjinal: 65% */
    }
    .slider-button {
        padding: 0.4vw 0.8vw; /* Orjinal: 0.5vw 1vw */
        font-size: 1.3rem; /* Orjinal: 1.5rem */
        border-top-left-radius: 1.5rem; /* Orjinal: 2rem */
    }
    .slider-button img {
        width: 1.7vw; /* Orjinal: 2vw */
        margin-left: 8px; /* Orjinal: 10px */
    }

    /* Footer Butonları */
    .footer-buttons {
        bottom: 11%; /* Orjinal: 13% */
        right: 8vw;
    }
    .footer-btn {
        width: 8.5vw; /* Orjinal: 10vw */
        height: 4.5vh; /* Orjinal: 5vh */
        border-top-left-radius: 1.2vw; /* Orjinal: 1.5vw */
        border-top-right-radius: 1.2vw; /* Orjinal: 1.5vw */
        padding-top: 0.4rem; /* Orjinal: 0.5rem */
    }
    .footer-btn .btn-text {
        font-size: 1.3vw; /* Orjinal: 1.5vw */
    }
    .footer-btn.special {
        margin-right: 5vw; /* Orjinal: 6vw */
        gap: 8px; /* Orjinal: 10px */
    }
    .footer-btn.special img {
        width: 2.2vw; /* Orjinal: 2.5vw */
    }
    .footer-btn.special span {
        font-size: 1.3vw; /* Orjinal: 1.5vw */
    }

    /* Sosyal İkonlar */
    .social {
        bottom: 8px; /* Orjinal: 10px */
        gap: 4px; /* Orjinal: 5px */
    }
    .social-icon {
        width: 2.2vw; /* Orjinal: 2.5vw */
    }

    /* Harici İçerik Alanı (iFrame Kapsayıcı) */
    #external-content-container {
        height: 11%; /* Orjinal: 13% (kapalıyken) */
    }

    .close-btn {
        /* iFrame kapatma butonu */
        top: 1.5vw; /* Orjinal: 2vw */
        right: 1.5vw; /* Orjinal: 2vw */
        width: 36px; /* Orjinal: 40px */
        height: 36px; /* Orjinal: 40px */
        font-size: 22px; /* Orjinal: 24px */
    }

    /* Harici Footer */
    #external-footer {
        right: 3.5%; /* Orjinal: 5% */
        height: 8%; /* Orjinal: 10% */
    }
    #external-footer a {
        padding: 4px 8px; /* Orjinal: 5px 10px */
    }
    #external-footer .copyright {
        font-size: 12px; /* Orjinal: 14px */
        margin-left: 15px; /* Orjinal: 20px */
    }
}
@media only screen and (max-width: 915px) {
    .main-content {
        padding: 0;
        padding-top: 2rem;
    }
    .header-container {
        max-width: 100%;
    }
    .row {
        margin-top: 20%;
        flex-direction: column;
        align-items: center;
    }

    .header {
        width: 100%;
        display: flex;
        position: absolute;
        align-items: flex-end;
        justify-content: space-evenly;
        padding: 0;
    }

    .logo {
        order: 2;
    }

    .logo img {
        width: 20vw;
    }

    .promo-button {
        order: 1;
    }

    .promo-button img {
        width: clamp(10rem, 12vw, 16rem);
    }

    .grade-row-modal {
        width: calc(100% - 7rem);
    }
    .content-grid,
    .slider {
        max-width: 60vw;
    }
    .grade-card img {
        width: 16rem;
    }
    .slider-button {
        font-size: 12px;
        padding: 5px 10px;
        border-top-left-radius: 1rem;
    }
    .slider-button img {
        width: 1rem;
    }
    .motto-container {
        justify-content: center;
        margin-right: 0;
    }

    #motto {
        max-width: 100%;
        right: 0;
    }

    .motto-container-inner {
        max-width: 70%;
        margin-right: auto;
        justify-content: center;
    }

    .header-right {
        position: relative;
        gap: 0;
        margin-right: 0;
    }

    .header-right #img {
        display: none;
    }

    .footer-buttons {
        display: flex;
        transform: rotate(270deg);
        position: relative;
        right: 0;
        left: 47%;
        bottom: 55vw;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: nowrap;
        transition: left 0.5s ease-in-out;
    }

    .footer-btn {
        border-top-left-radius: 0.9rem;
        border-top-right-radius: 0.9rem;
        width: auto;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .social {
        margin-right: 0;
        left: 0;
        bottom: 0;
    }

    .footer-btn.special .content-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .support {
        display: block;
        color: black;
        font-size: 18px;
        text-decoration: none;
    }

    .support:visited {
        color: black;
        text-decoration: none;
    }

    .support:focus {
        outline: none;
        text-decoration: none;
        color: black;
    }

    .footer-btn.special {
        border: none;
        flex-direction: row;
        align-items: center;
        margin-right: 0;
        gap: 20px;
    }

    .footer-btn.special button {
        border: none;
        margin-right: -5px;
    }

    .footer-btn img {
        width: 180px;
    }

    .footer-btn .btn-text {
        font-size: 1.5rem;
    }

    .footer-btn.special img {
        width: 35px;
    }

    .footer-btn.special span {
        font-size: 25px;
    }

    .footer-buttons.collapsed-mobile {
        left: -42%;
    }

    #external-content-container {
        position: fixed;
        bottom: unset;
        left: unset;
        top: 0;
        right: 0;
        width: 0;
        height: 100%;
        background: white;
        border: none;
        z-index: 10;
        overflow: hidden;
        transition: height 0.5s ease-in-out, width 0.5s ease-in-out;
    }

    #external-content-container.open {
        width: 90%;
        height: 100%;
    }
}

@media screen and (max-width: 550px) {
    .row {
        margin-top: 25%;
    }
    .header {
        margin-top: 15%;
        align-items: center;
    }
    .promo-button img {
        width: clamp(5rem, 16vw, 9rem);
    }
    .grade-card img {
        width: 35vw;
    }
    .footer-buttons {
        bottom: 75vw;
    }
    .slider button {
        font-size: 8px;
    }
    .social {
        align-items: flex-start;
    }
    .footer-btn img {
        width: 120px;
    }

    .footer-btn .btn-text {
        font-size: 15px;
    }
    .footer-btn.special {
        gap: 5px;
        flex-direction: column;
    }
    .footer-btn.special img {
        width: 25px;
    }

    .footer-btn.special span {
        font-size: 15px;
    }

    .social-icon {
        width: 30px;
    }

    .support {
        color: black;
        font-size: 12px;
        text-decoration: none;
    }
}
@media screen and (min-height: 710px) and (max-height: 730px) {
    .header {
        margin-top: 0.5%;
    }
    .footer-btn.special {
        flex-direction: row;
    }
    .row {
        margin-top: 17%;
    }
}
@media screen and (max-width: 440px) {
    .main-content {
        padding: 0;
    }
    .row {
        margin-top: 40%;
    }

    .promo-button img {
        width: clamp(7rem, 20vw, 10rem);
    }
    .logo img {
        width: 7rem;
    }
    .content-grid,
    .slider {
        max-width: 70vw;
    }
}
@media screen and (max-height: 345px) {
    .header {
        margin-top: 5px;
    }

    .header-right {
        gap: 50%;
        margin-right: 240px;
        max-width: 150px;
    }

    .logo img {
        width: 80px;
    }

    .content-grid {
        max-width: 20%;
    }

    .slider {
        max-width: 42.2%;
    }
}
