@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
}


body {
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
}

#hero {
    position: relative;
    z-index: 1;

    /* height: calc(100vh - 40px); */
    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-image: linear-gradient(to bottom, rgba(var(--primaryRGB), 0.6) 75%, rgb(201, 201, 201) 15%), url('../files/Links/student-sharing-her-knowledge-with-her-colleagues.jpg');
        background-size: cover, cover;
        background-position: right, center;
        background-repeat: no-repeat;
        filter: saturate(2) brightness(1.2);
    }
}

#hero-carousel {
    position: relative;
    overflow: hidden;

    .owl-item>div {
        aspect-ratio: 2.699 !important;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        /* height: 100% !important; */
    }

    .carousel-img {
        aspect-ratio: 2.699 !important;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .owl-dots {
        --beforeHeight: 100px;
        --beforeTop: 0px;
        display: none;
        flex-direction: column;
        position: absolute;
        right: 40px;
        top: 50%;
        background-color: #000000ad;
        padding-block: 2rem;
        padding-right: 3rem;
        padding-left: calc(2rem + 40px);
        height: 100%;
        transform: translate(100%, -50%);
        z-index: 1;
        gap: 16px;
        overflow: auto;
        transition: transform 150ms ease-in-out;

        &::before {
            content: url(../static/chevron-left.svg);
            font-size: 20px;
            font-weight: 700;
            position: fixed;
            z-index: 1000;
            display: flex;
            color: white;
            background-color: rgba(0, 0, 0, 0.373);
            align-items: center;
            justify-content: center;
            height: var(--beforeHeight) !important;
            height: 100px;
            left: 0rem;
            width: 40px;
            top: var(--beforeTop);
            /* transform: translateX(-100%); */
        }

        &:hover {
            transform: translate(60px, -50%);
        }
    }

    &:hover .owl-dots {
        display: flex;
    }

    .owl-dot {
        background-color: rgba(0, 0, 0, 0.515);
        opacity: 1;
        position: relative;

        &::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.2);
            top: 0;
            left: 0;
        }

        &:hover {
            opacity: 1;
            z-index: 2;
        }

        &:hover::after {
            background-color: rgba(0, 0, 0, 0);
        }

        div {
            height: 150px;
            aspect-ratio: 16/6;
            background-position: center;
            background-size: cover;
        }
    }
}



#hero-btns-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;

    .btn-card {
        min-width: 100px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        gap: 8px;

        border-radius: 0px;
        color: rgb(var(--primaryRGB));
        padding-inline: .2rem;
        height: 150px;
        background-color: black;
        border: 1px solid rgb(100, 100, 100);
        font-size: 14px;
        font-weight: 600;
        min-width: 115px;
        color: white !important;

        &.btn-card-alt {
            background-color: #4b525a;
        }

        div {
            height: 55%;
        }

        svg {
            fill: white;
            color: white;
            width: 56px;
            height: 56px;
        }
    }
}

@media (min-width: 425px) {
    #hero-btns-group {
        grid-template-columns: repeat(3, 1fr);

    }
}

@media (min-width: 576px) {
    #hero-btns-group {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) {
    #hero-btns-group {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Exchange Programs Popup Styles */
.exchange-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.exchange-popup-content {
    background-color: #fefefe;
    padding: 7px 20px 20px 20px;
    border: 1px solid #888;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.exchange-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    line-height: 1;
    top: 0px;
    right: 5px;
}

.exchange-close:hover,
.exchange-close:focus {
    color: black;
    text-decoration: none;
}

.exchange-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.exchange-btn {
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.orhun-btn {
    background-color: #d35400;
    color: white;
}

.erasmus-btn {
    background-color: #2980b9;
    color: white;
}

.exchange-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

#degisim-programlari-btn {
    position: relative;
}


.btn {
    cursor: pointer;
}

h2.title {
    font-weight: 500;
    margin-bottom: 1rem;
}

.etkinlikler-li:hover {

    h3 {
        text-decoration: underline;
    }
}

/* :last-of-type */
.truncate-etkinlikler-list-text {
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    display: -webkit-box;
    height: 80px;
    font-size: 14px;
}

#duyurular-carousel,
#kurum-disi-duyurular-carousel {
    position: relative;

    color: white !important;

    .duyuru-carousel-el {
        padding: 1rem;
        display: block;
        color: black;
        /* max-width: 300px; */


        background-color: rgb(var(--primaryRGB));
    }

    .duyuru-carousel-el.light {
        background-color: rgba(var(--primaryRGB), 0.7);

    }

    h3.title {
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        height: 18px;
    }



    .text-overflow-clamp {
        width: 100%;
        /* this code clamps based on specified lines */

    }

    /* .content {
        display: flex;
        align-items: center;
        font-size: 14px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        height: 30px;
    } */

    .owl-nav {
        button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 24px;
        }

        .owl-prev {
            left: -14px;
        }

        .owl-next {
            right: -14px;

        }
    }


}

