﻿body {
    padding-top: 0 !important;
}

main {
    padding-top: 48px; /* height of navbar */
}

/* NAVBAR */
.navbar {
    background-color: #00447c !important; /* Navy */
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

    /* Hover + Active */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: #00c7fc !important;
        color: #000000 !important;
        border-radius: 4px;
    }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* FOOTER */
footer {
    background-color: #00447c;
    color: #ffffff;
    padding: 40px 0;
}

    footer h5 {
        color: #ffffff;
        font-weight: bold;
        margin-bottom: 15px;
    }

    footer a {
        color: #d0d0d0;
        text-decoration: none;
    }

        footer a:hover {
            color: #ffffff;
        }

.hero {
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 450px; /* adjust if needed */
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* subtle dark overlay */
}

/* Title styling */
.hero-title {
    font-size: 2.5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* CTA Button */
.btn-hero-cta {
    background-color: #00c7fc;
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

    .btn-hero-cta:hover {
        background-color: #ffffff;
        color: #001f3f;
    }

.carousel-slide-wrapper {
    height: 420px; /* adjust to taste */
    overflow: hidden;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0,0,0,0.45);
    padding: 15px 20px;
    border-radius: 6px;
}
#homeCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.admin-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .admin-card h4 {
        margin-bottom: 10px;
        font-weight: 600;
    }

.admin-count {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0 20px 0;
}

/*.news-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.news-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .news-card-body h4 {
        margin-bottom: 10px;
        font-weight: 600;
    }

.news-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.news-summary {
    flex-grow: 1;
    margin-bottom: 15px;
    color: #444;
}*/

.news-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* IMAGE */
.news-card-image img {
    width: 100%;
    height: 300px; /* fixed height */
    object-fit: cover;
}

/* BODY */
.news-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    /* TITLE (fixed height) */
    .news-card-body h4 {
        margin-bottom: 10px;
        font-weight: 600;
        min-height: 48px; /* 2 lines */
        max-height: 48px;
        overflow: hidden;
    }

/* DATE (fixed height) */
.news-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    min-height: 20px;
    max-height: 20px;
}

/* DESCRIPTION (ellipsis + fixed height) */
.news-summary {
    flex-grow: 1;
    margin-bottom: 15px;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BUTTON (aligned bottom) */
.news-card-body .btn {
    margin-top: auto;
}

.alert-info {
    background: #eef7ff;
    border: 1px solid #cfe4ff;
    color: #004a80;
    font-size: 1.1rem;
    padding: 20px;
    border-radius: 8px;
}

.function-room-box {
    background: #f5f7fa;
    border: 1px solid #dce3eb;
}

.news-details-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-details-date {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

.event-details-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.half-img {
    width: 100%;
    height: 500px; /* choose your height */
    object-fit: cover; /* or contain */
    object-position: top center;
    display: block;
}