:root {
    --ipr-primary: #13452E;
    --ipr-accent: #004D2C;
    --ipr-highlight: #88B04B;
    --ipr-light: #f2f7f3;
    --ipr-dark: #0f2e1f;

    /* Override Bootstrap blues sitewide */
    --bs-primary: #13452E;
    --bs-primary-rgb: 19, 69, 46;
    --bs-link-color: #13452E;
    --bs-link-hover-color: #004D2C;
    --bs-link-color-rgb: 19, 69, 46;
    --bs-link-hover-color-rgb: 0, 77, 44;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

a {
    color: var(--ipr-primary);
}

a:hover {
    color: var(--ipr-accent);
}

/* Dark-on-green link rule — never apply inside top bar or footer */
main a:not(.btn):not(.site-nav-link):not(.site-nav-group__toggle),
.breadcrumb-ipr a:not(.btn) {
    color: var(--ipr-primary);
    text-decoration-color: rgba(19, 69, 46, 0.35);
}

main a:not(.btn):not(.site-nav-link):not(.site-nav-group__toggle):hover,
.breadcrumb-ipr a:not(.btn):hover {
    color: var(--ipr-accent);
}

.bg-ipr-primary {
    background-color: var(--ipr-primary) !important;
}

.bg-ipr-accent {
    background-color: var(--ipr-accent) !important;
}

.text-ipr-primary {
    color: var(--ipr-primary) !important;
}

.text-ipr-accent {
    color: var(--ipr-accent) !important;
}

.btn-ipr-primary {
    background-color: var(--ipr-primary);
    border-color: var(--ipr-primary);
    color: #fff;
}

.btn-ipr-primary:hover {
    background-color: var(--ipr-accent);
    border-color: var(--ipr-accent);
    color: #fff;
}

.btn-outline-ipr-primary {
    color: var(--ipr-primary);
    border-color: var(--ipr-primary);
    background: transparent;
}

.btn-outline-ipr-primary:hover,
.btn-outline-ipr-primary:focus {
    color: #fff;
    background-color: var(--ipr-primary);
    border-color: var(--ipr-primary);
}

.btn-primary {
    --bs-btn-bg: var(--ipr-primary);
    --bs-btn-border-color: var(--ipr-primary);
    --bs-btn-hover-bg: var(--ipr-accent);
    --bs-btn-hover-border-color: var(--ipr-accent);
    --bs-btn-active-bg: var(--ipr-accent);
    --bs-btn-active-border-color: var(--ipr-accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--ipr-primary);
    --bs-btn-border-color: var(--ipr-primary);
    --bs-btn-hover-bg: var(--ipr-primary);
    --bs-btn-hover-border-color: var(--ipr-primary);
    --bs-btn-active-bg: var(--ipr-accent);
    --bs-btn-active-border-color: var(--ipr-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.text-primary {
    color: var(--ipr-primary) !important;
}

.bg-primary {
    background-color: var(--ipr-primary) !important;
}

.border-primary {
    border-color: var(--ipr-primary) !important;
}


.top-bar {
    background: var(--ipr-accent) !important;
    color: #fff !important;
    font-size: 0.875rem;
}

.top-bar a,
.top-bar span,
.top-bar i {
    color: #fff !important;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
    color: var(--ipr-highlight) !important;
}

.site-header {
    background: #fff;
    border-bottom: 3px solid var(--ipr-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-brand-wrap {
    min-width: 0;
}

.site-brand-tagline {
    color: var(--ipr-primary);
    font-size: clamp(1.05rem, 1.75vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    max-width: 30rem;
}

.site-logo {
    max-height: 110px;
    width: auto;
}

.site-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border: none;
    border-radius: 9999px;
    background: var(--ipr-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 14px rgba(19, 69, 46, 0.28);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.site-menu-toggle i {
    font-size: 1.35rem;
    line-height: 1;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus {
    background: var(--ipr-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(19, 69, 46, 0.35);
}

.site-nav-offcanvas {
    width: min(92vw, 360px);
    border-left: none;
}

.site-nav-offcanvas__header {
    background: linear-gradient(135deg, var(--ipr-primary), var(--ipr-accent));
    padding: 1.1rem 1.25rem;
}

.site-nav-offcanvas__body {
    background: #fff;
}

.site-nav-offcanvas__footer {
    padding: 1rem 1.25rem 1.25rem;
    background: var(--ipr-light);
    border-top: 1px solid rgba(19, 69, 46, 0.1);
}

.site-nav-panel {
    padding: 0.35rem 0;
}

.site-nav-link {
    display: block;
    padding: 0.9rem 1.25rem;
    color: var(--ipr-dark) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(19, 69, 46, 0.08);
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.site-nav-link:hover,
.site-nav-link:focus {
    background: var(--ipr-light);
    color: var(--ipr-primary) !important;
    padding-left: 1.45rem;
}

.site-nav-link--sub {
    padding-left: 1.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151 !important;
    border-bottom: none;
}

.site-nav-link--sub:hover,
.site-nav-link--sub:focus {
    padding-left: 1.95rem;
    color: var(--ipr-primary) !important;
}

.site-nav-group {
    border-bottom: 1px solid rgba(19, 69, 46, 0.08);
}

.site-nav-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 0;
    background: #fff;
    color: var(--ipr-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-group__toggle:hover,
.site-nav-group__toggle:focus {
    background: var(--ipr-light);
    color: var(--ipr-primary);
}

.site-nav-group__toggle[aria-expanded="true"] {
    background: var(--ipr-light);
    color: var(--ipr-primary);
}

.site-nav-group__toggle[aria-expanded="true"] .site-nav-group__chevron {
    transform: rotate(180deg);
}

.site-nav-group__chevron {
    font-size: 0.85rem;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.site-nav-group__panel {
    background: var(--ipr-light);
    padding: 0.35rem 0 0.5rem;
}

.site-nav-group__heading {
    margin: 0.5rem 1.75rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--ipr-highlight);
}

.breadcrumb-ipr {
    background: var(--ipr-light);
    border-radius: 0;
    margin-bottom: 0;
}

.sidebar-nav .list-group-item {
    border-left: 3px solid transparent;
    color: var(--ipr-dark);
}

.sidebar-nav .list-group-item:hover {
    border-left-color: var(--ipr-primary);
    background: var(--ipr-light);
    color: var(--ipr-primary);
}

.sidebar-nav .list-group-item.active,
.sidebar-nav .list-group-item.active:hover,
.sidebar-nav .list-group-item.active:focus {
    border-left-color: var(--ipr-primary);
    background: var(--ipr-light);
    color: var(--ipr-primary);
    font-weight: 600;
    z-index: 2;
}

.about-tab-panel[hidden],
.about-tab-panel:not(.is-active) {
    display: none !important;
}

.about-tab-panel.is-active {
    display: block !important;
}

.board-link-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--ipr-primary);
}

.board-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(19, 69, 46, 0.12) !important;
}

.board-grid .card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--ipr-primary);
}

.board-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(19, 69, 46, 0.15);
}

.site-footer {
    background: var(--ipr-dark);
    color: #ccc !important;
}

.site-footer p,
.site-footer li,
.site-footer .small {
    color: #ccc !important;
}

.site-footer h5,
.site-footer h6 {
    color: #fff !important;
}

.site-footer a {
    color: #fff !important;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ipr-highlight) !important;
}

.site-footer i {
    color: #fff !important;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background: #fff;
    border-top: 3px solid var(--ipr-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.portal-sidebar {
    background: var(--ipr-light);
    min-height: calc(100vh - 120px);
}

.portal-sidebar .nav-link {
    color: var(--ipr-dark);
    border-radius: 0;
    border-left: 3px solid transparent;
}

.portal-sidebar .nav-link.active,
.portal-sidebar .nav-link:hover {
    background: #fff;
    border-left-color: var(--ipr-primary);
    color: var(--ipr-primary);
}

.status-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-registration {
    border-left: 4px solid var(--ipr-primary);
}

@media (max-width: 767.98px) {
    .site-logo {
        max-height: 72px;
    }

    .site-brand-wrap {
        gap: 0.65rem !important;
    }

    .site-brand-tagline {
        font-size: clamp(0.72rem, 2.8vw, 0.95rem);
        line-height: 1.15;
        max-width: none;
    }
}

/* Hero carousel — digital green network style */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.hero-slide .hero-mesh-canvas,
.page-hero .hero-mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: block;
}

.hero-swiper {
    height: 420px;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background-color: #071a12;
}

.hero-slide--digital::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-photo, none);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-slide--digital::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(4, 18, 8, 0.22) 0%, rgba(10, 42, 24, 0.12) 50%, rgba(6, 32, 21, 0.26) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-slide--digital .hero-slide__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        radial-gradient(circle at 25% 40%, rgba(154, 230, 90, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 72% 55%, rgba(95, 208, 104, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(60, 179, 113, 0.12) 0%, transparent 50%);
    mix-blend-mode: screen;
    animation: heroMeshPulse 8s ease-in-out infinite alternate;
}

@keyframes heroMeshPulse {
    0% { opacity: 0.65; }
    100% { opacity: 1; }
}

.hero-slide__content {
    position: relative;
    z-index: 4;
}

.hero-slide__text {
    max-width: 840px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-slide__body {
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
}

.hero-slide-default::before {
    background-image: none !important;
}

.hero-slide--digital[style*="--hero-photo"]::after {
    background: linear-gradient(118deg, rgba(4, 18, 8, 0.48) 0%, rgba(10, 42, 24, 0.38) 50%, rgba(6, 32, 21, 0.52) 100%);
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 2.5rem 0;
    background-color: #071a12;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(4, 18, 8, 0.28) 0%, rgba(10, 42, 24, 0.18) 50%, rgba(6, 32, 21, 0.32) 100%);
    z-index: 2;
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(circle at 30% 45%, rgba(154, 230, 90, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 70% 50%, rgba(95, 208, 104, 0.18) 0%, transparent 38%);
    mix-blend-mode: screen;
}

.page-hero .container {
    position: relative;
    z-index: 3;
}

.page-hero h1,
.page-hero p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #fff;
}

/* Feature cards: Scope / CPD / Ethics */
.feature-card .feature-card-inner {
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--ipr-primary) !important;
}

.feature-card:hover .feature-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(19, 69, 46, 0.18) !important;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ipr-light);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--ipr-primary);
}

.quick-card {
    border-top: 4px solid var(--ipr-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(19, 69, 46, 0.12) !important;
}

.section-heading {
    border-left: 4px solid var(--ipr-primary);
    padding-left: 0.75rem;
}

/* Board icon grid */
.board-card .card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--ipr-primary);
}

.board-card:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(19, 69, 46, 0.15) !important;
}

.board-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ipr-light);
    border-radius: 50%;
}

