/* ============================================================
   MINISTRY SINGLE PAGE CSS
   assets/css/ministry.css
   ============================================================ */

/* ── MINISTRY HERO ──────────────────────────────────────────── */
.ministry-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9rem 1.5rem 5rem;
    color: #fff;
    overflow: hidden;
}

.ministry-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 8s ease;
}

.ministry-hero:hover .ministry-hero-bg { transform: scale(1.03); }

.ministry-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* color set inline per ministry */
}

.ministry-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.ministry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ministry-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.ministry-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.ministry-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 1rem;
}

.ministry-breadcrumb a { color: #fff; text-decoration: none; }
.ministry-breadcrumb a:hover { text-decoration: underline; }
.ministry-breadcrumb span { opacity: 0.6; }

/* ── MINISTRY ABOUT SECTION ─────────────────────────────────── */
.ministry-about {
    padding: 5rem 1.5rem;
    background: #fff;
}

.ministry-about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.ministry-about-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.ministry-about-text h2 .highlight {
    background: linear-gradient(135deg, var(--primary, #f97316), #c2410c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ministry-about-text p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ── SCHEDULE CARD ──────────────────────────────────────────── */
.ministry-schedule-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.ministry-schedule-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ministry-schedule-card h3 i {
    font-size: 1.3rem;
    color: var(--primary, #f97316);
}

.schedule-items { display: flex; flex-direction: column; gap: 1rem; }

.schedule-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.schedule-item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ministry-color, #f97316);
    flex-shrink: 0;
    margin-top: 4px;
}

.schedule-item-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-item-detail {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}

.ministry-leader-tag {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(194,65,12,0.04));
    border-radius: 12px;
    border: 1px solid rgba(249,115,22,0.15);
}

.ministry-leader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ministry-color, #f97316), #c2410c);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.ministry-leader-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.ministry-leader-info span {
    font-size: 0.78rem;
    color: #64748b;
}

/* ── GALLERY SECTION ────────────────────────────────────────── */
.ministry-gallery-section {
    padding: 5rem 1.5rem;
    background: #f8fafc;
}

.ministry-gallery-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ministry-gallery-section .section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.ministry-gallery-section .section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.ministry-gallery-section .section-heading p {
    color: #64748b;
    font-size: 1rem;
}

.ministry-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ministry-gallery-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: zoom-in;
    background: #e2e8f0;
}

.ministry-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ministry-gallery-item:hover img { transform: scale(1.07); }

.ministry-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.ministry-gallery-item:hover .ministry-gallery-item-overlay { opacity: 1; }

.ministry-gallery-item-overlay span {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
}

.ministry-gallery-empty {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.ministry-gallery-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── CTA SECTION ────────────────────────────────────────────── */
.ministry-cta {
    padding: 5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
}

.ministry-cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.ministry-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.ministry-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ministry-color, #f97316);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}

.ministry-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249,115,22,0.45);
}

/* ── NAV DROPDOWN ───────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown > a::after {
    /* Disable the underline pseudo-element for the parent link */
    display: none !important;
}

.nav-dropdown-arrow {
    display: inline-flex;
    font-size: 0.8rem;
    transition: transform 0.25s;
    line-height: 1;
    margin-top: 1px;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 220px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 500;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
}

/* Arrow tip */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(255,255,255,0.1);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem !important;
    border-radius: 9px !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.75) !important;
    transition: background 0.18s, color 0.18s, transform 0.18s !important;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
    transform: translateX(3px) !important;
}

.nav-dropdown-menu a::after { display: none !important; }

.nav-dropdown-menu a i {
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--accent-gold, #f5c518);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.4rem 0;
}

/* ── MOBILE DROPDOWN ────────────────────────────────────────── */
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.mobile-dropdown-toggle:hover {
    background: rgba(0,71,171,0.25);
    color: #fff;
}

.mobile-dropdown-toggle i.bx-crown,
.mobile-dropdown-toggle i.toggle-icon {
    color: var(--accent-gold, #f5c518);
    font-size: 1.1rem;
}

.mobile-dropdown-toggle .toggle-icon {
    transition: transform 0.25s;
}

.mobile-dropdown-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 1.5rem;
    margin-bottom: 0.2rem;
}

.mobile-submenu.open { display: flex; }

.mobile-submenu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    transition: background 0.18s, color 0.18s;
}

.mobile-submenu a:hover {
    background: rgba(0,71,171,0.2);
    color: #fff;
}

.mobile-submenu a i { font-size: 0.95rem; color: var(--accent-gold, #f5c518); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ministry-about-inner {
        grid-template-columns: 1fr;
    }
    .ministry-schedule-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .ministry-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .ministry-hero { padding: 7rem 1.25rem 4rem; }
}
