/*
 * Custom CSS for Lagos State Ministry of Physical Planning and Urban Development
 */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Header Styles */
.top-bar {
    font-size: 0.9rem;
}

.main-header {
    background-color: #f8f9fa;
}

.ministry-name {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    color: #006400;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
}

.ministry-subtitle {
    font-size: 0.75em;
    font-weight: 500;
    color: #004d00;
}

.ministry-office {
    font-size: 0.65em;
    font-weight: 600;
    color: #198754;
    display: block;
    margin-top: 0.25em;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Header responsive tweaks */
@media (max-width: 992px) {
    .logo img { height: 68px; }
}
@media (max-width: 768px) {
    .logo img { height: 56px; }
    .ministry-name { font-size: 1.1rem; }
}

/* Navigation */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Hero Carousel custom tweaks */
.hero-carousel .carousel-caption {
    bottom: auto;
    top: 20%;
    left: 0;
    right: 0;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: #006400;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: invert(1);
}

/* Promo Banner (Hero) */
.promo-carousel .carousel-indicators { display: flex; justify-content: center; gap: 8px; }
.promo-carousel .carousel-indicators [data-bs-target] { background-color: rgba(255,255,255,0.85); }
.promo-banner {
    background: linear-gradient(135deg, #006400 0%, #006400 60%, #5FC52E 100%);
    color: #fff;
    padding: 2rem 2.5rem;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.promo-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 70%);
}
.promo-eyebrow {
    font-size: 0.95rem;
    opacity: 0.85;
}
.promo-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: clamp(1.8rem, 4.6vw, 3.2rem);
    margin: 0.25rem 0 0.5rem;
}
.promo-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    font-weight: 600;
    margin: 0;
}
.promo-product {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}
.promo-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 1rem;
}
.promo-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
}
.promo-dots span.active { width: 22px; height: 6px; border-radius: 6px; }

.promo-control {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.65);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.promo-control:hover { background: rgba(0, 0, 0, 0.85); }
.promo-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 1.4rem;
}
.promo-carousel .carousel-control-prev { left: 18px; }
.promo-carousel .carousel-control-next { right: 18px; }

/* Controls around the sliding image */
.promo-image-col { position: relative; }
.promo-carousel .promo-image-col .carousel-control-prev { left: -10px; z-index: 2; }
.promo-carousel .promo-image-col .carousel-control-next { right: -10px; z-index: 2; }

@media (max-width: 992px) {
    .promo-product { max-height: 180px; }
}
@media (max-width: 768px) {
    .promo-banner { padding: 1.5rem; min-height: 240px; }
    .promo-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .promo-product { margin-top: 0.5rem; max-height: 160px; }
    .promo-carousel .promo-image-col .carousel-control-prev { left: -6px; }
.promo-carousel .promo-image-col .carousel-control-next { right: -6px; }
}

