/*
Theme Name: CIS AAOIFI Theme
Theme URI: https://aaoifi.com
Author: Trae AI
Author URI: https://trae.ai
Description: Custom WordPress theme for AAOIFI converted from static HTML.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cis-theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color, #2D3748);
    background-color: #FDFDFD;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Browsers don't inherit font-family for form elements — force it globally */
input, textarea, select, button {
    font-family: var(--font-primary);
}

.container {
    max-width: 1280px; /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 32px;
}

/* AAOIFI Color Palette & Pro Variables */
:root {
    /* Typeface — change here to update the entire site */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --primary-color: #004D40; /* AAOIFI green */
    --primary-dark: #003830;
    --primary-light: #e6f0eb;
    --secondary-color: #003D66; /* AAOIFI blue */
    --btn-text-color: var(--white);
    --secondary-dark: #002e4d;
    --accent-color: #B8952A; /* Gold accent */
    
    --text-color: #1A202C;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    
    --border-color: #E2E8F0;
    --border-primary: rgba(0, 77, 64, 0.18);
    --background-light: #F7FAFC;
    --white: #FFFFFF;

    /* Semantic state colors */
    --color-danger:      #dc2626;
    --color-danger-bg:   #fef2f2;
    --color-danger-text: #991b1b;
    --color-warning:     #f59e0b;
    --color-warning-bg:  #fffbeb;
    --color-warning-text:#92400e;
    --color-success:     #16a34a;
    --color-success-bg:  #f0fdf4;
    --color-success-text:#166534;
    --color-info:        #0369a1;
    --color-info-bg:     #e0f2fe;
    --color-info-text:   #0369a1;
    
    --shadow-sm:    0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card:  0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md:    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg:    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:    0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    --shadow-green: 0 8px 24px rgba(0, 77, 64, 0.25);

    --transition-fast:   all 0.2s ease;
    --transition-base:   all 0.3s ease;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing scale */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  32px;
    --space-xl:  48px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Border radius scale */
    --radius-xs:   4px;
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  20px;
    --radius-full: 9999px;

    /* Typography scale */
    --text-xs:   0.75rem;   /* 12px */
    --text-sm:   0.875rem;  /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg:   1.125rem;  /* 18px */
    --text-xl:   1.25rem;   /* 20px */
    --text-2xl:  1.5rem;    /* 24px */
    --text-3xl:  1.875rem;  /* 30px */
    --text-4xl:  2.25rem;   /* 36px */
    --text-5xl:  3rem;      /* 48px */

    /* Footer colours */
    --footer-bg:       #0F172A;
    --footer-text:     #D0D0D0;
    --footer-link:     #94A3B8;
}

/* ── Global: smooth scroll (respects reduced-motion) ────────── */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Global: keyboard focus ring ─────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ── Skip to content link ────────────────────────────────────── */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 16px;
}

/* Page Header / Hero Section */
.page-header-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/pattern.svg');
    background-size: 50%;
    background-repeat: repeat;
    opacity: 0.08;
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.page-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.page-breadcrumbs a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.page-breadcrumbs a:hover {
    opacity: 0.8;
}

.page-breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.page-title-large {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 16px;
    color: var(--white);
    margin: 12px 0 0 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Sticky Header Wrapper */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}

/* Mega Menu Styles */
.main-nav {
    position: relative;
    z-index: 10;
}

.page-title-large {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links > li {
    display: inline-block;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 15px 0;
    display: block;
    border-bottom: 3px solid transparent;
    transition: var(--transition-base);
}

.nav-links > li:hover > a,
.nav-links > li.current-menu-item > a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mega Dropdown Panel */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #eee;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 999;
    padding: 20px 0;
    max-height: var(--mega-max-h, 260px);
    overflow: hidden;
    box-sizing: border-box;
}

.nav-links > li:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-content {
    display: flex;
    gap: 24px;
}

.mega-featured {
    flex: 0 0 280px;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.mega-featured h3 {
    color: var(--white);
    margin-bottom: 4px;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

.mega-featured p {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 10px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.mega-featured a {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.mega-featured .btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.mega-featured::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.mega-columns {
    flex: 1;
    display: flex;
    gap: 24px;
    padding-top: 0;
}

.mega-col h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
    display: inline-block;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col ul li {
    margin-bottom: 7px;
}

.mega-col ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.82rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.mega-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-col ul li a::before {
    content: '›';
    margin-right: 8px;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s;
}

.mega-col ul li a:hover::before {
    opacity: 1;
}

/* Full-width mega column for Standards menu */
.mega-col-full {
    width: 100%;
    max-width: 100%;
}

.standards-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.standards-menu-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.standards-menu-list li:last-child {
    border-bottom: none;
}

.standards-menu-list li a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-base);
    background: white;
}

.standards-menu-list li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 30px;
    transform: none;
}

.standards-menu-list li a::before {
    content: '›';
    margin-right: 12px;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.standards-menu-list li a:hover::before {
    opacity: 1;
}

@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide on mobile by default, handled by mobile menu script */
    }
    
    .mega-dropdown {
        position: static;
        box-shadow: none;
        padding: 0 20px;
        display: none;
    }
    
    .nav-links > li:hover .mega-dropdown {
        display: block;
    }
    
    .mega-content {
        flex-direction: column;
    }
    
    .mega-featured {
        display: none; /* Simplify for mobile */
    }

    /* Mobile Menu Enhancements */
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        align-items: flex-start;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.mobile-active > li {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links.mobile-active > li > a {
        flex: 1;
        padding: 12px 0;
    }

    .dropdown-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        cursor: pointer;
        border-left: 1px solid #eee;
    }

    .nav-links > li.submenu-active .mega-dropdown {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0 0 20px 20px;
        border-top: none;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.page-header-pattern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 140%;
    background-image: url('images/pattern.svg'); /* Using existing pattern */
    background-size: contain;
    background-repeat: repeat;
    background-position: center right;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 40px 0;
        margin-top: 0;
    }
    
    .page-title-large {
        font-size: 2rem;
    }
    
    .page-header-pattern {
        width: 80%;
        opacity: 0.1;
    }
}

/* Glassmorphism Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Utility Header */
.utility-header {
    background-color: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1001;
}

.utility-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.utility-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10000;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.utility-actions {
    display: flex;
    gap: 12px;
}

.language-switcher {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.language-switcher a {
    color: var(--text-color);
    margin: 0 5px;
    text-decoration: none;
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.language-switcher a.active {
    color: var(--primary-color);
    font-weight: 700;
    opacity: 1;
}

.language-switcher a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.language-switcher .divider {
    color: var(--text-muted);
    margin: 0 2px;
}

/* Keep only the header TranslatePress switcher; hide floating duplicate. */
.trp-floating-switcher {
    display: none !important;
}

body.cis-rtl .utility-content {
    flex-direction: row-reverse;
}

body.cis-rtl .language-switcher {
    margin-right: 0;
    margin-left: 15px;
}

.search-btn {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #2d3748;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.search-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Main Navigation */
.main-nav {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: none;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

/* Hide mobile toggles on desktop */
.dropdown-toggle {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, var(--secondary-dark), transparent 70%),
                linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    min-height: 650px; /* Fixed height for slider */
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
}

.hero-slide .container {
    width: 100%;
}

/* Slider Navigation */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    font-size: 18px;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 32px; }
.slider-next { right: 32px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: var(--transition-base);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.dot.active::after {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Hide navigation on mobile */
@media (max-width: 768px) {
    .slider-prev, .slider-next {
        display: none;
    }
    
    .hero {
        min-height: 600px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 240px;
    height: 56px;
    box-sizing: border-box;
}

/* Primary — green bg, white text. Works on any light background. */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-green);
    border: 2px solid var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* Hero variants — white bg on dark hero background */
.btn-hero {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--white);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-outline {
    background-color: transparent;
    color: var(--white);
    backdrop-filter: blur(4px);
    border: 2px solid var(--white);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Keep .btn-secondary as alias for backwards compat */
.btn-secondary {
    background-color: transparent;
    color: var(--white);
    backdrop-filter: blur(4px);
    border: 2px solid var(--white);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.2);
}

.btn-white {
    background: var(--white);
    color: var(--secondary-dark);
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.btn-white:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Large button size variants — used in CTA strips across all inner pages */
.btn-primary-large,
.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-primary-large {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary-large:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-secondary-large {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-large:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* CTA button group layout */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Unified section heading — use across all pages ── */
.cis-section-head {
    margin-bottom: var(--space-xl);
}

.cis-section-head--center {
    text-align: center;
}

.cis-section-head__eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.cis-section-head__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.5px;
}

.cis-section-head__sub {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
}

.cis-section-head--center .cis-section-head__sub {
    margin: 0 auto;
}

/* Standards Section */
.standards-section {
    padding: var(--space-3xl) 0;
    background-color: var(--background-light);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.standard-card {
    background-color: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.standard-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--white);
    font-size: 32px;
    box-shadow: var(--shadow-green);
    transform: rotate(-5deg);
    transition: var(--transition-smooth);
}

.standard-card:hover .card-icon {
    transform: rotate(0) scale(1.1);
}

.standard-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
	line-height: 1.2;
    min-height: 60px;
}

.standard-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
	margin-top: 10px;
}

.card-link:hover {
    gap: 12px;
}

/* Programs Section */
.programs-section {
    padding: var(--space-3xl) 0;
    background-color: var(--white);
    position: relative;
}

/* Grouped by type layout */
.prog-by-type {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.prog-type-group {
    border-top: 1px solid #eef0ef;
    padding-top: 20px;
}

.prog-type-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.prog-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.prog-card-sm {
    display: flex;
    flex-direction: column;
    width: 210px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #eaedec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
    align-items: stretch;
}

.prog-card-sm:hover {
    box-shadow: 0 8px 28px rgba(0,77,64,0.13);
    transform: translateY(-4px);
}

.prog-card-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7f5;
    flex-shrink: 0;
}

.prog-card-img--logo {
    background: #f8fbfa;
    padding: 18px;
}

.prog-card-img .prog-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.prog-card-img .prog-feat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prog-card-acronym {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.9rem;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1;
}

.prog-card-body {
    padding: 14px 16px 18px;
    flex: 1;
}

.prog-card-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-align: left;
}

.prog-viewall {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.2s;
}

.prog-viewall:hover {
    gap: 9px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.program-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-color);
}

.program-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, var(--background-light) 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border-color);
}

.program-icon {
    width: 64px;
    height: 64px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 28px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.program-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.program-title p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.program-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.program-features {
    list-style: none;
    margin-bottom: 24px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.program-features i {
    color: var(--primary-color);
    font-size: 12px;
}

/* About Section – Editorial Clean */
.about-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-overline {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.about-text p {
    font-size: 0.97rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 0;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eef0ef;
}

.stat {
    flex: 1;
    text-align: left;
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid #eef0ef;
}

.stat:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.stat h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 3px;
    line-height: 1;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--primary-color);
    background-clip: unset;
}

.stat p {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image::before {
    display: none;
}

/* About Visual Pattern (Replacing Placeholder) */
.about-visual-pattern {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pattern-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -50px;
    right: -50px;
    filter: blur(40px);
}

.pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.pattern-content {
    z-index: 2;
    text-align: center;
}

.pattern-text {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: none;
    border: 1px solid #eef0ef;
    position: relative;
    z-index: 1;
    display: block;
}

/* About Dual-Panel Layout */
.about-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #eef0ef;
    margin-top: 20px;
    padding-top: 36px;
}

.about-panel {
    padding-right: 52px;
    border-right: 1px solid #eef0ef;
}

.about-panel--centre {
    padding-left: 52px;
    padding-right: 0;
    border-right: none;
}

.about-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 14px;
    line-height: 1.3;
}

.about-panel > p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

.about-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.about-readmore:hover {
    gap: 10px;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: radial-gradient(circle at top right, var(--secondary-dark), transparent 70%),
                linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 80px 0 32px;
    font-size: 16px;
}