#tanitim-carousel .owl-item {
    width: 100%;
    aspect-ratio: 16/9;
}

#tanitim-carousel .owl-video-wrapper {
    height: 100% !important;
}

#second-hero-carousel {}


.second-hero-item {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;

    background-position: center;
    background-size: cover;
}

.mezun-ogrenci-card {
    .img-display {
        position: relative;
        margin-bottom: 1rem;
    }

    img {
        width: 100%;
        aspect-ratio: 4/5;
    }

    a {
        position: absolute;
        bottom: 0;
        right: 16px;
        transform: translateY(50%);
        background-color: rgb(var(--primaryRGB));
        display: flex;
        align-items: center;
        justify-content: center;
        padding: .5rem;
        width: fit-content;
    }

    .surname,
    .name {
        display: block;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .surname {
        color: rgb(var(--primaryRGB));
    }
}

@media (max-width:580px) {
    .mezun-ogrenci-card {
        width: 50%;
        margin-bottom: 20px;
    }

}

#news-articles-container {
    position: relative;
    z-index: 1;

    background-position: center;
    background-size: cover;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('../files/Links/group-students-posing-with-notepads.jpg') no-repeat center center;
        background-size: cover;
        opacity: 0.2;
        /* Set the opacity level here */
        z-index: -1;
    }

    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: rgba(var(--primaryRGB), 0.3);

        background-position: center;
        background-repeat: no-repeat;
        filter: saturate(.5) brightness(1) blur(100);

    }

}

#haberler-carousel {
    position: relative;

    .owl-nav {
        button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 24px;
        }

        .owl-prev {
            left: -14px;
        }

        .owl-next {
            right: -14px;

        }
    }

}

.article-card {
    overflow: hidden;
    width: 100%;
    /* max-height: 400px; */
    display: flex;
    gap: 14px;
    cursor: pointer;
    color: #000000;

    &.article-card-sm {
        flex-direction: column;
    }

    &:hover .image-container {
        filter: sepia(0);
    }

    .image-container {
        position: relative;
        /* height: 200px; */
        aspect-ratio: 1;
        background-position: center;
        background-size: cover;
    }

    .title {
        width: 100%;
        /* this code clamps based on specified lines */
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        max-height: 3rem;
        margin-bottom: .5rem;
    }

    .second-title {
        width: 100%;

        /* this code clamps based on specified lines */
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        max-height: 60px;
        margin-bottom: .5rem;

        b {
            font-weight: 600 !important;
        }
    }

}

.text-clamp {
    width: 100%;
    /* this code clamps based on specified lines */
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    display: -webkit-box;
    max-height: 9rem;

}

.article-card.article-card-sm a {
    font-weight: 500;
    color: black;

}

.article-card.article-card-sm a:hover {
    text-decoration: underline;
}


.image-container .details {
    font-weight: 600;
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    text-align: center;
}

.image-container .details .fill {
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(var(--primaryRGB));
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.image-container .details .fixed-sm {
    background-color: rgb(var(--primaryRGB));
    color: black;
    width: min-content;
    padding: .5rem;
    text-transform: uppercase;
}

.article {
    flex: 1;
}

.article p {
    margin: 0;
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 140%;
}

.article p:last-of-type {
    margin-bottom: 0;
}

.article-card.article-card-sm .article {
    flex: 1;
    overflow: hidden;
}

.block-carousel-item {
    display: block;
    height: 150px;
    aspect-ratio: 1;

    background-position: center;
    background-size: cover;
}


.owl-video-wrapper {
    height: 150px !important;
}

.owl-carousel {
    position: relative;
}

.owl-next {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px !important;
}

.owl-prev {
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px !important;
}

.counter-display-card {
    display: flex;
    background-color: rgb(var(--primaryRGB));
    align-items: stretch;
    gap: 8px;
    color: white !important;

    padding: 2rem;

    &.dark {
        /* background-color: black; */
        /* color: rgb(var(--primaryRGB)); */
        filter: contrast(1) saturate(12);
    }

    .counter-icon {
        min-width: 80px;
        min-height: 80px;
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .counter {
        font-size: 36px;
    }

    .counter-title {
        font-size: 16px;
        font-weight: 600;
    }
}

video {
    width: 100%;
    /* aspect-ratio: 5/4; */
    background-color: #000000;
}

.surekli-egitim-carousel-item {
    display: block;
    aspect-ratio: 1/1;
    background-position: center;
    background-size: cover;

}

#class-img {
    position: absolute;
    bottom: 0;
    transform: translateY(50%);
    width: 90%;
}

#surekli-egitim-duyurular {
    font-size: 16px;

    li {
        margin-bottom: 1rem;
    }
}

