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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    padding: 12px 0;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-links a:hover svg {
    fill: #c41e3a;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: fill 0.3s ease;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 75px;
    height: 75px;
    filter: drop-shadow(0 2px 8px rgba(196, 30, 58, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    width: 100%;
    height: 100%;
}

.uni-title {
    flex: 1;
}

.uni-title h1 {
    font-size: 22px;
    color: #c41e3a;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.uni-title p {
    font-size: 15px;
    color: #5a6c7d;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-top: 4px solid #c41e3a;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-content a {
    color: white;
    text-decoration: none;
    padding: 16px 28px;
    display: block;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.nav-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #c41e3a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-content a:hover {
    background: rgba(196, 30, 58, 0.9);
    color: white;
}

.nav-content a:hover::after {
    width: 80%;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

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

.dropdown a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 24px;
    font-size: 13px;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: #c41e3a;
    padding-left: 30px;
    color: white;
}

.dropdown a::before {
    content: '→';
    position: absolute;
    left: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown a:hover::before {
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(196, 30, 58, 0.7), rgba(44, 62, 80, 0.85)),
                url('https://atauni.edu.tr/yuklemeler/11fc8d4b1329daf00aa7263d3551cbe9.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.75) 0%, rgba(44, 62, 80, 0.85) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 52px;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.4);
    letter-spacing: 1.5px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 22px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s both;
}

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

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.info-box {
    background: white;
    padding: 55px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    border-left: 6px solid #c41e3a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(196, 30, 58, 0.15);
}

.info-box h3 {
    color: #c41e3a;
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.info-box h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a 0%, transparent 100%);
    border-radius: 2px;
}

.info-box p {
    line-height: 1.9;
    color: #5a6c7d;
    font-size: 16px;
    text-align: justify;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid #c41e3a;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.05), transparent);
    transition: left 0.6s;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, 30%);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover::after {
    transform: translate(20%, 20%) scale(1.5);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.2);
    border-top-color: #a01830;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 19px;
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-card:hover h4 {
    color: #c41e3a;
}

.feature-card p {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.7;
}

/* News Section */
.news-section {
    background: white;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    margin-top: 30px;
    border-top: 5px solid #c41e3a;
}

.news-section h3 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    position: relative;
}

.news-section h3::before {
    content: '📰';
    margin-right: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(196, 30, 58, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    color: #c41e3a;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    background: rgba(196, 30, 58, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.news-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #c41e3a;
}

.news-excerpt {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    flex: 1;
}

.news-author {
    color: #7a8c9d;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 10px;
}

.news-read-more {
    color: #c41e3a;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-card:hover .news-read-more {
    transform: translateX(5px);
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #5a6c7d;
}

/* Old Announcements - Keep for compatibility */
.announcements {
    background: white;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    margin-top: 30px;
    border-top: 5px solid #c41e3a;
}

.announcements h3 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    position: relative;
}

.announcements h3::before {
    content: '📢';
    margin-right: 10px;
}

.announcement-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 8px;
}

.announcement-item:hover {
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.03) 0%, transparent 100%);
    border-left: 3px solid #c41e3a;
    transform: translateX(5px);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-date {
    color: #c41e3a;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    background: rgba(196, 30, 58, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.announcement-title {
    color: #2c3e50;
    font-size: 15px;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.6;
}

/* News Detail Page */
.news-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 40px;
}

.news-detail-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: #f5f7fa;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-content {
    padding: 50px;
}

.news-detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.news-detail-date,
.news-detail-author {
    color: #c41e3a;
    font-size: 14px;
    font-weight: 600;
    background: rgba(196, 30, 58, 0.08);
    padding: 8px 16px;
    border-radius: 6px;
}

.news-detail-text {
    color: #2c3e50;
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 40px;
}

.news-detail-text p {
    margin-bottom: 20px;
}

.news-detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: #2c3e50;
    color: white;
}

.btn-secondary:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.related-news {
    background: white;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-top: 5px solid #c41e3a;
}

.related-news h3 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
}

.related-news h3::before {
    content: '📰';
    margin-right: 10px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #c41e3a 0%, #a01830 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer h4 {
    color: #c41e3a;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer p, .footer a {
    color: #b8c5d6;
    font-size: 14px;
    line-height: 2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #8897a8;
    font-size: 13px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-content {
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
    }

    .nav-content a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #273746;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 28px;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