.footer-top {
    margin-bottom: 40px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1.4fr;
    gap: 56px;
}

.footer-column h4 {
    font-size: 18px; /* Increased from 16px */
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-column p {
    color: var(--footer-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 14px 16px;
    transition: var(--transition-fast);
    flex: 1;
    border-radius: var(--radius-xs);
    font-size: 14px;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    outline: none;
}

.newsletter-form .btn {
    padding: 12px 20px;
}

/* Footer newsletter — restore flex layout overridden by .cis-form */
.newsletter-form.cis-form {
    flex-direction: row;
    align-items: center;
}
.newsletter-form.cis-form input[type="email"] {
    flex: 1;
    width: auto;
    min-width: 0;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--white);
    border-radius: var(--radius-xs);
}
.newsletter-form.cis-form input[type="email"]:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--primary-color);
    box-shadow: none;
}
.newsletter-form.cis-form button[type="submit"] {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 12px 20px;
    border-radius: var(--radius-xs);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    margin-top: 60px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-info p {
    color: var(--footer-text);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-contact p {
    color: var(--footer-text);
    margin: 0;
    font-size: 14px;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 110;
}

#back-to-top i {
    font-size: 18px;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-dual {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-panel {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eef0ef;
        padding-bottom: 36px;
        margin-bottom: 36px;
    }

    .about-panel--centre {
        padding-left: 0;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .main-nav .container {
        display: flex;
        justify-content: space-between; /* Space between logo and toggle */
        align-items: center;
    }

    .nav-logo {
        display: block; /* Show on mobile */
		padding-top: 10px;
    }

    .mobile-toggle {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    /* About Section Mobile Fixes */
    .about-visual-pattern {
        height: 250px; /* Reduce height on mobile */
    }
    
    .about-stats {
        padding-top: 32px;
        margin-top: 32px;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        min-width: 120px;
        flex: 1 1 auto;
    }
    
    .stat h3 {
        font-size: 2rem;
    }


    .hero h1 {
        font-size: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .standards-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .utility-content {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .logo-image {
        height: 50px;
    }

    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .standard-card,
    .program-header,
    .program-content {
        padding: 24px;
    }
    
    .about-stats {
        gap: 16px;
    }
    
    .stat {
        min-width: 100px;
        text-align: center;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .stat p {
        font-size: 0.65rem;
    }
}

/* Extra small devices (320px - 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eef0ef;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 20px;
        margin-bottom: 0;
    }
    
    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .btn {
        min-width: 100%;
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-actions {
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn,
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }
    
    .standard-card,
    .program-card,
    .service-card,
    .event-card,
    .news-card {
        padding: 20px;
    }
    
    .page-breadcrumbs {
        font-size: 0.8rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* AAOIFI Enhanced Styling */
.program-header {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-blue) 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
    100% { transform: translate(0, 0); }
}

.card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-green);
}

.stat h3 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column h4 {
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

/* Islamic Pattern Backgrounds */
.islamic-pattern {
    position: relative;
    overflow: hidden;
}

.islamic-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/pattern.svg");
    background-size: 600px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
}

.islamic-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

.islamic-header-pattern {
    background-color: var(--white);
    position: relative;
    border-bottom: 2px solid rgba(0, 102, 51, 0.1);
    overflow: hidden;
}

.islamic-header-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: url("images/pattern.svg");*/
    background-size: 600px;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.islamic-header-pattern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    z-index: 2;
}

.islamic-footer-pattern {
    background-color: var(--footer-bg);
    position: relative;
    overflow: hidden;
}

.islamic-footer-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/pattern.svg");
    background-size: 800px;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.islamic-footer-pattern > .container {
    position: relative;
    z-index: 1;
}

.islamic-card-pattern {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.islamic-card-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/pattern.svg");
    background-size: 400px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
}

.islamic-card-pattern > * {
    position: relative;
    z-index: 1;
}

/* Authentic Girih Pattern Overlay for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/pattern.svg");
    background-size: 1000px;
    background-repeat: repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* Apply patterns to sections */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L55 25 L70 25 L58 35 L63 50 L50 40 L37 50 L42 35 L30 25 L45 25 Z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3Ccircle cx='20' cy='20' r='3' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.5'/%3E%3Ccircle cx='80' cy='80' r='3' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.4;
    pointer-events: none;
}

/* AAOIFI Professional Badge */
.professional-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-2xl);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
}

/* =========================================
   New Section Styles (Sitemap Integration)
   ========================================= */

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 14px;
    font-weight: 600;
}

.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.lang-link:hover, .lang-link.active {
    color: var(--primary-color);
}

.lang-sep {
    margin: 0 8px;
    color: var(--border-color);
}

.header-cta {
    margin-right: 20px;
}

/* Common Section Styles */
.advisory-section, .events-section, .news-section, .partners-section, .contact-section {
    padding: 80px 0;
    position: relative;
}

.advisory-section { background-color: var(--background-light); }
.events-section { background-color: var(--white); }
.news-section { background-color: var(--background-light); }
.partners-section { background-color: var(--white); }
.contact-section { background-color: var(--primary-light); }

/* Services Grid (Advisory) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card-link {
    text-decoration: none;
    display: flex;
    color: inherit;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border-top: 4px solid var(--secondary-color);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.read-more-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-base);
}

.read-more-arrow i {
    color: var(--white);
    font-size: 16px;
}

.service-card-link:hover .read-more-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

/* Advisory & Events Images */
.service-image, .event-image {
    height: 220px;
    overflow: hidden;
    margin: -32px -32px 32px -32px; /* Compensate for card padding */
    border-radius: 8px 8px 0 0;
    position: relative;
    flex-shrink: 0;
}

.service-image img, .event-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img,
.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image {
    margin: -24px -24px 24px -24px; /* Slightly different padding in event card */
}

/* Events List */
.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.event-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.event-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.event-content-wrapper {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
}

.event-card-link:hover .event-card {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-read-more {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-base);
}

.event-read-more i {
    color: var(--white);
    font-size: 16px;
}

.event-card-link:hover .event-read-more {
    opacity: 1;
    transform: translateX(0);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-right: 0; /* Adjusted for wrapper */
    min-width: 70px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.event-details h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-color);
}

.event-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.news-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 200px;
    overflow: hidden;
    margin: -32px -32px 32px -32px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Partners Logos */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    opacity: 0.7;
}

/* Partners (homepage) — grouped by category */
.partners-category-rows {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.partners-category-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(15, 46, 40, 0.08);
}

.partners-category-row:first-child {
    border-top: none;
}

.partners-category-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.partners-category-row .partners-logos {
    justify-content: flex-start;
    gap: 26px;
    opacity: 1;
}

.partners-category-row .partner-logo {
    padding: 0;
    background: transparent;
    border: none;
}

.partners-category-row .partner-logo img {
    height: var(--partner-logo-h, 92px);
    max-width: var(--partner-logo-w, 320px);
}

@media (max-width: 768px) {
    .partners-category-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .partners-category-row .partners-logos {
        justify-content: center;
        gap: 20px;
    }

    .partners-category-label {
        text-align: center;
    }
    
    .partners-category-row .partner-logo img {
        height: var(--partner-logo-h, 70px);
        max-width: var(--partner-logo-w, 240px);
    }
}

@media (max-width: 480px) {
    .partners-category-row .partners-logos {
        gap: 16px;
    }
    
    .partners-category-row .partner-logo img {
        height: var(--partner-logo-h, 60px);
        max-width: var(--partner-logo-w, 200px);
    }
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
    padding: 20px 40px;
    border-radius: var(--radius-md);
}

.partner-logo img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.partner-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
    min-height: 50px;
}

/* Contact Options */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.contact-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-muted);
    margin: 0;
}
/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Hide Widget Edit Button */
.widget-edit-btn {
    display: none !important;
}

/* 404 Error Page Styles */
.error-404-container {
    padding: 100px 0 150px;
    text-align: center;
    background-image: url('images/pattern.svg');
    background-size: 600px;
    background-repeat: repeat;
    background-position: center;
    position: relative;
}

.error-404-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 rgba(0, 102, 51, 0.1);
}

.error-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.error-message {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* News Archive Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.news-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    margin-top: 0;
}

.news-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card:hover h3 a {
    color: var(--primary-color);
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    margin-top: auto;
}

.read-more:hover {
    gap: 10px;
}

/* =========================================
   IMPROVED NEWS ARCHIVE LAYOUT
   ========================================= */

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    margin-top: 40px;
}

.news-main-content {
    min-width: 0; /* Prevents grid blowout */
}

/* Enhanced News Grid for Sidebar Layout */
.content-with-sidebar .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Enhanced Entry Meta */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.entry-meta i {
    opacity: 0.7;
}

.post-category {
    color: var(--primary-color);
    font-weight: 600;
}

/* News Card Footer */
.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.read-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-time i {
    opacity: 0.7;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--background-light);
    border-radius: var(--radius-xl);
    margin-top: 40px;
}

.no-results i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   SIDEBAR STYLES
   ========================================= */

.news-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

/* Newsletter / Subscribe sidebar widget — global */
.kh-newsletter-widget,
.newsletter-widget {
    background: linear-gradient(135deg, #e8f5f3 0%, #f0f8ff 100%);
    border: 2px solid var(--primary-color) !important;
    text-align: center;
}

.kh-newsletter-icon,
.newsletter-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.kh-newsletter-icon i,
.newsletter-icon i {
    color: var(--btn-text-color);
    font-size: 1.3rem;
}

.kh-newsletter-widget h3,
.newsletter-widget h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.kh-newsletter-widget p,
.newsletter-widget p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-muted);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--btn-text-color);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
    margin-top: 0;
}

.btn-subscribe:hover {
    background: var(--primary-dark);
    color: var(--btn-text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 77, 64, 0.25);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* Search Form in Sidebar */
.sidebar-widget .search-form {
    display: flex;
    gap: 8px;
}

.sidebar-widget .search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.sidebar-widget .search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.sidebar-widget .search-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.sidebar-widget .search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    font-size: 0.95rem;
}

.category-list a:hover {
    background: var(--background-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.category-list i {
    margin-right: 10px;
    color: var(--primary-color);
    opacity: 0.7;
}

.category-list .count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: var(--radius-lg);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-thumb:hover img {
    transform: scale(1.1);
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-content h5 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recent-post-content h5 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-content h5 a:hover {
    color: var(--primary-color);
}

.recent-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recent-date i {
    opacity: 0.7;
}

/* Widget CTA */
.widget-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.widget-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.widget-cta i {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.widget-cta h4 {
    color: var(--white);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.widget-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.widget-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 24px;
    font-size: 0.9rem;
}

.widget-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   IMPROVED PAGINATION
   ========================================= */

.pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
    gap: 8px;
}

.pagination .dots {
    border: none;
    pointer-events: none;
}

/* =========================================
   RESPONSIVE DESIGN FOR NEWS PAGE
   ========================================= */

@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr 280px;
        gap: 40px;
    }
    
    .content-with-sidebar .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-sidebar {
        position: static;
        order: 2;
    }
    
    .content-with-sidebar .news-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 24px;
    }
    
    .pagination .nav-links {
        gap: 6px;
    }
    
    .pagination a,
    .pagination .current {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

/* =========================================
   ABOUT PAGE - IFRS PROFESSIONAL STYLE
   ========================================= */

/* IFRS Standards Page Container */
.ifrs-standards-page {
    background: var(--white);
    min-height: 100vh;
}

/* Container IFRS */
.container-ifrs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding {
    padding: 60px 0;
}

/* Simple Page Header */
.ifrs-page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 30px;
    margin-bottom: 0;
}

.ifrs-main-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.ifrs-page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

/* Content Wrapper */
.ifrs-content-wrapper {
    padding: var(--space-2xl) 0 var(--space-3xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

/* Two column layout (with sidebar) */
.ifrs-content-wrapper.with-sidebar {
    grid-template-columns: 1fr 320px;
    align-items: start;
}

/* Single column layout (no sidebar) */
.ifrs-content-wrapper .ifrs-content-main {
    max-width: 900px;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media (max-width: 968px) {
    .ifrs-content-wrapper.with-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ifrs-sidebar {
        position: static;
    }
    
    .container,
    .container-ifrs {
        padding: 0 20px;
    }
    
    .page-header-section {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .ifrs-content-wrapper {
        padding: 40px 0 60px;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
    }
    
    .filter-tab {
        width: 100%;
        text-align: center;
    }
    
    .standard-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .standard-actions {
        align-items: stretch;
    }
    
    .standard-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Main Content */
.ifrs-main-content {
    min-width: 0;
}

/* Intro Text */
.ifrs-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 24px;
}

/* Info Box (Licensing) */
.ifrs-info-box {
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    margin-bottom: 32px;
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-sm);
}

.ifrs-info-box h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px 0;
}

.ifrs-info-box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.ifrs-section {
    margin-bottom: 50px;
}

.ifrs-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.ifrs-section p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.ifrs-section p strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Related Links */
.ifrs-related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ifrs-related-links li {
    margin-bottom: 12px;
}

.ifrs-related-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 17px;
    transition: color 0.2s;
    display: inline-block;
}

.ifrs-related-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Sidebar */
.ifrs-sidebar {
    position: relative;
    align-self: start;
    height: fit-content;
}

.sidebar-box {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-xs);
}

.sidebar-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    display: block;
}

