
/* Global Styles */
:root {
    --abu-navy-blue-color: #172751;
    --abu-dark-navy-blue-color: #2F3D63;
    --abu-orange-color: #ffa500;
    --abu-dark-orange-color: #FF6200FF;
    --abu-white: #fff;
    --abu-black: #333;
}

.menu-button {
    width: 50px;
    font-size: 24px;
    cursor: pointer;
    border: 0;
    background: none;
    padding: 10px;
    transition: all 0.3s;
}
.lang {
    width: 50px;
    font-size: 24px;

}

.mobile-menu {
    position: fixed;
    top: var(--abu-mob-content-top, 88px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--abu-mob-content-top, 88px));
    height: calc(100dvh - var(--abu-mob-content-top, 88px));
    background-color: var(--abu-navy-blue-color);
    /* Kapalıyken tamamen viewport üstüne */
    transform: translateY(calc(-100% - var(--abu-mob-content-top, 88px)));
    display: flex;
    flex-direction: row;
    pointer-events: none;
    overflow: hidden;
    z-index: 1050;
    border-top: 1px solid rgba(255,255,255,.12);
    transition: transform 0.5s ease;
}
.mobile-menu.open {
    transform: translateY(0);
    pointer-events: auto;
}

.menu-left {
    flex: 3;
    min-width: 0;
    min-height: 0;
    background-color: #0e1d44;
    padding-top: 20px;
    padding-left: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.menu-left-fa {
    flex: 3;
    background-color: var(--abu-navy-blue-color);
    padding-top: 20px;
    padding-left: 10px;
}

.menu-left ul {
    list-style-type: none;
    padding: 0;
}

.menu-left ul li {
    margin: 2px 0;
}
.menu-left ul li a {
    padding: 10px;
    display: block;
    font-size: 16px;
}
.menu-left ul li a:hover {
    background-color: #59698f;
}
.menu-left ul li a.is-active,
.menu-left ul li a.is-active:hover {
    background-color: #59698f;
}

.menu-right {
    flex: 4;
    min-width: 0;
    min-height: 0;
    margin-top: 10px;
    background-color: #091433;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.menu-right ul {
    list-style-type: none;
    padding: 0;
}

.menu-right ul.submenu > li {
    margin: 6px 0;
    padding: 2px 0;
}
.menu-right ul li a{
    font-size: 14px;
}
.menu-right-line {
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.menu-right .nested-submenu{
    list-style:none;
    padding:2px 0 6px 10px;
    margin:0;
}
.menu-right .nested-submenu li{
    margin:0!important;
    padding:0!important;
    border-bottom:none;
}
.menu-right .nested-submenu li a{
    display:block;
    padding:5px 0;
    font-size:13px;
    line-height:1.35;
    border-bottom:1px solid rgba(255,255,255,.1);
}
.menu-right .nested-submenu li:last-child a{
    border-bottom:none;
    padding-bottom:0;
}
.menu-right .menu-right-line > a[data-bs-toggle="collapse"]{
    display:block;
    padding:6px 0;
}
.menu-right a[data-bs-toggle="collapse"] .collapse-arrow{
    display:inline-block;
    margin-left:6px;
    font-size:11px;
    line-height:1;
    transition:transform .28s ease;
    transform-origin:center center;
    will-change:transform;
}
.menu-right a[data-bs-toggle="collapse"][aria-expanded="true"] .collapse-arrow{
    transform:rotate(90deg);
}





.fa-mobile-menu {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: var(--abu-dark-orange-color);
    transform: translateY(-120%);
    display: flex;
    flex-direction: row;

    z-index: 1045;
    border-top: 1px solid white;
    transition: transform 0.5s ease;
}
.fa-mobile-menu.open {
    transform: translateY(0);
}

.fa-menu-left {
    flex: 3;
    background-color: #0dcaf0;
    padding-top: 20px;
    padding-left: 10px;
}

.fa-menu-left ul {
    list-style-type: none;
    padding: 0;
}

.fa-menu-left ul li {
    margin: 2px 0;
}
.fa-menu-left ul li a {
    padding: 10px;
    display: block;
    font-size: 16px;
}
.fa-menu-left ul li a:hover {
    background-color: #18398c;
}

.fa-menu-right {
    flex: 4;
    background-color: #18398c;
    padding: 20px;
}
.fa-menu-right ul {
    list-style-type: none;
    padding: 0;
}

.fa-menu-right ul li {
    margin: 10px 0;
    padding: 5px;
}
.fa-menu-right ul li a{
    font-size: 14px;
}
.fa-menu-right-line {
    border-bottom: 1px solid #445070;
}


.fixed-header {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1060;
}

.menu-button.open {
    transform: rotate(90deg);
}

.content {
    padding-top: 0;
    height: 0;
    overflow: visible;
}
body {
    font-family: 'Poppins', sans-serif;
    color: var(--abu-black);

}

a {
    text-decoration: none;
}

/* Top Header */
.top-header {
    background-color: #ffffff;
    color: var(--abu-navy-blue-color);
    height: 40px;
    min-height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.top-header__in{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    height:100%;
}
.top-header a {
    color: var(--abu-navy-blue-color);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
}
.top-header .btn-abu-ice {
    background: #00ABC8;
    color: #fff;
    min-width: 100px;
    width: auto;
    height: 28px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
}
.top-header .btn-abu-ice:hover {
    background: #0097b0;
    color: #fff;
}
.top-header .btn-candidate-student {
    background: var(--abu-orange-color);
    color: var(--abu-white);
    min-width: 120px;
    width: auto;
    height: 28px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
}
.top-header .btn-candidate-student:hover {
    background: var(--abu-dark-orange-color);
}

.top-header .btn-login-ubs {
    background: var(--abu-navy-blue-color);
    color: var(--abu-white);
    min-width: 120px;
    width: auto;
    height: 28px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
}
.top-header .btn-login-ubs:hover {
    background: var(--abu-dark-navy-blue-color);
}

.top-header__lang{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin:0;
    padding:0;
    font-size:13px;
    font-weight:300;
    letter-spacing:.02em;
    line-height:1;
    white-space:nowrap;
}
.top-header__lang span{
    opacity:.45;
    user-select:none;
}
.top-header__lang a[aria-current="true"]{
    font-weight:500;
}

/* Navbar */
.navbar-bg{
    background-color: var(--abu-navy-blue-color);
    height: 60px;
}
.navbar-text {
    color: var(--abu-white) !important;
    font-size: 14px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    max-width: 150px;
}
.navbar-text:hover {
    background: #59698f;
    border-radius: 0;
}
.unitbar {
    background-color: #0dcaf0;
    color: #FFFFFF;
    font-size: 25px;
    height: 50px;
}
.unitbar.open {
    position: fixed;
    z-index: 1046;
}
.unitbar-text {

    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}
.unitbar-text:hover {
    background-color: #ddd;

}
/* Dropdown Menu */
.nav-item {
    position: relative;
}
.nav-item .dropdown-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background-color: var(--abu-navy-blue-color);
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.nav-item:hover .dropdown-container {
    display: block;
}
/*
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.show .dropdown-menu {
    display: block;
    opacity: 1;
}
*/
.dropdown-container .dropdown-header {
    color: var(--abu-white);
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 1rem;
}
.dropdown-container ul {
    list-style: none;
    padding: 0;
}
.dropdown-container ul li {
    margin-bottom: 0.5rem;
}
.dropdown-container ul li a {
    color: var(--abu-white);
    padding: 0.5rem 1rem;
    display: block;
}
.dropdown-container ul li a:hover {
    background: var(--abu-dark-navy-blue-color);
    border-radius: 5px;
}
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 1px;
}
.nav-item {
    padding: 0.5rem 0;
}
/* Ana header: hover tüm hücrede — padding linkte, li'de değil */
.navbar.navbar-bg .nav-item {
    padding: 0;
}

.dropdown-hover:hover>.dropdown-menu {
    display: inline-block;
}
.dropdown-style {
    font-size: 13px;
    padding: 2px;
    text-align: center;
}
.dropdown-hover>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
}
.dropdown-menu.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    border: none;
    box-shadow: none;
}
.megamenuref{
    background: rgb(23, 39, 81, 0.90);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.menu-header .title {
    transition: background-color 0.3s ease;
    color: white;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    display: block;
    /* Üst çizgi navbar altında; yazı logo taşmasının altında */
    padding: 40px 0 12px;
}
.menu-header a:hover {
    background-color: #59698f;
}
.menu-header ul li a {
    transition: background-color 0.3s ease;
    color: white;
    font-size: 12px;
    display: block;
    padding: 8px;
}

.menu-header ul li a:hover {
    background-color: #59698f;
    color: white;
}

.navbar .megamenu {
    padding: 0;
}

/* ============ desktop view ============ */

.navbar .has-megamenu {
    position: static !important;
}
.navbar .megamenu {
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
}

.flex-item {
    flex: 1 1 0;
    max-width: 168px;
}

.logo-item {
    flex: 0 1 auto;
    max-width: 150px;
}

.footer {
    background-color: var(--abu-navy-blue-color);
}

.footer_menu_title {
    color: #fff;
    position: relative;
    padding-left: 20px;
    font-size: 20px;
}

.footer_menu_title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 90%;
    background-color: var(--abu-dark-orange-color);
}

