/*
Theme Name: MyCourseID
Theme URI: https://mycourseid.com
Author: MyCourseID
Author URI: https://mycourseid.com
Description: A modern WordPress theme for MyCourseID Authentication Solutions.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mycourseid
*/

/* ============================================
   RESET & CUSTOM PROPERTIES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette — Brex-inspired warm neutrals */
    --black: #1a1a1a;
    --dark: #232323;
    --white: #ffffff;
    --cream: #fcfbf9;
    --warm-bg: #f6f4ef;
    --warm-bg-alt: #efede7;
    --card-bg: #f2f0eb;
    --text-primary: #2d2d2d;
    --text-secondary: #5c5c5c;
    --text-tertiary: #8a8a8a;
    --border: #e0ddd7;
    --border-hover: #c5c1ba;

    /* Accent — deep orange */
    --accent: #e05a1a;
    --accent-hover: #c74e15;
    --accent-light: rgba(224,90,26,0.08);
    --accent-subtle: rgba(224,90,26,0.04);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Spacing */
    --container: 1200px;
    --section-pad: 100px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.07);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    background: var(--cream);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { line-height: 1.8; }

.text-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(224,90,26,0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.2);
}
.btn-outline-light:hover {
    border-color: var(--accent);
    color: var(--white);
    background: rgba(224,90,26,0.15);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--cream);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-sm { padding: 10px 22px; font-size: 0.875rem; }

.btn-icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }

/* ============================================
   HEADER — Rounded floating bar
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 5% 0;
    transition: padding 0.3s var(--ease);
}

.site-header.scrolled {
    padding-top: 8px;
}

.header-bar {
    background: rgba(35,35,35,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.site-header.scrolled .header-bar {
    background: rgba(26,26,26,0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    flex-shrink: 0;
}

.site-logo img,
.custom-logo-link img { height: 34px; width: auto; }

.site-logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.site-logo-tagline {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0;
}

.nav-center a {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-support {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-support:hover {
    background: rgba(255,255,255,0.14);
    color: var(--white);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   SECTIONS — Unified warm background
   ============================================ */
.section {
    padding: var(--section-pad) 0;
    position: relative;
    background: var(--cream);
}

.section-card {
    background: var(--warm-bg);
    border-radius: var(--radius-xl);
    padding: var(--section-pad) 60px;
    margin: 0 24px;
}

.section-header {
    margin-bottom: 56px;
}
.section-header.centered {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.section-header p {
    margin-top: 16px;
    font-size: 1.0625rem;
}

/* ============================================
   HOME HERO (full-bleed image)
   ============================================ */
.hero-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    padding: 0;
    position: relative;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 2;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    z-index: 1;
}

.hero-bg-placeholder {
    background: linear-gradient(135deg, #2a1a0a 0%, #1a1a1a 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(26,26,26,0.92) 0%,
        rgba(26,26,26,0.82) 35%,
        rgba(26,26,26,0.45) 65%,
        rgba(26,26,26,0.15) 100%
    );
}

.hero-home .container {
    position: relative;
    z-index: 3;
    padding-top: 140px;
    padding-bottom: 100px;
}

.hero-home-content {
    max-width: 600px;
}

.hero-home-content .text-label {
    color: rgba(255,255,255,0.35);
    margin-bottom: 24px;
}

.hero-home-content h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.hero-typed {
    color: var(--accent);
    display: inline-block;
    position: relative;
    min-width: 200px;
}

.hero-typed::after {
    content: '|';
    color: var(--accent);
    animation: blink-cursor 0.8s ease-in-out infinite;
    margin-left: 2px;
    font-weight: 300;
}

.hero-typed.typed-done::after { display: none; }

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-home .hero-description {
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
    font-size: 1.0625rem;
}

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

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    padding: 40px 0;
    background: var(--warm-bg);
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-bar-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
}

.trust-bar-icon svg { width: 16px; height: 16px; }