.sidebar-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .ifrs-content-wrapper .container {
        grid-template-columns: 1fr 250px;
        gap: 40px;
    }
    
    .ifrs-page-header h1 {
        font-size: 36px;
    }
    
    .ifrs-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .ifrs-content-wrapper .container {
        grid-template-columns: 1fr;
    }
    
    .ifrs-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .ifrs-page-header {
        padding: 30px 0 20px;
    }
    
    .ifrs-page-header h1 {
        font-size: 28px;
    }
    
    .ifrs-section h2 {
        font-size: 22px;
    }
    
    .ifrs-section p {
        font-size: 16px;
    }
    
    .ifrs-content-wrapper {
        padding: 40px 0 60px;
    }
}

/* =========================================
   NEWS MAGAZINE LAYOUT STYLES
   ========================================= */

/* Hero Featured Article */
.news-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.news-hero-image {
    position: relative;
    overflow: hidden;
}

.news-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-hero:hover .news-hero-image img {
    transform: scale(1.05);
}

.news-hero-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-light);
}

.news-hero-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.news-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.news-hero-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.news-hero-title a:hover {
    color: var(--primary-color);
}

.news-hero-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 24px 0;
}

.btn-news-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-base);
    width: fit-content;
}

.btn-news-primary:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

/* Magazine Grid Layout - One Per Row */
.news-magazine-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 50px;
}

.news-magazine-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    display: flex;
    flex-direction: row;
}

.news-magazine-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

/* All Cards Horizontal */
.news-magazine-card.horizontal {
    flex-direction: row;
}

.news-magazine-card .news-magazine-image {
    flex: 0 0 320px;
    max-width: 320px;
}

.news-magazine-card .news-magazine-content {
    flex: 1;
    padding: 28px 32px;
}

.news-magazine-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.news-magazine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-magazine-card:hover .news-magazine-image img {
    transform: scale(1.08);
}

.news-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,77,64,0.9);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-magazine-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-dot {
    opacity: 0.5;
}

.news-magazine-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px 0;
}

.news-magazine-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.news-magazine-title a:hover {
    color: var(--primary-color);
}

.news-magazine-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 18px 0;
    flex: 1;
}

.news-read-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: gap 0.2s;
}

.news-read-link:hover {
    gap: 4px;
}

/* News Page Layout with Sidebar */
.news-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
}

.news-main-content {
    min-width: 0;
}

.news-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* News Filters Section */
.news-filters-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.news-search-bar {
    position: relative;
    margin-bottom: 20px;
}

.news-search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.news-search-bar input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition-fast);
}

.news-search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 104, 94, 0.1);
}

.news-filter-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.news-filter-controls .filter-group {
    flex: 1;
    min-width: 200px;
}

.news-filter-controls label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.news-filter-controls label i {
    color: var(--primary-color);
    margin-right: 6px;
}

.news-filter-controls select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.news-filter-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-reset-filters {
    padding: 12px 24px;
    background: var(--background-light);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-reset-filters:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-reset-filters i {
    font-size: 13px;
}

/* Sidebar Cards — single canonical definition is in "Sidebar Standardizations" below */

.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories-list li {
    margin-bottom: 12px;
}

.sidebar-categories-list li:last-child {
    margin-bottom: 0;
}

.sidebar-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.sidebar-categories-list a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sidebar-categories-list .cat-count {
    font-size: 13px;
    opacity: 0.7;
}


/* Responsive */
@media (max-width: 1024px) {
    .news-with-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .news-filter-controls .filter-group {
        width: 100%;
    }
    
    .btn-reset-filters {
        width: 100%;
        justify-content: center;
    }
}

/* News Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.news-pagination a,
.news-pagination span {
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.news-pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.news-pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.news-no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--background-light);
    border-radius: var(--radius-lg);
}

.news-no-results i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.news-no-results h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.news-no-results p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   SINGLE STANDARD PAGE STYLES
============================================ */

/* Single Standard Layout */
.single-standard-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
}

.single-standard-main {
    min-width: 0;
}

.single-standard-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Page Category Badge in Hero */
.page-category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: var(--radius-2xl);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    margin: 16px 0 0 0;
    opacity: 0.9;
}

/* Standard Meta Info */
.standard-meta-info {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

.standard-meta-bar {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.standard-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.standard-meta-bar .meta-item i {
    color: var(--primary-color);
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #d32f2f;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.pdf-download-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211,47,47,0.3);
}

/* PDF icon color standardisation */
i.fa-file-pdf,
.fas.fa-file-pdf,
.far.fa-file-pdf,
.fal.fa-file-pdf,
.fab.fa-file-pdf,
.wgd-doc-link i.fa-file-pdf,
.standard-pdf-badge i {
    color: var(--primary-color);
}

/* Keep icons inside PDF download buttons inheriting the button text color */
.standard-link.pdf-download i,
.pdf-download-btn i {
    color: inherit;
}

/* Standard Content */
.single-standard-content {
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.single-standard-content h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
    color: var(--text-color);
}

.single-standard-content h3 {
    font-size: 22px;
    margin: 30px 0 16px 0;
    color: var(--text-color);
}

.single-standard-content p {
    margin-bottom: 20px;
}

.single-standard-content ul,
.single-standard-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-standard-content li {
    margin-bottom: 10px;
}

/* Share Section */
.share-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.share-section h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--white);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.email {
    background: #6c757d;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Related Standards Section */
.related-standards-section {
    margin: 60px 0 40px 0;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.related-standards-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: var(--text-color);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
}

.related-standards-section h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.related-standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.related-standard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.related-standard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.related-standard-image {
    height: 160px;
    overflow: hidden;
}

.related-standard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-standard-card:hover .related-standard-image img {
    transform: scale(1.05);
}

.related-standard-content {
    padding: 20px;
    flex: 1;
}

.related-standard-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.related-standard-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.related-standard-title a:hover {
    color: var(--primary-color);
}

.related-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-meta span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-meta i {
    color: var(--primary-color);
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header-inline h3 {
    margin: 0;
    border: none;
    padding: 0;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.view-all-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Technical Discussion Section */
.technical-discussion-section {
    margin: 60px 0;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.technical-discussion-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-color);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
}

.technical-discussion-section h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.discussion-intro {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Sidebar Enquiry Form */
.sidebar-enquiry {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003830 100%);
}

.sidebar-enquiry .card-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
}

.sidebar-enquiry p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Enquiry Standard Info */
.enquiry-standard-info {
    background: rgba(255,255,255,0.15);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.enquiry-standard-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.enquiry-standard-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.enquiry-standard-name strong {
    font-weight: 700;
}

.enquiry-form {
    margin-top: 20px;
}

.enquiry-form .form-group {
    margin-bottom: 16px;
}

.enquiry-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    transition: var(--transition-fast);
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255,255,255,0.15);
}

.btn-submit-enquiry {
    width: 100%;
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-enquiry:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit-enquiry:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.enquiry-response {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.enquiry-response.success {
    background: #4caf50;
    color: var(--white);
}

.enquiry-response.error {
    background: #f44336;
    color: var(--white);
}

.enquiry-response i {
    margin-right: 8px;
}

/* Quick Info Card */
.quick-info-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 20px 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    color: var(--text-color);
}

.info-value strong {
    font-weight: 700;
    color: var(--text-color);
    margin-right: 4px;
}

/* ============================================
   SINGLE EVENT PAGE STYLES
============================================ */

/* Event Info Bar */
.event-info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.info-bar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-bar-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 4px;
}

.info-bar-item div {
    flex: 1;
}

.info-bar-item strong {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-bar-item span {
    display: block;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
}

/* Event Featured Image */
.event-featured-image {
    margin: 30px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Event Location Section */
.event-location-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.event-location-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--text-color);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-color);
}

.event-location-section h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.event-address {
    margin-bottom: 20px;
}

.event-address p {
    margin: 8px 0;
    color: var(--text-color);
}

.btn-view-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-view-map:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,77,64,0.3);
}

/* Event Registration Section */
.event-registration-section {
    margin: 60px 0;
    scroll-margin-top: 100px;
}

/* ============================================
   EVENTS ARCHIVE PAGE STYLES
============================================ */

/* Event Filters */
.event-filters-section {
    margin-bottom: 40px;
}

.event-filters-section .filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card-image {
        height: 180px;
    }
}

/* Event Card */
.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.event-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.event-date-badge .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.event-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sidebar Resources List */
.sidebar-resources-list {
    list-style: none;
    padding: 10px 20px 16px;
    margin: 0;
}

.sidebar-resources-list li {
    margin-bottom: 3px;
}

.sidebar-resources-list li:last-child {
    margin-bottom: 0;
}

.sidebar-resources-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    background: #f4f8f6;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    border: 1px solid transparent;
}

.sidebar-resources-list a i {
    width: 16px;
    color: var(--primary-color);
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-resources-list a:hover,
.sidebar-resources-list a.active {
    background: #e6f2ef;
    color: var(--primary-color);
    border-color: rgba(0,77,64,0.18);
}

.sidebar-resources-list a.active {
    font-weight: 700;
}

.sidebar-resources-list a span {
    flex: 1;
}

.sidebar-resources-list a .count {
    font-size: 12px;
    background: rgba(0,77,64,0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-resources-list a.active .count,
.sidebar-resources-list a:hover .count {
    background: rgba(0,77,64,0.2);
}

.event-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
    border: 1px solid rgba(0, 77, 64, 0.1);
}

/* Hero Section Badge */
.page-category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

/* Meta Information Unification */
.event-meta-item,
.modal-info-item,
.quick-info-list .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-color);
    padding: 8px 0;
}

.event-meta-item i,
.modal-info-item i,
.quick-info-list .info-item i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.event-meta-item strong,
.modal-info-item strong,
.info-value strong {
    font-weight: 700;
    margin-right: 4px;
}

/* Specific overrides for different contexts */
.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.modal-event-info {
    margin-bottom: 24px;
}

.quick-info-list .info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    background: #f4f8f6;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.quick-info-list .info-item i {
    width: 16px;
    color: var(--primary-color);
    font-size: 13px;
    flex-shrink: 0;
    text-align: center;
}

.quick-info-list .info-value strong {
    display: inline;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-right: 3px;
}

/* Page Header Subtitle Meta */
.page-subtitle i {
    margin-right: 6px;
    opacity: 0.8;
}

/* Event Filter Tabs */
.filter-tab {
    padding: 10px 24px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover {
    background: #e2e8f0;
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.2);
}

/* Sidebar Item Enhancements — consolidated above */

.info-value {
    font-size: 15px;
    color: var(--text-color);
}