/* CTA banner replicates hero gradient */
.cta-banner {
    background: linear-gradient(135deg, #006400 0%, #006400 60%, #5FC52E 100%);
    color: #fff;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #006400;
    font-weight: 600;
}

/* Department Section */
.department-card {
    height: 100%;
}

.department-icon {
    font-size: 2.5rem;
    color: #006400;
    margin-bottom: 1rem;
}

/* Project Section */
.project-card img {
    height: 200px;
    object-fit: cover;
}

/* News Section */
.news-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form label {
    font-weight: 500;
}

.contact-info i {
    color: #006400;
    width: 25px;
}

/* Footer */
footer {
    background-color: #343a40;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: #fff;
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Intro Access Section */
.intro-title {
    letter-spacing: 0.2px;
    color: #212529; /* default dark text */
}
.text-brand {
    color: #006400;
}

/* Intro Title Staggered Animation */
.intro-animate .word {
    opacity: 0;
    transform: translateY(8px);
    display: inline-block;
    animation: riseFade 0.6s ease-out forwards;
}
.intro-animate .word:nth-child(1) { animation-delay: 0s; }
.intro-animate .word:nth-child(2) { animation-delay: 0.12s; }
.intro-animate .word:nth-child(3) { animation-delay: 0.24s; }
.intro-animate .word:nth-child(4) { animation-delay: 0.36s; }
.intro-animate .word:nth-child(5) { animation-delay: 0.48s; }

@keyframes riseFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-animate .word {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Motion Graphics Section */
.motion-graphics-section {
    background: #fff;
}
.motion-graphics-wrapper {
    position: relative;
    height: 360px;
}
.motion-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.motion-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 20% 30%, rgba(0, 100, 0, 0.18), transparent 60%),
        radial-gradient(50% 50% at 80% 70%, rgba(0, 128, 0, 0.14), transparent 60%),
        linear-gradient(135deg, #e8f5e9 0%, #e0f2f1 50%, #e8f5e9 100%);
    background-size: 200% 200%;
    animation: motionShift 10s ease-in-out infinite;
}
.motion-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes motionShift {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
    .motion-bg { animation: none !important; }
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .ministry-name {
        font-size: 1.2rem;
        text-align: center;
        margin-top: 1rem;
    }
    
    .logo {
        text-align: center;
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Search Results */
.search-highlight {
    background-color: #ffff99;
    padding: 0.2rem;
}

/* Pagination */
.pagination .page-link {
    color: #006400;
}

.pagination .page-item.active .page-link {
    background-color: #006400;
    border-color: #006400;
}
/* Smaller placeholder avatar for Ministry Leadership cards */
.card .card-img-top.placeholder-avatar {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  margin: 12px auto 0;
  /* Professional ring + soft shadow */
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.10);
}

/* Leadership cards: unified avatar style for real photos and fallbacks */
.leadership-card .leader-avatar {
  width: 180px !important;
  height: 240px !important;
  border-radius: 15px !important;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 12px auto 0;
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.10);
}

.leadership-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
}

.leadership-card .card-text {
  font-size: 0.85rem;
}
/* Header Styles */
.top-bar {
    font-size: 0.9rem;
}
.main-header {
    background-color: #f8f9fa;
}

.ministry-name {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #006400;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Header responsive tweaks */
@media (max-width: 992px) {
    .logo img { height: 68px; }
}
@media (max-width: 768px) {
    .logo img { height: 56px; }
    .ministry-name { font-size: 1.1rem; }
}

/* Navigation */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Hero Carousel custom tweaks */
.hero-carousel .carousel-caption {
    bottom: auto;
    top: 20%;
    left: 0;
    right: 0;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: #006400;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: invert(1);
}

/* Promo Banner (Hero) */
.promo-carousel .carousel-indicators { display: flex; justify-content: center; gap: 8px; }
.promo-carousel .carousel-indicators [data-bs-target] { background-color: rgba(255,255,255,0.85); }
.promo-banner {
    background: linear-gradient(135deg, #006400 0%, #006400 60%, #5FC52E 100%);
    color: #fff;
    padding: 2rem 2.5rem;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.promo-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 70%);
}
.promo-eyebrow {
    font-size: 0.95rem;
    opacity: 0.85;
}
.promo-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: clamp(1.8rem, 4.6vw, 3.2rem);
    margin: 0.25rem 0 0.5rem;
}
.promo-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    font-weight: 600;
    margin: 0;
}
.promo-product {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}
.promo-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 1rem;
}
.promo-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
}
.promo-dots span.active { width: 22px; height: 6px; border-radius: 6px; }

.promo-control {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.65);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.promo-control:hover { background: rgba(0, 0, 0, 0.85); }
.promo-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 1.4rem;
}
.promo-carousel .carousel-control-prev { left: 18px; }
.promo-carousel .carousel-control-next { right: 18px; }

/* Controls around the sliding image */
.promo-image-col { position: relative; }
.promo-carousel .promo-image-col .carousel-control-prev { left: -10px; z-index: 2; }
.promo-carousel .promo-image-col .carousel-control-next { right: -10px; z-index: 2; }

@media (max-width: 992px) {
    .promo-product { max-height: 180px; }
}
@media (max-width: 768px) {
    .promo-banner { padding: 1.5rem; min-height: 240px; }
    .promo-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .promo-product { margin-top: 0.5rem; max-height: 160px; }
    .promo-carousel .promo-image-col .carousel-control-prev { left: -6px; }
.promo-carousel .promo-image-col .carousel-control-next { right: -6px; }
}

