:root {
    /* MANAS BRAND COLORS */
    --manas-orange: #0d6efd ;
    --manas-blue: #1C3F95;
    --manas-dark: #0f2557;
    --text-gray: #555;
    --light-bg: #f4f6f9;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* --- Navbar --- */
.top-bar {
    background-color: var(--manas-blue);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a { color: white; text-decoration: none; transition: 0.3s; }
.top-bar a:hover { color: var(--manas-orange); }

.navbar {
    padding: 10px 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* --- СТИЛИ ДЛЯ ШАПКИ (БРЕНД-БЛОК) --- */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.header-logo-img {
    width: 45px;
    height: auto;
    margin-right: 15px;
}

/* Аббревиатура KİK */
.header-brand-acronym {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0d6efd ; /* Фирменный оранжевый Манаса */
    line-height: 1;
    letter-spacing: -1px;
}

/* Тонкий разделитель */
.header-brand-divider {
    width: 2px;
    height: 40px;
    background-color: #d1d5db; /* Светло-серый */
    margin: 0 15px;
}

/* Текстовый блок */
.header-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
}

/* Верхняя строка (Название ВУЗа) */
.header-brand-uni {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Нижняя строка (Название департамента) */
.header-brand-dept {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2937;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 2px;
}

.footer-logo-img {
    max-width: 130px;
    height: auto;
}

/* --- АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА --- */

/* Планшеты и телефоны */
@media (max-width: 991px) {
    .header-brand-acronym { font-size: 2rem; }
    .header-brand-divider { height: 35px; margin: 0 10px; }
    .header-brand-uni { font-size: 0.6rem; }
    .header-brand-dept { font-size: 0.8rem; }
}

/* Маленькие телефоны (iPhone SE, Android) */
@media (max-width: 576px) {
    .header-brand-acronym { font-size: 1.8rem; }
    .header-brand-divider { height: 30px; margin: 0 8px; }

    /* Скрываем длинное название университета, чтобы не перекрывало кнопку-гамбургер меню */
    .header-brand-uni { display: none; }

    .header-brand-dept {
        font-size: 0.75rem;
        white-space: normal; /* Разрешаем перенос текста */
        max-width: 140px; /* Ограничиваем ширину */
    }
}

.nav-link {
    color: var(--manas-blue) !important;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--manas-orange);
    transition: width .3s;
    margin-top: 5px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dil seçici (TR | KG) */
.lang-switch {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--manas-blue);
    background-color: #ffffff;
}

.lang-switch:hover {
    background-color: #f3f4f6;
}

.lang-switch.active {
    background-color: #dc3545; /* kırmızı badge */
    border-color: #dc3545;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.35);
}

.lang-switch-divider {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* --- Hero Slider --- */
#heroSlider .carousel-item {
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

#heroSlider .carousel-caption {
    bottom: 0; left: 0; right: 0; top: 0;
    display: flex;
    align-items: center;
    background: rgba(28, 63, 149, 0.35);
    padding-left: 5%;
    text-align: left;
}

.hero-text-box {
    max-width: 700px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-left: 6px solid var(--manas-orange);
    color: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.carousel-item.active .hero-title { animation: fadeInUp 0.8s ease-out 0.3s both; }
.carousel-item.active .lead { animation: fadeInUp 0.8s ease-out 0.5s both; }
.carousel-item.active .hero-btn { animation: fadeInUp 0.8s ease-out 0.7s both; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* --- Sosyal Medya Bölümü --- */
.social-pill {
    padding: 8px 4px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.social-pill .social-icon-wrapper {
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.social-pill .social-icon-wrapper img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.social-pill span {
    font-size: 0.8rem;
}

.social-pill:hover {
    transform: translateY(-3px);
}

.hero-btn {
    background-color: var(--manas-orange);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.4);
}

.hero-btn:hover {
    background-color: white;
    color: var(--manas-orange);
    transform: translateY(-3px);
}

.no-card-shadow {
    box-shadow: none !important;
}

/* Ana sayfa duyurular listesi */
.announcement-item {
    background: #f5f7fb;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.announcement-item::before {
    content: none;
}

.announcement-item .announcement-title {
    font-size: 0.95rem;
}

.announcement-item .announcement-day {
    font-size: 0.9rem;
    font-weight: 700;
}

.announcement-item .announcement-year {
    font-size: 0.7rem;
}

.announcement-item .announcement-arrow i {
    color: var(--manas-blue);
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.announcement-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.announcement-item:hover .announcement-arrow i {
    opacity: 1;
    transform: translateX(0);
}

/* Duyurular & Etkinlikler blokları arasındaki çizgi */
.duyuru-etkinlik-row > .col-lg-7 {
    border-right: 1px solid #e5e7eb;
    padding-right: 24px;
}

@media (max-width: 991px) {
    .duyuru-etkinlik-row > .col-lg-7 {
        border-right: none;
        padding-right: 12px;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

/* Etkinlik sliderı (ana sayfa) */
#eventsCarousel .carousel-indicators {
    position: static;
    margin-top: 18px;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
}

#eventsCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4b5563;
    opacity: 0.5;
}

#eventsCarousel .carousel-indicators .active {
    opacity: 1;
    background-color: #111827;
}

#eventsCarousel .carousel-control-prev,
#eventsCarousel .carousel-control-next {
    display: none;
}

.event-poster-link {
    display: block;
    color: inherit;
}

.event-poster-wrapper {
    width: 408px;
    height: 571px;
    margin: 0 auto;
}

.event-poster-wrapper .event-poster-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.event-poster-link:hover .event-poster-caption,
.event-poster-link:focus .event-poster-caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .event-poster-wrapper {
        width: 260px;
        height: 364px;
    }
}

/* --- Stats Strip --- */
.stats-strip {
    background: var(--manas-blue);
    color: white;
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 0 50px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}
.stat-item i { font-size: 2rem; color: var(--manas-orange); margin-bottom: 10px; }
.stat-item h3 { font-size: 2rem; font-weight: 700; margin: 0; }
.stat-item p { font-size: 0.9rem; opacity: 0.8; margin: 0; }

/* --- REDESIGNED ABOUT SECTION (Creative & Animated) --- */
.about-section {
    padding: 100px 0;
    background: #f5f7fb; /* açık mavi */
    position: relative;
}

/* The Image Compositon */
.about-image-wrapper {
    position: relative;
    z-index: 2;
    padding-left: 30px; /* Space for background shape */
    padding-bottom: 30px;
}

.about-bg-shape {
    position: absolute;
    top: 20px;
    left: 0;
    width: 80%;
    height: 90%;
    border: 2px solid var(--manas-orange);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.5;
}

.about-img-container {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    /* Continuous Float Animation */
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.about-main-img {
    width: 100%;
    display: block;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-img-container:hover .about-main-img {
    transform: scale(1.1); /* Smooth zoom on hover */
}

/* Floating Badge */
.about-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
    z-index: 3;
    border-left: 5px solid var(--manas-blue);
    animation: floatBadge 5s ease-in-out infinite reverse; /* Floats opposite to image */
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}



/* Decorative Dots */
.dots-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--manas-orange) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
    z-index: 0;
}

/* Text Content */
.about-content { padding-left: 20px; }
.about-subtitle {
    color: var(--manas-orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}
.about-subtitle::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--manas-orange);
    vertical-align: middle;
    margin-right: 10px;
}

.about-title {
    font-weight: 800;
    color: var(--manas-blue);
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.feature-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.feature-box:hover { transform: translateX(10px); }

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(28, 63, 149, 0.1);
    color: var(--manas-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text { font-weight: 700; color: var(--manas-dark); }

/* Pulse Button Effect */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--manas-orange);
    font-size: 1.5rem;
    z-index: 4;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite;
}
.about-img-container a.video-play-btn:hover {
    color: var(--manas-orange);
    opacity: 0.95;
}

@keyframes pulse-white {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}


/* --- UPDATED WORKING AREAS (NO JERKING) --- */
.work-card {
    height: 350px; /* FIXED HEIGHT = NO JERKING */
    background: white;
    border-radius: 15px;
    overflow: hidden; /* Masking the content */
    position: relative;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    z-index: 1;
}

/* The orange background layer */
.work-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--manas-orange), #d94b18);
    transform: translateY(100%); /* Hidden at bottom */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.work-card-content {
    position: relative;
    z-index: 2; /* Above the orange bg */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    transition: all 0.4s ease;
}