.info-value strong {
    font-weight: 700;
    color: var(--text-color);
    margin-right: 4px;
}

.event-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Sidebar Standardizations */
.sidebar-card {
    background: var(--white);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    border: 1px solid #e8f0ef;
    overflow: hidden;
}

.sidebar-card .card-title {
    font-size: 0.93rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    padding: 16px 20px 14px;
    border-bottom: 1px solid #eef0ef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card .card-title i {
    color: var(--primary-color);
    font-size: 15px;
}

/* Sidebar CTA Card */
.sidebar-card.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.sidebar-card.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/islamic-pattern.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.sidebar-card.sidebar-cta > * {
    position: relative;
    z-index: 2;
}

.sidebar-card.sidebar-cta .card-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
    padding: 0 0 14px 0;
    margin-bottom: 14px;
}

.sidebar-card.sidebar-cta .card-title i {
    color: var(--white);
    margin: 0;
    margin-right: 8px;
}

.sidebar-card.sidebar-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 0.87rem;
    line-height: 1.6;
    margin: 0 0 4px;
}

.sidebar-card .btn-full {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
    margin-top: 14px;
}


.sidebar-card.sidebar-cta .btn-white {
    background: white;
    color: var(--primary-color);
}

/* Padding for non-list sidebar card content */
.sidebar-card .event-stats { padding: 12px 20px 16px; }
.sidebar-card .resource-list { padding: 12px 20px 16px; }
.sidebar-card .no-resources { padding: 12px 20px 16px; }
.sidebar-card .cta-fee-box { margin: 10px 0 0; }
.sidebar-card.sidebar-evaluation form { padding: 0 20px 20px; }

/* p and buttons directly inside non-CTA sidebar cards */
.sidebar-card:not(.sidebar-cta) > p {
    padding: 0 20px;
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.sidebar-card:not(.sidebar-cta) > a.btn-full,
.sidebar-card:not(.sidebar-cta) > .btn-full {
    display: block;
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════
   Flat Editorial Sidebar  (alternative to Card-Grouped Widget)
   ENABLE : add class "sidebar-editorial" to <aside>
   REVERT : remove class "sidebar-editorial" from <aside>
══════════════════════════════════════════════════════════════ */

/* Remove card boxes — sections become divider-separated blocks */
.sidebar-editorial .sidebar-card {
    background: transparent;
    border: none;
    border-top: 1px solid #e8ecec;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 0 18px 0;
    margin-bottom: 0;
    overflow: visible;
}

.sidebar-editorial .sidebar-card:first-child {
    border-top: none;
}

/* Section header: small uppercase overline — branded with primary color */
.sidebar-editorial .sidebar-card .card-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--primary-color);
    padding: 0 0 10px 0;
    margin: 0 0 2px 0;
    border-bottom: 1px solid #d4e6e3;
    gap: 7px;
}

.sidebar-editorial .sidebar-card .card-title i {
    font-size: 11px;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Nav items — flat rows, no pill background */
.sidebar-editorial .sidebar-resources-list {
    padding: 4px 0 0 0;
}

.sidebar-editorial .sidebar-resources-list li {
    margin-bottom: 0;
}

.sidebar-editorial .sidebar-resources-list a {
    background: transparent;
    border: none;
    border-bottom: 1px solid #f4f4f4;
    border-radius: 0;
    box-shadow: inset 3px 0 0 transparent;
    padding: 9px 6px 9px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    gap: 10px;
    transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}

.sidebar-editorial .sidebar-resources-list a i {
    color: var(--text-light);
    font-size: 12px;
    width: 14px;
}

.sidebar-editorial .sidebar-resources-list a:hover,
.sidebar-editorial .sidebar-resources-list a.active {
    background: rgba(0, 77, 64, 0.05);
    box-shadow: inset 3px 0 0 var(--primary-color);
    color: var(--primary-color);
}

.sidebar-editorial .sidebar-resources-list a:hover i,
.sidebar-editorial .sidebar-resources-list a.active i {
    color: var(--primary-color);
}

.sidebar-editorial .sidebar-resources-list a.active {
    font-weight: 700;
}

.sidebar-editorial .sidebar-resources-list a span:not(.count) {
    flex: 1;
}

.sidebar-editorial .sidebar-resources-list a .count {
    flex: 0 0 auto;
    margin-left: auto;
    background: transparent;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0;
}

.sidebar-editorial .sidebar-resources-list a:hover .count,
.sidebar-editorial .sidebar-resources-list a.active .count {
    color: var(--primary-color);
}

/* Quick-info items — same flat row treatment */
.sidebar-editorial .quick-info-list {
    padding: 4px 0 0 0;
    gap: 0;
}

.sidebar-editorial .quick-info-list .info-item {
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f4f4f4;
    border-radius: 0;
    padding: 9px 6px 9px 10px;
    transition: background 0.15s, border-left-color 0.15s;
}

.sidebar-editorial .quick-info-list .info-item:hover {
    background: rgba(0, 77, 64, 0.04);
    border-left-color: var(--primary-color);
}

/* CTA — dark hero-color box (same across both sidebar styles) */
.sidebar-editorial .sidebar-card.sidebar-cta {
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    padding: 22px 20px 22px;
    margin-top: 8px;
    overflow: hidden;
}

.sidebar-editorial .sidebar-card.sidebar-cta::before {
    display: none;
}

.sidebar-editorial .sidebar-card.sidebar-cta .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 0 0 12px 0;
    margin-bottom: 12px;
}

.sidebar-editorial .sidebar-card.sidebar-cta .card-title i {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.sidebar-editorial .sidebar-card.sidebar-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 0 0 14px;
    line-height: 1.6;
}

.sidebar-editorial .sidebar-card.sidebar-cta .btn-full,
.sidebar-editorial .sidebar-card.sidebar-cta .btn-white {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    margin: 0;
    box-sizing: border-box;
    transition: background 0.15s, color 0.15s;
}

.sidebar-editorial .sidebar-card.sidebar-cta .btn-full::after,
.sidebar-editorial .sidebar-card.sidebar-cta .btn-white::after {
    content: none;
}

.sidebar-editorial .sidebar-card.sidebar-cta .btn-full:hover,
.sidebar-editorial .sidebar-card.sidebar-cta .btn-white:hover {
    background: rgba(255,255,255,0.88);
}

/* Non-CTA cards with p / btn-full content */
.sidebar-editorial .sidebar-card:not(.sidebar-cta) > p {
    padding: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 6px 0 10px;
}

.sidebar-editorial .sidebar-card:not(.sidebar-cta) > a.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: var(--btn-text-color);
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    margin: 0;
    box-sizing: border-box;
    transition: background 0.15s;
}

.sidebar-editorial .sidebar-card:not(.sidebar-cta) > a.btn-full::after { content: none; }
.sidebar-editorial .sidebar-card:not(.sidebar-cta) > a.btn-full:hover { background: var(--primary-dark); }

/* ── Sidebar Download Card (Footprint Report) ─────────────── */
.sidebar-download-card {
    background: var(--white);
    border: 1px solid #d7e8e5;
    border-top: 4px solid var(--primary-color) !important;
    padding: 22px 22px 18px;
}

.sidebar-dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #b71c1c;
    background: #fdecea;
    border-radius: var(--radius-xs);
    padding: 3px 8px;
    margin-bottom: 10px;
}

.sidebar-dl-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
    border-bottom: none !important;
}

.sidebar-dl-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 12px;
}

.sidebar-dl-meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #f0f4f3;
    padding-top: 12px;
}

.sidebar-dl-meta li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sidebar-dl-meta li i {
    color: var(--primary-color);
    width: 13px;
    font-size: 0.72rem;
}

.sidebar-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: var(--primary-color);
    color: var(--btn-text-color) !important;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    transition: background .18s, transform .15s;
}

.sidebar-dl-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.sidebar-dl-btn i { font-size: 0.82rem; }

.sidebar-dl-note {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 8px;
}

.sidebar-card.sidebar-cta .btn-white:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Working Groups Sidebar Card — hover uses sidebar-resources-list rules */
.wg-later-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #b45309;
    background: #fff3e0;
    padding: 2px 7px;
    border-radius: 10px;
}
.sidebar-resources-list a:hover .wg-later-badge {
    color: var(--primary-color);
    background: rgba(0,77,64,0.12);
}
.wg-sidebar-overview-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 10px;
    transition: gap 0.2s;
}
.wg-sidebar-overview-link:hover { gap: 10px; }

/* Event Status Badges */
.event-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 10px;
    vertical-align: middle;
}

.status-private {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
    border: 1px solid #fee2e2;
}

.status-future {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: 1px solid #fef3c7;
}

.event-card-title .event-status-badge {
    margin-bottom: 8px;
    display: block;
    width: fit-content;
}

.cta-fee-box {
    background: rgba(255,255,255,0.2);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    text-align: center;
}

.cta-fee-box .fee-label {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.cta-fee-box .fee-amount {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
}

/* Event Category List in Sidebar */
.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories-list li {
    margin-bottom: 8px;
}

.sidebar-categories-list li:last-child {
    margin-bottom: 0;
}

.sidebar-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-categories-list a:hover,
.sidebar-categories-list a.active {
    background: var(--primary-color);
    color: var(--white);
}

.sidebar-categories-list a .count {
    font-size: 12px;
    opacity: 0.7;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-categories-list a:hover .count,
.sidebar-categories-list a.active .count {
    background: rgba(255,255,255,0.2);
}

/* Event Price Styles */
.event-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.event-price.free-badge {
    color: var(--color-success);
    background: var(--color-success-bg);
    padding: 4px 12px;
    border-radius: var(--radius-2xl);
    font-size: 14px;
}

.btn-event-details {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-event-details:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* No Events & Pagination */
.no-events-message {
    text-align: center;
    padding: 100px 40px;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.no-events-message i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 24px;
    display: block;
}

.no-events-message h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.no-events-message p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
}

.pagination .page-numbers {
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   EVENT CALENDAR PAGE STYLES
============================================ */

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.calendar-month-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    min-width: 250px;
    text-align: center;
}

.btn-calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-calendar-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.calendar-view-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-toggles {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.view-toggles .btn-view-toggle {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
    box-shadow: none;
    font-size: 14px;
}

.view-toggles .btn-view-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.view-toggles .btn-view-toggle.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

/* Year View Grid */
.year-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.year-month-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.year-month-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.year-month-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.year-month-preview {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 10px;
    text-align: center;
}

.mini-day-name {
    color: var(--text-muted);
    font-size: 9px;
    margin-bottom: 4px;
}

.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.mini-day.has-event {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: bold;
}

.mini-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .calendar-view-toggle {
        flex-direction: column;
        align-items: stretch;
    }
    
    .year-view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .year-view-grid {
        grid-template-columns: 1fr;
    }
}

.btn-view-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,77,64,0.3);
}

/* Calendar Grid */
.event-calendar-grid {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 40px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--primary-color);
}