footer {
    background-color: #101920;
}

.footer-title {
    font-size: 18px;
    color: rgb(var(--primaryRGB));
    border-bottom: 1px solid white;
    padding-bottom: 4px;
    margin-bottom: 1rem;
}

#footer-adres {
    list-style: none;
    /* font-size: 16px; */
    line-height: 130%;

    li {
        position: relative;
        padding-inline-start: 2rem;
        margin-bottom: 2rem;

        svg {
            position: absolute;
            left: 0;
            top: 0%;
            background-color: rgb(var(--primaryRGB));
            border-radius: 50%;
            padding: .3rem;
        }
    }
}

.footer-li {
    /* font-size: 16px; */
    list-style: none;

    li {
        margin-bottom: .4rem;
    }

    a {
        color: white;
    }
}

.socials {
    display: flex;
    align-items: center;
    padding-inline-start: 2rem;
    gap: 8px;

    a.btn {
        display: flex;
        width: 2rem;
        height: 2rem;
        color: rgb(var(--primaryRGB));
        border: 1px solid white;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }


}

.icon-input {
    display: flex;
    align-items: center;

    input {
        border: none;
        background: transparent;
        font-size: 16px;
        margin-inline-start: .5rem;
    }

}

.copyright {
    text-align: center;
    font-size: 16px;
    color: rgba(var(--primaryRGB), .4);

}

.sinif-icon {
    z-index: 10000;
    position: absolute;
    top: -84px;
    right: 50%;
    transform: translateX(50%);
    margin-top: -30px;
}

@media (min-width:991px) {
    #hero-btns-group {
        flex-wrap: wrap;

        justify-content: stretch;

    }

    .btn {
        cursor: pointer;
    }

    .sinif-icon {
        right: 24px;
        transform: translateX(0%);


    }

}

.btn.btn-link {
    text-decoration: none;
    color: black;
}

.btn.btn-link:hover {
    text-decoration: underline;
}

.dropdown {
    position: relative;
}

.dropdown::after {
    content: url('../static/chevron.svg');
    position: absolute;
    top: 80%;
    font-weight: 400;
    left: 50%;
    transform: translateX(-50%) scale(.8);
}

.dropdown-btn {
    border: transparent;
    background: transparent;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

.dropdown>.dropdown-content {
    display: none;
    position: absolute;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    bottom: -12px;
    transform: translateY(calc(100% + 8px));
    background-color: rgba(255, 255, 255, 0.95);
    list-style: none;
    z-index: 99;
    border-radius: 4px;
    text-transform: capitalize;
    font-weight: 400;
    /* overflow: hidden; */
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.314);
    --rightValue: 0%;
    --translateValue: translateX(100%);
}


.dropdown-item:last-of-type {
    border-bottom: none;
}

.dropdown-item .btn.btn-link {
    display: flex;
    min-width: max-content;
    padding-inline: 1rem;
    text-align: start;
    padding-block: .55rem;
}

.dropdown-item .btn.btn-link:hover {
    text-decoration: none;
    background-color: #e0e0e0;
}

.dropdown.active .dropdown-btn {
    color: #ffc403;
}

.dropdown-content .dropdown-btn {
    color: #000000 !important;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 14px;
}

.dropdown.active>.dropdown-content {
    display: flex;
}

.hover-dropdown {
    position: relative;
    min-width: max-content;
    padding: .5rem 1rem;
    padding-inline-end: 2rem !important;
}

.hover-dropdown::after {
    content: url(../static/chevron-down.svg);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(270deg);
    color: #747474;

}


.hover-dropdown:hover .hover-dropdown-content {
    visibility: visible;
}

.hover-dropdown-content {
    position: absolute;
    right: var(--rightValue);
    display: flex;
    visibility: hidden;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
    transform: var(--translateValue);
    top: 0;
    border-radius: 4px;

    .btn.btn-link {
        padding: .5rem 1rem;
        /* border-bottom: 1px solid grey; */
    }
}

.hover-dropdown-content .btn.btn-link {
    min-width: initial;
    width: 300px;
    max-width: 300px !important;
    overflow: hidden;
    border-bottom: .5px solid rgb(206, 206, 206);
}