.trust-bar-icon-secure {
    background: var(--accent-light);
    border-color: rgba(224,90,26,0.12);
    color: var(--accent);
}

/* ============================================
   ACCORDION SERVICES (Brex-style)
   ============================================ */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.services-lhs {
    position: sticky;
    top: 120px;
}

.services-lhs h2 { margin-bottom: 20px; }
.services-lhs > p { font-size: 1.0625rem; margin-bottom: 32px; }

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--border-hover);
}

.accordion-item.active {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(224,90,26,0.06);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: var(--transition);
}

.accordion-trigger:hover { background: var(--accent-subtle); }

.accordion-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-bg);
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    background: var(--accent-light);
    color: var(--accent);
}

.accordion-icon svg { width: 20px; height: 20px; }

.accordion-trigger-text {
    flex: 1;
}

.accordion-trigger-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.accordion-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}

.accordion-item.active .accordion-body {
    max-height: 400px;
}

.accordion-body-inner {
    padding: 0 24px 24px;
    padding-left: 80px;
}

.accordion-body-inner p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.accordion-body-inner .learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.accordion-body-inner .learn-more-link:hover {
    gap: 10px;
}

.accordion-body-inner .learn-more-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   SECURITY SECTION (on cream bg)
   ============================================ */
.security-home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.security-home-content h2 {
    margin-bottom: 20px;
}
.security-home-content p {
    font-size: 1rem;
    margin-bottom: 32px;
}

.compliance-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.compliance-img {
    display: block;
    transition: var(--transition);
}

.compliance-img img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

.compliance-img:hover {
    transform: translateY(-3px);
}

/* ============================================
   LMS LOGOS
   ============================================ */
.logo-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    min-width: 200px;
}

.logo-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.logo-item-icon {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.logo-item-icon img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-item-icon svg { height: 36px; width: 80px; }
.logo-item:hover .logo-item-icon { color: var(--text-primary); }

.logo-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 0 24px var(--section-pad);
    background: var(--cream);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--text-primary);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    overflow: hidden;
    position: relative;
}

.cta-card-content {
    flex: 1;
    max-width: 560px;
}

.cta-card h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 32px;
}

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