.calendar-day-name {
    padding: 16px;
    text-align: center;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.calendar-cell {
    background: var(--white);
    min-height: 120px;
    padding: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-cell:hover {
    background: #f8fffe;
}

.calendar-cell.empty {
    background: #f9fafb;
    cursor: default;
}

.calendar-cell.today {
    background: #f0f9ff;
    border: 2px solid var(--primary-color);
}

.cell-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.calendar-cell.today .cell-date {
    color: var(--primary-color);
}

.cell-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cell-event {
    padding: 6px 8px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cell-event:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.event-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.event-title-mini {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

/* Calendar Legend */
.calendar-legend {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.calendar-legend h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-color);
}

.calendar-legend h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}

/* Event Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.event-modal-content {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    width: 90%;
    position: relative;
}

.event-modal-header {
    padding: 15px 20px;
    color: var(--white);
    position: relative;
}

.event-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 40px;
}

.event-modal-body {
    padding: 20px;
}

.modal-event-info {
    margin-bottom: 15px;
}

.modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
}

.modal-info-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    margin-top: 3px;
    font-size: 14px;
}

.btn-view-event {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    font-size: 13px;
    margin-top: 12px;
}

.btn-view-event:hover {
background: var(--primary-dark);
transform: translateY(-2px);
}

.event-modal-close {
position: absolute;
top: 15px;
right: 15px;
background: rgba(255,255,255,0.2);
border: none;
color: var(--white);
font-size: 24px;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
transition: background 0.2s;
}

.event-modal-close:hover {
background: rgba(255,255,255,0.4);
}

/* Responsive Calendar */
@media (max-width: 968px) {
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .calendar-month-title {
        order: -1;
    }
    
    .calendar-cell {
        min-height: 80px;
        padding: 8px;
    }
    
    .cell-date {
        font-size: 14px;
    }
    
    .cell-event {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .calendar-day-name {
        padding: 12px 8px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .calendar-cell {
        min-height: 60px;
        padding: 6px;
    }
    
    .event-title-mini {
        display: none;
    }
    
    .cell-event {
        padding: 8px;
        justify-content: center;
    }
}

/* Responsive Single Standard */
@media (max-width: 1024px) {
    .single-standard-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-standard-sidebar {
        position: static;
    }
    
    .related-standards-grid {
        grid-template-columns: 1fr;
    }
    
    .event-info-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .single-standard-title {
        font-size: 28px;
    }
    
    .standard-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .event-location-section {
        padding: 24px;
    }
}

/* Responsive News Layout */
@media (max-width: 968px) {
    .news-hero {
        grid-template-columns: 1fr;
    }
    
    .news-hero-image {
        min-height: 300px;
    }
    
    .news-magazine-card .news-magazine-image {
        flex: 0 0 280px;
        max-width: 280px;
    }
    
    .news-magazine-card .news-magazine-content {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .news-magazine-card {
        flex-direction: column;
    }
    
    .news-magazine-card .news-magazine-image {
        flex: auto;
        max-width: 100%;
    }
    
    .news-magazine-card .news-magazine-content {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .news-hero-content {
        padding: 24px;
    }
    
    .news-hero-title {
        font-size: 24px;
    }
    
    .news-hero-excerpt {
        font-size: 15px;
    }
}

/* =========================================
   SINGLE POST/NEWS ARTICLE STYLES
   ========================================= */

/* Hero/* Single Post Hero - Compact Version */
.single-post-hero-compact {
    position: relative;
    max-height: 350px;
    overflow: hidden;
    margin-bottom: 0;
}

.single-post-hero-compact img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.single-post-hero-compact .single-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 0 0 40px 0;
}

.single-post-hero-compact .hero-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.single-post-hero-compact .hero-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.single-post-hero-compact .hero-breadcrumb a:hover {
    opacity: 0.8;
}

.single-post-hero-compact .hero-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.7;
}

.single-post-hero-compact .hero-content {
    width: 100%;
}

.single-post-hero-compact .post-categories {
    margin-bottom: 12px;
}

.single-post-hero-compact .post-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.single-post-hero-compact .hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 16px 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.single-post-hero-compact .hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post-hero-compact .hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
}

.single-post-hero-compact .hero-meta .meta-item i {
    opacity: 0.8;
}

/* Old Hero Style (Kept for Backwards Compatibility) */
.single-post-hero {
    position: relative;
    max-height: 500px;
    overflow: hidden;
}

.single-post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 40px 0 20px;
}

.hero-breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.hero-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.hero-breadcrumb a:hover {
    opacity: 0.8;
}

.hero-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.7;
}

/* Simple Breadcrumb Hero */
.simple-hero-breadcrumb {
    background: var(--background-light);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.simple-hero-breadcrumb .hero-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
}

.simple-hero-breadcrumb .hero-breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.simple-hero-breadcrumb .hero-breadcrumb a:hover {
    color: var(--primary-color);
}

.simple-hero-breadcrumb .hero-breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

/* Featured Image in Content */
.single-post-featured-image {
    margin: 0 0 30px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single Post Layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    padding: 0 0 80px 0;
}

.single-post-main {
    min-width: 0;
}

/* Article Header */
.single-post-header {
    margin-bottom: 40px;
}

.post-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.post-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.post-category-badge:hover {
    background: var(--primary-dark);
}

.single-post-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin: 0 0 24px 0;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Article Content */
.single-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
    color: var(--text-color);
}