.work-icon {
    font-size: 4rem;
    color: var(--manas-blue);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.work-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--manas-dark);
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

/* Hidden content initially */
.work-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease 0.1s;
}

.work-btn {
    display: inline-block;
    background: white;
    color: var(--manas-orange);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- HOVER STATES --- */
.work-card:hover {
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(241, 90, 36, 0.25);
    transform: translateY(-5px);
}

.work-card:hover::before {
    transform: translateY(0); /* Slide up orange bg */
}

.work-card:hover .work-icon {
    color: white;
    transform: translateY(-20px) scale(0.9);
}

.work-card:hover .work-title {
    color: white;
    transform: translateY(-20px);
}

.work-card:hover .work-desc,
.work-card:hover .work-btn {
    opacity: 1;
    transform: translateY(-10px);
}


/* --- News Section --- */
.section-header { margin-bottom: 50px; position: relative; }
.section-header h2 { color: var(--manas-blue); font-weight: 800; font-size: 2.2rem; }
.section-header .divider { width: 80px; height: 4px; background: var(--manas-orange); margin: 15px 0; }

.news-card {
    border: none;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}
.news-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.news-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.news-date {
    position: absolute; top: 15px; right: 15px;
    background: var(--manas-orange); color: white;
    padding: 5px 12px; border-radius: 4px;
    font-weight: 700; font-size: 0.8rem; text-align: center;
}
.news-date span { display: block; font-size: 1.2rem; line-height: 1; }
.news-body { padding: 25px; }
.news-cat { color: var(--manas-orange); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block;}
.news-title { font-size: 1.2rem; font-weight: 700; color: var(--manas-blue); margin-bottom: 15px; line-height: 1.4; }
.news-link { color: var(--manas-blue); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.news-link:hover { color: var(--manas-orange); }

/* --- Footer --- */
footer { background-color: var(--manas-blue); color: white; padding-top: 60px; border-top: 5px solid var(--manas-orange); }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: white; text-decoration: none; }
.footer-links li a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 5px 0; transition: 0.2s; }
.footer-links li a:hover { color: var(--manas-orange); padding-left: 5px; }
.footer-bottom { background: var(--manas-dark); padding: 20px 0; margin-top: 40px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-text-box { padding: 20px; margin: 0 15px; }
    .stats-strip { margin-top: 0; border-radius: 0; }
}


