/* İBB Kurumsal Renkleri ve Genel Ayarlar */
:root {
    --ibb-dark: #003057;  /* Koyu Lacivert */
    --ibb-blue: #0097D7;  /* Canlı Mavi */
    --ibb-gray: #f4f7f8;  /* Arka Plan Grisi */
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Üst Bar */
.top-bar {
    background: var(--ibb-dark);
    color: white;
    font-size: 12px;
    padding: 8px 0;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    opacity: 0.8;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 20px;
    color: var(--ibb-dark);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

/* Menü Linklerini Canlandırma */
.nav-menu a {
    text-decoration: none;
    color: var(--ibb-dark);
    font-weight: 600;
    position: relative; /* Çizginin konumu için gerekli */
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Alt Çizgi Efekti (İBB Tarzı) */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--ibb-blue);
    transition: width 0.3s ease; /* Çizginin uzama hızı */
}

.nav-menu a:hover {
    color: var(--ibb-blue);
}

.nav-menu a:hover::after {
    width: 100%; /* Üzerine gelince çizgi boydan boya uzar */
}

.btn-portal {
    background: var(--ibb-blue);
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    height: 500px;
    background: linear-gradient(rgba(0,48,87,0.7), rgba(0,48,87,0.7)), url('https://via.placeholder.com/1500x500'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-box h1 {
    font-size: 40px;
    line-height: 1.2;
}

.hero-box h1 span {
    color: var(--ibb-blue);
}

.hero-box p {
    margin: 20px 0;
    max-width: 500px;
    font-size: 18px;
}
.hero-box h1 {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--ibb-dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* Hızlı Menü */
.quick-menu {
    padding: 50px 0;
    background: var(--ibb-gray);
}

.quick-menu .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* Kutucukların Temel Hali */
.menu-item {
    background: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* İkon ve Yazıların İlk Hali */
.menu-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.menu-item span {
    color: #003057; /* Kurumsal Lacivert */
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* --- HOVER (ÜZERİNE GELİNCE) DURUMU --- */

.menu-item:hover {
    background-color: #ff481f; /* İBB Pembesi */
    border-color: #E6007E;
    transform: translateY(-5px);
}

/* Yazıyı ve İkonu Beyaz Yap */
.menu-item:hover span, 
.menu-item:hover .icon {
    color: #ffffff !important;
}

/* Eğer ikonun bir <img> etiketi ise (resimse) görünmesi için */
.menu-item:hover img {
    filter: brightness(0) invert(1);
}

.footer {
    text-align: center;
    padding: 30px;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #eee;
}
/* Mobil Uyumluluk (Responsive) */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Basitlik adına mobilde menüyü gizledik veya hamburger menüye çevrilebilir */
    }
    
    .hero-box h1 {
        font-size: 30px;
    }

    .quick-menu .container {
        grid-template-columns: repeat(2, 1fr); /* Mobilde yan yana 2 kutu */
    }
}

@media (max-width: 600px) {
    .quick-menu .container {
        grid-template-columns: 1fr; /* Çok küçük ekranlarda tek sütun */
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Hover Efektleri ve Yumuşak Geçişler */
.btn-more, .btn-portal, .menu-item {
    transition: all 0.3s ease-in-out;
}

.btn-portal:hover {
    background-color: var(--ibb-dark);
    transform: scale(1.05);
}

.btn-more:hover {
    background-color: var(--ibb-blue);
    color: white;
}

/* Sayfa içi boşlukları dengeleme */
section {
    padding: 60px 0;
}
/* İletişim & Harita Bölümü */
.contact-map {
    background-color: var(--ibb-dark); /* İBB Laciverti */
    color: white;
    padding: 60px 0;
}

.contact-map .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--ibb-blue); /* İBB Mavisi */
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.9;
}

.map-frame {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* Mobil için */
@media (max-width: 768px) {
    .contact-map .container {
        grid-template-columns: 1fr;
    }
}
/* Haber Kartı Canlandırma */
.news-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px); /* Daha belirgin bir yukarı kayma */
    box-shadow: 0 15px 30px rgba(0, 48, 87, 0.15);
}

/* Buton Parlama Efekti */
.btn-portal, .btn-more {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-portal:hover {
    filter: brightness(1.1); /* Hafif ışık vurmuş gibi parlar */
    box-shadow: 0 5px 15px rgba(0, 151, 215, 0.4);
}
/* --- MODAL (AÇILIR PENCERE) STİLLERİ --- */
.modal {
    display: none; /* İlk başta gizli */
    position: fixed; 
    z-index: 9999; /* Her şeyin üstünde görünsün */
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0, 48, 87, 0.8); /* Arka planı karart */
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    width: 60%; /* Genişlik */
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #E6007E; /* İBB Pembesi */
}

/* Tablo Stilleri */
.academic-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.academic-table th {
    background-color: #003057; /* Lacivert */
    color: white;
    padding: 12px;
    text-align: left;
}

.academic-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.academic-table tr:hover {
    background-color: #fff0f6; /* Hover rengi */
}
.academic-table td strong {
    color: #003057; /* Ders adları lacivert */
    display: block;
}

.academic-table td small {
    color: #E6007E; /* Derslikler pembe */
    font-weight: bold;
}
.food-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.food-day {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #E6007E;
}

.food-day h3 {
    color: #003057;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.food-day ul {
    list-style: none;
    padding: 0;
}

.food-day li {
    padding: 5px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px; /* İkon ve yazı arası boşluk */
}

@media (max-width: 600px) {
    .food-container { grid-template-columns: 1fr; }
}
.lab-info p {
    color: var(--ibb-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.lab-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature-card {
    background: #f4f7f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--ibb-pink);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: scale(1.02);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feature-card strong {
    color: var(--ibb-pink);
    display: block;
    margin-bottom: 5px;
}

.feature-card p {
    font-size: 14px;
    margin: 0;
    text-align: left;
}
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.portal-section h3 {
    color: #003057;
    border-bottom: 2px solid #E6007E;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.portal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-btn {
    display: block;
    padding: 10px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
    font-weight: bold;
}

.portal-btn:hover {
    background: #E6007E;
    color: white;
}

.announcement-list {
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.announcement-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}
/* Sadece banner içindeki UBYO PORTAL kutusuna sol boşluk ekler */
.portal-box {
    margin-left: 25px !important; /* Öğrenci kutusundan uzaklaştırır */
}

/* Banner'daki butonların genel hizalaması */
.banner-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.banner-item:hover {
    transform: translateY(-2px); /* Üzerine gelince hafif yükselme efekti */
}/* Sadece banner içindeki kutucukları hedefler */
.banner-item {
    padding: 5px 10px !important; /* Banner'ı ince tutar */
    min-width: 80px !important;
    margin-right: 20px; /* Öğrenci ve Portal arasını açan boşluk */
}

.banner-item .icon {
    font-size: 18px !important; /* İkonları banner'a uygun küçültür */
}

.banner-item span {
    font-size: 13px !important; /* Yazıları banner'a uygun küçültür */
}

/* En sondaki Portal kutusunun sağındaki boşluğu sıfırla */
.portal-box {
    margin-right: 0 !important;
    margin-left: 10px; /* Öğrenci kutusundan biraz daha uzaklaşması için ek boşluk */
}

/* Banner içeriğini hizala */
.banner-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Banner yüksekliğine sadık kalır */
}
/* 1. Banner Yüksekliğini Sabitleme */
.banner-item {
    padding: 5px 10px !important; /* Dikey boşluğu azaltarak banner'ı ince tutar */
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. İstediğin O Boşluğu Ekleme */
.portal-box {
    margin-left: 35px !important; /* Öğrenci kutusundan sağa doğru açar */
}

/* 3. Pencere (Radar) İç Stilleri */
.radar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.radar-section h3 {
    color: #003057;
    border-bottom: 2px solid #E6007E;
    padding-bottom: 5px;
    font-size: 16px;
}

.radar-list {
    list-style: none;
    padding: 0;
}

.radar-list li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.trend-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background: #f4f7f8;
    color: #E6007E;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #E6007E;
}
/* Gelişmiş Yönetim Şeması Stilleri */
.management-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.admin-tier {
    display: flex;
    justify-content: center;
    width: 100%;
}

.deputies {
    gap: 30px; /* İki müdür yardımcısı arasındaki boşluk */
}

.admin-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 20px;
    width: 260px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
}

/* Çizgiler ve Renkler */
.principal { border-top: 5px solid #003057; }
.deputy { border-top: 4px solid #4A90E2; }
.chief { border-top: 4px solid #E6007E; }

.admin-title {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.admin-name {
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

/* Akademik Kadro Tablosu */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sütunlu düzen */
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.staff-item {
    background: #fff;
    border: 1px dashed #bbb;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #003057;
    text-align: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.staff-item:hover {
    background: #f0f4f8;
    border-color: #003057;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .deputies { flex-direction: column; gap: 15px; }
    .staff-grid { grid-template-columns: 1fr 1fr; }
}
/* SADECE KURUMSAL PENCERESİNİ ORTALAR (DİĞERLERİ BOZULMAZ) */
#corporateModal .modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
}
/* BÖLÜMLER PENCERESİNİ EKRANIN TAM ORTASINA SABİTLEME */
#departmentsModal .modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
}

/* Bölümler Listesi İç Tasarımı */
.departments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dept-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    text-decoration: none; /* Linkin alt çizgisini kaldırır */
    color: inherit;
    transition: all 0.3s ease;
}

.dept-card:hover {
    background: #f0f4f8;
    border-color: #003057;
    transform: translateY(-2px);
    cursor: pointer;
}

/* Kendi Bölümünü Vurgulama */
.active-dept {
    border-left: 5px solid #E6007E;
    background: #fff5f9; /* Hafif pembe arkaplan */
}

.dept-icon {
    font-size: 32px;
}

.dept-info h3 {
    margin: 0;
    color: #003057;
    font-size: 16px;
}

.dept-info p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
}
/* Logo Stili ve Konumu */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: auto; /* Logoyu tamamen sola yaslar, menü butonlarını sağa iter */
    padding-left: 20px;
}

.school-logo {
    height: 45px; /* Banner kalınlığına göre bu sayıyı artırıp azaltabilirsin */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.05); /* Üzerine gelince çok hafif büyür */
}