:root {
    --bs-primary: #8C1C13; /* Isiagu deep red */
    --bs-secondary: #FFC300; /* Gold */
    --bs-success: #046A38; /* Nigerian green */
    --bs-dark: #1F2937; /* Deep charcoal */
    --imo-navy: #0f2f3a;
    --imo-green: #154b46; /* Navbar green */
    --imo-gold: #E28C14; /* Accent gold/orange */
    --imo-page-bg: #eef3f7; /* light page background */
}

.hero-overlay {
    /* Overlay removed — image shows without darkening */
    background: transparent;
}

.hero-label,
.home-hero .hero-label,
div.hero-label {
    color: #FFE033 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 4px 24px rgba(0,0,0,0.5) !important;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.isiagu-pattern-bg {
    background-image: linear-gradient(135deg, rgba(255,195,0,0.05) 10%, transparent 10%), linear-gradient(225deg, rgba(140,28,19,0.05) 10%, transparent 10%);
    background-size: 20px 20px;
}

.culture-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

    .culture-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,.1);
    }

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,.7);
}

/* Navbar styling to match mockup */
.imo-navbar { background-color: #ffffff; }
.imo-navbar .navbar-brand { color: #0b1a1e; }
.imo-navbar .nav-link { color: #102a25; font-weight: 600; transition: all 0.3s ease; }
.imo-navbar .nav-link:hover, .imo-navbar .nav-link:focus { 
    background-color: var(--imo-gold); 
    color: #000000; 
    border-radius: 20px;
    padding-left: 1rem;
    padding-right: 1rem;
}
.imo-navbar .nav-link.active {
    background-color: var(--imo-gold);
    color: #000000;
    border-radius: 20px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-weight: 700;
}
.imo-navbar .nav-link.active:hover {
    background-color: #c9780f;
    color: #000000;
}
.imo-navbar.border-bottom { border-color: rgba(0,0,0,.08) !important; }

.imo-navbar .navbar-brand {
    letter-spacing: .3px;
}

/* Make navbar toggler icon visible on white background */
.imo-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.imo-navbar .navbar-toggler {
    border-color: rgba(33, 37, 41, 0.15);
}


.btn-join { background-color: var(--imo-green); color: #ffffff; border: none; }
.btn-join:hover { background-color: var(--imo-gold); color: #000000; border: none; }

/* Accessibility: focus outlines */
:focus-visible {
    outline: 3px solid rgba(226,140,20,.8);
    outline-offset: 2px;
}

/* Skip link utility (visible on focus) */
.visually-hidden-focusable:active,
.visually-hidden-focusable:focus {
    position: static !important;
    width: auto;
    height: auto;
    clip: auto;
}

/* Page shell and accents */
body { background-color: var(--imo-page-bg); }

.accent-bar {
    position: fixed;
    top: 0;
    height: 56px; /* approx navbar height */
    width: 12px;
    background-color: var(--imo-gold);
    z-index: 1030;
}
.accent-left { left: 0; border-bottom-right-radius: 8px; }
.accent-right { right: 0; border-bottom-left-radius: 8px; }

.page-shell { overflow: hidden; }

/* Responsive hero heights */
@media (max-width: 767.98px) {
    .home-hero { height: auto; }
}
@media (min-width: 768px) {
    .home-hero { height: 68vh; }
}

/* Hero typography */
.hero-title {
    font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem);
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 4px 24px rgba(0,0,0,0.5);
}
.text-white-75 {
    color: #FFE033;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Feature cards */
.feature-card { border: none; }
.feature-card .card-body { padding: 1rem 1.25rem; }
.feature-card .card-img-top { height: 180px; object-fit: cover; }

/* Feature tiles per Landing.png */
.feature-tile { 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    text-align: center;
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* Individual feature colors */
.feature-tile-green { border-top-color: var(--imo-green); }
.feature-tile-gold { border-top-color: var(--imo-gold); }
.feature-tile-red { border-top-color: var(--bs-primary); }

.feature-icon { 
    font-size: 56px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}

.feature-tile-green .feature-icon {
    background: rgba(21, 75, 70, 0.1);
    color: var(--imo-green);
}

.feature-tile-gold .feature-icon {
    background: rgba(226, 140, 20, 0.1);
    color: var(--imo-gold);
}

.feature-tile-red .feature-icon {
    background: rgba(140, 28, 19, 0.1);
    color: var(--bs-primary);
}

.feature-icon .bi { font-size: 56px; line-height: 1; }
.feature-icon svg { width: 1em !important; height: 1em !important; }

/* Feature tile buttons matching theme colors */
.btn-feature-green {
    background-color: var(--imo-green);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-feature-green:hover {
    background-color: #0f3a36;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 75, 70, 0.3);
}

.btn-feature-gold {
    background-color: var(--imo-gold);
    color: #000000;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-feature-gold:hover {
    background-color: #c9780f;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(226, 140, 20, 0.3);
}

.btn-feature-red {
    background-color: var(--bs-primary);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-feature-red:hover {
    background-color: #6b150f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(140, 28, 19, 0.3);
}

/* News and Events Cards */
.news-snippet-card {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-snippet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1) !important;
}

.news-snippet-card .card {
    transition: all 0.3s ease;
}

.news-snippet-card .card-title {
    color: #333;
    transition: color 0.3s ease;
}

.news-snippet-card:hover .card-title {
    color: var(--imo-green);
}

.news-snippet-image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
}

.event-card {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1) !important;
}

.event-card .card {
    transition: all 0.3s ease;
}

.event-card .card-title {
    color: #333;
    transition: color 0.3s ease;
}

.event-card:hover .card-title {
    color: var(--imo-gold);
}

.event-date-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--imo-gold), #d4790f);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(226, 140, 20, 0.3);
}

.event-month {
    font-size: 0.7rem;
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.event-day {
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsive adjustments for news and events */
@media (max-width: 767.98px) {
    .news-snippet-image {
        max-height: 120px;
    }
    
    .event-date-badge {
        width: 50px;
        height: 50px;
    }
    
    .event-month {
        font-size: 0.65rem;
    }
    
    .event-day {
        font-size: 1.25rem;
    }
}

/* Gallery */
.gallery-img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Force gallery thumbnails to uniform height while preserving aspect ratio and center-cropping */
.card .gallery-img {
    height: 220px; /* consistent thumbnail height */
    width: 100%;
    object-fit: cover;
}

/* Video thumbnail/player styling */
.card .gallery-video {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background: #000;
}

/* Welcome section styling */
.welcome-box {
    background-color: #1a3a52;
}

/* About page: What We Do section */
.about-what-we-do-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
    margin-bottom: 1.5rem;
}
.about-list {
    list-style: disc inside;
}
.about-list li {
    margin-bottom: 0.5rem;
}

/* Leadership section styling */
.about-leadership-section {
    background: linear-gradient(180deg, #f8faf9 0%, var(--imo-page-bg) 100%);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.leader-card {
    padding: 1.25rem 1rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--imo-green), var(--imo-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.leader-card:hover::before {
    opacity: 1;
}

/* Photo wrapper for the 3D frame effect */
.leader-photo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
}

/* Decorative ring behind the photo */
.leader-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--imo-green), var(--imo-gold));
    z-index: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.leader-card:hover .leader-photo-wrap::before {
    transform: rotate(3deg) scale(1.03);
    box-shadow: 0 8px 24px rgba(21,75,70,0.25);
}

/* The photo itself — rounded square with 3D depth */
.leader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
    border: 3px solid #fff;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.10),
        0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.leader-card:hover .leader-photo {
    transform: scale(1.04);
    box-shadow:
        0 8px 28px rgba(0,0,0,0.18),
        0 2px 6px rgba(0,0,0,0.10);
}

.leader-name {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    padding: 0 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

.leader-card:hover .leader-name {
    color: var(--imo-green);
}

.leader-role {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--imo-gold);
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1199.98px) {
    .leadership-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
    .leadership-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
    .leadership-grid { grid-template-columns: 1fr; }
}

.welcome-title {
    color: #d4a817;
}

.welcome-text {
    color: #ffffff !important;
}

.btn-welcome {
    background-color: #d4a817;
    color: #000000;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

.btn-welcome:hover {
    background-color: #b8910f;
    color: #000000;
}

/* Top announcement bar */
.imo-topbar { background-color: var(--imo-green); color:#fff; border-bottom: 1px solid rgba(0,0,0,.08); }
.imo-topbar .container { color:#fff; font-weight: 500; }
.imo-topbar { min-height: 40px; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Footer */
.imo-footer { background-color: var(--imo-navy); }
.imo-footer .footer-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.imo-footer .footer-links a:hover { color: #fff; text-decoration: underline; }
.imo-footer .footer-bottom { background-color: rgba(0,0,0,.12); }

.imo-footer .footer-links li.text-white { color: #fff; }

/* Body and Layout */
body {
    font-family: 'Inter', sans-serif;
    background-color: #eef3f7;
}

.imo-topbar .container {
    min-height: 36px;
}

/* Home Hero Styles */
.home-hero-container {
    min-height: 64vh;
}

.home-hero-content {
    max-width: 640px;
}

/* Page Hero Styles */
.page-hero-image {
    height: 320px;
    background-size: cover;
    background-position: center;
}

/* Content Styles */
.content-container {
    max-width: 900px;
}

/* Section background used on News, Gallery, Events pages to give a soft themed background */
.section-bg {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    background: linear-gradient(to right, #e8f5e9, #ffe0b2);
    border-radius: 12px;
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .section-bg { padding: 1rem; }
}

/* About page section backgrounds — subtle variations of the theme palette */
.about-section-green {
    background: linear-gradient(to right, #e8f5e9, #f1f8e9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.about-section-gold {
    background: linear-gradient(to right, #fff8e1, #fff3cd);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.about-section-teal {
    background: linear-gradient(to right, #e0f2f1, #e8f5e9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

@media (max-width: 767.98px) {
    .about-section-green,
    .about-section-gold,
    .about-section-teal { padding: 1rem; }
}

/* ??? Home page enhancements ??? */

/* News hero banner */
.news-hero {
    background: linear-gradient(135deg, var(--imo-green) 0%, var(--imo-navy) 100%);
    margin-top: -1rem;
}

.news-hero-label {
    color: var(--imo-gold);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* News cards */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12) !important;
}

.news-card-img {
    height: 200px;
    object-fit: cover;
}

.news-card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--imo-green);
    font-weight: 600;
}

.news-card .card-title {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.news-card:hover .card-title {
    color: var(--imo-green);
}

.news-read-more {
    color: var(--imo-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-read-more i {
    transform: translateX(4px);
}

/* News & Events columns on the home page */
.home-news-events {
    background: linear-gradient(to bottom, #f8faf9, var(--imo-page-bg));
}

.home-news-events .col-md-6 > .d-flex.flex-column {
    gap: 0.75rem;
}

/* Divider line between news and events on larger screens */
@media (min-width: 768px) {
    .home-news-events .col-md-6:first-child {
        border-right: 1px solid rgba(21,75,70,0.08);
        padding-right: 2rem;
    }
    .home-news-events .col-md-6:last-child {
        padding-left: 2rem;
    }
}

/* ??? Contact page enhancements ??? */

/* Contact hero banner */
.contact-hero {
    background: linear-gradient(135deg, var(--imo-green) 0%, #1a5f59 60%, var(--imo-navy) 100%);
    margin-top: -1rem;
}

/* Subtle background behind the contact form card */
.contact-page {
    position: relative;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse at top, rgba(21,75,70,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-page > * {
    position: relative;
    z-index: 1;
}

/* Accent stripe on top of the form card */
.contact-form-card {
    border-top: 4px solid var(--imo-green) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}

/* Contact info panel decorative corner */
.contact-info-panel {
    position: relative;
    overflow: hidden;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

/* ??? Culture page enhancements ??? */

/* Alternating culture section subtle tints */
.culture-section:nth-child(odd) {
    background: linear-gradient(to right, #fafcfb, #f5f7f6);
}

.culture-section:nth-child(even) {
    background: linear-gradient(to right, #fffdf7, #faf8f3);
}

/* Culture category card row — add section-bg-like container */
.culture-section .row.g-4 {
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* ??? Gallery page enhancements ??? */

/* Gallery hero banner */
.gallery-hero {
    background: linear-gradient(135deg, var(--imo-navy) 0%, var(--imo-green) 60%, #1a5f59 100%);
    margin-top: -1rem;
}

/* Filter toolbar */
.gallery-toolbar {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Gallery cards */
.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}

.gallery-card .card-body {
    background: #fff;
}

/* Gallery filter button themed */
.gallery-toolbar .btn-primary {
    background-color: var(--imo-green);
    border-color: var(--imo-green);
}

.gallery-toolbar .btn-primary:hover {
    background-color: #0f3a36;
    border-color: #0f3a36;
}
/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}*/