.board-icon-fa {
    font-size: 1.75rem;
    color: var(--ipr-primary);
}

.board-icon-img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.event-date-badge {
    min-width: 52px;
}

/* Whistle-blowing floating button */
.whistle-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1070;
}

.whistle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.45);
    animation: whistle-pulse 2.5s infinite;
}

.whistle-btn:hover {
    transform: scale(1.08);
}

@keyframes whistle-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(220, 53, 69, 0.45); }
    50% { box-shadow: 0 4px 24px rgba(220, 53, 69, 0.75); }
}

@media (max-width: 767.98px) {
    .hero-swiper,
    .hero-slide {
        height: auto !important;
        min-height: 0;
    }

    .hero-slide__content {
        height: auto !important;
        align-items: flex-start !important;
        padding-top: 1.25rem;
        padding-bottom: 2.75rem;
    }

    .hero-slide__text {
        max-width: 100%;
        width: 100%;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    .hero-slide__text .display-5 {
        font-size: clamp(1.45rem, 6.2vw, 1.85rem);
        line-height: 1.25;
        margin-bottom: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .hero-slide__body {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero-slide__text .btn {
        white-space: normal;
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.35;
        padding: 0.75rem 1rem;
    }

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }

    .hero-swiper .swiper-pagination {
        bottom: 10px;
    }

    .whistle-floating {
        bottom: 16px;
        right: 16px;
    }
}

.contact-details-card {
    background: #fff;
}

.contact-details-list dt {
    font-weight: 600;
    color: var(--ipr-primary);
}

.contact-details-list dd {
    margin-bottom: 1rem;
}

.contact-details-list dd:last-child {
    margin-bottom: 0;
}

.contact-details-list a {
    word-break: break-word;
}

/* Coming soon page */
.coming-soon-body {
    margin: 0;
    background: #071a12;
}

.coming-soon-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 2.5rem 0;
    background: linear-gradient(145deg, #041208 0%, #0a2a18 45%, #062015 100%);
}

.coming-soon-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(4, 18, 8, 0.35) 0%, rgba(10, 42, 24, 0.2) 50%, rgba(6, 32, 21, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.coming-soon-shell .container {
    position: relative;
    z-index: 4;
}

.coming-soon-card {
    max-width: 42rem;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.coming-soon-logo__img {
    max-height: 120px;
    width: auto;
}

.coming-soon-org {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.coming-soon-slogan {
    color: var(--ipr-highlight);
    font-size: 1rem;
    font-weight: 700;
}

.coming-soon-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.coming-soon-message {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.65;
}

.coming-soon-launch {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.coming-soon-footer {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

.coming-soon-shell .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.coming-soon-shell .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

@media (max-width: 575.98px) {
    .coming-soon-card {
        padding: 2rem 1.25rem;
    }

    .coming-soon-logo__img {
        max-height: 96px;
    }
}

