:root {
    --iaem-dark-blue: #12345b;
    --iaem-sky-blue: #4aa8d8;
    --iaem-gold: #c9a646;
}


/* =====================================================
   IAEM BACKGROUNDS
===================================================== */

.bg-iaem {
    background-color: var(--iaem-dark-blue) !important;
}

.bg-iaem-light {
    background-color: #f2f8fc !important;
}


/* =====================================================
   IAEM NAVBAR
===================================================== */

.iaem-navbar {
    background-color: var(--iaem-dark-blue);
}


/* ACTIVE NAVIGATION */

.iaem-navbar .nav-link.active {
    color: #fff;
    font-weight: 600;
}


/* NAVBAR HOVER */

.iaem-navbar .nav-link:hover {
    color: var(--iaem-gold);
}


/* DROPDOWN */

.iaem-navbar .dropdown-item {
    padding: 9px 16px;
}

.iaem-navbar .dropdown-item:hover {
    background-color: #f1f5f9;
}

.iaem-topbar {
    background-color: var(--iaem-sky-blue);
    color: #ffffff;
    padding: 3px 0;
}

.iaem-contact-info {
    font-size: 0.8rem;
}

.iaem-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iaem-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    color: #ffffff;

    font-size: 15px;

    text-decoration: none;

    transition: all 0.2s ease;
}

.iaem-social-icons a:hover {
    color: #0b2a4a;
    transform: translateY(-1px);
}
/* =====================================================
   HERO
===================================================== */

.hero-section {
    background-color: var(--iaem-dark-blue);
    color: #fff;
}


/* =====================================================
   HOMEPAGE HERO
===================================================== */

.iaem-hero {
    background-color: var(--iaem-dark-blue);
    color: #fff;

    padding: 45px 0 40px;

    text-align: center;

    position: relative;
}


/* HERO CONTENT */

.iaem-hero-content {
    max-width: 850px;
    margin: 0 auto;
}


/* MINISTRY NAME */

.iaem-hero-label {
    display: block;

    color: var(--iaem-gold);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}


/* MAIN TITLE */

.iaem-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 12px;
}


/* GOLD ACCENT */

.iaem-hero-accent {
    width: 60px;
    height: 4px;

    background-color: var(--iaem-gold);

    border-radius: 5px;

    margin: 0 auto 18px;
}


/* HERO DESCRIPTION */

.iaem-hero-text {
    max-width: 720px;

    margin: 0 auto 24px;

    font-size: 1.05rem;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.88);
}


/* HERO BUTTONS */

.iaem-hero-buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}


/* HERO LOGO */

.iaem-hero-logo-wrapper {
    margin-top: 25px;

    display: flex;

    justify-content: center;
}


/* LOGO CONTAINER */

.iaem-hero-logo {
    width: 125px;
    height: 125px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    border-radius: 50%;

    padding: 12px;

    border: 3px solid var(--iaem-gold);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2);
}


/* LOGO */

.iaem-hero-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =====================================================
   GOLD BUTTON
===================================================== */



/* =====================================================
   GOLD BUTTON
===================================================== */

.btn-iaem-gold {
    background-color: var(--iaem-gold);
    border-color: var(--iaem-gold);
    color: #fff;
}

.btn-iaem-gold:hover {
    background-color: #b18f35;
    border-color: #b18f35;
    color: #fff;
}


/* =====================================================
   GOLD NAVBAR / HERO DIVIDER
===================================================== */

.iaem-gold-divider {
    height: 5px;

    background: linear-gradient(
        to right,
        var(--iaem-gold),
        #e0c36a,
        var(--iaem-gold)
    );

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}


/* =====================================================
   IAEM CARDS
===================================================== */

.iaem-card {
    border-top: 3px solid var(--iaem-gold) !important;
}


/* =====================================================
   IAEM COLOR UTILITIES
===================================================== */

.bg-iaem-sky {
    background-color: var(--iaem-sky-blue) !important;
}

.text-iaem-blue {
    color: var(--iaem-dark-blue) !important;
}

.text-iaem-sky {
    color: var(--iaem-sky-blue) !important;
}

.text-iaem-gold {
    color: var(--iaem-gold) !important;
}


/* =====================================================
   IAEM DARK GOLD CARDS
===================================================== */

.iaem-gold-card {
    background: linear-gradient(
        135deg,
        #b8943d,
        var(--iaem-gold)
    ) !important;

    color: #fff !important;

    border: 1px solid #e0c36a !important;

    border-radius: 12px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* GOLD CARD HEADINGS */

.iaem-gold-card h3,
.iaem-gold-card h4 {
    color: #fff !important;
}


/* GOLD CARD ICONS */

.iaem-gold-card i {
    color: #fff !important;
}


/* GOLD CARD TEXT */

.iaem-gold-card p,
.iaem-gold-card span {
    color: rgba(255, 255, 255, 0.92) !important;
}


/* GOLD CARD HOVER */

.iaem-gold-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0.75rem 1.5rem rgba(0, 0, 0, 0.18) !important;
}