/* Decorative circles (Merge-style logo pattern) */
.cta-card-deco {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.cta-circle-1 {
    width: 200px;
    height: 200px;
    top: 0;
    right: 0;
}

.cta-circle-2 {
    width: 140px;
    height: 140px;
    top: 80px;
    right: 100px;
}

.cta-circle-3 {
    width: 120px;
    height: 120px;
    bottom: 0;
    right: 40px;
}

.cta-circle-4 {
    width: 80px;
    height: 80px;
    top: 30px;
    right: 180px;
    background: rgba(224,90,26,0.06);
    border-color: rgba(224,90,26,0.12);
}

/* ============================================
   SERVICES HERO (text + video split)
   ============================================ */
.services-hero {
    padding: 140px 0 80px;
    background: var(--cream);
}

.services-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.services-hero-text h1 {
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}

.services-hero-text p {
    font-size: 1.0625rem;
    margin-bottom: 32px;
}

.video-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.video-wrap video {
    display: block;
    width: 100%;
    height: auto;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 40px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    background: var(--warm-bg);
}

/* ============================================
   FEATURE GRID (3x2 Boom-style cards)
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card-icon svg { width: 20px; height: 20px; }

.feature-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ============================================
   REPORTING SECTION (text + mockup)
   ============================================ */
.reporting-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.reporting-text h2 { margin-bottom: 8px; }
.reporting-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.reporting-text > p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Results panel — interactive student table */
.results-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.results-panel-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.results-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.results-panel-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Table header row */
.results-table-head {
    display: grid;
    grid-template-columns: 1fr 72px 110px 40px;
    gap: 8px;
    padding: 10px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.results-table-head span {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

/* Student row trigger */
.student-row {
    border-bottom: 1px solid var(--border);
}

.student-row:last-child { border-bottom: none; }

.student-row-trigger {
    display: grid;
    grid-template-columns: 1fr 72px 110px 40px;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 14px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: background 0.2s var(--ease);
}

.student-row-trigger:hover {
    background: var(--accent-subtle);
}

.student-row.active .student-row-trigger {
    background: var(--accent-light);
}

/* Student avatar */
.student-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.6875rem;
    color: var(--white);
    margin-right: 12px;
    flex-shrink: 0;
    vertical-align: middle;
}

.rt-col-name {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.rt-col-flags {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-col-status {
    display: flex;
    align-items: center;
}

.rt-col-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flag badge */
.flag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.flag-high {
    background: rgba(220,38,38,0.1);
    color: #dc2626;
}

.flag-med {
    background: rgba(234,179,8,0.12);
    color: #b45309;
}

.flag-low {
    background: rgba(59,130,246,0.1);
    color: #2563eb;
}

.flag-clear {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
}

/* Status tag */
.status-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-review {
    background: rgba(220,38,38,0.08);
    color: #dc2626;
}

.status-flagged {
    background: rgba(234,179,8,0.1);
    color: #b45309;
}

.status-clear {
    background: rgba(34,197,94,0.08);
    color: #16a34a;
}

/* Row chevron */
.row-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    transition: transform 0.3s var(--ease);
}

.student-row.active .row-chevron {
    transform: rotate(180deg);
}

/* Expandable detail panel */
.student-row-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.student-row.active .student-row-detail {
    max-height: 600px;
}

.detail-inner {
    padding: 0 24px 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--cream);
}

.no-flags-msg {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    padding: 20px 0;
    font-style: italic;
}

/* Report entries (reused inside expanded rows) */
.report-entry {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s var(--ease);
}

.report-entry:last-child { border-bottom: none; }

.report-time {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    padding-top: 3px;
    min-width: 88px;
}

.report-entry-body { flex: 1; }

.report-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.report-tag-high {
    background: rgba(220,38,38,0.08);
    color: #dc2626;
}

.report-tag-med {
    background: rgba(234,179,8,0.1);
    color: #b45309;
}

.report-tag-low {
    background: rgba(59,130,246,0.08);
    color: #2563eb;
}

.report-entry-body p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   FAQ TABS
   ============================================ */
.faq-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.faq-tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--warm-bg);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.faq-tab-btn {
    flex: 1;
    padding: 12px 24px;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
}

.faq-tab-btn:hover { color: var(--text-primary); }

.faq-tab-btn.active {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.faq-panel { height: 0; overflow: hidden; visibility: hidden; }
.faq-panel.active { height: auto; overflow: visible; visibility: visible; }

/* FAQ accordion uses the same accordion styles from the home page but without icons */
.faq-tabs .accordion-trigger { padding: 18px 20px; }
.faq-tabs .accordion-trigger-text h3 { font-size: 0.9375rem; font-weight: 600; }
.faq-tabs .accordion-body-inner { padding: 0 20px 20px; padding-left: 20px; }
.faq-tabs .accordion-body-inner p { font-size: 0.9rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    padding: 72px 0 36px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .site-logo-text {
    color: var(--white);
    font-size: 1.2rem;
}
.footer-brand .site-logo-tagline { color: rgba(255,255,255,0.25); }

.footer-brand p {
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 8px; }

.footer-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(224,90,26,0.08);
}

.footer-social svg { width: 14px; height: 14px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
}

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

.footer-legal a {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    padding: 140px 0 60px;
    background: var(--cream);
}

.page-hero p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

/* ============================================
   SPLIT SECTION
   ============================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split.reverse .split-content { order: 2; }
.split.reverse .split-visual { order: 1; }

.split-content .text-label { margin-bottom: 16px; }
.split-content h2 { margin-bottom: 20px; }
.split-content p { margin-bottom: 16px; font-size: 1rem; }
.split-content .btn { margin-top: 12px; }

.split-visual-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--warm-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    overflow: hidden;
}

/* ============================================
   CARD GRID
   ============================================ */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--white);
    border: 1px solid var(--border);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    background: var(--accent-light);
    color: var(--accent);
}