.single-post-content h3 {
    font-size: 24px;
    margin: 30px 0 16px 0;
    color: var(--text-color);
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post-content li {
    margin-bottom: 10px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    background: var(--background-light);
    margin: 30px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.post-tags i {
    color: var(--primary-color);
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--background-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    transition: var(--transition-fast);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.author-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Share Buttons */
.post-share {
    margin-bottom: 50px;
}

.post-share h4 {
    font-size: 18px;
    margin: 0 0 16px 0;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.35);
    color: var(--white);
}

.share-btn.facebook,
.share-btn.twitter,
.share-btn.linkedin,
.share-btn.email {
    background: var(--primary-color);
}

/* Related Articles */
.related-articles {
    margin-bottom: 50px;
}

.related-articles h3 {
    font-size: 24px;
    margin: 0 0 24px 0;
    color: var(--text-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.related-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.08);
}

.related-content {
    padding: 20px;
}

.related-date {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.related-content h4 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.related-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

/* Single Post Sidebar */
.single-post-sidebar .sidebar-widget {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.single-post-sidebar .sidebar-widget h4 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--text-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-info {
    flex: 1;
}

.sidebar-post-info h5 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.sidebar-post-info h5 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-post-info h5 a:hover {
    color: var(--primary-color);
}

.sidebar-post-date {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 10px;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.sidebar-categories a:hover {
    color: var(--primary-color);
}

.sidebar-categories i {
    margin-right: 8px;
    color: var(--primary-color);
}

.cat-count {
    color: var(--text-muted);
    font-size: 13px;
}

/* Comments Section Styling */
.comments-wrapper {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 30px 0;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.comment-list .comment:hover {
    box-shadow: var(--shadow-md);
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin: 20px 0 0 40px;
    padding: 0;
}

.comment-list .children .comment {
    background: var(--background-light);
    border-left: 3px solid var(--primary-color);
}

/* Comment Header */
.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.comment-author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.comment-author-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-author-name a:hover {
    color: var(--primary-color);
}

.says {
    display: none;
}

/* Comment Meta */
.comment-metadata {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.comment-metadata a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-edit-link {
    margin-left: auto;
    padding: 4px 12px;
    background: var(--background-light);
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.comment-edit-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Comment Content */
.comment-content {
    margin: 0 0 15px 0;
    line-height: 1.7;
    color: var(--text-color);
}

.comment-content p {
    margin: 0 0 10px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Comment Reply */
.reply {
    margin-top: 15px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.comment-reply-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.comment-reply-link::before {
    content: '\f3e5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Comment Form */
.comment-respond {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.comment-reply-title small {
    font-size: 14px;
    font-weight: 400;
}

.comment-reply-title small a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 10px;
}

.logged-in-as {
    margin: 0 0 20px 0;
    padding: 12px 16px;
    background: var(--background-light);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-xs);
    font-size: 14px;
}

.logged-in-as a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.comment-form {
    margin-top: 20px;
}

.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-comment label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,77,64,0.1);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 16px;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-color);
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,77,64,0.1);
}

.required {
    color: var(--color-danger);
}

.comment-form-cookies-consent {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.form-submit {
    margin-top: 20px;
}

.submit {
    padding: 12px 32px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xs);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,77,64,0.3);
}

/* Comment Navigation */
.comment-navigation {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.comment-navigation a:hover {
    color: var(--primary-dark);
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

/* Comment Awaiting Moderation */
.comment-awaiting-moderation {
    display: block;
    padding: 10px 16px;
    background: var(--color-warning-bg);
    border-left: 3px solid var(--color-warning);
    border-radius: var(--radius-xs);
    color: var(--color-warning-text);
    font-size: 13px;
    margin-top: 10px;
}

/* Responsive Comments */
@media (max-width: 768px) {
    .comment-respond {
        padding: 24px;
    }
    
    .comment-list .children {
        margin-left: 20px;
    }
    
    .comment-list .comment {
        padding: 20px;
    }
}

/* Responsive Single Post */
@media (max-width: 968px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-post-hero {
        height: 350px;
    }
    
    .single-post-title {
        font-size: 32px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .single-post-hero {
        height: 250px;
    }
    
    .single-post-title {
        font-size: 26px;
    }
    
    .single-post-content {
        font-size: 16px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PARTNERS PAGE STYLES
   ========================================= */

.partners-intro-row {
    margin-bottom: 50px;
}

.partners-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.partners-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-card-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    text-align: center;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    background: var(--white);
}

.partner-card-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.partner-card-item img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.partners-cta {
    margin-top: 80px;
    background: var(--primary-color);
    color: var(--white);
    padding: 60px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.partners-cta h2 {
    color: var(--white);
}

.partners-cta p {
    max-width: 600px;
    margin: 20px auto;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .partners-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partners-cta {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .partners-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-cards {
    margin-top: 30px;
}

.info-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-card .icon {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.info-card .details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--text-color);
}

.info-card .details p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.map-container {
    margin-top: 30px;
    background: #f1f5f9;
    height: 300px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
}

.cis-contact-form .form-group {
    margin-bottom: 20px;
}

.cis-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.cis-contact-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition-fast);
}

.cis-contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

/* =========================================
   PROJECTS PAGE STYLES - IFRS INSPIRED
   ========================================= */

/* Project Tabs */
.projects-tabs {
    display: flex;
    gap: 0;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
}

.project-tab {
    padding: 14px 24px;
    background: var(--background-light);
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    margin-bottom: -3px;
}

.project-tab:hover {
    background: #e8e8e8;
}

.project-tab.active {
    background: var(--white);
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* Content Layout */
.projects-content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.projects-main {
    min-width: 0;
}

/* Intro Text */
.projects-intro {
    margin-bottom: 20px;
}

.projects-intro p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Search Controls */
.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-go {
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-go:hover {
    background: var(--primary-dark);
}

.btn-clear {
    padding: 8px 16px;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-clear:hover {
    background: var(--background-light);
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #8b0000;
    color: var(--white);
    border: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-print:hover {
    background: var(--primary-dark);
}

/* Projects Table */
.projects-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.projects-table thead {
    background: var(--background-light);
}

.projects-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.projects-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.projects-table th.sortable:hover {
    background: #e8e8e8;
}

.projects-table th i {
    margin-left: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.projects-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.projects-table tbody tr:hover {
    background: #f9fafb;
}

.projects-table td {
    padding: 14px 16px;
    vertical-align: top;
}

.type-cell {
    width: 60px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
}

/* Type Badge Colors - Inspired by IFRS */
.type-badge.type-application,
.type-badge.type-aq {
    background: #4db8a8;
}

.type-badge.type-standard,
.type-badge.type-sp {
    background: #8b5a9f;
}

.type-badge.type-maintenance,
.type-badge.type-mp {
    background: #d97c3e;
}

.type-badge.type-research,
.type-badge.type-rp {
    background: #4a7ba7;
}

.type-badge.type-taxonomy,
.type-badge.type-tp {
    background: #c14851;
}

.type-badge.type-governance,
.type-badge.type-gp {
    background: #6b7c3e;
}

.type-badge.type-default {
    background: #6c757d;
}

.project-title-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.project-title-link:hover {
    text-decoration: underline;
}

.milestone-cell,
.date-cell,
.standards-cell {
    color: var(--text-color);
}

.no-projects-row {
    text-align: center;
    padding: 40px 20px !important;
}

.no-projects-row p {
    color: var(--text-muted);
    margin: 0;
}

/* Table Footer */
.table-footer {
    margin-top: 20px;
    padding: 16px;
    background: var(--background-light);
    border-radius: var(--radius-xs);
}

.table-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Sidebar - Project Type Legend */
.projects-sidebar {
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    height: fit-content;
}

.projects-sidebar h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.type-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-label {
    font-size: 14px;
    color: var(--text-color);
}

/* Responsive - Projects Table */
@media (max-width: 1024px) {
    .projects-content-layout {
        grid-template-columns: 1fr;
    }
    
    .projects-sidebar {
        order: -1;
    }
    
    .type-legend {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .projects-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .project-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .projects-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .btn-print {
        width: 100%;
        justify-content: center;
    }
    
    .projects-table {
        font-size: 13px;
    }
    
    .projects-table th,
    .projects-table td {
        padding: 10px 12px;
    }
}

@media print {
    .projects-tabs,
    .projects-controls,
    .projects-sidebar {
        display: none;
    }
    
    .projects-content-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SINGLE PROJECT PAGE STYLES
   ========================================= */

/* Project Hero Section */
.project-hero {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
    color: var(--white);
    padding: 60px 0 80px;
    position: relative;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

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

.project-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.project-breadcrumb a:hover {
    opacity: 0.8;
}

.project-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.project-breadcrumb .current {
    opacity: 0.7;
}

.project-header-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.project-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-2xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status-badge.status-ongoing {
    background: rgba(66, 165, 245, 0.2);
    color: #42a5f5;
}

.project-status-badge.status-completed {
    background: rgba(102, 187, 106, 0.2);
    color: #66bb6a;
}

.project-status-badge.status-pending {
    background: rgba(255, 167, 38, 0.2);
    color: #ffa726;
}

.project-status-badge.status-upcoming {
    background: rgba(171, 71, 188, 0.2);
    color: #ab47bc;
}

.project-hero .project-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.project-lead {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 800px;
}

/* Project Layout */
.project-container {
    padding: 60px 0;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.project-main-content {
    min-width: 0;
}

/* Project Sections */
.project-section {
    margin-bottom: 50px;
}

.project-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 24px;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.section-content p {
    margin-bottom: 16px;
}

.section-content ul,
.section-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.section-content li {
    margin-bottom: 10px;
}

/* Objectives Content */
.objectives-content ul {
    list-style: none;
    padding-left: 0;
}

.objectives-content li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
}

.objectives-content li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 18px;
}

/* Deliverables Content */
.deliverables-content ul {
    list-style: none;
    padding-left: 0;
}

.deliverables-content li {
    background: var(--background-light);
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.team-member {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-base);
}

.team-member:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.member-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.member-icon i {
    font-size: 28px;
    color: var(--white);
}

.member-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.member-role {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Service Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.provider-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition-base);
}

.provider-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.provider-icon {
    width: 70px;
    height: 70px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.provider-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.provider-card h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

/* Documents List */
.documents-list {
    margin-top: 24px;
}

.document-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-base);
}

.document-item:hover {
    box-shadow: var(--shadow-md);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: #fee;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon i {
    font-size: 28px;
    color: #d32f2f;
}

.doc-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.doc-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-base);
}

.doc-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Related Projects */
.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.related-project-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-base);
}

.related-project-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.related-project-header {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.status-tag {
    padding: 4px 10px;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.related-project-card h4 {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
}

.related-project-card h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.related-project-card h4 a:hover {
    color: var(--primary-color);
}

.related-project-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.view-project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
}

.view-project-link:hover {
    gap: 10px;
}

/* Project Sidebar */
.project-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Project Info Card */
.info-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item label i {
    margin-right: 6px;
    color: var(--primary-color);
}

.info-item span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

/* Progress Bar */
.progress-item {
    padding-bottom: 24px !important;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-sm);
    transition: width 1s ease;
}

.progress-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 45px;
}

.status-badge-sm {
    display: inline-block !important;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge-sm.status-ongoing {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge-sm.status-completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-badge-sm.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

/* Partners List */
.partners-list {
    margin-top: 16px;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-color);
}

.partner-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.cta-card .card-title {
    color: var(--white);
}

.cta-card p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.btn-primary-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-base);
}

.btn-primary-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Back to Projects Link */
.back-to-projects {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.back-to-projects:hover {
    color: var(--primary-color);
    gap: 14px;
}

/* Responsive - Single Project */
@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
    }
    
    .project-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 40px 0 60px;
    }
    
    .project-hero .project-title {
        font-size: 32px;
    }
    
    .project-lead {
        font-size: 16px;
    }
    
    .project-container {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .team-grid,
    .providers-grid,
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .doc-download {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================
   EVENTS PAGES STYLES
   ========================================= */

/* Event Cards for Archive */
.event-card-pro {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    transition: var(--transition-base);
}

.event-card-pro:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.event-date-badge {
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    min-width: 100px;
}

.event-date-badge .day {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 16px;
    margin-top: 4px;
    text-transform: uppercase;
}

.event-meta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.event-type-badge,
.event-price-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.event-price-badge {
    background-color: var(--color-success);
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.event-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.event-title a:hover {
    color: var(--primary-color);
}

.event-card-meta,
.modal-event-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.event-meta-item,
.modal-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.event-meta-item i,
.modal-info-item i {
    color: var(--primary-color);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.event-meta-item strong,
.modal-info-item strong {
    font-weight: 700;
    margin-right: 4px;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.event-info-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.event-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 20px 0;
}

.event-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-event-primary,
.btn-event-secondary {
    padding: 10px 20px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-event-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-event-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-event-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-event-secondary:hover {
    background: var(--primary-light);
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    background: var(--background-light);
    border-radius: var(--radius-md);
}

.no-events h3 {
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.no-events p {
    margin: 0;
    color: var(--text-muted);
}

/* Mobile Responsive for Events */
@media (max-width: 768px) {
    .event-card-pro {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-date-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        width: fit-content;
    }
    
    .event-date-badge .day {
        font-size: 24px;
    }
    
    .event-date-badge .month {
        font-size: 14px;
        margin-top: 0;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .btn-event-primary,
    .btn-event-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   STANDARDS NAVIGATOR - IFRS STYLE
   ========================================= */

/* Standards Filters and Search */
.standards-filters {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.filter-tab:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Search Box */
.search-box {
    display: flex;
    gap: 8px;
    max-width: 500px;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    font-size: 15px;
    transition: border-color 0.2s;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.search-box button:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
}

/* Sidebar */
.ifrs-sidebar {
    position: relative;
    align-self: start;
    height: fit-content;
}

.sidebar-section {
    background: var(--background-light);
    padding: 24px;
    border-radius: var(--radius-xs);
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: var(--primary-color);
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--primary-color);
    color: var(--white);
}

.sidebar-cta h3 {
    color: var(--white);
}

.sidebar-cta p {
    color: var(--white);
    opacity: 0.9;
    font-size: 14px;
    margin: 12px 0 16px 0;
}

.btn-sidebar {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-sidebar:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-search {
    display: flex;
    gap: 8px;
    max-width: 500px;
}

.filter-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    font-size: 15px;
    transition: border-color 0.2s;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.filter-search button {
    padding: 10px 20px;
    background: var(--text-muted);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.filter-search button:hover {
    background: var(--primary-dark);
}

/* Standards Notice Box */
.standards-notice {
    background: var(--background-light);
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    margin-bottom: 40px;
}

.standards-notice h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.standards-notice p {
    font-size: 15px;
    margin-bottom: 0;
}

/* Standards Categories */
.standards-categories {
    margin-top: 40px;
}

.standard-category-block {
    margin-bottom: 60px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.category-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Standards List */
.standards-list {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    background: var(--white);
}

.standard-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
    transition: background 0.2s;
}

.standard-item:last-child {
    border-bottom: none;
}

.standard-item:hover {
    background: var(--background-light);
}

.standard-number {
    font-weight: 700;
    font-size: 18px;
    padding-top: 4px;
    display: block;
    min-height: 20px;
    text-align: center;
}

.standard-details {
    min-width: 0;
}

.standard-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.standard-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.standard-title a:hover {
    color: var(--primary-color);
}

.standard-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.standard-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.standard-meta {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.standard-pdf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
}

.standard-pdf-badge i {
    color: #d32f2f;
    font-size: 14px;
}

.standard-actions {
    padding-top: 4px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.standard-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.standard-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.standard-link.pdf-download {
    background: #d32f2f;
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    text-decoration: none;
}

.standard-link.pdf-download:hover {
    background: #b71c1c;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.standard-link.pdf-download i {
    font-size: 14px;
}

.no-standards {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Responsive for Standards */
@media (max-width: 1024px) {
    .standard-item {
        grid-template-columns: 100px 1fr auto;
        gap: 16px;
        padding: 20px;
    }
    
    .category-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        gap: 6px;
    }
    
    .filter-tab {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .filter-search {
        max-width: 100%;
        flex-direction: column;
    }
    
    .filter-search button {
        width: 100%;
    }
    
    .standard-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .standard-number {
        font-size: 16px;
        padding-top: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 8px;
    }
    
    .standard-actions {
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    
    .standard-link {
        display: block;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .standard-title {
        font-size: 16px;
    }
}

/* Remove all old about page styles below this line */
.about-hero::before {
    content: none;
    opacity: 0.3;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.about-hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.about-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Our Story Section */
.about-story-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.story-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.story-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
    opacity: 0.8;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.about-story-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.story-text {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 20px;
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: var(--space-3xl) 0;
    background: var(--background-light);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card,
.vision-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.mv-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-green);
}

.mv-card-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.mv-card-content > p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.mv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mv-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 15px;
}

.mv-list i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Core Values Section */
.values-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}


.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition-base);
}

.value-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-color);
    font-size: 30px;
    transition: var(--transition-base);
}

.value-card:hover .value-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.value-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Leadership Section */
.leadership-section {
    padding: var(--space-3xl) 0;
    background: var(--background-light);
}

.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-member-modern {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.team-member-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.member-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--background-light);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member-modern:hover .member-photo img {
    transform: scale(1.05);
}

.member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-size: 60px;
}

.member-social {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    opacity: 0;
}

.team-member-modern:hover .member-social {
    opacity: 1;
}

.member-social:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.member-info {
    padding: 32px;
}

.member-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.member-position {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.member-bio {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 60px;
    margin-right: 50%;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 60px;
    margin-left: 50%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--primary-light);
    z-index: 2;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-2xl);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.timeline-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* About CTA Section */
.about-cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.about-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-cta-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}


.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   SEARCH & ARCHIVE UTILITIES
   ========================================= */

.search-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.search-item h3 {
    margin-bottom: 10px;
}

.search-type-badge {
    font-size: 0.6em;
    background: #eee;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    vertical-align: middle;
    margin-left: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.search-box-large {
    max-width: 500px;
    margin-top: 20px;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-logo-img {
    height: 40px;
    opacity: 0.3;
    object-fit: contain;
}

/* Responsive Design for About Page */
@media (max-width: 1024px) {
    .about-hero-title {
        font-size: 42px;
    }
    
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .timeline-marker {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 400px;
    }
    
    .about-hero-content {
        padding: 60px 20px;
    }
    
    .about-hero-title {
        font-size: 32px;
    }
    
    .about-hero-subtitle {
        font-size: 16px;
    }
    
    .about-story-content h2,
    .section-header-center h2,
    .about-cta-content h2 {
        font-size: 32px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .team-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .vision-card {
        padding: 32px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* =========================================
   IFRS-STYLE PAGE LAYOUT
   ========================================= */

/* Main content area */
.ifrs-content-main {
    min-width: 0;
}

/* Section styling */
.ifrs-section {
    margin-bottom: 40px;
}

.ifrs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ifrs-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.ifrs-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 30px 0 16px 0;
}

.ifrs-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 16px;
}

.ifrs-section ul,
.ifrs-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.ifrs-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* About child pages (default page template) - Editorial Clean */
.ifrs-section--about,
.is-about-child .ifrs-section {
    margin-bottom: 0;
}

.ifrs-section--about .entry-content,
.is-about-child .entry-content {
    background: transparent;
    border: none;
    padding: 0;
}

.ifrs-section--about .entry-content .wp-block-group,
.is-about-child .entry-content .wp-block-group {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ifrs-section--about .entry-content .wp-block-group + .wp-block-group,
.is-about-child .entry-content .wp-block-group + .wp-block-group {
    margin-top: 30px;
    padding-top: 24px !important;
    border-top: 1px solid #eef0ef !important;
}

.ifrs-section--about .entry-content h2,
.ifrs-section--about .entry-content h3,
.ifrs-section--about .entry-content .wp-block-heading,
.is-about-child .entry-content h2,
.is-about-child .entry-content h3,
.is-about-child .entry-content .wp-block-heading {
    color: var(--text-color) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
    -webkit-text-fill-color: var(--text-color) !important;
}

.ifrs-section--about .entry-content h2,
.ifrs-section--about .entry-content h2.wp-block-heading,
.is-about-child .entry-content h2,
.is-about-child .entry-content h2.wp-block-heading {
    font-size: 2rem !important;
    margin: 34px 0 12px !important;
}

.ifrs-section--about .entry-content h2:first-child,
.is-about-child .entry-content h2:first-child {
    margin-top: 0 !important;
}

.ifrs-section--about .entry-content h2::after,
.is-about-child .entry-content h2::after {
    content: '' !important;
    display: block !important;
    width: 36px;
    height: 2px;
    margin-top: 10px;
    background: var(--primary-color);
}

.ifrs-section--about .entry-content h3,
.ifrs-section--about .entry-content h3.wp-block-heading,
.is-about-child .entry-content h3,
.is-about-child .entry-content h3.wp-block-heading {
    font-size: 1.55rem !important;
    margin: 30px 0 10px !important;
}

.ifrs-section--about .entry-content p,
.is-about-child .entry-content p {
    font-size: 0.97rem !important;
    line-height: 1.85 !important;
    color: var(--text-muted) !important;
    margin: 0 0 16px !important;
}

.ifrs-section--about .entry-content a,
.is-about-child .entry-content a {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.ifrs-section--about .entry-content strong,
.is-about-child .entry-content strong {
    color: var(--text-color) !important;
}

.ifrs-section--about .entry-content ul,
.ifrs-section--about .entry-content ol,
.is-about-child .entry-content ul,
.is-about-child .entry-content ol {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #eef0ef;
}

.ifrs-section--about .entry-content li,
.is-about-child .entry-content li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #eef0ef;
    line-height: 1.7;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .ifrs-section--about .entry-content h2,
    .is-about-child .entry-content h2 {
        font-size: 1.6rem !important;
    }

    .ifrs-section--about .entry-content h3,
    .is-about-child .entry-content h3 {
        font-size: 1.3rem !important;
    }

    .ifrs-section--about .entry-content p,
    .is-about-child .entry-content p {
        font-size: 0.95rem !important;
    }
}

/* Related links section */
.ifrs-related-links ul {
    list-style: none;
    padding: 0;
}

.ifrs-related-links li {
    margin-bottom: 12px;
}

.ifrs-related-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ifrs-related-links a::before {
    content: '→';
    font-weight: bold;
}

.ifrs-related-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Sidebar resources list */
.sidebar-resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-resources-list li {
    margin-bottom: 12px;
}

.sidebar-resources-list li:last-child {
    margin-bottom: 0;
}

.sidebar-resources-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-resources-list a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(4px);
}

.sidebar-resources-list i {
    color: var(--primary-color);
    font-size: 16px;
    transition: color 0.2s;
}

.sidebar-resources-list a:hover i {
    color: var(--primary-dark);
}

/* Responsive IFRS Layout */
@media (max-width: 1024px) {
    .container-ifrs {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .ifrs-content-wrapper.with-sidebar {
        grid-template-columns: 1fr;
    }

    .container-ifrs {
        padding: 30px 20px;
    }
    
    .ifrs-section h2 {
        font-size: 24px;
    }
    
    .ifrs-section h3 {
        font-size: 20px;
    }
    
    .ifrs-section p {
        font-size: 15px;
    }
}

/* =========================================
   GOVERNANCE PAGE STYLES
   ========================================= */

/* Governance Facts List */
.governance-facts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-xs);
}

.fact-item i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.fact-item div {
    flex: 1;
}

.fact-item strong {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.fact-item span {
    display: block;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Info Box Actions */
.info-box-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-link-primary,
.btn-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.btn-link-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-link-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-link-secondary {
    background: var(--background-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-link-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Page Navigation Box */
.page-navigation-box {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.page-navigation-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 16px 0;
}

.page-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.page-nav-list li {
    margin: 0;
    display: flex;
}

.page-nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
    border-left: 3px solid transparent;
    width: 100%;
    min-height: 48px;
    height: 100%;
}

.page-nav-list a:hover {
    border-left-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.page-nav-list a::before {
    content: '→';
    font-weight: bold;
    color: var(--primary-color);
}

.info-note {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-xs);
    margin: 24px 0;
}

.info-note i {
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-note p {
    margin: 0;
}

/* Leadership Profiles */
.leadership-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.profile-card {
    padding: 24px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-base);
}

.profile-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.profile-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 32px;
}

.profile-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.profile-role {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Policy Grid */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.policy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-base);
}

.policy-item:hover {
    border-color: var(--primary-color);
    background: var(--white);
}

.policy-item i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Downloads Section */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-base);
}

.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.download-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 24px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 4px 0;
}

.file-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.download-card > i {
    color: var(--primary-color);
    font-size: 20px;
}

/* ── Governance Page — Editorial Clean ──────────────────────── */

.gov-section {
    border-top: 1px solid #eef0ef;
    padding: 40px 0;
}
.gov-section--first {
    border-top: none;
    padding-top: 24px;
}

/* Overline */
.gov-overline {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Titles */
.gov-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 14px;
    line-height: 1.3;
}
.gov-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    margin: 20px 0 6px;
}

/* Lead intro */
.gov-lead {
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.75;
    margin: 0 0 24px;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
}

/* Body text */
.gov-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 12px;
}

/* Key facts definition list */
.gov-facts {
    margin: 0 0 20px;
    padding: 0;
}
.gov-fact-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
}
.gov-fact-row:last-child { border-bottom: none; }
.gov-fact-row dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    flex-shrink: 0;
    margin: 0;
}
.gov-fact-row dd {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
    margin: 0;
}

/* Intro action links */
.gov-intro-actions {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.gov-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: gap 0.15s;
}
.gov-text-link:hover { gap: 10px; color: var(--primary-dark); }
.gov-text-link span { transition: inherit; }

/* Clean bullet list */
.gov-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.gov-list li {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 8px 0 8px 16px;
    border-bottom: 1px solid #f4f4f4;
    position: relative;
}
.gov-list li:last-child { border-bottom: none; }
.gov-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.5;
}

/* Composition stats inline */
.gov-comp-row {
    display: flex;
    gap: 0;
    border-top: 1px solid #eef0ef;
    margin-top: 20px;
    padding-top: 20px;
}
.gov-comp-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 20px;
    border-right: 1px solid #eef0ef;
}
.gov-comp-item:last-child {
    padding-right: 0;
    padding-left: 20px;
    border-right: none;
}
.gov-comp-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.5px;
}
.gov-comp-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Leadership roles list */
.gov-roles-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.gov-roles-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
}
.gov-roles-list li:last-child { border-bottom: none; }
.gov-role-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    flex-shrink: 0;
}
.gov-role-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: right;
}

/* Downloads flat list */
.gov-downloads {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gov-dl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.15s, background 0.15s;
}
.gov-downloads li:last-child .gov-dl-row { border-bottom: none; }
.gov-dl-row:hover { color: var(--primary-color); }
.gov-dl-icon { color: #c53030; font-size: 1rem; flex-shrink: 0; }
.gov-dl-name { flex: 1; font-size: 0.9rem; font-weight: 500; }
.gov-dl-meta { font-size: 0.75rem; color: var(--text-light); flex-shrink: 0; }
.gov-dl-arrow {
    font-size: 0.75rem;
    color: var(--text-light);
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}
.gov-dl-row:hover .gov-dl-arrow { color: var(--primary-color); transform: translateY(2px); }

@media (max-width: 640px) {
    .gov-comp-row { flex-direction: column; gap: 16px; }
    .gov-comp-item { border-right: none; border-bottom: 1px solid #eef0ef; padding: 0 0 16px; }
    .gov-comp-item:last-child { border-bottom: none; padding: 0; }
    .gov-roles-list li { flex-direction: column; gap: 2px; }
    .gov-role-desc { text-align: left; }
}

/* ── Governance Sidebar — Editorial Clean ────────────────────── */

/* Stats row: large numerals + thin vertical dividers */
.gov-stat-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
}

.gov-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    text-align: center;
}

.gov-stat-num {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.gov-stat-lbl {
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    line-height: 1.35;
}

.gov-stat-divider {
    width: 1px;
    background: #e4e8e7;
    align-self: stretch;
    margin: 4px 0;
}

/* Meeting Rhythm: definition list with 1px row separators */
.gov-info-list {
    margin: 10px 0 0;
    padding: 0;
}

.gov-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gov-info-row:last-child { border-bottom: none; }

.gov-info-row dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.gov-info-row dd {
    font-size: 0.85rem;
    color: var(--text-color);
    text-align: right;
    margin: 0;
}

/* Reserved Matters note text + arrow link */
.gov-sidebar-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 10px 0 10px;
}

.gov-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.15s;
}

.gov-sidebar-link:hover { gap: 10px; color: var(--primary-dark); }

.gov-arr { transition: inherit; }

.sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
}

.sidebar-link:hover {
    text-decoration: underline;
}

/* Footer CTA Band */
.footer-cta-band {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    margin-top: 60px;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px 0;
}

.cta-text p {
    font-size: 16px;
    color: var(--white);
    opacity: 0.9;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.btn-white-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-white-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* .btn-white inside dark CTA strips — transparent-hover variant */
.governance-cta .btn-white,
.sidebar-card.sidebar-cta .btn-white {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.governance-cta .btn-white:hover,
.sidebar-card.sidebar-cta .btn-white:hover {
    background: transparent;
    color: var(--white);
}

/* Responsive Governance Styles */
@media (max-width: 1024px) {
    .quick-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .governance-hero {
        padding: 40px 0;
    }
    
    .hero-lead {
        font-size: 16px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-anchors {
        padding: 0 16px;
    }
    
    .nav-anchors a {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .governance-section h2 {
        font-size: 24px;
    }
    
    .governance-section h3 {
        font-size: 20px;
    }
    
    .leadership-profiles {
        grid-template-columns: 1fr;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-cta-band {
        padding: 40px 0;
    }
    
    .cta-text h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* =========================================
   CERTIFICATIONS SYSTEM STYLES
   ========================================= */

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
}

/* Certifications Filters */
.certifications-filters {
    background: var(--background-light);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.cert-filter,
.cert-search-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition-base);
}

.cert-filter:focus,
.cert-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 107, 84, 0.1);
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.certification-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.certification-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.cert-status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: var(--radius-2xl);
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.cert-status-badge.status-open {
    background: var(--color-success);
    color: var(--white);
}

.cert-status-badge.status-closing_soon {
    background: var(--color-warning);
    color: var(--white);
}

.cert-status-badge.status-closed {
    background: #6b7280;
    color: var(--white);
}

.cert-status-badge.status-coming_soon {
    background: #3b82f6;
    color: var(--white);
}

.cert-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.cert-thumbnail {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cert-thumbnail {
    aspect-ratio: 4 / 3;
}
.cert-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cert-acronym {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-xs);
    margin-bottom: 12px;
}

.cert-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cert-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.cert-title a:hover {
    color: var(--primary-color);
}

.cert-code {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
}

.cert-body {
    padding: 24px;
    flex: 1;
}

.cert-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--primary-color);
}

.cert-footer {
    padding: 20px 24px;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cert-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ── Taxonomy CB Programme Type — Row Layout (mirrors ev-row) ── */
.cert-type-rows { margin-top: 0; }

.cert-row-item {
    display: grid;
    grid-template-columns: 100px 160px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eef0ef;
    align-items: start;
}

.cert-row-item:first-child { border-top: 1px solid #eef0ef; }

/* Col 1 — Acronym (mirrors ev-date-col) */
.cert-acr-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.cert-acr-text {
    display: inline-block;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.cert-acr-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 2px;
    line-height: 1.6;
    border: 1px solid;
}

.cert-acr-badge.status-open         { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.cert-acr-badge.status-closing_soon { background: #fff8e1; color: #b45309; border-color: #fcd34d; }
.cert-acr-badge.status-closed       { background: #f3f4f6; color: #6b7280; border-color: #d1d5db; }
.cert-acr-badge.status-coming_soon  { background: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }

/* Col 2 — Thumbnail (mirrors ev-thumb) */
.cert-thumb {
    width: 160px;
    height: 108px;
    overflow: hidden;
    flex-shrink: 0;
}

.cert-thumb a { display: block; width: 100%; height: 100%; }

.cert-thumb img {
    width: 100% !important;
    height: 108px !important;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.cert-thumb:hover img { opacity: 0.88; }

.cert-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: rgba(255,255,255,0.85);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* Col 3 — Body (mirrors ev-body) */
.cert-ev-body { min-width: 0; }

.cert-ev-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cert-ev-cat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-color);
}

.cert-ev-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.4;
}

.cert-ev-title a { color: inherit; text-decoration: none; transition: color 0.15s; }
.cert-ev-title a:hover { color: var(--primary-color); }

.cert-ev-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 8px;
}

.cert-ev-details span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cert-ev-details span + span::before {
    content: '·';
    margin-right: 16px;
    color: var(--text-light);
}

.cert-ev-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cert-ev-cta-primary {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1px;
    transition: gap 0.15s;
}

.cert-ev-cta-primary:hover { gap: 9px; }

.cert-ev-cta-secondary {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s, gap 0.15s;
}

.cert-ev-cta-secondary:hover { color: var(--primary-color); gap: 9px; }

.cert-ev-price-inline {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: auto;
}

@media (max-width: 768px) {
    .cert-row-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
    }
    .cert-thumb {
        grid-column: 1 / -1;
        width: 100%;
        height: 180px;
    }
    .cert-acr-col { grid-row: 2; }
    .cert-ev-body { grid-column: 1 / -1; }
}

/* ────────────────────────────────────────────── */

.btn-cert-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    font-weight: 700;
    font-size: 0.87rem;
    transition: gap 0.15s;
}
.btn-cert-details .cb-arr { display: inline-block; }
.btn-cert-details:hover {
    gap: 10px;
    color: var(--primary-color);
    background: none;
    transform: none;
}

/* Single Certification Styles - Enhanced */

/* Hero Section */
.cert-hero-section {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
    border-radius: var(--radius-lg);
    padding: 40px !important;
    margin-bottom: 32px;
}

.cert-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cert-hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.cert-featured-image:hover {
    transform: scale(1.02);
}

.cert-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cert-acronym-large {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #008060 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 107, 84, 0.3);
    letter-spacing: 1px;
}

.cert-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-base);
}

