/* IOCH portal styles, extracted from the Node CRM commonCSS */
/* ===== IOCH Custom Section CSS ===== */
.ioch-section { max-width: 1200px; margin: 40px auto; padding: 0 20px; font-family: Calibri, Carlito, 'Segoe UI', system-ui, Arial, sans-serif; }
.ioch-ticker { background: #0f172a; color: #fff; border-radius: 12px; overflow: hidden; white-space: nowrap; margin-bottom: 20px; padding: 12px 0; }
.ioch-ticker-track { display: inline-block; animation: ticker 25s linear infinite; }
.ioch-ticker-track span { margin: 0 15px; font-size: 14px; font-weight: 600; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ioch-ticker:hover .ioch-ticker-track { animation-play-state: paused; }

.ioch-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.ioch-badge { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.ioch-block { margin-bottom: 50px; }
.ioch-kicker { color: #059669; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.ioch-title { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 10px; letter-spacing: -0.5px; }
.ioch-subtitle { color: #64748b; font-size: 15px; margin-bottom: 25px; }

.ioch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ioch-news-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.ioch-news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15,23,42,0.06); }
.ioch-news-meta { color: #94a3b8; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.ioch-news-card h3 { font-size: 18px; color: #0f172a; margin-bottom: 8px; line-height: 1.4; }
.ioch-news-card p { color: #475569; font-size: 14px; line-height: 1.6; }

.ioch-course-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.ioch-course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15,23,42,0.06); }
.ioch-course-image { width: 100%; height: 160px; object-fit: cover; border-bottom: 1px solid #e2e8f0; }
.ioch-course-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ioch-course-info { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ioch-pill { background: #f1f5f9; color: #475569; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.ioch-course-body h3 { font-size: 18px; color: #0f172a; margin-bottom: 8px; }
.ioch-course-body p { color: #64748b; font-size: 14px; line-height: 1.5; margin-bottom: 15px; flex: 1; }
.ioch-link { color: #059669; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
.ioch-link:hover { text-decoration: underline; }
.ioch-empty { color: #64748b; font-size: 15px; grid-column: 1 / -1; text-align: center; padding: 30px; background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e1; }
        :root { --bg-body: #f8fafc; --primary: #059669; --primary-hover: #047857; --text-main: #1e293b; --text-muted: #64748b; --border: #cbd5e1; }
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: Calibri, Carlito, 'Segoe UI', system-ui, Arial, sans-serif; }
        .public-site, .public-site * { font-family: Calibri, Carlito, 'Segoe UI', system-ui, Arial, sans-serif; }
        body { background-color: var(--bg-body); color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; }
        img { max-width: 100%; height: auto; }
        .top-info-bar { background: #0f172a; color: #94a3b8; font-size: 13px; padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid #1e293b; }
        .top-info-bar span { display: flex; align-items: center; gap: 8px; }
        .top-info-bar a { color: #cbd5e1; text-decoration: none; }
        .main-navbar { background: white; padding: 16px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 0 #e2e8f0; position: fixed; top: var(--nav-top, 0px); left: 0; right: 0; z-index: 1000; border: 1px solid transparent; border-radius: 0; flex-wrap: wrap; gap: 15px; width: 100%; transform-origin: center top; transition: top .18s ease, padding .22s ease, box-shadow .22s ease, border-color .22s ease, border-radius .22s ease, transform .22s ease, background-color .22s ease; }
        #mainNavbarSpacer { height: 0; }
        /* At the top of the page the bar sits flat under the info bar; once the visitor scrolls it floats as a centred pill */
        #mainNavbar.scrolled { top: 12px; left: max(16px, calc((100% - 1340px) / 2)); right: max(16px, calc((100% - 1340px) / 2)); width: auto; margin: 0; padding: 10px 24px; transform: none; border-radius: 999px; box-shadow: 0 18px 40px -12px rgba(15,23,42,0.28), 0 2px 6px rgba(15,23,42,0.06); border-color: rgba(213,168,59,.45); background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(16px); animation: navFloatIn .38s cubic-bezier(.2,.8,.2,1); }
        @keyframes navFloatIn { from { opacity: 0; transform: translateY(-18px) scale(.98); } to { opacity: 1; transform: none; } }
        @media (prefers-reduced-motion: reduce) { #mainNavbar.scrolled { animation: none; } }
        /* When the menu wraps onto two lines the pill becomes a rounded card and stays opaque */
        /* The floating pill uses a smaller logo and tighter menu so everything stays on one line */
        #mainNavbar.scrolled .nav-logos img { height: 46px; } #mainNavbar.scrolled .nav-menu { gap: 18px; } #mainNavbar.scrolled .nav-menu a { font-size: 13px; }
        @media (max-width: 1100px) { #mainNavbar.scrolled { border-radius: 18px; background: rgba(255,255,255,.98); padding: 10px 16px; } }
        .nav-logos img { height: 68px; object-fit: contain; }
        .nav-menu { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
        .nav-menu a { color: #1e293b; text-decoration: none; font-size: 14px; font-weight: 700; text-transform: uppercase; }
        .nav-menu a:hover { color: var(--primary); }
        .nav-buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        .btn { padding: 10px 20px; border-radius: 30px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; text-decoration: none; display: inline-block; text-align: center; }
        .btn-primary { background: var(--primary); color: white; }
        .btn-primary:hover { background: var(--primary-hover); }
        .btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
        .btn-danger { background: #ef4444; color: white; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
        .btn-warning { background: #f59e0b; color: white; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
        .btn-info { background: #3b82f6; color: white; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
        .btn-success { background: #10b981; color: white; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
        .hero { position:relative; isolation:isolate; overflow:hidden; background:radial-gradient(ellipse at 76% 32%,rgba(16,185,129,.23),transparent 32%),radial-gradient(ellipse at 18% 82%,rgba(212,175,55,.08),transparent 30%),linear-gradient(135deg,#062c2a 0%,#064e3b 56%,#075b46 100%); color:#fff; padding:clamp(72px,9vw,116px) clamp(24px,8vw,120px); display:grid; grid-template-columns:minmax(0,1.35fr) minmax(210px,.65fr); align-items:center; gap:clamp(28px,6vw,80px); min-height:560px; text-align:left; }
        .hero::before, .hero::after { content:''; position:absolute; z-index:-1; border:1px solid rgba(245,208,127,.2); border-radius:50%; pointer-events:none; }
        .hero::before { width:480px; height:480px; right:-130px; top:50%; transform:translateY(-50%); box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 84px rgba(245,208,127,.035); }
        .hero::after { width:160px; height:160px; left:38%; bottom:-110px; box-shadow:0 0 0 24px rgba(255,255,255,.025); }
        .hero-copy { position:relative; z-index:2; max-width:760px; }
        .hero-visual { position:relative; z-index:2; isolation:isolate; display:grid; place-items:center; min-height:320px; }
        .hero-visual::before { content:''; position:absolute; width:min(24vw,280px); aspect-ratio:1; border:1px solid rgba(245,208,127,.55); border-radius:50%; box-shadow:0 0 0 14px rgba(245,208,127,.06),0 0 0 32px rgba(255,255,255,.035),0 28px 70px rgba(0,0,0,.2); }
        .hero img { position:relative; z-index:1; width:clamp(150px,18vw,220px); height:clamp(150px,18vw,220px); object-fit:contain; padding:24px; filter:brightness(0) invert(1); border:1px solid rgba(245,208,127,.7); border-radius:50%; background:rgba(255,255,255,.08); box-shadow:0 18px 48px rgba(0,0,0,.24); }
        .hero-floating-badges { position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; }
        .hero-floating-badge { position:absolute; display:flex; flex-direction:column; align-items:center; justify-content:center; width:clamp(106px,12vw,142px); aspect-ratio:1; padding:18px 13px 14px; overflow:hidden; border:3px solid rgba(245,208,127,.62); border-radius:50%; color:rgba(255,255,255,.88); text-align:center; background:rgba(255,255,255,.035); box-shadow:0 12px 32px rgba(0,0,0,.12),inset 0 0 0 4px rgba(255,255,255,.035); opacity:.28; animation:heroBadgeFloat 6s ease-in-out infinite; }
        .hero-floating-badge::before { content:''; position:absolute; inset:7px; border:2px dashed rgba(245,208,127,.68); border-radius:50%; pointer-events:none; }
        .hero-floating-badge svg { position:relative; width:25px; height:25px; margin-bottom:5px; color:#f5d07f; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
        .hero-floating-badge strong { position:relative; max-width:100%; font-size:10px; line-height:1.15; font-weight:850; letter-spacing:.045em; text-transform:uppercase; }
        .hero-floating-badge small { position:relative; margin-top:3px; color:rgba(255,255,255,.76); font-size:8px; line-height:1.1; font-weight:650; }
        .hero-floating-badge:nth-child(1) { top:13%; left:7%; animation-delay:-.5s; }
        .hero-floating-badge:nth-child(2) { top:44%; left:42%; animation-delay:-2.2s; }
        .hero-floating-badge:nth-child(3) { right:7%; bottom:8%; animation-delay:-3.8s; }
        @keyframes heroBadgeFloat { 0%,100% { transform:translateY(0) rotate(-2deg); } 50% { transform:translateY(-12px) rotate(1deg); } }
        @media (prefers-reduced-motion: reduce) { .hero-floating-badge { animation:none; } }
        [dir="rtl"] { direction: rtl; }
        [dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid #e2e8f0; }
        [dir="rtl"] .sidebar a { border-left: 0; border-right: 4px solid transparent; }
        [dir="rtl"] .sidebar a:hover, [dir="rtl"] .sidebar a.active { border-right-color: var(--primary); }
        [dir="rtl"] .nav-menu, [dir="rtl"] .nav-buttons { direction: rtl; }
        html[lang="ar"] body, html[lang="ar"] * { font-family: Tahoma, Calibri, Carlito, 'Segoe UI', system-ui, Arial, sans-serif; }
        .main-navbar { backdrop-filter: saturate(1.3) blur(12px); }
        .hero-kicker { display:inline-flex; align-items:center; gap:8px; margin-bottom:22px; padding:8px 14px; border:1px solid rgba(245,208,127,.52); border-radius:999px; color:#fde68a; background:rgba(15,23,42,.18); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
        .hero-trust { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; justify-content:flex-start; margin-top:28px; max-width:690px; }
        .hero-trust .trust-badge { display:flex; align-items:center; gap:10px; min-width:0; min-height:58px; padding:10px 12px; border:1px solid rgba(245,208,127,.34); border-radius:15px; color:#fff; background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045)); box-shadow:0 8px 22px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter:blur(8px); }
        .hero-trust .trust-icon { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border-radius:10px; color:#17382f; background:linear-gradient(145deg,#ffe5a4,#d5a83b); font-size:15px; font-style:normal; box-shadow:0 4px 12px rgba(213,168,59,.22); }
        .hero-trust .trust-copy { min-width:0; }
        .hero-trust .trust-copy strong { display:block; color:#fff; font-size:11px; line-height:1.25; font-weight:750; }
        .hero-trust .trust-copy small { display:block; margin-top:3px; color:rgba(255,255,255,.68); font-size:9px; line-height:1.25; }
        .hero h1 { max-width:980px; font-size:clamp(3.2rem,7vw,6.2rem); line-height:.98; font-weight:800; letter-spacing:-.065em; margin-bottom:16px; color:#fff; text-wrap:balance; }
        .hero h1::after { content:none; }
        .hero h1 span { color:#f5d07f; text-shadow:0 2px 24px rgba(245,208,127,.15); }
        .hero p { max-width:660px; color:rgba(255,255,255,.88); font-size:clamp(1rem,1.35vw,1.12rem); line-height:1.75; }
        .hero .hero-tagline { margin:0 0 12px; color:#f5d07f; font-size:clamp(.95rem,1.3vw,1.08rem); font-weight:600; }
        .hero-actions { display:flex; justify-content:flex-start; flex-wrap:wrap; gap:12px; margin-top:25px; }
        .hero-actions .btn { padding:13px 22px; border-radius:10px; font-size:14px; }
        .hero-actions .btn-outline { color:#fff; border-color:rgba(255,255,255,.45); background:rgba(255,255,255,.08); }
        .hero-actions .btn-outline:hover { background:rgba(255,255,255,.16); }
        .hero-actions .btn-primary { background:linear-gradient(135deg,#f5d07f,#d5a83b); color:#17382f; box-shadow:0 10px 24px rgba(0,0,0,.18); }
        .hero-actions .btn-primary:hover { background:linear-gradient(135deg,#ffe4a3,#e4bc59); }
        .homepage {
            background: linear-gradient(180deg, #f4fbf7 0%, #f8faf8 42%, #f3f7f4 100%);
        }
        .homepage .features-section {
            position: relative;
            padding: clamp(52px, 7vw, 82px) clamp(20px, 5vw, 64px);
            text-align: center;
            max-width: 1180px;
            margin: 0 auto;
        }
        .homepage .features-section + .features-section { padding-top: 30px; }
        .homepage .features-section > h2 {
            font-size: clamp(1.78rem, 3vw, 2.8rem);
            color: #064e3b;
            letter-spacing: -0.05em;
            margin: 0;
            line-height: 1.12;
        }
        .homepage .features-section > p {
            margin: 12px auto 0;
            color: #64748b;
            font-size: 1rem;
            max-width: 700px;
            line-height: 1.7;
        }
        .homepage .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            max-width: 1120px;
            margin: 30px auto 0;
        }
        .homepage .feature-card {
            position: relative;
            overflow: hidden;
            background: linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
            padding: 26px 22px 22px;
            border-radius: 20px;
            box-shadow: 0 18px 40px rgba(6, 78, 59, 0.08), 0 6px 16px rgba(15, 23, 42, 0.04);
            border: 1px solid rgba(148, 163, 184, 0.18);
            text-align: left;
            transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
            min-height: 210px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }
        .homepage .feature-card::before {
            content: '';
            position: absolute;
            inset: 0 0 auto;
            height: 4px;
            background: linear-gradient(90deg, #059669, #f5d07f, #d97706);
            transform: scaleX(.38);
            transform-origin: left;
            transition: transform .22s ease;
        }
        .homepage .feature-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 24px 54px rgba(6, 78, 59, 0.12), 0 10px 26px rgba(15, 23, 42, 0.06);
            border-color: rgba(16, 185, 129, 0.35);
        }
        .homepage .feature-card:hover::before { transform: scaleX(1); }
        .homepage .feature-icon {
            width: 52px;
            height: 52px;
            background: linear-gradient(135deg, #ecfdf5, #dff8ee);
            color: #047857;
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 23px;
            margin: 0 0 18px;
            box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.1);
        }
        .homepage .feature-card h3 {
            margin: 0 0 10px;
            color: #064e3b;
            font-size: 1.15rem;
            line-height: 1.3;
        }
        .homepage .feature-card p {
            color: #64748b;
            font-size: .93rem;
            line-height: 1.7;
            margin: 0;
        }

        .homepage .features-section.compact {
            padding: clamp(26px, 4vw, 46px) clamp(16px, 4vw, 40px);
        }
        .homepage .features-section.compact + .features-section.compact { padding-top: 18px; }
        .homepage .features-section.compact > h2 {
            font-size: clamp(1.36rem, 2vw, 2rem);
        }
        .homepage .features-section.compact .features-grid {
            gap: 16px;
            max-width: 980px;
            margin-top: 22px;
        }
        .homepage .features-section.compact .feature-card {
            padding: 20px 18px 18px;
            min-height: 170px;
        }
        .homepage .features-section.compact .feature-card::before { height: 3px; }
        .homepage .features-section.compact .feature-icon {
            width: 42px;
            height: 42px;
            font-size: 19px;
            margin-bottom: 12px;
        }
        .homepage .features-section.compact .feature-card h3 {
            font-size: 1rem;
            margin-bottom: 7px;
        }
        .homepage .features-section.compact .feature-card p {
            font-size: .84rem;
            line-height: 1.55;
        }
        .homepage .ioch-section {
            max-width: 1240px;
            margin: 0 auto;
            padding: 28px clamp(18px, 4vw, 48px) 18px;
        }
        .homepage .ioch-ticker {
            margin: 0 0 20px;
            padding: 13px 0;
            border: 1px solid rgba(245, 208, 127, .22);
            border-radius: 14px;
            background: linear-gradient(100deg, #082f2b, #064e3b 56%, #0f172a);
            box-shadow: 0 12px 28px rgba(6, 78, 59, .13);
        }
        .homepage .ioch-ticker-track {
            display: flex;
            width: max-content;
            animation: ticker 34s linear infinite;
        }
        .homepage .ioch-ticker-group {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }
        .homepage .ioch-ticker-track span {
            margin: 0 14px;
            color: #f8fafc;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .045em;
        }
        .homepage .ioch-ticker-track .ioch-ticker-separator { color: #f5d07f; }
        .homepage .ioch-badges {
            gap: 9px;
            margin: 0 auto 34px;
        }
        .homepage .ioch-badge {
            padding: 7px 13px;
            border-color: rgba(5, 150, 105, .2);
            background: rgba(255, 255, 255, .76);
            box-shadow: 0 5px 16px rgba(15, 23, 42, .035);
            font-size: 10px;
            letter-spacing: .055em;
        }
        .homepage .ioch-block { margin: 0 0 42px; }
        .homepage .ioch-kicker {
            margin-bottom: 7px;
            font-size: 11px;
            letter-spacing: .12em;
        }
        .homepage .ioch-title {
            margin-bottom: 8px;
            color: #064e3b;
            font-size: clamp(1.55rem, 2.8vw, 2.25rem);
            letter-spacing: -.045em;
        }
        .homepage .ioch-subtitle {
            margin: 0 0 20px;
            font-size: .92rem;
            line-height: 1.65;
        }
        .homepage .ioch-grid {
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
            gap: 16px;
        }
        .homepage .ioch-news-card {
            min-height: 190px;
            padding: 22px;
            border-color: rgba(148, 163, 184, .2);
            border-radius: 18px;
            box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
        }
        .homepage .ioch-news-card:hover {
            border-color: rgba(5, 150, 105, .28);
            box-shadow: 0 18px 34px rgba(6, 78, 59, .09);
        }
        .homepage .ioch-news-meta {
            color: #059669;
            font-size: 10px;
            letter-spacing: .1em;
        }
        .homepage .ioch-news-card h3 {
            color: #0f3d32;
            font-size: 1rem;
        }
        .homepage .ioch-news-card p {
            color: #64748b;
            font-size: .86rem;
            line-height: 1.65;
        }
        .homepage .ioch-news-card .ioch-link { margin-top: 16px; }
        .homepage .ioch-course-card {
            min-height: 290px;
            border-color: rgba(148, 163, 184, .2);
            border-radius: 18px;
            box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
        }
        .homepage .ioch-course-card:hover {
            border-color: rgba(5, 150, 105, .3);
            box-shadow: 0 20px 38px rgba(6, 78, 59, .1);
        }
        .homepage .ioch-course-art {
            min-height: 100px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 22px;
            color: #fff;
            background: radial-gradient(circle at 82% 18%, rgba(245, 208, 127, .35), transparent 30%), linear-gradient(130deg, #064e3b, #047857);
        }
        .homepage .ioch-course-card:nth-child(4n + 2) .ioch-course-art {
            background: radial-gradient(circle at 82% 18%, rgba(245, 208, 127, .35), transparent 30%), linear-gradient(130deg, #123f55, #087e8b);
        }
        .homepage .ioch-course-card:nth-child(4n + 3) .ioch-course-art {
            background: radial-gradient(circle at 82% 18%, rgba(245, 208, 127, .35), transparent 30%), linear-gradient(130deg, #713f12, #c27320);
        }
        .homepage .ioch-course-card:nth-child(4n + 4) .ioch-course-art {
            background: radial-gradient(circle at 82% 18%, rgba(245, 208, 127, .35), transparent 30%), linear-gradient(130deg, #3d366f, #7764b5);
        }
        .homepage .ioch-course-art-label {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
        }
        .homepage .ioch-course-art-icon {
            font-size: 32px;
            filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .18));
        }
        .homepage .ioch-course-body {
            flex: 1;
            padding: 18px;
        }
        .homepage .ioch-course-info { margin-bottom: 10px; }
        .homepage .ioch-pill {
            border-radius: 999px;
            background: #ecfdf5;
            color: #047857;
            font-size: 10px;
        }
        .homepage .ioch-course-body h3 {
            color: #0f3d32;
            font-size: 1rem;
            line-height: 1.4;
        }
        .homepage .ioch-course-body p {
            margin-bottom: 16px;
            font-size: .85rem;
            line-height: 1.6;
        }
        .homepage .ioch-course-body .ioch-link {
            gap: 6px;
            margin-top: auto;
        }
        @media (max-width: 700px) {
            .hero { grid-template-columns:1fr; min-height:auto; gap:24px; padding:76px 7% 54px; text-align:center; }
            .hero-copy { margin:0 auto; }
            .hero-visual { min-height:220px; grid-row:1; }
            .hero-visual::before { width:150px; }
            .hero img { width:126px; height:126px; padding:16px; }
            .hero-floating-badge { width:94px; border-width:2px; padding:14px 8px 10px; opacity:.22; }
            .hero-floating-badge::before { inset:5px; border-width:1.5px; }
            .hero-floating-badge svg { width:19px; height:19px; margin-bottom:3px; }
            .hero-floating-badge strong { font-size:8px; }
            .hero-floating-badge small { font-size:7px; }
            .hero-floating-badge:nth-child(1) { top:37%; left:2%; }
            .hero-floating-badge:nth-child(2) { top:59%; right:3%; left:auto; }
            .hero-floating-badge:nth-child(3) { right:auto; bottom:4%; left:36%; }
            .hero-kicker { margin-bottom:16px; font-size:10px; letter-spacing:.04em; }
            .hero h1 { font-size:clamp(3rem,15vw,4.5rem); }
            .hero-actions { justify-content:center; }
            .hero-trust { gap:8px; margin-top:22px; }
            .hero-trust .trust-badge { justify-content:flex-start; gap:7px; min-height:56px; padding:8px 7px; border-radius:12px; }
            .hero-trust .trust-icon { flex-basis:26px; width:26px; height:26px; border-radius:8px; font-size:12px; }
            .hero-trust .trust-copy strong { font-size:9px; }
            .hero-trust .trust-copy small { font-size:8px; }
            .homepage .features-section { padding:42px 6%; }
            .homepage .features-section + .features-section { padding-top:18px; }
            .homepage .features-grid { grid-template-columns:1fr; gap:14px; margin-top:22px; }
            .homepage .feature-card { padding:22px 18px 18px; min-height: unset; }
            .homepage .features-section.compact { padding:28px 6%; }
            .homepage .features-section.compact .features-grid { margin-top:16px; }
            .homepage .features-section.compact .feature-card { padding:18px; }
            .homepage .ioch-section { padding: 22px 6% 10px; }
            .homepage .ioch-ticker { border-radius: 11px; }
            .homepage .ioch-ticker-track span { font-size: 10px; margin: 0 10px; }
            .homepage .ioch-badges { gap: 7px; margin-bottom: 28px; }
            .homepage .ioch-badge { padding: 6px 10px; font-size: 9px; }
            .homepage .ioch-block { margin-bottom: 32px; }
            .homepage .ioch-grid { grid-template-columns: 1fr; gap: 12px; }
            .homepage .ioch-news-card { min-height: 0; padding: 19px; }
            .homepage .ioch-course-card { min-height: 0; }
            .homepage .ioch-course-art { min-height: 86px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .homepage .feature-card, .homepage .feature-card::before,
            .homepage .ioch-news-card, .homepage .ioch-course-card { transition:none; }
            .homepage .ioch-ticker-track { animation:none; }
        }
        .footer { flex: 0 0 auto; display: flex; flex-direction: column; margin-top: auto; background: #0f172a; color: #94a3b8; padding: 24px clamp(20px, 3vw, 48px) 14px; border-top: 4px solid var(--primary); width: 100%; }
        .footer-container { flex: 0 0 auto; width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr) minmax(0, 1fr); align-items: center; justify-items: stretch; gap: clamp(20px, 4vw, 56px); padding-bottom: 14px; }
        .footer-association { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; max-width: 390px; min-width: 0; justify-self: start; }
        .footer-logo-row img { height: 64px; width: 150px; max-width: 100%; object-fit: contain; background: white; padding: 8px 14px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.16); }
        .footer-association-text { max-width: 390px; font-size: clamp(13px, .9rem, 15px); color: #cbd5e1; line-height: 1.75; font-weight: 500; }
        .footer-association-text strong { color: white; font-weight: 700; }
        .footer-links { width:100%; max-width:340px; justify-self:center; padding:18px 22px; border:1px solid rgba(245,208,127,.32); border-radius:16px; background:linear-gradient(145deg,rgba(6,78,59,.92),rgba(5,46,37,.96)); box-shadow:0 12px 28px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.07); }
        .footer-links h4 { margin-bottom:12px; }
        .footer-links h4::after { content:''; display:block; width:36px; height:2px; margin-top:7px; border-radius:2px; background:#d5a83b; }
        .footer-links-list { display:grid; grid-template-columns:1fr 1fr; gap:9px 14px; }
        .footer-links-list a { display:flex; align-items:center; gap:8px; color:#dbe7e2; font-size:13px; font-weight:600; transition:color .2s ease,transform .2s ease; }
        .footer-links-list a::before { content:'›'; color:#f5d07f; font-size:18px; line-height:1; }
        .footer-links-list a:hover { color:#f5d07f; transform:translateX(2px); }
        .footer-contact { text-align: right; width: 100%; max-width: 440px; min-width: 0; justify-self: end; }
        .footer h4 { color: white; font-size: clamp(16px, 1.1rem, 19px); margin-bottom: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
        .footer-contact h4::after { content: ''; display: block; width: 42px; height: 2px; margin: 7px 0 0 auto; border-radius: 2px; background: #d5a83b; }
        .footer p { margin-bottom: 6px; font-size: clamp(12px, .88rem, 15px); line-height: 1.55; }
        .footer a { color: #cbd5e1; text-decoration: none; }
        .footer a:hover { color: white; }
        .footer-bottom { text-align: center; margin-top: 0; padding-top: 12px; border-top: 1px solid #1e293b; font-size: clamp(11px, .82rem, 14px); color: #64748b; }
        .dash-layout { display: flex; min-height: 100vh; width: 100%; background: #f1f5f9; }
        .sidebar { width: 260px; background: white; display: flex; flex-direction: column; padding: 20px 0; flex-shrink: 0; border-right: 1px solid #e2e8f0; }
        .sidebar .logo-area { padding: 0 20px 20px 20px; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .sidebar .logo-area img { height: 40px; }
        .sidebar a { color: var(--text-muted); padding: 14px 20px; text-decoration: none; font-size: 0.95rem; display: block; transition: 0.2s; border-left: 4px solid transparent; }
        .sidebar a:hover, .sidebar a.active { background: #ecfdf5; color: var(--primary); border-left-color: var(--primary); font-weight: bold; }
        .main-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
        .top-bar { background: white; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; border-bottom: 1px solid #e2e8f0; }
        .stats-grid-lms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
        .stat-card-lms { background: white; border-radius: 16px; padding: 25px; border: 1px solid #e2e8f0; }
        .stat-icon { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; margin-bottom: 15px; }
        .stat-title { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
        .stat-value { font-size: 2.2rem; font-weight: 800; color: var(--text-main); }
        .bg-blue-light { background: #e0e7ff; color: #3b82f6; }
        .bg-green-light { background: #d1fae5; color: #059669; }
        .bg-yellow-light { background: #fef3c7; color: #f59e0b; }
        .bg-purple-light { background: #f3e8ff; color: #8b5cf6; }
        .bg-red-light { background: #fee2e2; color: #ef4444; }
        .content-area { padding: 30px; }
        .lms-welcome { background: linear-gradient(135deg, #064e3b 0%, #047857 100%); color: white; padding: 30px; border-radius: 16px; margin-bottom: 20px; }
        .card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 20px; overflow: hidden; }
        .card-header { padding: 20px; border-bottom: 1px solid #e2e8f0; font-weight: 700; font-size: 1.1rem; background: #f8fafc; display: flex; justify-content: space-between; align-items: center; }
        .card-body { padding: 30px; }
        table { width: 100%; border-collapse: collapse; }
        th, td { padding: 15px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 0.95rem; }
        th { background: #f8fafc; font-weight: 600; color: #64748b; text-transform: uppercase; font-size: 0.8rem; }
        .form-group { margin-bottom: 20px; }
        label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-main); font-size: 0.9rem; }
        input, select, textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; background: #f8fafc; }
        .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
        .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
        .file-upload-box { border: 2px dashed #cbd5e1; padding: 25px; border-radius: 12px; text-align: center; background: #f8fafc; position: relative; height: 100%; }
        .file-upload-box input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
        .file-upload-box label { font-size: 1rem; font-weight: 700; }
        .chat-messages { flex: 1; padding: 20px; overflow-y: auto; background: #efeae2; }
        .msg { padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; max-width: 80%; font-size: 0.95rem; }
        .msg-received { background: white; }
        .msg-sent { background: #d9fdd3; margin-left: auto; }
        .chat-input { display: flex; padding: 10px; background: white; border-top: 1px solid #e2e8f0; }
        .chat-input input { flex: 1; margin-right: 10px; }

        /* ===== Modern UI kit (ui-*) ===== */
        .ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.1; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit; box-shadow: 0 1px 2px rgba(15,23,42,0.06); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
        .ui-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
        .ui-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(15,23,42,0.25); }
        .ui-btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
        .ui-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16,185,129,0.35); }
        .ui-btn.is-loading { pointer-events: none; opacity: .7; }
        .ui-btn.is-loading svg { animation: uiSpin .8s linear infinite; }
        .ui-btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
        .ui-btn-sm svg { width: 14px; height: 14px; }
        .ui-btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
        .ui-btn-block { width: 100%; }
        .ui-primary { background: linear-gradient(135deg, #10b981, #047857); color: #fff; }
        .ui-primary:hover { background: linear-gradient(135deg, #059669, #065f46); }
        .ui-dark { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; }
        .ui-ghost { background: #fff; color: #334155; border-color: #e2e8f0; }
        .ui-ghost:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
        .ui-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
        .ui-blue:hover { background: #dbeafe; border-color: #93c5fd; }
        .ui-green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
        .ui-green:hover { background: #d1fae5; border-color: #6ee7b7; }
        .ui-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
        .ui-amber:hover { background: #fef3c7; border-color: #fcd34d; }
        .ui-red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
        .ui-red:hover { background: #fee2e2; border-color: #fca5a5; }
        .ui-violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
        .ui-violet:hover { background: #ede9fe; border-color: #c4b5fd; }
        .ui-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
        .ui-group { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
        .ui-group form { display: inline-flex; margin: 0; }
        .ui-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid #e2e8f0; background: #fff; color: #475569; text-decoration: none; transition: all .15s ease; }
        .ui-chip:hover { border-color: #10b981; color: #047857; transform: translateY(-1px); }
        .ui-chip .ui-count { background: #f1f5f9; color: #475569; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; }
        .ui-chip.active { background: #0f172a; border-color: #0f172a; color: #fff; }
        .ui-chip.active .ui-count { background: rgba(255,255,255,0.18); color: #fff; }
        .ui-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
        .ui-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
        .ui-badge-active, .ui-badge-pending, .ui-badge-suspended { background: #ecfdf5; color: #047857; }
        .ui-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 4px 20px rgba(15,23,42,0.03); }
        .ui-input { padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
        .ui-input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
        .ui-search { position: relative; }
        .ui-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #94a3b8; pointer-events: none; }
        .ui-search input { padding-left: 34px; }
        .ui-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; line-height: 1.5; }
        .ui-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
        .ui-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
        .ui-alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
        .ui-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
        .ui-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
        .ui-toast { position: fixed; top: 20px; right: 20px; z-index: 10001; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid var(--tc, #10b981); border-radius: 12px; padding: 14px 16px; box-shadow: 0 20px 40px -12px rgba(15,23,42,0.3); max-width: 380px; animation: uiSlide .3s ease; font-size: 14px; }
        .ui-toast svg { width: 20px; height: 20px; color: var(--tc, #10b981); flex-shrink: 0; }
        .ui-toast .ui-toast-x { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 18px; line-height: 1; padding: 0 0 0 6px; }
        .ui-modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 20px; }
        .ui-modal-bg.open { display: flex; }
        .ui-modal { background: #fff; border-radius: 18px; max-width: 420px; width: 100%; padding: 26px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); animation: uiPop .18s ease; }
        .ui-modal-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
        .ui-modal-icon svg { width: 24px; height: 24px; }
        .ui-modal h3 { font-size: 18px; color: #0f172a; margin-bottom: 6px; }
        .ui-modal p { font-size: 14px; color: #475569; line-height: 1.55; margin-bottom: 22px; }
        .ui-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
        @keyframes uiPop { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }
        @keyframes uiSlide { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
        @keyframes uiSpin { to { transform: rotate(360deg); } }
        @media print { .ui-btn, .ui-toast, .ui-modal-bg, .ui-no-print { display: none !important; } }

        @media (max-width: 768px) {
            .dash-layout { flex-direction: column; }
            .sidebar { width: 100%; }
        }
        @media (max-width: 640px) {
            .footer { padding: 24px 6% 14px; }
            .footer-container { flex: 0 0 auto; grid-template-columns: 1fr; justify-items: center; gap: 20px; }
            .footer-association, .footer-contact, .footer-links { width: 100%; max-width: 440px; align-items: center; text-align: center; justify-self: center; }
            .footer-links h4::after { margin-left:auto; margin-right:auto; }
            .footer-links-list { text-align:left; }
            .footer-logo-row img { height: 60px; width: 140px; }
        }
        @media print {
            .no-print, .sidebar, .top-bar { display: none !important; }
            .dash-layout, .main-panel, .content-area { margin: 0 !important; padding: 0 !important; display: block !important; }
            .card { border: 1px solid #94a3b8 !important; page-break-inside: avoid; margin-bottom: 15px !important; box-shadow: none !important; }
            .id-card { box-shadow: none !important; border: 2px solid #064e3b !important; page-break-inside: avoid; }
        }
