/* =============================================
   Ministry Website - Main Stylesheet
   ============================================= */

:root {
    --primary: #176b62;
    --primary-dark: #10443f;
    --primary-light: #2c8c7b;
    --secondary: #b94f42;
    --accent: #d77952;
    --gold: #e8b84a;
    --light-bg: #f3f8f5;
    --page-bg: #edf5f1;
    --surface-bg: #f8fbf9;
    --text-dark: #1f302f;
    --text-muted: #5d716f;
    --border: #d7e5df;
    --white: #ffffff;
    --body-font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    background: var(--page-bg);
    font-size: 15px;
    line-height: 1.8;
}

/* ---- TOP BAR ---- */
.top-bar {
    background: var(--primary-dark);
    color: #d4ece7;
    font-size: 12.5px;
    padding: 5px 0;
}
.top-bar .top-link {
    color: #d4ece7;
    background: none;
    border: 0;
    text-decoration: none;
    margin: 0 4px;
    padding: 0;
    font: inherit;
    transition: color .2s;
    cursor: pointer;
}
.top-bar .top-link:hover,
.top-bar .top-link[aria-pressed="true"] { color: var(--gold); }
.google-translate-widget { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt { display: none !important; }
body { top: 0 !important; }
.top-social {
    color: #d4ece7;
    margin-left: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}
.top-social:hover { color: var(--gold); }

/* ---- MAIN HEADER ---- */
.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 18px 0;
    border-bottom: 4px solid var(--gold);
}
.logo-circle {
    background: #fff;
    border-radius: 50%;
    width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.55);
    padding: 8px;
    flex: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
}
.logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.iau-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.iau-header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
.iau-header-link:hover { color: var(--gold); }
.iau-header-logo {
    width: 68px;
    height: 86px;
    object-fit: contain;
}
.iau-header-qr {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 2px solid #000;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
}
.iau-page-card {
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,44,43,0.08);
}
.iau-page-copy { color: var(--text-dark); line-height: 1.9; }
.iau-report-list { color: var(--text-dark); line-height: 1.9; padding-left: 1.25rem; margin-bottom: 0; }
.iau-report-list li::marker { color: var(--primary); }
.iau-contact { display: grid; gap: 8px; color: var(--text-dark); font-style: normal; overflow-wrap: anywhere; }
.iau-contact a { color: var(--primary-dark); text-decoration: none; }
.iau-contact a:hover { text-decoration: underline; }
.iau-qr-panel {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}
.iau-qr-image {
    display: block;
    width: min(100%, 340px);
    height: auto;
    margin: 0 auto;
    background: #fff;
    border: 8px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(16,44,43,0.12);
}
.iau-ethics-pdf {
    display: block;
    width: 100%;
    height: min(80vh, 900px);
    min-height: 520px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light-bg);
}
.department-link-card {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 16px;
    padding: 22px;
    color: var(--text-dark);
    text-decoration: none;
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16,44,43,0.06);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.department-link-card:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(16,44,43,0.12);
    transform: translateY(-2px);
}
.department-link-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: none;
    place-items: center;
    color: #fff;
    background: var(--department-color);
    border-radius: 12px;
    font-size: 22px;
}
.department-link-name { flex: 1; font-weight: 600; }
.department-link-arrow { color: var(--primary); }
.section-info-card {
    overflow: hidden;
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16,44,43,0.07);
    transition: transform .2s, box-shadow .2s;
}
.section-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16,44,43,0.12);
}
.section-accordion { display: grid; gap: 12px; }
.section-accordion-item {
    overflow: hidden;
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16,44,43,0.06);
}
.section-accordion-heading { margin: 0; }
.section-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
}
.section-accordion-button {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
    padding: 14px 18px;
    color: var(--primary-dark);
    background: #eaf4f1;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
}
.section-accordion-button:not(.collapsed) {
    color: var(--primary-dark);
    background: #eaf4f1;
    box-shadow: none;
}
.section-accordion-button:hover { background: #dcece7; }
.section-accordion-button::after { filter: none; }
.section-accordion-button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}
.section-info-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: none;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 10px;
    font-size: 16px;
}
.section-info-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}
.section-info-body { display: grid; gap: 18px; padding: 24px; }
.section-info-block h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 9px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}
.section-info-block h3 i { color: var(--gold); }
.section-info-block p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.section-duties {
    padding: 16px 18px;
    background: var(--light-bg);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
}
.contact-map {
    overflow: hidden;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16,44,43,0.06);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 6px;
}