/* GOLD CARD TEXT */

.iaem-gold-card p,
.iaem-gold-card span {
    color: rgba(255, 255, 255, 0.92) !important;
}


/* GOLD CARD HOVER */

.iaem-gold-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.iaem-gold-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* IMAGE WRAPPER */

.gallery-image-wrapper {
    position: relative;

    width: 100%;
    height: 250px;

    background: linear-gradient(
        135deg,
        #eaf6fc,
        #f8fbfd
    );

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}




/* IMAGE */

.gallery-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition: transform 0.4s ease;
}




/* OVERLAY */

.gallery-overlay {
    position: absolute;
    inset: 0;

    background: rgba(18, 52, 91, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    transition: opacity 0.3s ease;
}


/* ZOOM IMAGE */

.gallery-card:hover .gallery-image {
    transform: scale(1.03);
}

/* SHOW OVERLAY */

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}


/* ZOOM ICON */

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}


/* CARD HOVER */

.gallery-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0.75rem 1.5rem rgba(18, 52, 91, 0.18) !important;
}


/* =====================================================
   GALLERY TEXT
===================================================== */

/* DEFAULT TITLE */

.gallery-card h3 {
    color: var(--iaem-dark-blue) !important;
    transition: color 0.25s ease;
}


/* HOVER TITLE → RED */

.gallery-card:hover .gallery-title {
    color: #dc3545 !important;
}


/* DEFAULT DESCRIPTION */

.gallery-card p {
    color: #6c757d !important;
    transition: color 0.25s ease;
}


/* HOVER DESCRIPTION → SKY BLUE */

.gallery-card:hover p {
    color: var(--iaem-sky-blue) !important;
}



/* =====================================================
   IAEM HOMEPAGE IMAGE SLIDESHOW
===================================================== */

.iaem-slideshow {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    background: #e9eef2;
    box-shadow: 0 0.75rem 1.5rem rgba(18, 52, 91, 0.18);
}


/* =====================================================
   SLIDE
===================================================== */

.iaem-slide {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}


/* ONLY ACTIVE SLIDE IS VISIBLE */

.iaem-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}


/* =====================================================
   SLIDE IMAGE
===================================================== */

.iaem-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transform: scale(1);

    transition:
        transform 5s ease;
}


/* SUBTLE ZOOM */

.iaem-slide.active img {
    transform: scale(1.05);
}


/* =====================================================
   CAPTION
===================================================== */

.iaem-slide-caption {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 4;

    padding: 25px 30px 45px;

    background:
        linear-gradient(
            to top,
            rgba(18, 52, 91, 0.95),
            rgba(18, 52, 91, 0.70),
            transparent
        );

    color: #fff;
}


/* TITLE */

.iaem-slide-caption h3 {
    margin: 0 0 5px;

    color: var(--iaem-gold) !important;

    font-size: 1.25rem;
    font-weight: 700;
}


/* DESCRIPTION */

.iaem-slide-caption p {
    margin: 0;

    max-width: 650px;

    color: #fff !important;

    font-size: 0.95rem;
    line-height: 1.5;
}


/* =====================================================
   PREVIOUS / NEXT BUTTONS
===================================================== */

.iaem-slide-prev,
.iaem-slide-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(18, 52, 91, 0.78);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.iaem-slide-prev {
    left: 15px;
}


.iaem-slide-next {
    right: 15px;
}


.iaem-slide-prev:hover,
.iaem-slide-next:hover {
    background: var(--iaem-gold);

    transform:
        translateY(-50%)
        scale(1.08);
}


/* =====================================================
   SLIDE INDICATORS
===================================================== */

.iaem-slide-indicators {
    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    z-index: 10;

    display: flex;

    gap: 7px;
}


.iaem-slide-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.iaem-slide-dot.active {
    background: var(--iaem-gold);

    transform: scale(1.3);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .iaem-slideshow {
        height: 300px;
        border-radius: 12px;
    }

    .iaem-slide-caption {
        padding:
            20px
            20px
            42px;
    }

    .iaem-slide-caption h3 {
        font-size: 1.05rem;
    }

    .iaem-slide-caption p {
        font-size: 0.85rem;
    }

    .iaem-slide-prev,
    .iaem-slide-next {
        width: 36px;
        height: 36px;
    }

    .iaem-slide-prev {
        left: 10px;
    }

    .iaem-slide-next {
        right: 10px;
    }

}


.news-placeholder {
    height: 100%;
    min-height: 230px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #5dade2
    );

    color: #fff;
}

.news-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
}

.placeholder-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.placeholder-tagline {
    font-size: .85rem;
    margin-top: 5px;
    opacity: .9;
}


/* =====================================================
   PROGRAM IMAGE HOVER ZOOM
===================================================== */

.program-image-wrapper {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}
.program-image {
    transition: transform 0.35s ease;
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

.program-image-wrapper:hover {
    z-index: 20;
}

.program-image-wrapper:hover .program-image {
    transform: scale(2);
    z-index: 20;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}