﻿


/* ===================== Carousel (FULL RESPONSIVE – NO CUTTING) ===================== */
.carousel-item img {
    width: 100%;
    height: auto; /* ⭐ No cutting */
    max-height: 500px; /* Desktop */
    object-fit: cover;
    margin-top: 32px;
}



/* Tablet */
@media (max-width: 992px) {
    .carousel-item img {
        max-height: 380px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .carousel-item img {
        max-height: 260px;
        margin-top: 57px;
    }

}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    max-width: 70%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

    .carousel-caption h5 {
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    }

    .carousel-caption p {
        font-size: 1.1rem;
        color: #eee;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(50%) sepia(100%) saturate(5000%) hue-rotate(210deg) brightness(80%) contrast(120%);
    width: 4rem;
    height: 3rem;
}

/* ===================== Card Hover ===================== */
.hover-card,
.update-card,
.hover-3d,
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-card:hover,
    .update-card:hover,
    .hover-3d:hover,
    .hover-scale:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }

/* ===================== Section Headings ===================== */
.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 1rem;
    text-align: center;
}

    .section-heading::after {
        content: '';
        display: block;
        width: 50px;
        height: 3px;
        background-color: #42a5f5;
        margin: 6px auto 0;
        border-radius: 2px;
    }

/* ===================== Ministers Cards ===================== */
.minister-card img,
.member-img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.minister-card {
    padding: 1rem 1.25rem;
    max-width: 280px;
}

    .minister-card h5 {
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .minister-card p {
        color: #6c757d;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

/* Quote Card */
.quote-card {
    border-left: 5px solid #0d6efd;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    max-width: 500px;
    width: 100%;
    height: 240px;
}

    .quote-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .quote-card p::before,
    .quote-card p::after {
        content: "“";
        font-size: 1rem;
        color: #0d6efd;
        font-weight: 700;
    }

    .quote-card p::after {
        content: "”";
    }

/* ===================== Members Cards ===================== */
.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem 0;
}

.card-text {
    font-size: 0.85rem;
    color: #555;
}

/* Responsive Grid for Member Cards */
.card-small {
    flex: 1 0 12%;
    max-width: 12%;
}

@media (max-width: 1200px) {
    .card-small {
        flex: 1 0 14%;
        max-width: 14%;
    }
}

@media (max-width: 992px) {
    .card-small {
        flex: 1 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 768px) {
    .card-small {
        flex: 1 0 30%;
        max-width: 30%;
    }
}

@media (max-width: 576px) {
    .card-small {
        flex: 1 0 45%;
        max-width: 45%;
    }
}

/* ===================== Logo Scroll ===================== */
.logo-scroll {
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

.scroll-track {
    display: flex;
    gap: 20px;
}

.logo-card {
    flex: 0 0 auto;
    width: 160px;
    height: 100px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slide-in 5s linear infinite;
}

    .logo-card img {
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
    }

    .logo-card:hover {
        transform: scale(1.08);
    }

    .logo-card:nth-child(1) {
        animation-delay: 0s;
    }

    .logo-card:nth-child(2) {
        animation-delay: 1s;
    }

    .logo-card:nth-child(3) {
        animation-delay: 2s;
    }

    .logo-card:nth-child(4) {
        animation-delay: 3s;
    }

    .logo-card:nth-child(5) {
        animation-delay: 4s;
    }

@keyframes slide-in {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateX(0);
        opacity: 1;
    }

    90% {
        opacity: 0;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Responsive Logo Size */
@media (max-width: 992px) {
    .logo-card {
        width: 120px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .logo-card {
        width: 90px;
        height: 60px;
    }
}

/* ===================== Update Cards ===================== */
.update-card {
    border-radius: 16px;
    min-height: 220px;
    color: #333;
}

.card-content {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===================== About Section ===================== */
.about-section {
    background: var(--gov-light);
    padding: 3rem 0;
}

.about-card {
    background: #ffffff;
    border-radius: 15px;
    border-top: 5px solid var(--gov-deep);
    padding: 2rem 2.5rem;
    line-height: 1.8;
}

    .about-card:hover {
        box-shadow: 0 10px 25px rgba(11, 37, 70, 0.1);
        transform: translateY(-3px);
    }

/* ===================== Accordion ===================== */
.accordion-button {
    background-color: #f8fbff;
    font-size: 1.1rem;
    border-radius: 0.5rem !important;
}

    .accordion-button:not(.collapsed) {
        background-color: #dceeff;
        color: #0a58ca;
    }

.accordion-body {
    background-color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
}

.accordion-item {
    border-bottom: 1px solid #dee2e6;
}

.accordion {
    border-radius: 1rem;
    overflow: hidden;
}

.bg-project {
    background: linear-gradient(135deg, #e8f0fb 0%, #f4f8fb 100%);
}

.text-justify {
    text-align: justify;
}

.pm-image {
    max-height: 500px;
    object-fit: cover;
}


/*
<!-- Extra UX Hover Effects -->*/

.hover-shadow:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.hover-scale {
    transition: transform .4s ease;
}

    .hover-scale:hover {
        transform: scale(1.05);
    }

.transition {
    transition: all .3s ease-in-out;
}
