/* General Styles */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #666;
}

body {
    font-family: Arial, sans-serif;
    padding-top: 76px;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: calc(100% - 50px);
    margin-right: 0.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    width: 100%;
}

.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand-wrapper {
        max-width: calc(100% - 45px);
    }

    .navbar-logo {
        height: 32px;
    }
    
    .navbar-title {
        font-size: 1rem;
        font-weight: 600;
    }

    .navbar-toggler {
        padding: 0.25rem;
        margin-left: auto;
    }

    .navbar-nav {
        margin-top: 1rem;
    }
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Carousel */
.carousel {
    margin-top: -16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-item {
    height: 400px;
    background-color: #000;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.9;
}

.carousel-caption {
    bottom: 20%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    max-width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 50%;
}

.carousel-caption h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Section Titles */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.event-date, .news-date, .article-date, .media-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.event-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Section Specific Styles */
.news-announcement, .media-articles {
    background-color: #f8f9fa;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.event-highlight, .latest-articles {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.latest-articles .card-title {
    margin-bottom: 0;
}

.latest-articles .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Footer Styles */
.footer {
    background-color: #000;
    color: white;
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: #ccc;
}

/* Button Styles */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    border-radius: 4px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.9rem;
    }

    .carousel-item {
        height: 300px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-img-top {
        height: 180px;
    }
}