.badge i {
    font-size: 12px;
}

.badge-type {
    background: #e0f2fe;
    color: #0369a1;
    border: 2px solid #bae6fd;
}

.badge-type:hover {
    background: #bae6fd;
    transform: translateY(-2px);
}

.badge-level {
    background: #e0f2fe;
    color: #0369a1;
    border: 2px solid #bae6fd;
}

.badge-level:hover {
    background: #bae6fd;
    transform: translateY(-2px);
}

.badge-status {
    color: var(--white);
    border: 2px solid transparent;
}

.badge-status i.fa-circle {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Credential Box */
.cert-credential-box {
    display: flex;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(0, 107, 84, 0.1);
    align-items: center;
}

.credential-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    padding: 8px;
}

.credential-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.cert-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.credential-content {
    flex: 1;
}

.credential-content h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.credential-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.accreditation-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.accreditation-info i {
    color: var(--color-success);
    font-size: 14px;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-color);
}

.section-title i {
    color: var(--primary-color);
    font-size: 22px;
}

.key-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.fact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.fact-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.fact-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 107, 84, 0.15);
    transform: translateY(-4px);
}

.fact-box:hover::before {
    transform: scaleY(1);
}

.fact-box i {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.fact-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fact-content strong {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.fact-content span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

/* Requirement and Curriculum Blocks */
.requirement-block,
.curriculum-block {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.requirement-block h3,
.curriculum-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.requirement-block h3 i,
.curriculum-block h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.requirement-block p,
.curriculum-block p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 15px;
}

.modules-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.modules-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modules-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 107, 84, 0.15);
}