/* --- PAGE HEADER (Шапка) --- */
.page-header {
    background: linear-gradient(135deg, #1C3F95 0%, #0d2663 100%);
    padding: 80px 0 60px 0;
    color: white;
    margin-bottom: 60px;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-item.active { color: white; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* --- CONTENT AREA (Контент) --- */
.page-content-wrapper {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Красивые заголовки внутри текста */
.page-content-wrapper h2 {
    font-family: 'Montserrat', sans-serif;
    color: #1C3F95;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}
.page-content-wrapper h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: #F15A24; /* Manas Orange */
    border-radius: 2px;
}

/* Цитаты */
.page-content-wrapper blockquote {
    background: #f8f9fa;
    border-left: 5px solid #1C3F95;
    margin: 30px 0;
    padding: 20px 30px;
    font-style: italic;
    color: #555;
    border-radius: 0 10px 10px 0;
}

/* Картинки внутри текста */
.page-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Списки */
.page-content-wrapper ul { padding-left: 20px; margin-bottom: 20px; }
.page-content-wrapper ul li { margin-bottom: 10px; list-style-type: none; position: relative; padding-left: 25px; }
.page-content-wrapper ul li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- SIDEBAR (Боковая панель) --- */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Чтобы при скролле меню ехало за пользователем */
}

.sidebar-widget {
    background: white;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1C3F95;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.mini-news-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}
.mini-news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mini-news-img {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
}
.mini-news-content h6 { font-size: 0.9rem; margin-bottom: 3px; line-height: 1.4; }
.mini-news-content h6 a { color: #333; text-decoration: none; transition: 0.2s; }
.mini-news-content h6 a:hover { color: #F15A24; }
.mini-news-date { font-size: 0.75rem; color: #999; }

/* Pagination (Tüm Duyurular) */
.pagination .page-item .page-link {
    color: var(--manas-blue);
    border-radius: 999px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: var(--manas-blue);
    border-color: var(--manas-blue);
    color: #ffffff;
}

.pagination .page-item .page-link:hover {
    background-color: rgba(28,63,149,0.08);
}

@media all and (min-width: 992px) {
    /* Скрываем меню по умолчанию, но готовим к анимации */
    .navbar .nav-item.dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px); /* Смещаем немного вниз */
        transition: all 0.3s ease-in-out;
        margin-top: 0;
    }

    /* Показываем меню при наведении на родительский li */
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0); /* Поднимаем на место */
    }
}


/* --- Стили для блока Duyurular & Etkinlikler --- */

.faculty-updates {
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* 1. Стили для Афиш (Etkinlikler) */
.event-poster {
    position: relative;
    width: 100%;
    /* Пропорция 5:7 */
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Фолбэк для старых браузеров, если aspect-ratio не сработает */
@supports not (aspect-ratio: 5 / 7) {
    .event-poster {
        padding-bottom: 140%; /* 7/5 * 100 */
        height: 0;
    }
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Затемнение и контент при наведении на афишу */
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
}

/* Эффект наведения на афишу */
.event-poster:hover img {
    transform: scale(1.1);
}

.event-poster:hover .poster-overlay {
    opacity: 1;
}

.event-poster:hover .poster-content {
    transform: translateY(0);
}

/* Кастомные кнопки слайдера */
.slider-navs button {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    transition: all 0.3s;
}
.slider-navs button:hover {
    background-color: var(--bs-primary); /* Используем цвет из bootstrap */
    color: white;
}


/* 2. Стили для Объявлений (Duyurular) */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-item {
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-left-color: var(--bs-primary); /* Цвет из bootstrap */
    background-color: #fff;
}

.date-box {
    min-width: 60px;
    transition: background-color 0.3s;
}

.announcement-item:hover .date-box {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.announcement-item:hover .date-box span,
.announcement-item:hover .date-box small {
    color: white !important;
}

/* Стрелочка справа появляется при наведении */
.transition-icon {
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.announcement-item:hover .transition-icon {
    opacity: 1 !important;
    transform: translateX(0);
}

/* Кнопка "Показать все" */
.transition-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}