.footer_hover_color {
    position: relative;
    transition: color 0.3s ease-in-out;

}

.footer_hover_color:hover {
    color: var(--abu-dark-orange-color);
}

.footer_hover_color::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--abu-dark-orange-color);
    transition: width 0.3s ease-in-out;
}

.footer_hover_color:hover::after {
    width: 100%;
}
#topButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #FFA07A;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    cursor: pointer;
}
#topButton:hover {
    background-color: #FF6347;
}

.latest-news {
    background-color: var(--abu-navy-blue-color);
    padding: 30px;
    padding-right: 10px;
    border-radius: 8px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Ana sayfa haber satırı — sidebar sol 4 kart yüksekliğine kilitlenir */
@media (min-width: 992px) {
    .abu-home-news-row {
        position: relative;
    }
    .abu-home-news-row > .abu-home-news-row__main {
        flex: 0 0 75%;
        max-width: 75%;
        min-width: 0;
    }
    /* absolute: satır yüksekliğini yalnız sol kolon belirler; sidebar ona sığar */
    .abu-home-news-row > .abu-home-news-row__side {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 25%;
        max-width: 25%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

.latest-news h4 {
    color: var(--abu-white);
    position: relative;
    font-weight: 200;
    border-left: 4px solid var(--abu-dark-orange-color);
    padding-left: 10px;
}

.latest-news ul.list-unstyled li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.latest-news ul.list-unstyled li a {
    color: var(--abu-white);
    transition: color 0.3s;
    min-width: 0;
    overflow-wrap: anywhere;
}

.latest-news ul.list-unstyled li a:hover {
    color: var(--abu-dark-orange-color);
}

.latest-news p {
    color: var(--abu-white);
}

/* Son Haberler — 4 kart yüksekliğine sığar, fazlası scroll */
.latest-news > .d-flex {
    flex-shrink: 0;
}
.latest-news__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--abu-dark-orange-color) rgba(255, 255, 255, 0.15);
}
.latest-news__scroll::-webkit-scrollbar {
    width: 6px;
}
.latest-news__scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.latest-news__scroll::-webkit-scrollbar-thumb {
    background: var(--abu-dark-orange-color);
    border-radius: 3px;
}
/* son öğede alt çizgi/boşluk gitsin */
.latest-news__scroll li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Öne çıkan haber kartları — kaynak HTML card-img-top */
.abu-home-news-row__main .abu-home-news-card__media{
    display:block;
    line-height:0;
}
.abu-home-news-row__main .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card a {
    color: var(--abu-navy-blue-color);
    text-decoration: none;
    font-size: 14px;
}

section.counter .count-box {
    background-color: #fff;
    text-align: center;
    height: 100%;
    margin: 10px 0;
    padding: 20px;
    border-radius: 7px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
section.counter .count-box img {
    max-width: 40px;
    border-radius: 2px;
}
section.counter .count-box h2 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}
section.counter .count-box .value {
    font-weight: 700;
    font-size: 48px;
    color: #464E5F;
}
section.counter .count-box span.text-secondary {
    color: rgb(108, 117, 125);
}

section.explore p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}
section.explore .position-relative.h-100 {
    overflow: hidden;
}
section.explore img {
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    border: none;
    object-fit: cover;
    box-shadow: none;
    transition: 0.4s;
}
section.explore img:hover {
    transform: scale(1.1);
}
section.explore .text-position-left {
    position: absolute;
    left: 10px;
    bottom: 10px;
}
section.explore .explore-text {
    color: #fff;
    font-size: 26px;
    margin: 0;
}
section.explore .text-position-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.announcements h4,
.events h4 {
    color: var(--abu-dark-navy-blue-color);
    font-weight: 700;
    border-left: 4px solid var(--abu-dark-orange-color);
    padding-left: 10px;
}

