/* Homepage-specific styles */
.hero {
    background: url('Izzonix.github.io/University-template/images/background.jpeg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 60px; /* Space for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 0, 0, 0.6); /* Darker maroon overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1.2s ease-in;
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: #4A0000;
    color: #fff;
    border-radius: 8px;
    margin: 0 0.5rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-buttons .btn:hover {
    background: #D4A017;
    color: #4A0000;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn.secondary {
    background: transparent;
    border: 2px solid #fff;
}

.cta-buttons .btn.secondary:hover {
    background: #fff;
    color: #4A0000;
}

.quick-links {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.quick-links h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #4A0000;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.link-item {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.link-item img {
    width: 90px;
    margin-bottom: 1rem;
}

.link-item h3 {
    font-family: 'Playfair Display', serif;
    color: #4A0000;
    margin-bottom: 0.5rem;
}

.news {
    padding: 4rem 2rem;
    background: #f5f5f5;
}

.news h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #4A0000;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news-item h3 {
    font-family: 'Playfair Display', serif;
    color: #4A0000;
    margin-bottom: 0.5rem;
}

.read-more {
    color: #4A0000;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #D4A017;
}

.contact {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #4A0000;
}

.contact p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content p, .cta-buttons {
    animation: fadeIn 1.2s ease-in 0.3s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        margin-top: 50px; /* Adjusted for smaller header */
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .quick-links h2, .news h2, .contact h2 {
        font-size: 2.2rem;
    }
}
