
    :root {
        --doh-primary: #004a2f;
        --doh-secondary: #0fad41;
        --ui-blue: #2563eb;
        --glass: rgba(255, 255, 255, 0.95);
    }

    .carousel-section {
        padding: 60px 0;
        background: #f8fafc;
    }

    .featured-title {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--doh-primary);
        margin-bottom: 1rem;
    }

      .carousel-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border: 1px solid rgba(0,0,0,0.05);
        cursor: pointer;
        height: 100%;
        position: relative;
    }

    .carousel-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .carousel-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: 0.5s;
    }

    .carousel-card:hover img {
        scale: 1.05;
    }

    .carousel-info {
        padding: 1.5rem;
    }

    .carousel-info h4 {
        font-weight: 700;
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        color: #1e293b;
    }

    .doc-title-banner {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }

    .btn-view-modern {
        background: var(--doh-primary);
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        transition: 0.3s;
    }

    .btn-view-modern:hover {
        background: var(--doh-secondary);
        transform: translateY(-2px);
    }

    .carousel-inner-tight {
        max-width: 800px; 
        margin: 0 auto;   /
    }

    .row-tight {
        --bs-gutter-x: 1rem; 
    }

    .carousel-card {
        max-width: 380px;
        margin: 0 auto;
    }
    .carousel-info {
        padding: 1.5rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        /* This ensures the title stays at the top and metadata stays at the bottom */
        justify-content: space-between; 
        min-height: 180px; /* Adjust this value if your titles are even longer */
    }

    
    /* Target the metadata specifically to ensure it doesn't overlap */
    .carousel-info p {
        margin-top: auto; /* Pushes the 'Department of Health' text to the very bottom */
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.05); /* Optional: adds a nice separator */
    }

    .agency-section {
        background: #ffffff;
        padding: 40px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .agency-label {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: 0.05em;
        margin-bottom: 25px;
        display: block;
    }

    .logo-grid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    .logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        transition: transform 0.2s ease;
    }

    .logo-link:hover {
        transform: translateY(-3px);
    }

    .agency-logo {
        height: 80px;
        width: auto;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .logo-link:hover .agency-logo {
        filter: grayscale(0%);
        opacity: 1;
    }

    @media (max-width: 768px) {
        .agency-logo { height: 35px; }
        .logo-grid { gap: 20px; }
    }
        /* Container for the image cards */
    .image-only-card {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 3/4; /* Maintains a book/manual shape */
        cursor: pointer;
        border: none;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .image-only-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    /* Hover Zoom Effect */
    .image-only-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
    }

    .image-only-card:hover img {
        transform: scale(1.1);
    }

    /* View Overlay (Appears on Hover) */
    .view-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.2));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        color: white;
    }

    .view-overlay ion-icon {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .view-overlay span {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .image-only-card:hover .view-overlay {
        opacity: 1;
    }