/* CTA banner replicates hero gradient */
.cta-banner {
    background: linear-gradient(135deg, #006400 0%, #006400 60%, #5FC52E 100%);
    color: #fff;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #006400;
    font-weight: 600;
}

/* Department Section */
.department-card {
    height: 100%;
}

.department-icon {
    font-size: 2.5rem;
    color: #006400;
    margin-bottom: 1rem;
}

/* Project Section */
.project-card img {
    height: 200px;
    object-fit: cover;
}

/* News Section */
.news-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form label {
    font-weight: 500;
}

.contact-info i {
    color: #006400;
    width: 25px;
}

/* Footer */
footer {
    background-color: #343a40;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: #fff;
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Intro Access Section */
.intro-title {
    letter-spacing: 0.2px;
    color: #212529; /* default dark text */
}
.text-brand {
    color: #006400;
}

/* Intro Title Staggered Animation */
.intro-animate .word {
    opacity: 0;
    transform: translateY(8px);
    display: inline-block;
    animation: riseFade 0.6s ease-out forwards;
}
.intro-animate .word:nth-child(1) { animation-delay: 0s; }
.intro-animate .word:nth-child(2) { animation-delay: 0.12s; }
.intro-animate .word:nth-child(3) { animation-delay: 0.24s; }
.intro-animate .word:nth-child(4) { animation-delay: 0.36s; }
.intro-animate .word:nth-child(5) { animation-delay: 0.48s; }

@keyframes riseFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-animate .word {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Motion Graphics Section */
.motion-graphics-section {
    background: #fff;
}
.motion-graphics-wrapper {
    position: relative;
    height: 360px;
}
.motion-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.motion-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 20% 30%, rgba(0, 100, 0, 0.18), transparent 60%),
        radial-gradient(50% 50% at 80% 70%, rgba(0, 128, 0, 0.14), transparent 60%),
        linear-gradient(135deg, #e8f5e9 0%, #e0f2f1 50%, #e8f5e9 100%);
    background-size: 200% 200%;
    animation: motionShift 10s ease-in-out infinite;
}
.motion-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes motionShift {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
    .motion-bg { animation: none !important; }
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .ministry-name {
        font-size: 1.2rem;
        text-align: center;
        margin-top: 1rem;
    }
    
    .logo {
        text-align: center;
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Search Results */
.search-highlight {
    background-color: #ffff99;
    padding: 0.2rem;
}

/* Pagination */
.pagination .page-link {
    color: #006400;
}

.pagination .page-item.active .page-link {
    background-color: #006400;
    border-color: #006400;
}
/* Smaller placeholder avatar for Ministry Leadership cards */
.card .card-img-top.placeholder-avatar {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  margin: 12px auto 0;
  /* Professional ring + soft shadow */
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.10);
}

/* Leadership cards: unified avatar style for real photos and fallbacks */
.leadership-card .leader-avatar {
  width: 180px !important;
  height: 240px !important;
  border-radius: 15px !important;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 12px auto 0;
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.10);
}

.leadership-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
}

.leadership-card .card-text {
  font-size: 0.85rem;
}
/* Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1040; /* above content */
    background-color: #fff; /* solid bg to avoid transparency over content */
}
header.header-stuck {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.ministry-name {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #006400;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Header responsive tweaks */
@media (max-width: 992px) {
    .logo img { height: 68px; }
}
@media (max-width: 768px) {
    .logo img { height: 56px; }
    .ministry-name { font-size: 1.1rem; }
}

/* Navigation */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Hero Carousel custom tweaks */
.hero-carousel .carousel-caption {
    bottom: auto;
    top: 20%;
    left: 0;
    right: 0;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: #006400;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: invert(1);
}

/* Promo Banner (Hero) */
.promo-carousel .carousel-indicators { display: flex; justify-content: center; gap: 8px; }
.promo-carousel .carousel-indicators [data-bs-target] { background-color: rgba(255,255,255,0.85); }
.promo-banner {
    background: linear-gradient(135deg, #006400 0%, #006400 60%, #5FC52E 100%);
    color: #fff;
    padding: 2rem 2.5rem;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.promo-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 70%);
}
.promo-eyebrow {
    font-size: 0.95rem;
    opacity: 0.85;
}
.promo-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: clamp(1.8rem, 4.6vw, 3.2rem);
    margin: 0.25rem 0 0.5rem;
}
.promo-subtitle {
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    font-weight: 600;
    margin: 0;
}
.promo-product {
    max-height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}
.promo-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 1rem;
}
.promo-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
}
.promo-dots span.active { width: 22px; height: 6px; border-radius: 6px; }

.promo-control {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.65);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.promo-control:hover { background: rgba(0, 0, 0, 0.85); }
.promo-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 1.4rem;
}
.promo-carousel .carousel-control-prev { left: 18px; }
.promo-carousel .carousel-control-next { right: 18px; }