#main-mobile-nav {
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    background-color: white;
    z-index: 99;
    display: none;
}

#main-mobile-nav.active {
    display: initial;
}

#main-mobile-nav .nav-item {
    padding: 1rem 2rem;
    border: none;
    border-bottom: 1px solid rgb(194, 194, 194);
    width: 100%;
    text-align: start;
    background: transparent;
}

#main-mobile-nav .nav-item:hover {
    background-color: #ffc403;
    cursor: pointer;
}

.accordion.active>.nav-item {
    background-color: #ffc403 !important
}


.accordion {
    width: 100%;
}

.accordion>.accordion-btn::after {
    content: url(../static/chevron-down.svg);
    position: absolute;
    right: 12px;
}

.accordion-content {
    width: 100%;
    height: 0;
    overflow: hidden;
}

.accordion.active>.accordion-content {
    height: auto;
    overflow: hidden;
}

.accordion-link {
    text-align: start;
    background-color: #f3f3f3;
    display: block;
    width: 100%;
    padding: .5rem 3rem;
    border-bottom: 1px solid rgb(194, 194, 194);
    text-decoration: none;
    border-top: none;
    border-left: none;
    border-right: none;
    color: rgb(30, 30, 30);
}

.accordion .accordion-link {
    display: none;
}

.accordion.active .accordion-link {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.accordion-link:hover {
    background-color: #adadad;
}

.accordion .accordion .accordion-link:not(.accordion-btn) {
    padding-inline-start: 5rem;
}

.ticaret-medya-carousel-item {
    background-color: white;
    display: flex;
    align-items: stretch;
    gap: 4px;
    color: black;

    .ticaret-medya-icon {
        min-width: 120px;
        min-height: 120px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .ticaret-medya-content {
        background-color: #dbdbdb;
        width: 100% !important;
        flex: 1;
    }

    &:hover {
        background-color: rgb(var(--primaryRGB));

        .ticaret-medya-content {
            background-color: rgb(var(--primaryRGB));

        }
    }
}

#duyurular-carousel,
#kurum-disi-duyurular-carousel {
    .content {
        display: flex;
        align-items: center;
        overflow: hidden;
        -webkit-box-orient: vertical;
        display: -webkit-box;

        -webkit-line-clamp: 2;
        font-size: 14px;
        height: 37px;
    }
}

.bs-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.bs-btn.btn-primary {
    background-color: rgb(0, 94, 255);
    color: white;
}

.bs-btn.btn-danger {
    background-color: rgb(255, 0, 0);
    color: white;
}

.bs-btn.btn-warning {
    background-color: rgb(255, 191, 0);
    color: white;
}

.bs-btn.btn-success {
    background-color: rgb(0, 255, 26);
    color: white;
}

.modal {
    display: none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000000;
    background-color: #211f2054;

    .container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card {
        background-color: white;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.528);
        border-radius: 8px;
        width: 100%;
    }

    .card-header {
        padding: 16px 32px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid rgb(231, 231, 231);
    }

    .card-body {
        padding: 12px 32px;
    }

    .card-footer {
        border-top: 1px solid rgb(231, 231, 231);
        padding: 16px 32px;
    }

    .close-btn {
        color: #828282;
        border: none;
        background: transparent;
        cursor: pointer;
    }
}

.popup-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 12px;
    z-index: 100000000;
    width: 300px;
    height: 100vh;
    padding: 1rem 0rem;
    gap: 12px;
    pointer-events: none;
}

.popup {

    width: 300px;
    padding: 1rem;
    transition: opacity ease-in-out 300ms;
    border: 1px solid rgb(194, 194, 194);
    background-color: white;
    box-shadow: 0 0 4px rgb(158, 158, 158);

    &.hidden {
        opacity: 0;
    }

    .popup-title {
        font-weight: 600;
        margin-bottom: 8px;
    }
}

a:has(img) {
    display: block;
}

@media (max-width:580px) {
    .sinif-icon {
        width: inherit;
        height: auto;
        margin-top: 0px;
    }

}

@media screen and (max-width: 999px) {
  .tek-arsiv {
    width: 50% !important;
  }
}


@media screen and (min-width: 1000px) and (max-width: 1200px) {
  .tek-arsiv {
    width: 33% !important;
  }
}

@media screen and (max-width: 580px) {
  .tek-arsiv a img {
    margin-left: 0px !important;
  }
}

.whatsapp-button {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  background-color: #25d366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.whatsapp-button:hover {
  transform: scale(1.1);
}
.whatsapp-button img {
  display: block;
}