:root {
    --primary-color: #0056b3;
    /* Deep Blue */
    --secondary-color: #17a2b8;
    /* Teal */
    --accent-color: #ffc107;
    /* Warm Yellow */
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --white: #ffffff;
}

html {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== Image Carousel Styles ===== */
.carousel-section {
    position: relative;
    overflow: hidden;
}

#mainCarousel {
    width: 100%;
}

.carousel-item {
    position: relative;
    height: 500px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease-out;
}

.carousel-item.active .carousel-image {
    animation: zoomIn 8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 86, 179, 0.4) 0%,
            rgba(23, 162, 184, 0.3) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    padding-bottom: 3rem;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.carousel-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px);
    border-radius: 50%;
    margin: 0 1.5rem;
    opacity: 1 !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.carousel-section:hover .carousel-control-prev,
.carousel-section:hover .carousel-control-next {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 25px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Carousel */
@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-title {
        font-size: 2.2rem;
    }

    .carousel-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-title {
        font-size: 1.6rem;
    }

    .carousel-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }

    .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
}

.brand-title {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.section-title {
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

/* Enhancements for Officer Cards */
.responsibility-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
}

.officer-card {
    background: #ffffff;
    border-radius: 15px;
}

.officer-img {
    transition: transform 0.3s ease;
}

.officer-card:hover .officer-img {
    transform: scale(1.05);
}

/* ===== Digital Calendar Styles ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.calendar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.calendar-date-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.calendar-day-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.calendar-month-year {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.calendar-details {
    padding: 1.5rem;
}

.calendar-holiday-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calendar-day-name {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.calendar-day-name i {
    margin-right: 0.5rem;
}

/* ===== Events Page Styles ===== */
.event-hero {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.event-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.event-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3rem;
    color: white;
}

.event-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.event-card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.event-card img,
.event-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upcoming-event-item {
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-date-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== Leadership Section ===== */
.leader-card {
    transition: all 0.3s ease;
    height: 100%;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.leader-img-wrapper img {
    border: 5px solid #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Latest Events Section ===== */
.event-hover-card {
    transition: all 0.3s ease;
}

.event-hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.event-hover-card:hover img {
    transform: scale(1.05);
}

.event-hover-card img {
    transition: transform 0.5s ease;
}

.event-date-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Scroll to Top Button ===== */
#btn-back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    display: none;
    z-index: 99999 !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#btn-back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}