/* Controls around the sliding image */
.promo-image-col { position: relative; }
.promo-carousel .promo-image-col .carousel-control-prev { left: -10px; z-index: 2; }
.promo-carousel .promo-image-col .carousel-control-next { right: -10px; z-index: 2; }

@media (max-width: 992px) {
    .promo-product { max-height: 180px; }
}
@media (max-width: 768px) {
    .promo-banner { padding: 1.5rem; min-height: 240px; }
    .promo-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .promo-product { margin-top: 0.5rem; max-height: 160px; }
    .promo-carousel .promo-image-col .carousel-control-prev { left: -6px; }
.promo-carousel .promo-image-col .carousel-control-next { right: -6px; }
}

/* CTA banner replicates hero gradient */
.cta-banner {
    background: linear-gradient(135deg, #006400 0%, #006400 60%, #5FC52E 100%);
    color: #fff;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #006400;
    font-weight: 600;
}

/* Department Section */
.department-card {
    height: 100%;
}

.department-icon {
    font-size: 2.5rem;
    color: #006400;
    margin-bottom: 1rem;
}

/* Project Section */
.project-card img {
    height: 200px;
    object-fit: cover;
}

/* News Section */
.news-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form label {
    font-weight: 500;
}

.contact-info i {
    color: #006400;
    width: 25px;
}

/* Footer */
footer {
    background-color: #343a40;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: #fff;
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Intro Access Section */
.intro-title {
    letter-spacing: 0.2px;
    color: #212529; /* default dark text */
}
.text-brand {
    color: #006400;
}

/* Intro Title Staggered Animation */
.intro-animate .word {
    opacity: 0;
    transform: translateY(8px);
    display: inline-block;
    animation: riseFade 0.6s ease-out forwards;
}
.intro-animate .word:nth-child(1) { animation-delay: 0s; }
.intro-animate .word:nth-child(2) { animation-delay: 0.12s; }
.intro-animate .word:nth-child(3) { animation-delay: 0.24s; }
.intro-animate .word:nth-child(4) { animation-delay: 0.36s; }
.intro-animate .word:nth-child(5) { animation-delay: 0.48s; }

@keyframes riseFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-animate .word {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Motion Graphics Section */
.motion-graphics-section {
    background: #fff;
}
.motion-graphics-wrapper {
    position: relative;
    height: 360px;
}
.motion-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.motion-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 20% 30%, rgba(0, 100, 0, 0.18), transparent 60%),
        radial-gradient(50% 50% at 80% 70%, rgba(0, 128, 0, 0.14), transparent 60%),
        linear-gradient(135deg, #e8f5e9 0%, #e0f2f1 50%, #e8f5e9 100%);
    background-size: 200% 200%;
    animation: motionShift 10s ease-in-out infinite;
}
.motion-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes motionShift {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
    .motion-bg { animation: none !important; }
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .ministry-name {
        font-size: 1.2rem;
        text-align: center;
        margin-top: 1rem;
    }
    
    .logo {
        text-align: center;
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Search Results */
.search-highlight {
    background-color: #ffff99;
    padding: 0.2rem;
}

/* Pagination */
.pagination .page-link {
    color: #006400;
}

.pagination .page-item.active .page-link {
    background-color: #006400;
    border-color: #006400;
}
/* Smaller placeholder avatar for Ministry Leadership cards */
.card .card-img-top.placeholder-avatar {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  margin: 12px auto 0;
  /* Professional ring + soft shadow */
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.10);
}

/* Leadership cards: unified avatar style for real photos and fallbacks */
.leadership-card .leader-avatar {
  width: 180px !important;
  height: 240px !important;
  border-radius: 15px !important;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 12px auto 0;
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.10);
}

.leadership-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
}

.leadership-card .card-text {
  font-size: 0.85rem;
}

/* Home Services cards: compact, presentable */
.services-card {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}
.services-card .card-body {
    padding: 1rem;
}
.services-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.services-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Smaller, centered service card images */
.card-img-top.services-card-img {
    width: 64%;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 10px auto 0;
}

@media (max-width: 576px) {
    .card-img-top.services-card-img {
        width: 76%;
        max-height: 110px;
    }
}

/* Retreat hero banner */
.retreat-hero img {
    max-height: 420px;
    object-fit: cover;
}
@media (max-width: 576px) {
    .retreat-hero img {
        max-height: 280px;
    }
}

/* Ensure tabs and navbar links are black on light/transparent navbar */
.nav-tabs .nav-link {
    color: #000;
}
.nav-tabs .nav-link:hover {
    color: #000;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #000;
}

.navbar-light .navbar-nav .nav-link {
    color: #000;
    font-weight: 600;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Transparent navbar: ensure menu link text is black */
.navbar-light.bg-transparent .navbar-nav {
    gap: 0.5rem;
}
.navbar-light.bg-transparent .navbar-nav .nav-link {
    color: #000;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    margin-right: 0.25rem;
}
.navbar-light.bg-transparent .navbar-nav .nav-link:hover,
.navbar-light.bg-transparent .navbar-nav .nav-link.active {
    color: #000;
    background-color: rgba(0, 0, 0, 0.06);
}

/* Summit Section Styles */
.summit-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Default background - can be overridden by inline style */
.summit-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
}

/* Home page summit hero */
.py-5.bg-light .summit-hero {
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.summit-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.summit-hero .summit-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.countdown-timer {
    max-width: 500px;
}

.countdown-number {
    font-size: 2.5rem;
    min-width: 60px;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Home page specific countdown */
.py-5.bg-light .countdown-number {
    font-size: 1.8rem;
    min-width: 50px;
}

.py-5.bg-light .countdown-label {
    font-size: 0.8rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-image {
    height: 250px;
    overflow: hidden;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    height: 100%;
}

.partner-logo img {
    max-height: 140px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.06);
}

/* Headline partner - the single featured partner of the summit */
.headline-partner-card {
    max-width: 720px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid #198754;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.headline-partner-card img {
    max-height: 140px;
    width: auto;
}

/* Home page: headline partner logo sits centred with no white box or side gaps */
.headline-partner-card--wide {
    max-width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.headline-partner-card--wide a {
    display: block;
}

.headline-partner-card--wide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 140px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.headline-partner-card--wide .headline-partner-link {
    display: inline-block;
}

.headline-partner-badge {
    background: #ffc107;
    color: #212529;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.headline-partner-link {
    font-weight: 600;
    text-decoration: none;
}

.headline-partner-link:hover {
    text-decoration: underline;
}

/* Sponsor logos - always full colour, distinct from the greyed partner logos */
.sponsor-logo a {
    display: inline-block;
}

.sponsor-logo img {
    max-height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.sponsor-logo:hover img {
    transform: scale(1.06);
}

.py-5.summit-sponsors-section .sponsor-logo img {
    max-height: 80px;
}

/* Planning Map Styles */
.planning-map-container {
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.zone-info-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid #007bff;
}

.zone-highlight {
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone-highlight:hover {
    stroke-width: 3;
    filter: brightness(1.2);
}

/* Summit Agenda Styles */
.agenda-filter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.session-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.session-card:hover {
    transform: translateX(5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.session-card.housing { border-left-color: #28a745; }
.session-card.transportation { border-left-color: #17a2b8; }
.session-card.land-use { border-left-color: #ffc107; }
.session-card.smart-cities { border-left-color: #6f42c1; }
.session-card.environment { border-left-color: #20c997; }

/* Speaker Portal Styles */
.speaker-profile {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.presentation-upload {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.presentation-upload:hover {
    border-color: #0056b3;
    background-color: rgba(0, 123, 255, 0.05);
}

/* Stakeholder Engagement */
.feedback-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.feedback-card.public {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.poll-option {
    cursor: pointer;
    transition: all 0.2s ease;
}

.poll-option:hover {
    background-color: #f8f9fa;
}

/* Media Archive */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.media-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.media-thumbnail {
    height: 180px;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Summit Speaker Section - Compact Layout */
.summit-speakers-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.summit-speakers-section .section-header {
    margin-bottom: 1.5rem !important;
}

.summit-speakers-section .row {
    gap: 1rem !important;
}

.summit-speakers-section .card {
    margin-bottom: 0;
}

.summit-speakers-section .speaker-image {
    height: 150px !important;
}

.summit-speakers-section .speaker-image img {
    width: 90px !important;
    height: 90px !important;
}

.summit-speakers-section .card-body {
    padding: 1rem !important;
}

.summit-speakers-section .card-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.25rem !important;
}

.summit-speakers-section .text-primary {
    margin-bottom: 0.25rem !important;
    font-size: 0.9rem !important;
}

.summit-speakers-section .text-muted {
    font-size: 0.8rem !important;
}