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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%; /* Genişliği tam yap */
}

.logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e3c72;
    font-weight: bold;
}

.logo-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 8px;
}

/* Sağdaki logo için yeni class */
.logo-img-right {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.header-text {
    flex: 1; /* Ortadaki metinlerin esnek olmasını sağla */
    text-align: center; /* Metinleri ortala */
    margin: 0 20px; /* Yan boşluklar */
}

.header-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: relative;
    /* Bu satırı ekleyin */
    z-index: 9998;
    /* Bu satırı ekleyin */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    /* Tüm butonları flex yap */
    align-items: center;
    /* Dikey hizalama */
    gap: 8px;
    /* İkonlar ve metin arası boşluk */
    min-height: 44px;
    /* Minimum yükseklik belirle */
    box-sizing: border-box;
    /* Padding'i dahil et */
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    /* Arrow'u sağa yasla */
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    /* 1000'den 9999'a çıkarın */
    list-style: none;
    padding: 15px 0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    color: #333 !important;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 0;
    background: transparent !important;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
    color: white !important;
    transform: none;
    padding-left: 30px;
}

.dropdown-menu li a i {
    width: 18px;
    text-align: center;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="news" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="2" fill="rgba(255,255,255,0.1)"/><rect x="8" y="8" width="9" height="9" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23news)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #1e3c72;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: #666;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e3c72;
    border-color: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

/* Featured Announcements */
.featured-section {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 60px 0;
    margin-bottom: 60px;
}

.featured-announcements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.featured-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.featured-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-card p {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Announcements Grid */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.announcement-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.announcement-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.announcement-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.announcement-icon.urgent {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.announcement-icon.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.announcement-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.announcement-icon.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.announcement-info {
    flex: 1;
}

.announcement-category {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.category-registration {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.category-exam {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.category-system {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.category-education {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.announcement-info h3 {
    color: #1e3c72;
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.announcement-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.read-more {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

.featured-read-more {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* Archive Section */
.archive-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.archive-years {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.year-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.year-btn:hover,
.year-btn.active {
    background: #1e3c72;
    border-color: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

/* Statistics */
.stats-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-section {
        flex-direction: column;
        /* Mobilde alt alta sırala */
        text-align: center;
    }

    .header-text {
        margin: 10px 0;
        /* Mobilde dikey boşluk */
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .announcements-grid {
        grid-template-columns: 1fr;
    }

    .featured-announcements {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .announcement-header {
        flex-direction: column;
        text-align: center;
    }

    .archive-years {
        flex-direction: column;
        align-items: center;
    }
}