.modules-list i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 16px;
    flex-shrink: 0;
}

.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.schedule-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 107, 84, 0.1);
    transform: translateY(-2px);
}

.schedule-item i {
    color: var(--primary-color);
    font-size: 28px;
    flex-shrink: 0;
}

/* Sidebar Pricing */
.sidebar-pricing {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
}

.pricing-info {
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item.early-bird {
    background: #dcfce7;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
    border: 1px solid #86efac;
}

.price-item.member {
    background: #dbeafe;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--background-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    transition: var(--transition-base);
}

.sidebar-list a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar-list .count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--white);
    padding: 2px 8px;
    border-radius: var(--radius-lg);
}

.related-certs-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.related-certs-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.related-certs-list li:last-child {
    border-bottom: none;
}

.related-certs-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.related-certs-list a:hover {
    color: var(--primary-color);
}

/* Responsive Certifications Styles */
@media (max-width: 1024px) {
    .cert-hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cert-hero-right {
        order: -1;
    }
    
    .key-facts-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .cert-hero-section {
        padding: 24px !important;
    }
    
    .cert-acronym-large {
        font-size: 24px;
        padding: 12px 24px;
    }
    
    .cert-credential-box {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
    
    .credential-icon {
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-title i {
        font-size: 18px;
    }
    
    .key-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .fact-box {
        padding: 20px;
    }
    
    .fact-box i {
        font-size: 28px;
    }
    
    .requirement-block,
    .curriculum-block {
        padding: 20px;
    }
    
    .schedule-info {
        grid-template-columns: 1fr;
    }
    
    .cert-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .btn-cert-details {
        justify-content: flex-start;
    }
    
    .badge {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* Academic Calendar Modal Styles */
.event-meta-inline {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.event-type,
.event-level {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    background: var(--background-light);
    color: var(--text-color);
}

.day-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-event-item {
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-base);
}

.day-event-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.day-event-item h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: var(--text-color);
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
    margin-top: 12px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sidebar-resources-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.sidebar-resources-list li {
    margin-bottom: 12px;
}

.sidebar-resources-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.sidebar-resources-list a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar-resources-list i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text-muted);
    margin-right: 8px;
}

/* Improve calendar event display */
.calendar-event {
    display: inline-block;
    font-size: 3px;
    padding: 1px 2px;
    margin-bottom: 1px;
    border-radius: 1px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    color: var(--white);
    text-decoration: none;
}

.event-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calendar-event-more {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    padding: 2px;
    margin-top: 1px;
    font-style: italic;
}

/* Calendar Event Logo */
.calendar-event-logo {
    background: white !important;
    padding: 2px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-event-logo:hover {
    border-color: var(--primary-color);
}

.event-logo {
    max-width: 30px;
    max-height: 30px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}


a.btn.btn-outline-white {
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    padding: 16px 16px;
    border-radius: var(--radius-xs);
    display: inline-block;
    font-size: 0.8rem;
    text-align: center;
}
@media (max-width: 575.98px) {
  .utility-header {
    display: none !important;
  }
}

/* Mobile & Tablet Menu */
@media (max-width: 991px) {

  .mobile-toggle {
    display: block;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px; /* adjust to navbar height */
    left: 0;
    background: inherit;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    max-height: 2000px; /* allow menu to expand smoothly */
  }

  .nav-links li {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #ccc;
  }

  .nav-links li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    background: inherit;
  }

  /* Dropdown toggle arrow */
  .dropdown-toggle {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
  }

  /* Mega dropdown collapsible */
  .mega-dropdown {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    background: inherit;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mega-dropdown.active {
    display: flex;
    max-height: 1000px; /* enough for content */
  }

  /* Stack columns */
  .mega-columns, .mega-content, .mega-featured {
    flex-direction: column;
  }

  .mega-col {
    width: 100%;
    padding: 5px 0;
  }

}

/* ═══════════════════════════════════════════════════════════
   UNIFIED FORM SYSTEM — .cis-form
   Applies consistent Editorial Clean styling to all forms.
   Add class="cis-form" to any <form> to opt in.
   ═══════════════════════════════════════════════════════════ */

.cis-form label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 6px;
}

.cis-form input[type="text"],
.cis-form input[type="email"],
.cis-form input[type="tel"],
.cis-form input[type="url"],
.cis-form input[type="number"],
.cis-form input[type="password"],
.cis-form input[type="search"],
.cis-form select,
.cis-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d4d9d6;
    border-radius: 2px;
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--white);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.cis-form input[type="text"]::placeholder,
.cis-form input[type="email"]::placeholder,
.cis-form input[type="tel"]::placeholder,
.cis-form input[type="url"]::placeholder,
.cis-form input[type="number"]::placeholder,
.cis-form input[type="password"]::placeholder,
.cis-form textarea::placeholder { color: var(--text-light); }

.cis-form input[type="text"]:focus,
.cis-form input[type="email"]:focus,
.cis-form input[type="tel"]:focus,
.cis-form input[type="url"]:focus,
.cis-form input[type="number"]:focus,
.cis-form input[type="password"]:focus,
.cis-form select:focus,
.cis-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,77,64,.08);
}

.cis-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.cis-form textarea { resize: vertical; }

/* Checkbox / radio items */
.cis-form .cis-check-item,
.cis-form .adv-check-item,
.cis-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid #d4d9d6;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.87rem;
    color: var(--text-color);
    transition: border-color 0.15s, background 0.15s;
}
.cis-form .cis-check-item:hover,
.cis-form .adv-check-item:hover,
.cis-form .checkbox-label:hover { border-color: var(--primary-color); background: #f4f8f6; }

.cis-form .cis-check-item input[type="checkbox"],
.cis-form .cis-check-item input[type="radio"],
.cis-form .adv-check-item input[type="checkbox"],
.cis-form .checkbox-label input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

/* Required marker */
.cis-form .req,
.cis-form .cis-req,
.cis-form .cbp-required { color: var(--primary-color); }

/* Submit button */
.cis-form button[type="submit"],
.cis-form .cis-submit,
.cis-form .cbp-submit-btn,
.cis-form .adv-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--btn-text-color) !important;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, gap 0.15s;
    text-decoration: none;
}
.cis-form button[type="submit"]:hover,
.cis-form .cis-submit:hover,
.cis-form .cbp-submit-btn:hover,
.cis-form .adv-submit-btn:hover { background: var(--primary-dark); gap: 12px; color: var(--btn-text-color) !important; }

/* Success / error banners */
.cis-form-success {
    background: #f0faf7;
    border-left: 4px solid var(--primary-color);
    padding: 14px 16px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: 2px;
}
.cis-form-error {
    background: #fff5f5;
    border-left: 4px solid #c53030;
    padding: 10px 16px;
    color: #c53030;
    font-size: 0.87rem;
    margin-bottom: 10px;
    border-radius: 2px;
}

/* Form field wrappers — works with existing row/group patterns */
.cis-form .form-group,
.cis-form .adv-field,
.cis-form .cbp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

/* Two-column row — works with existing row patterns */
.cis-form .form-row,
.cis-form .adv-form-row,
.cis-form .cbp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cis-form .form-row .form-group,
.cis-form .adv-form-row .adv-field,
.cis-form .cbp-form-row .cbp-form-group { margin-bottom: 0; }

/* Full-width field override */
.cis-form .form-group--full,
.cis-form .adv-field--full { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .cis-form .form-row,
    .cis-form .adv-form-row,
    .cis-form .cbp-form-row { grid-template-columns: 1fr; }
}