.announcement-item {
    display: flex;
    font-size: 13px;
    padding: 3px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}
.announcement-item:hover {
    background-color: #fff;
}

.date-box {
    background-color: #f8f9fa;
    color: var(--abu-dark-navy-blue-color);
    padding: 1px;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 15px;
    flex: 0 0 70px;
}
.date-box-day {
    font-size: 35px
}
.date-box-year {
    font-size: 15px
}

.announcement-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announcement-content a {
    color: var(--abu-navy-blue-color);
    text-decoration: none;
    font-weight: 500;
}

.announcement-content a:hover {
    color: var(--abu-dark-orange-color);
}

.badge.new {
    background-color: var(--abu-dark-orange-color);
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
    margin-top: 5px;
    align-self: flex-start;
}

.card-title {
    color: var(--abu-navy-blue-color);
    font-weight: 600;
}

/* Etkinlik kartları — SABİT YÜKSEKLİK (uzun/kısa başlıklar eşitlensin) */
.etkinlik-card {
    display: flex;
    flex-direction: column;
}
.etkinlik-card .img-fluid {
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.etkinlik-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.etkinlik-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    height: calc(4 * 1.35em); /* tam 4 satır — kısa başlık da bu boyu kaplar */
    margin-bottom: 8px;
}
.etkinlik-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.btn-primary {
    background-color: var(--abu-dark-orange-color);
    border-color: var(--abu-dark-orange-color);
}

.btn-primary:hover {
    background-color: var(--abu-orange-color);
    border-color: var(--abu-orange-color);
}


/* ========== Akademik Kadromuz (ana sayfa vitrin) ========== */
.kadro-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    background: #fff;
}
.kadro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}
.kadro-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #00A8B5 0%, #007a83 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.kadro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.kadro-photo__ph {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}
.kadro-card .card-body {
    padding: 14px 12px;
}
.kadro-unvan {
    color: #00A8B5;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: none;
}
.kadro-ad {
    color: #212529;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