.card-icon svg { width: 22px; height: 22px; }
.card h4 { margin-bottom: 8px; }
.card p { font-size: 0.9375rem; line-height: 1.7; }

/* ============================================
   TRUST GRID (compliance badges — light)
   ============================================ */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.trust-badge:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trust-badge-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.trust-badge-icon svg { width: 24px; height: 24px; color: var(--text-primary); }

.trust-badge-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.trust-badge-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.news-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-card-image {
    aspect-ratio: 16/9;
    background: var(--warm-bg);
    overflow: hidden;
}

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

.news-card-body { padding: 28px; }

.news-card-date {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.news-card-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.news-card-body h3 a:hover { color: var(--accent); }
.news-card-body p { font-size: 0.9375rem; margin-bottom: 14px; }

.news-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-card-link:hover { gap: 10px; }
.news-card-link svg { width: 14px; height: 14px; }

/* ============================================
   DEMO FORM LAYOUT
   ============================================ */
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.demo-benefits h3 { margin-bottom: 28px; }

.demo-benefit-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.demo-benefit-check {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 50%;
    margin-top: 2px;
}

.demo-benefit-check svg { width: 12px; height: 12px; color: var(--accent); }
.demo-benefit-item h4 { margin-bottom: 4px; }
.demo-benefit-item p { font-size: 0.875rem; }

.demo-form-wrap {
    padding: 44px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.demo-form-wrap h2 { margin-bottom: 8px; }
.demo-form-wrap > p { margin-bottom: 28px; font-size: 0.9375rem; }

.demo-form-wrap input[type="text"],
.demo-form-wrap input[type="email"],
.demo-form-wrap input[type="tel"],
.demo-form-wrap select,
.demo-form-wrap textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    background: var(--cream);
    color: var(--text-primary);
    transition: var(--transition);
    margin-bottom: 14px;
}

.demo-form-wrap input:focus,
.demo-form-wrap select:focus,
.demo-form-wrap textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.demo-form-wrap textarea { min-height: 110px; resize: vertical; }

.demo-form-wrap input[type="submit"],
.demo-form-wrap .wpcf7-submit {
    width: 100%;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 6px;
}

.demo-form-wrap input[type="submit"]:hover,
.demo-form-wrap .wpcf7-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(224,90,26,0.25);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.wp-block-image img { border-radius: var(--radius-md); }
.entry-content { padding: 60px 0; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { margin: 2em 0 0.5em; }
.entry-content h3 { margin: 1.5em 0 0.5em; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ============================================
   SECURITY PAGE
   ============================================ */
.security-hero {
    padding: 160px 0 80px;
    background: var(--cream);
}

.security-hero-layout {
    max-width: 640px;
}

.security-hero-text h1 {
    margin-bottom: 20px;
}

.security-hero-text > p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Security features grid */
.security-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.security-feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    transition: var(--transition);
}

.security-feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.security-feature-card-wide {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.security-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.security-feature-card-wide .security-feature-icon {
    margin-left: auto;
    margin-right: auto;
}

.security-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.security-feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.security-feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Security compliance badges */
.compliance-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.compliance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.compliance-badge-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.compliance-badge-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.compliance-badge span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.compliance-badges-lg {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   DEMO PAGE
   ============================================ */
.demo-page-hero {
    padding: 140px 0 100px;
    background: var(--cream);
}

.demo-page-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: start;
}

.demo-page-text h1 {
    margin-bottom: 16px;
}

.demo-page-text > p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.demo-trust-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.demo-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.demo-trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Demo form */
.demo-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}

.demo-form-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group .required {
    color: var(--accent);
}

.form-group .optional {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.form-group input[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
    background: var(--accent-hover);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--cream);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: var(--white);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%235c5c5c' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.form-error {
    font-size: 0.875rem;
    color: #dc2626;
    background: rgba(220,38,38,0.06);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.demo-form-success {
    text-align: center;
    padding: 40px 20px;
}

.demo-form-success h2 {
    margin-bottom: 12px;
}

.demo-form-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   LEGAL PAGES (TOS / Privacy)
   ============================================ */
.legal-page {
    padding: 140px 0 100px;
    background: var(--cream);
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 56px;
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.2;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--accent);
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-address {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.legal-address p {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.legal-contact {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.legal-contact h3 {
    margin-top: 0;
}

.legal-divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 56px 0;
}

/* Footer email */
.footer-email {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
    transition: var(--transition);
}

.footer-email:hover {
    color: var(--accent);
}

/* Support page reuses demo-page-hero styles */

/* ============================================
   NEWS LISTING PAGE
   ============================================ */
.news-page-hero {
    padding: 140px 0 var(--section-pad);
    background: var(--cream);
}

.news-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.news-page-title h1 {
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.news-tab-nav {
    display: flex;
    gap: 4px;
    background: var(--warm-bg);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.news-tab-btn {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.news-tab-btn:hover {
    color: var(--text-primary);
    background: var(--white);
}

.news-tab-btn.active {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.news-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.news-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.news-listing-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--warm-bg);
}

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

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

.news-listing-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-bg);
}

.news-listing-card-body {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-listing-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: auto;
}

.news-listing-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 16px;
    transition: var(--transition);
}

.news-listing-card-read svg {
    width: 14px;
    height: 14px;
    transition: var(--transition);
}

.news-listing-card:hover .news-listing-card-read svg {
    transform: translateX(4px);
}

.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
    font-size: 1.0625rem;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.news-pagination a {
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: var(--white);
}

.news-pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    padding: 140px 0 48px;
    background: var(--cream);
}

.single-post-header-inner {
    max-width: 760px;
}

.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 28px;
    transition: var(--transition);
}

.single-post-back svg {
    width: 18px;
    height: 18px;
}

.single-post-back:hover {
    color: var(--accent);
}

.single-post-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.single-post-cat {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: var(--radius-full);
}

.single-post-header h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.single-post-meta-sep {
    font-size: 1.2em;
}

.single-post-featured {
    background: var(--cream);
    padding-bottom: 56px;
}

.single-post-featured-img {
    max-width: 900px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.single-post-featured-img img {
    width: 100%;
    display: block;
}

.single-post-content {
    background: var(--white);
    padding: 72px 0 80px;
    border-top: 1px solid var(--border);
}

.single-post-body {
    max-width: 700px;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.single-post-body h2 {
    font-size: 1.75rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.single-post-body h3 {
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.single-post-body h4 {
    font-size: 1.1rem;
    margin-top: 32px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.single-post-body p {
    margin-bottom: 24px;
}

.single-post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post-body a:hover {
    color: var(--accent-hover);
}

.single-post-body ul,
.single-post-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.single-post-body ul { list-style: disc; }
.single-post-body ol { list-style: decimal; }

.single-post-body li {
    margin-bottom: 8px;
}

.single-post-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--warm-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-primary);
}

.single-post-body blockquote p:last-child {
    margin-bottom: 0;
}

.single-post-body img {
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.single-post-body pre {
    background: var(--dark);
    color: #e0e0e0;
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.single-post-body code {
    background: var(--warm-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.single-post-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.single-post-footer {
    background: var(--white);
    padding: 0 0 80px;
}

.single-post-footer-inner {
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.single-post-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.single-post-author img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.single-post-author-info {
    display: flex;
    flex-direction: column;
}

.single-post-author-info strong {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.single-post-author-info span {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.btn-outline-dark {
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: var(--white);
}

.btn-outline-dark:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .split { grid-template-columns: 1fr; gap: 48px; }
    .split.reverse .split-content,
    .split.reverse .split-visual { order: unset; }
    .card-grid { grid-template-columns: 1fr; }
    .card-grid-3 { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-layout { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-listing-grid { grid-template-columns: repeat(2, 1fr); }
    .services-layout { grid-template-columns: 1fr; gap: 48px; }
    .services-lhs { position: static; }
    .security-home-layout { grid-template-columns: 1fr; gap: 48px; }
    .services-hero-layout { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .reporting-layout { grid-template-columns: 1fr; gap: 40px; }
    .section-card { padding: 60px 40px; margin: 0; }
    .security-features-grid { grid-template-columns: 1fr 1fr; }
    .demo-page-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    :root { --section-pad: 72px; }

    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 28px 28px;
        background: rgba(30,30,30,0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255,255,255,0.06);
        transition: right 0.35s var(--ease);
        gap: 4px;
    }

    .site-header { padding: 8px 12px 0; }

    .main-nav.active { right: 0; }
    .nav-center {
        flex-direction: column;
        align-items: flex-start;
        flex: none;
    }
    .nav-center a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        color: rgba(255,255,255,0.65);
    }
    .nav-center a:hover,
    .nav-center a.active {
        color: var(--white);
    }
    .nav-right {
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-right .btn { width: 100%; justify-content: center; }

    .hero-home { min-height: auto; }
    .hero-home .container { padding-top: 120px; padding-bottom: 72px; }
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(26,26,26,0.92) 0%,
            rgba(26,26,26,0.82) 50%,
            rgba(26,26,26,0.65) 100%
        );
    }

    .page-hero { padding: 120px 0 48px; }

    .trust-bar-inner { gap: 20px; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .card { padding: 24px; }
    .card-grid-3 { grid-template-columns: 1fr; }
    .compliance-images { gap: 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .services-hero { padding: 120px 0 60px; }

    .logo-grid { gap: 10px; }
    .logo-item { min-width: 130px; padding: 20px 24px; }

    .cta-card { padding: 48px 28px; flex-direction: column; }
    .cta-card-deco { display: none; }
    .section-card { padding: 48px 28px; }

    .footer-links { flex-direction: column; gap: 12px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .demo-form-wrap { padding: 28px 20px; }

    .accordion-body-inner { padding-left: 24px; }

    .security-features-grid { grid-template-columns: 1fr; }
    .security-hero { padding: 120px 0 60px; }
    .demo-page-hero { padding: 120px 0 72px; }
    .legal-content { padding: 40px 28px; }
    .legal-content h1 { font-size: 1.5rem; }

    .form-row { grid-template-columns: 1fr; }

    .news-page-header { flex-direction: column; align-items: flex-start; }
    .news-page-title h1 { font-size: 2rem; }
    .news-listing-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .single-post-header h1 { font-size: 2rem; }
    .single-post-body { font-size: 1rem; }
    .single-post-footer-inner { flex-direction: column; align-items: flex-start; }

    /* Results panel responsive */
    .results-table-head { display: none; }
    .student-row-trigger {
        grid-template-columns: 1fr auto auto auto;
        padding: 12px 16px;
        gap: 10px;
    }
    .student-avatar { width: 28px; height: 28px; font-size: 0.6rem; margin-right: 8px; }
    .rt-col-name { font-size: 0.8125rem; }
    .rt-col-status { display: none; }
    .detail-inner { padding: 0 16px 12px; }
    .report-entry { flex-direction: column; gap: 4px; padding: 10px 0; }
    .report-time { min-width: auto; }
}

@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr; }
    .trust-bar-inner { flex-direction: column; gap: 12px; }
    .compliance-images { flex-direction: row; gap: 20px; }
    .compliance-img img { max-height: 100px; }
    .logo-grid { flex-direction: column; }
    .logo-item { width: 100%; }
    .news-listing-grid { grid-template-columns: 1fr; }
    .news-tab-nav { flex-wrap: wrap; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
}