.site-title-block { color: white; }
.republic-name { font-size: 12px; color: #bfe0d9; letter-spacing: 1px; }
.ministry-name {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 2px;
    line-height: 1.4;
}
.ministry-name-en { font-size: 12px; color: #c4e3de; }

/* ---- NAVIGATION ---- */
.main-nav {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.main-nav .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-size: 14px;
    padding: 14px 15px;
    border-bottom: 3px solid transparent;
    transition: all .2s;
    font-weight: 500;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--gold);
    background: rgba(0,0,0,0.12);
}
.main-nav .dropdown-menu {
    border: none;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    animation: dropFade .2s ease;
}
@media (min-width: 992px) {
    .main-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
@keyframes dropFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.main-nav .dropdown-item {
    font-size: 14px;
    padding: 9px 20px;
    color: var(--text-dark);
    transition: background .2s;
}
.main-nav .dropdown-item:hover { background: var(--light-bg); color: var(--primary); }
.nav-search {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 160px;
}
.nav-search::placeholder { color: rgba(255,255,255,0.7); }
.nav-search:focus { background: rgba(255,255,255,0.25); color: white; box-shadow: none; }

/* ---- HERO SLIDER ---- */
.hero-slider {
    position: relative;
    border-bottom: 8px solid rgba(44,140,123,0.38);
    box-shadow: 0 9px 12px -5px rgba(44,140,123,.65);
}
.hero-slider .carousel-item { height: 480px; background: var(--primary-dark); }
.hero-slider .carousel-fade .carousel-item { transition: opacity 1.6s ease-in-out; }
.hero-slide-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
    transform: scale(1.04);
}
.hero-slider .carousel-item.active:nth-child(odd) .hero-slide-img {
    animation: hero-zoom-in 8s ease-in-out both;
}
.hero-slider .carousel-item.active:nth-child(even) .hero-slide-img {
    animation: hero-zoom-out 8s ease-in-out both;
}
@keyframes hero-zoom-in {
    from { transform: scale(1.04); }
    to { transform: scale(1.13); }
}
@keyframes hero-zoom-out {
    from { transform: scale(1.13); }
    to { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider .carousel-fade .carousel-item { transition-duration: 0.01ms; }
    .hero-slider .carousel-item.active .hero-slide-img { animation: none; }
}
.hero-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.hero-placeholder.bg1 { background: linear-gradient(135deg, #176b62, #10443f); }
.hero-placeholder.bg2 { background: linear-gradient(135deg, #286a4d, #174b3a); }
.hero-placeholder.bg3 { background: linear-gradient(135deg, #9b5948, #713f37); }
.carousel-caption {
    background: rgba(0,0,0,0.45);
    border-radius: 10px;
    padding: 20px 30px;
    bottom: 40px;
    left: 10%; right: 10%;
    text-align: left;
    backdrop-filter: blur(4px);
}
.carousel-caption h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.carousel-caption p { font-size: 14px; opacity: 0.9; }
.carousel-badge {
    background: var(--gold);
    color: #333;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 2px solid rgba(255,255,255,0.8);
}
.carousel-indicators .active { background: var(--gold); }

/* ---- NOTICE TICKER ---- */
.notice-ticker {
    background: var(--primary-dark);
    color: white;
    padding: 8px 0;
    overflow: hidden;
}
.ticker-label {
    background: var(--secondary);
    color: white;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-wrap {
    overflow: hidden;
    flex: 1;
    margin-left: 15px;
}
.ticker-items {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ticker-items:hover { animation-play-state: paused; }
.ticker-item {
    font-size: 13px;
    padding: 0 40px;
    color: #d4ece7;
}
.ticker-item a { color: var(--gold); text-decoration: none; }
@keyframes ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ---- SECTION TITLES ---- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 70px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-title p { color: var(--text-muted); font-size: 15px; margin-top: 8px; }

/* ---- MINISTRY OFFICIALS ---- */
.officials-heading-strip {
    padding: 16px 16px;
    color: #fff;
    background: var(--primary);
    text-align: center;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.5;
}
.officials-section { width: 100%; overflow-x: auto; background: #c8ded5; }
.officials-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    min-width: 100%;
    padding: 14px;
}
.official-card {
    min-width: 0;
    overflow: hidden;
    background: var(--surface-bg);
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(16,44,43,.1);
    transition: transform .25s ease, box-shadow .25s ease;
}
.official-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(16,44,43,.22);
}
.official-photo-link { display: block; cursor: zoom-in; }
.official-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 25%;
    border-bottom: 3px solid var(--gold);
}
.official-photo-modal .modal-content {
    background: transparent;
    border: 0;
}
.official-photo-modal .modal-header {
    padding: 0 0 8px;
    border: 0;
}
.official-photo-modal .modal-body {
    padding: 0;
    text-align: center;
}
.official-photo-enlarged {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.official-details {
    min-height: 62px;
    padding: 7px 6px 8px;
    text-align: center;
    background: var(--surface-bg);
}
.official-details h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--primary-dark);
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 3px;
}
.official-details p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--text-muted);
    font-size: clamp(9px, .8vw, 11px);
    line-height: 1.35;
    margin: 0;
}
@media (max-width: 991px) {
    .officials-grid { min-width: 960px; }
}
@media (max-width: 575px) {
    .officials-grid { min-width: 960px; }
    .official-details { min-height: 58px; padding: 6px 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .official-card { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
    .official-photo { transition: none; }
}

/* ---- VISION MISSION ---- */
.vision-section { background: var(--light-bg); padding: 60px 0; }
.vm-card {
    background: var(--surface-bg);
    border-radius: 12px;
    padding: 35px 30px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(23,107,98,0.1);
    border-top: 4px solid var(--primary);
    transition: transform .3s, box-shadow .3s;
}
.vision-section .row > div:first-child .vm-card {
    background: #e2f0eb;
    outline: 1px solid rgba(23,107,98,.25);
    outline-offset: -1px;
}
.vision-section .row > div:last-child .vm-card {
    background: #f6e9e5;
    outline: 1px solid rgba(185,79,66,.22);
    outline-offset: -1px;
}
.vm-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(23,107,98,0.15); }
.vm-icon {
    width: 65px; height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 26px;
}
.vm-card h3 {
    font-family: Georgia, serif;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}
/* ---- STATS BAR ---- */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
}
.stat-item { text-align: center; color: white; }
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    display: block;
    line-height: 1.1;
}
.stat-label { font-size: 13px; opacity: 0.85; margin-top: 5px; }
.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    height: 60px;
    margin: auto;
}

/* ---- NEWS CARDS ---- */
.news-section { padding: 60px 0; }
.news-card {
    background: var(--surface-bg);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.14); }
.news-card-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.news-card-img-placeholder {
    height: 180px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    color: rgba(255,255,255,0.7);
}
.bg-news1 { background: linear-gradient(135deg, #176b62, #2c8c7b); }
.bg-news2 { background: linear-gradient(135deg, #286a4d, #4a9367); }
.bg-news3 { background: linear-gradient(135deg, #9b5948, #c7795f); }
.news-card .card-body { padding: 18px; }
.news-date { font-size: 12px; color: var(--text-muted); }
.news-cat-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.badge-news { background: #e1f1ec; color: #14584f; }
.badge-event { background: #dcefe2; color: #256c50; }
.badge-notice { background: #fef9e7; color: #b7770d; }
.news-card .card-title { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.news-card .card-title a { text-decoration: none; color: inherit; }
.news-card .card-title a:hover { color: var(--primary); }

/* ---- DEPARTMENTS SECTION ---- */
.dept-section { background: var(--light-bg); padding: 60px 0; }
.dept-card {
    background: var(--surface-bg);
    border-radius: 10px;
    padding: 25px 20px;
    height: 100%;
    border: 1px solid var(--border);
    transition: all .3s;
    text-align: center;
}
.dept-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(23,107,98,0.12);
    transform: translateY(-4px);
}
.dept-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 22px;
    transition: transform .3s;
}
.dept-card:hover .dept-icon { transform: rotate(10deg) scale(1.1); }
.dept-card h5 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.dept-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---- DOWNLOADS SECTION ---- */
.download-item {
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex; align-items: center;
    margin-bottom: 12px;
    transition: all .2s;
}
.download-item:hover { border-color: var(--primary-light); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.dl-icon {
    width: 45px; height: 45px;
    background: #fff0eb;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 15px;
}
.dl-info { flex: 1; }
.dl-info h6 { font-size: 14px; font-weight: 600; margin: 0; color: var(--text-dark); }
.dl-info small { color: var(--text-muted); font-size: 12px; }
.dl-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.dl-btn:hover { background: var(--primary-dark); color: white; }

/* ---- PAGE HERO BANNER ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 400px; height: 100%;
    background-image:
        radial-gradient(rgba(255,255,255,0.3) 1.2px, transparent 1.6px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Ccircle cx='350' cy='50' r='120' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='300' cy='250' r='80' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    background-size: 22px 22px, 400px 100%;
    background-position: 0 0, 0 0;
    animation: page-hero-dot-flow 12s linear infinite;
}
@keyframes page-hero-dot-flow {
    to { background-position: 22px 22px, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero::before { animation: none; }
}
.page-hero-pointer-dot {
    position: absolute;
    z-index: 2;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 10px rgba(255,255,255,0.45);
    pointer-events: none;
    animation: page-hero-dot-trail 850ms ease-out forwards;
}
@keyframes page-hero-dot-trail {
    from {
        opacity: .9;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(calc(-50% + var(--dot-drift-x)), calc(-50% + var(--dot-drift-y))) scale(.15);
    }
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: Georgia, serif; font-size: 28px; font-weight: 700; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 13px; }
.page-hero .breadcrumb-item a { color: var(--gold); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: white; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- CONTACT PAGE ---- */
.contact-card {
    background: var(--surface-bg);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.contact-icon-box {
    width: 55px; height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(44,140,123,0.2);
}

/* ---- ORGANIZATION CHART ---- */
.org-chart { overflow-x: auto; padding: 20px 0; }
.org-node {
    display: inline-block;
    background: var(--surface-bg);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
    min-width: 160px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.org-top .org-node { background: var(--primary); color: white; }
.org-line {
    width: 2px;
    background: var(--primary);
    height: 30px;
    margin: 0 auto;
}
.org-horizontal { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ---- CARDS GENERAL ---- */
.card {
    --bs-card-bg: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ---- FOOTER ---- */
.main-footer { background: #102c2b; color: #b6ccc8; }
.footer-top { padding: 50px 0 30px; }
.footer-heading {
    display: flex;
    align-items: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    margin-right: 10px;
}
.footer-text { font-size: 13.5px; line-height: 1.9; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: #b6ccc8;
    text-decoration: none;
    font-size: 13.5px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact p { font-size: 13.5px; margin-bottom: 8px; }
.footer-social {
    display: inline-flex;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    align-items: center; justify-content: center;
    color: #b6ccc8;
    text-decoration: none;
    margin-right: 6px;
    transition: all .2s;
    font-size: 14px;
}
.footer-social:hover { background: var(--primary); color: white; }
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-link { color: #b6ccc8; text-decoration: none; margin: 0 6px; }
.footer-bottom-link:hover { color: var(--gold); }

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: background .2s;
}
.back-to-top:hover { background: var(--primary-dark); color: white; }
.back-to-top.show { display: flex; }

/* ---- ALERT / FLASH ---- */
.alert { border-radius: 8px; font-size: 14px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .ministry-name { font-size: 16px; }
    .hero-slider .carousel-item { height: 300px; }
    .carousel-caption { left: 5%; right: 5%; bottom: 20px; padding: 15px; }
    .carousel-caption h3 { font-size: 16px; }
    .stat-number { font-size: 26px; }
    .page-hero h1 { font-size: 20px; }
    .top-bar .col-md-8 { font-size: 11px; }
}

@media (max-width: 576px) {
    .logo-circle { width: 72px; height: 72px; padding: 6px; }
    .iau-header-actions { gap: 2px; }
    .iau-header-link { font-size: 9px; }
    .iau-header-logo { width: 32px; height: 46px; }
    .iau-header-qr { width: 36px; height: 36px; padding: 2px; }
    .iau-qr-panel { padding: 16px; }
    .iau-ethics-pdf { height: 70vh; min-height: 420px; }
    .ministry-name { font-size: 14px; }
    .page-hero { padding: 36px 0 30px; }
    .page-hero h1 { font-size: 18px; }
}

/* ================= Galleries ================= */
.gallery-grid { margin-top: 10px; }

.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
}

.gallery-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gallery-thumb:focus img { outline: 3px solid var(--gold); }

.gallery-lb-btn {
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1055;
}

.gallery-lb-btn:hover { background: #fff; color: var(--primary-dark); }

.gallery-lb-img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}
