/*
Theme Name: Twenty Twenty-Five ACROSS
Theme URI: https://across-alliance.eu/
Description: Child theme of Twenty Twenty-Five for ACROSS Alliance. Modern, colorful and fully responsive design.
Author: Boubakr Injarn
Author URI: https://across-alliance.eu/
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-across
Tags: education, modern, colorful, responsive, accessibility-ready
*/

/* ==========================================================================
   ACROSS BRAND COLORS
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-european-blue: #1E5AF5;
    --color-white: #FFFFFF;

    /* Secondary Colors */
    --color-yellow: #FFD200;
    --color-rose: #FFA0DC;
    --color-red: #FF463C;
    --color-purple: #8C63DB;
    --color-green: #6EE191;
    --color-orange: #FA874A;

    /* Special Colors */
    --color-black: #000000;

    /* Typography */
    --font-raleway: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Border Radius for Key Visual Elements */
    --radius-curve: 50%;
    --radius-small: 8px;
    --radius-medium: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   ACROSS KEY VISUAL HERO
   ========================================================================== */

.across-hero {
    position: relative;
    background-color: var(--color-european-blue);
    color: var(--color-white);
    padding: var(--spacing-xxl) var(--spacing-md);
    overflow: hidden;
    min-height: 80vh;
    /* Dominant hero section */
    display: flex;
    align-items: center;
}

.across-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.across-hero-text h1 {
    font-family: var(--font-raleway);
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 5rem);
    /* Fluid typography */
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.across-hero-text p {
    font-family: var(--font-raleway);
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Key Visual Shapes (CSS Composition) */
.across-key-visual-art {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Curve Composition based on Styleguide p.32 (Two Layers) */
.kv-shape {
    position: absolute;
    transition: var(--transition-base);
}

/* Main S-Curve element */
.kv-curve-1 {
    width: 200px;
    height: 200px;
    border-radius: 0 0 0 100%;
    /* Quarter circle bottom-left */
    background-color: var(--color-rose);
    top: 50px;
    left: 20%;
}

.kv-curve-2 {
    width: 200px;
    height: 200px;
    border-radius: 0 100% 0 0;
    /* Quarter circle top-right */
    background-color: var(--color-yellow);
    top: 50px;
    left: calc(20% + 200px);
}

.kv-curve-3 {
    width: 200px;
    height: 200px;
    border-radius: 0 0 100% 0;
    /* Quarter circle bottom-right */
    background-color: var(--color-white);
    top: 250px;
    left: calc(20% + 200px);
}

.kv-curve-4 {
    width: 200px;
    height: 200px;
    border-radius: 100% 0 0 0;
    /* Quarter circle top-left */
    background-color: var(--color-purple);
    /* Accent */
    top: 250px;
    left: calc(20% + 400px);
}


@media (max-width: 900px) {
    .across-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .across-key-visual-art {
        display: none;
        /* Hide complex visual on mobile for clarity, or simplify */
    }

    .across-hero {
        min-height: auto;
        padding: var(--spacing-xxl) var(--spacing-md);
    }
}

/* ==========================================================================
   PARTNER NETWORK (Logos & Connection)
   ========================================================================== */

.partner-network {
    padding: var(--spacing-xl) 0;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.network-header h2 {
    color: var(--color-european-blue);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.network-header p {
    color: #666;
    margin-bottom: var(--spacing-lg);
}

/* Network Grid Wrapper */
.network-grid-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.network-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    z-index: 2;
}

.network-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind logos */
    pointer-events: none;
    overflow: visible;
}

/* Data Packet Animation */
.data-packet {
    fill: var(--color-european-blue);
    filter: drop-shadow(0 0 2px var(--color-european-blue));
    offset-rotate: auto;
    animation: movePacket linear infinite;
    opacity: 0;
    /* Fade out at ends */
    animation-name: movePacket, fadePacket;
}

@keyframes movePacket {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

@keyframes fadePacket {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* SVG Line Styles */
.connection-line {
    fill: none;
    stroke: var(--color-rose);
    stroke-width: 2px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
    opacity: 0.6;
}

.connection-line:nth-child(even) {
    stroke: var(--color-yellow);
}

.connection-line:nth-child(3n) {
    stroke: var(--color-green);
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.uni-logo-item {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    z-index: 2;
    position: relative;
    text-decoration: none !important;
    border: none;
    outline: none;

    /* Continuous gentle blue breathing glow */
    animation: breatheGlow 3.5s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* Make Chemnitz (TUC) logo slightly bigger */
.uni-logo-item:first-child {
    width: 140px;
    height: 140px;
}

/* Logo images */
.uni-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(60%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Remove default theme link icon */
.uni-logo-item::after {
    display: none !important;
    content: none !important;
}

/* Packet Flow Directions */
.data-packet.flow-normal {
    animation-direction: normal;
}

.data-packet.flow-reverse {
    animation-direction: reverse;
}

/* === CONTINUOUS BREATHING GLOW (subtle blue pulse) === */
@keyframes breatheGlow {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 0 rgba(30, 90, 245, 0.15);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 18px 4px rgba(30, 90, 245, 0.25);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 0 rgba(30, 90, 245, 0.15);
    }
}

/* Stagger the glow so they don't all pulse in sync */
.uni-logo-item:nth-child(2) {
    animation-delay: 0.5s;
}

.uni-logo-item:nth-child(3) {
    animation-delay: 1.0s;
}

.uni-logo-item:nth-child(4) {
    animation-delay: 1.5s;
}

.uni-logo-item:nth-child(5) {
    animation-delay: 0.3s;
}

/* === HOVER: ACROSS Brand Colors (override the breathing glow) === */
.uni-logo-item:hover {
    transform: scale(1.15);
    z-index: 10;
    cursor: pointer;
    animation: none;
    /* Stop breathing, show solid hover glow */
}

.uni-logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Color 1: ACROSS Yellow */
.network-row:first-child .uni-logo-item:nth-child(1):hover {
    box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.5), 0 8px 30px rgba(255, 210, 0, 0.3);
}

/* Color 2: ACROSS Purple */
.network-row:first-child .uni-logo-item:nth-child(2):hover {
    box-shadow: 0 0 0 4px rgba(140, 99, 219, 0.5), 0 8px 30px rgba(140, 99, 219, 0.3);
}

/* Color 3: ACROSS Rose */
.network-row:first-child .uni-logo-item:nth-child(3):hover {
    box-shadow: 0 0 0 4px rgba(255, 160, 220, 0.5), 0 8px 30px rgba(255, 160, 220, 0.3);
}

/* Color 4: ACROSS Green */
.network-row:first-child .uni-logo-item:nth-child(4):hover {
    box-shadow: 0 0 0 4px rgba(110, 225, 145, 0.5), 0 8px 30px rgba(110, 225, 145, 0.3);
}

/* Color 5: ACROSS Orange */
.network-row:last-child .uni-logo-item:nth-child(1):hover {
    box-shadow: 0 0 0 4px rgba(250, 135, 74, 0.5), 0 8px 30px rgba(250, 135, 74, 0.3);
}

/* Color 6: ACROSS Red */
.network-row:last-child .uni-logo-item:nth-child(2):hover {
    box-shadow: 0 0 0 4px rgba(255, 70, 60, 0.5), 0 8px 30px rgba(255, 70, 60, 0.3);
}

/* Color 7: ACROSS Yellow */
.network-row:last-child .uni-logo-item:nth-child(3):hover {
    box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.5), 0 8px 30px rgba(255, 210, 0, 0.3);
}

/* Color 8: ACROSS Purple */
.network-row:last-child .uni-logo-item:nth-child(4):hover {
    box-shadow: 0 0 0 4px rgba(140, 99, 219, 0.5), 0 8px 30px rgba(140, 99, 219, 0.3);
}

/* Color 9: ACROSS Rose */
.network-row:last-child .uni-logo-item:nth-child(5):hover {
    box-shadow: 0 0 0 4px rgba(255, 160, 220, 0.5), 0 8px 30px rgba(255, 160, 220, 0.3);
}

/* Connect State (triggered by JS on hover over a node) */
.uni-logo-item.connected img {
    filter: grayscale(0%);
}

.uni-logo-item.connected {
    animation: breatheGlow 2s ease-in-out infinite;
}

/* === MOBILE CAROUSEL (hidden on desktop) === */
.partner-mobile-carousel {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 768px) {

    /* Hide the desktop network graph */
    .network-grid-wrapper {
        display: none !important;
    }

    /* Show the mobile carousel */
    .partner-mobile-carousel {
        display: block !important;
        padding: var(--spacing-md) 0;
        position: relative;
    }

    /* Edge fade gradients — visual cue that there's more content */
    .partner-mobile-carousel::before,
    .partner-mobile-carousel::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 40px;
        /* Don't cover the hint text */
        width: 40px;
        z-index: 5;
        pointer-events: none;
    }

    .partner-mobile-carousel::before {
        left: 0;
        background: linear-gradient(to right, rgba(13, 16, 32, 0.95), transparent);
    }

    .partner-mobile-carousel::after {
        right: 0;
        background: linear-gradient(to left, rgba(13, 16, 32, 0.95), transparent);
    }

    .carousel-track {
        display: flex;
        gap: var(--spacing-lg);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: var(--spacing-md) var(--spacing-xl);
        scrollbar-width: none;
        /* Firefox */
        /* Nudge animation to hint scrollability */
        animation: carouselNudge 3s ease-in-out 1s 1;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    /* Subtle auto-nudge animation on first load */
    @keyframes carouselNudge {
        0% {
            transform: translateX(0);
        }

        30% {
            transform: translateX(-30px);
        }

        60% {
            transform: translateX(8px);
        }

        100% {
            transform: translateX(0);
        }
    }

    .carousel-logo {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        scroll-snap-align: center;
        text-decoration: none !important;
        transition: transform 0.3s ease;
    }

    .carousel-logo::after {
        display: none !important;
        content: none !important;
    }

    .carousel-logo img {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: white;
        padding: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        object-fit: contain;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .carousel-logo span {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-european-blue);
        text-align: center;
        white-space: nowrap;
    }

    .carousel-logo:active img {
        transform: scale(1.1);
        box-shadow: 0 4px 20px rgba(30, 90, 245, 0.25);
    }

    .carousel-hint {
        text-align: center;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--color-european-blue);
        margin-top: var(--spacing-sm);
        opacity: 0.7;
        animation: hintSlide 2.5s ease-in-out infinite;
    }

    @keyframes hintSlide {

        0%,
        100% {
            transform: translateX(0);
            opacity: 0.5;
        }

        50% {
            transform: translateX(6px);
            opacity: 1;
        }
    }
}



/* ==========================================================================
   TYPOGRAPHY - Raleway Font Family
   ========================================================================== */

body {
    font-family: var(--font-raleway);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   LAYOUT - Sticky Footer
   ========================================================================== */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* Headings Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
    font-family: var(--font-raleway);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-european-blue);
}

h1,
.h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2,
.h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

h3,
.h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4,
.h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h5,
.h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6,
.h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Body Text */
p {
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

strong,
b {
    font-weight: 700;
}

em,
i {
    font-style: italic;
}

/* Links */
a {
    color: var(--color-european-blue);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-purple);
    text-decoration: underline;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.wp-block-template-part header,
.site-header {
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-european-blue);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(30, 90, 245, 0.1);
}

.site-title,
.wp-block-site-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.site-title a,
.wp-block-site-title a {
    color: var(--color-black);
    text-decoration: none;
}

.site-title a:hover,
.wp-block-site-title a:hover {
    color: var(--color-european-blue);
}

/* Navigation Menu */
.wp-block-navigation,
nav {
    font-weight: 500;
}

.wp-block-navigation__container,
.wp-block-navigation-item {
    list-style: none;
}

.wp-block-navigation-item a,
.wp-block-navigation-link__content {
    color: var(--color-black);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
    position: relative;
    transition: var(--transition-base);
}

.wp-block-navigation-item a:hover,
.wp-block-navigation-item a:focus,
.wp-block-navigation-link__content:hover {
    color: var(--color-european-blue);
    text-decoration: none;
}

/* Navigation underline effect */
.wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--color-european-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.wp-block-navigation-item a:hover::after,
.wp-block-navigation-item.current-menu-item a::after {
    width: 80%;
}

/* ==========================================================================
   HERO SECTION / FEATURED CONTENT
   ========================================================================== */

.hero-section,
.wp-block-cover {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-european-blue) 0%, var(--color-purple) 100%);
    color: var(--color-white);
    padding: var(--spacing-xxl) var(--spacing-lg);
    overflow: hidden;
}

/* Key Visual Elements in Hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background-color: var(--color-yellow);
    border-radius: 0 0 0 100%;
    opacity: 0.2;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    background-color: var(--color-rose);
    border-radius: 0 100% 0 0;
    opacity: 0.2;
    z-index: 0;
}

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

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.wp-block-button__link,
.wp-element-button,
button,
.button,
input[type="submit"],
input[type="button"] {
    background-color: var(--color-european-blue);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-small);
    font-family: var(--font-raleway);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--color-purple);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 90, 245, 0.3);
    text-decoration: none;
}

/* Button Variations */
.wp-block-button.is-style-outline .wp-block-button__link,
.button-outline {
    background-color: transparent;
    border: 2px solid var(--color-european-blue);
    color: var(--color-european-blue);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.button-outline:hover {
    background-color: var(--color-european-blue);
    color: var(--color-white);
}

/* Secondary Button Colors */
.button-yellow {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.button-yellow:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.button-green {
    background-color: var(--color-green);
    color: var(--color-black);
}

.button-green:hover {
    background-color: var(--color-purple);
    color: var(--color-white);
}

/* ==========================================================================
   CONTENT SECTIONS & LAYOUT
   ========================================================================== */

.wp-site-blocks,
.site-content {
    padding: 0;
}

.wp-block-group,
.content-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

/* Alternating Section Backgrounds */
.wp-block-group:nth-child(even),
.content-section:nth-child(even) {
    background-color: #FFFFFF;
}

/* Section with Blue Background */
.section-blue-bg {
    background-color: var(--color-european-blue);
    color: var(--color-white);
}

.section-blue-bg h1,
.section-blue-bg h2,
.section-blue-bg h3,
.section-blue-bg h4 {
    color: var(--color-white);
}

/* Section with Key Visual Decoration */
.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-decorated::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-red) 100%);
    border-radius: 0 0 0 100%;
    opacity: 0.15;
    z-index: 0;
}

/* Container */
.wp-block-group__inner-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: 800px;
}

/* ==========================================================================
   CARDS & POST LISTINGS
   ========================================================================== */

.wp-block-post-template,
.wp-block-query,
.posts-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.wp-block-post,
.post-card,
article {
    background-color: var(--color-white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.wp-block-post:hover,
.post-card:hover,
article:not(:has(.across-auth-container)):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 90, 245, 0.15);
}

/* Post Featured Image */
.wp-block-post-featured-image img,
.post-thumbnail img,
.post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-base);
}

.wp-block-post:hover .wp-block-post-featured-image img,
.post-card:hover img {
    transform: scale(1.05);
}

/* Post Content */
.wp-block-post-title,
.post-title,
.entry-title {
    font-size: 1.5rem;
    margin: var(--spacing-md) 0;
    padding: 0 var(--spacing-md);
}

.wp-block-post-excerpt,
.post-excerpt,
.entry-summary {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: #000000;
}

/* Post Meta */
.wp-block-post-date,
.wp-block-post-author,
.post-meta,
.entry-meta {
    font-size: 0.875rem;
    color: var(--color-european-blue);
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   KEY VISUAL DECORATIVE ELEMENTS
   ========================================================================== */

/* Curved Shapes for Visual Interest */
.key-visual-curve {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.key-visual-curve-1 {
    top: 5%;
    right: -5%;
    width: 250px;
    height: 250px;
    background-color: var(--color-yellow);
    border-radius: 0 0 0 100%;
}

.key-visual-curve-2 {
    bottom: 10%;
    left: -3%;
    width: 200px;
    height: 200px;
    background-color: var(--color-green);
    border-radius: 0 100% 0 0;
}

.key-visual-curve-3 {
    top: 50%;
    right: 10%;
    width: 180px;
    height: 180px;
    background-color: var(--color-rose);
    border-radius: 100% 0 0 0;
    transform: translateY(-50%);
}

/* Straight Lines Decoration */
.key-visual-line {
    position: absolute;
    background-color: var(--color-european-blue);
    opacity: 0.1;
    pointer-events: none;
}

.key-visual-line-h {
    height: 80px;
    width: 150px;
}

.key-visual-line-v {
    width: 80px;
    height: 150px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.wp-block-template-part footer,
.site-footer {
    background: linear-gradient(135deg, var(--color-european-blue) 0%, #1446d4 100%);
    color: #fff;
    padding: var(--spacing-xxl) var(--spacing-lg) var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-color: var(--color-purple);
    border-radius: 0 0 100% 0;
    opacity: 0.1;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: var(--color-white);
}

.site-footer a {
    color: var(--color-white);
    opacity: 0.9;
}

.site-footer a:hover {
    opacity: 1;
    color: var(--color-yellow);
}

.footer-widgets {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */

.wp-block-widget-area,
.widget-area,
.sidebar {
    padding: var(--spacing-lg);
}

.wp-block-widget,
.widget {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-medium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title,
.wp-block-widget h2,
.wp-block-widget h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-european-blue);
    color: var(--color-european-blue);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #FFFFFF;
    border-radius: var(--radius-small);
    font-family: var(--font-raleway);
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: var(--color-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-european-blue);
    box-shadow: 0 0 0 3px rgba(30, 90, 245, 0.1);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-black);
}

/* Search Form */
.wp-block-search,
.search-form {
    display: flex;
    gap: var(--spacing-sm);
}

.wp-block-search__input,
.search-form input[type="search"] {
    flex: 1;
}

.wp-block-search__button,
.search-form button {
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    .hero-section {
        min-height: 50vh;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .wp-block-post-template,
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }

    body {
        font-size: 16px;
    }

    .hero-section {
        min-height: 40vh;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-section::before,
    .hero-section::after {
        width: 200px;
        height: 200px;
    }

    .wp-block-post-template,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .wp-block-navigation {
        flex-direction: column;
    }

    .key-visual-curve {
        display: none;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {

    .container,
    .wp-block-group__inner-container {
        padding: 0 var(--spacing-sm);
    }

    h1,
    .h1 {
        font-size: 2rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    .wp-block-button__link,
    button,
    .button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus Styles */
*:focus {
    outline: 3px solid var(--color-european-blue);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--color-european-blue);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-european-blue);
    clip: auto !important;
    clip-path: none;
    color: var(--color-white);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.color-blue {
    color: var(--color-european-blue);
}

.color-yellow {
    color: var(--color-yellow);
}

.color-green {
    color: var(--color-green);
}

.color-purple {
    color: var(--color-purple);
}

.bg-blue {
    background-color: var(--color-european-blue);
}

.bg-yellow {
    background-color: var(--color-yellow);
}

.bg-green {
    background-color: var(--color-green);
}

.bg-rose {
    background-color: var(--color-rose);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {

    .site-header,
    .site-footer,
    .wp-block-navigation,
    .key-visual-curve,
    .key-visual-line {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000000;
    }

    a {
        text-decoration: underline;
        color: #000000;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
        color: #000000;
    }
}

/* ==========================================================================
   ECAMPUS PLUGIN STYLES (Refactored for ACROSS)
   ========================================================================== */

/* ==========================================================================
   ECAMPUS PLUGIN STYLES (Refactored for ACROSS)
   ========================================================================== */

/* Page Wrapper */
.ecampus-course-page {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--color-white);
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Container */
.ecampus-course-card {
    width: 100%;
    /* max-width: 1040px;  Let it fill container */
    margin: 0 auto var(--spacing-lg);
    background: var(--color-white);
    border: 1px solid #eee;
    /* Subtle border */
    border-radius: var(--radius-medium);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Softer ACROSS shadow */
    position: relative;
    overflow: hidden;

    /* Form Layout */
    .ecampus-course-form {
        padding: var(--spacing-lg);
        font-size: 1rem;
        color: var(--color-black);
    }

    /* Titles */
    .ecampus-form-title {
        font-family: var(--font-raleway);
        margin: 0 0 var(--spacing-lg);
        font-size: 2rem;
        font-weight: 700;
        color: var(--color-european-blue);
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: var(--spacing-sm);
    }

    .ecampus-section-title {
        font-family: var(--font-raleway);
        margin: var(--spacing-lg) 0 var(--spacing-sm);
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--color-black);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Information Box (Description, etc) */
    .ecampus-info-box {
        background: #fdfdfd;
        border-left: 4px solid var(--color-european-blue);
        /* ACROSS accent style */
        padding: var(--spacing-md);
        color: #444;
        line-height: 1.6;
    }

    /* Data Tables */
    .ecampus-course-table {
        width: 100%;
        border-collapse: collapse;
    }

    .ecampus-course-table td {
        padding: var(--spacing-sm) 0;
        vertical-align: top;
        border-bottom: 1px solid #f0f0f0;
    }

    .ecampus-course-table td:first-child {
        width: 25%;
        padding-right: var(--spacing-md);
        color: var(--color-european-blue);
        /* Label color */
        font-weight: 700;
        font-family: var(--font-raleway);
    }

    /* Buttons and Actions */
    .ecampus-info-actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-sm);
    }

    .ecampus-info-actions a,
    .ecampus-info-actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-small);
        border: 2px solid var(--color-european-blue);
        background: transparent;
        color: var(--color-european-blue);
        font-family: var(--font-raleway);
        font-weight: 700;
        text-decoration: none;
        transition: var(--transition-base);
        font-size: 0.95rem;
        cursor: pointer;
    }

    .ecampus-info-actions a:hover,
    .ecampus-info-actions button:hover {
        background: var(--color-european-blue);
        color: var(--color-white);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(30, 90, 245, 0.2);
    }

    /* Specific Link Style */
    .ecampus-info-link {
        color: var(--color-european-blue);
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: var(--transition-base);
    }

    .ecampus-info-link:hover {
        border-bottom-color: var(--color-european-blue);
    }

    /* Checkbox and Field Notes */
    .ecampus-inline-check {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        margin-top: var(--spacing-sm);
        cursor: pointer;
    }

    .ecampus-inline-check input[type="checkbox"] {
        width: 20px;
        height: 20px;
        border: 2px solid var(--color-european-blue);
        border-radius: 4px;
        cursor: pointer;
    }

    .field-note {
        font-size: 0.9rem;
        color: #666;
        margin-top: 5px;
        font-style: italic;
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        .ecampus-course-page {
            padding: var(--spacing-md);
        }

        .ecampus-course-form {
            padding: var(--spacing-md);
        }

        .ecampus-form-title {
            font-size: 1.5rem;
        }

        .ecampus-course-table td:first-child {
            width: 100%;
            display: block;
            margin-bottom: 5px;
            color: var(--color-black);
            /* Darker on mobile for readability */
        }

        .ecampus-course-table td {
            display: block;
            padding-bottom: var(--spacing-md);
            padding-top: 0;
            border: none;
        }

        .ecampus-course-table tr {
            border-bottom: 1px solid #eee;
            display: block;
            margin-bottom: var(--spacing-md);
        }
    }
}

/* ==========================================================================
   SCHEDULE EDITOR STYLES (ACROSS)
   ========================================================================== */

.schedule-section-wrapper {
    display: block;
    margin-left: 0;
}

.schedule-section-title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
    font-weight: 700;
    font-family: var(--font-raleway);
}

.schedule-section {
    background: var(--color-white);
    border: 1px solid #e3e8ef;
    border-radius: var(--radius-small);
    padding: var(--spacing-md);
    width: 100%;
    transition: var(--transition-base);
}

.schedule-section:focus-within {
    border-color: var(--color-european-blue);
    box-shadow: 0 0 0 3px rgba(30, 90, 245, 0.1);
}

.schedule-section__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-section__table td {
    padding: var(--spacing-xs) var(--spacing-sm);
    vertical-align: top;
    text-align: left !important;
}

.schedule-section__table td:first-child {
    width: 120px;
    /* Fixed width for labels */
    color: var(--color-black);
    font-weight: 600;
}

/* Schedule Inputs */
.schedule-section input[type="text"],
.schedule-section input[type="date"],
.schedule-section input[type="time"],
.schedule-section select {
    width: 100%;
    max-width: 420px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-small);
    font-size: 0.95rem;
}

.schedule-section input:focus,
.schedule-section select:focus {
    border-color: var(--color-european-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 90, 245, 0.1);
}

/* Day Selection Grid */
.schedule-days {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: var(--spacing-xs) var(--spacing-sm);
    align-items: center;
}

.schedule-section .schedule-day {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-black);
    cursor: pointer;
}

.schedule-section .schedule-day input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-european-blue);
}

/* Slots */
.schedule-slots {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.schedule-slot {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-small);
    padding: var(--spacing-sm);
}

.schedule-slot__header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-black);
}

.schedule-slot__row {
    display: grid !important;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    align-items: center;
}

.schedule-slot__label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

/* Buttons in Schedule */
.schedule-section button {
    padding: 6px 12px;
    border: 1px solid var(--color-european-blue);
    background: var(--color-white);
    color: var(--color-european-blue);
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.schedule-section button:hover {
    background: var(--color-european-blue);
    color: var(--color-white);
}

.schedule-section .error {
    color: var(--color-error, #d32f2f);
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

/* Exceptions List */
.schedule-exceptions__item {
    display: inline-flex;
    gap: var(--spacing-sm);
    align-items: center;
    background: #fff0f0;
    /* Light red for exceptions */
    border: 1px dashed #ffcdd2;
    border-radius: var(--radius-small);
    padding: 4px 10px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .schedule-section__table td:first-child {
        width: 100%;
        display: block;
        margin-bottom: 4px;
    }

    .schedule-section__table td {
        display: block;
        padding-left: 0;
    }

    .schedule-slot__row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ARCHIVE & POST LIST STYLES (COURSES/EVENTS) - PREMIUM TABLE LAYOUT
   ========================================================================== */

/* Fix pagination overlap by forcing clear margins */
.wp-block-query {
    margin-bottom: var(--spacing-xxl) !important;
    display: block !important;
    width: 100% !important;
}

.wp-block-query-pagination {
    margin-top: var(--spacing-xxxl) !important;
    padding-top: var(--spacing-xl) !important;
    clear: both;
    position: relative;
    z-index: 10;
    justify-content: center !important;
    /* Center the pagination */
    gap: var(--spacing-sm);
}

/* ACROSS Pagination Button Styles */
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background-color: var(--color-white);
    color: var(--color-european-blue);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-medium);
    /* Match ACROSS button style */
    text-decoration: none;
    font-family: var(--font-raleway);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* Hover State for Pagination */
.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover,
.wp-block-query-pagination .wp-block-query-pagination-previous:hover {
    background-color: var(--color-european-blue);
    color: var(--color-white);
    border-color: var(--color-european-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 90, 245, 0.15);
}

/* Current Active Page */
.wp-block-query-pagination .page-numbers.current {
    background-color: var(--color-purple);
    color: var(--color-white);
    border-color: var(--color-purple);
    pointer-events: none;
    /* Can't click active page */
}

/* Premium Table Container */
.wp-block-query .wp-block-post-template {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Lighter border */
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    /* Deeper, softer shadow */
}

/* Premium Table Row Layout */
.wp-block-query .wp-block-post {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 24px 30px !important;
    /* Generous padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    width: 100% !important;
    border-left: 4px solid transparent !important;
    /* Placeholder for hover state */
    background-color: var(--color-white) !important;
}

/* Zebra Striping for readability */
.wp-block-query .wp-block-post:nth-child(even) {
    background-color: #fafbfc !important;
}

/* Remove border on last row */
.wp-block-query .wp-block-post:last-child {
    border-bottom: none !important;
}

/* Ensure inner group follows flex rules */
.wp-block-query .wp-block-post>.wp-block-group {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--spacing-lg);
}

/* Premium Hover State: Base Lift and Shadow */
.wp-block-query .wp-block-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.04) !important;
    z-index: 2;
    /* Bring above other rows to show shadow */
}

/* Rotating "Random" ACROSS Colors on Hover */
/* Color 1: European Blue */
.wp-block-query .wp-block-post:nth-child(5n+1):hover {
    border-left: 4px solid var(--color-european-blue) !important;
    background-color: rgba(30, 90, 245, 0.05) !important;
}

/* Color 2: ACROSS Yellow */
.wp-block-query .wp-block-post:nth-child(5n+2):hover {
    border-left: 4px solid #FFD200 !important;
    background-color: rgba(255, 210, 0, 0.1) !important;
}

/* Color 3: ACROSS Purple */
.wp-block-query .wp-block-post:nth-child(5n+3):hover {
    border-left: 4px solid #8C63DB !important;
    background-color: rgba(140, 99, 219, 0.1) !important;
}

/* Color 4: ACROSS Mint/Green */
.wp-block-query .wp-block-post:nth-child(5n+4):hover {
    border-left: 4px solid #6EE191 !important;
    background-color: rgba(110, 225, 145, 0.15) !important;
}

/* Color 5: ACROSS Rose/Pink */
.wp-block-query .wp-block-post:nth-child(5n+5):hover {
    border-left: 4px solid #FFA0DC !important;
    background-color: rgba(255, 160, 220, 0.15) !important;
}

/* Typography Layout - Title (Left) */
.wp-block-query .wp-block-post-title {
    margin: 0 0 var(--spacing-xs) 0;
    flex: 1;
    /* Title takes remaining space */
    min-width: 0;
    padding-right: var(--spacing-md);
}

.wp-block-query .wp-block-post-title a {
    color: var(--color-european-blue);
    text-decoration: none;
    font-family: var(--font-raleway);
    font-weight: 600;
    font-size: 1.25rem;
    /* Slightly larger, more professional */
    transition: color 0.2s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-block-query .wp-block-post:hover .wp-block-post-title a {
    color: var(--color-purple);
}

/* Course Metadata (Tags & Excerpt) */
.ecampus-course-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.ecampus-meta-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: var(--color-accent-1-soft);
    color: var(--color-european-blue);
    display: inline-block;
}

.tag-university {
    background-color: rgba(140, 99, 219, 0.1);
    color: var(--color-purple);
}

.tag-type {
    background-color: rgba(255, 210, 0, 0.2);
    color: #b39300;
    /* Darker yellow for text contrast */
}

.tag-modality {
    background-color: rgba(110, 225, 145, 0.2);
    color: #2b8b45;
    /* Darker green for text contrast */
}

.ecampus-course-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Typography Layout - Date Pill/Badge (Right) */
.wp-block-query .wp-block-post-date {
    margin: 0;
    padding: 0;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Ensures the date is never cut off */
}

.wp-block-query .wp-block-post-date a {
    background-color: var(--color-accent-1-soft);
    /* Light Blue Pill */
    color: var(--color-european-blue);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Hover effect on the date pill itself */
.wp-block-query .wp-block-post-date a:hover {
    background-color: var(--color-european-blue);
    color: var(--color-white);
}

/* Mobile Responsiveness for Table */
@media screen and (max-width: 768px) {
    .wp-block-query .wp-block-post {
        padding: 20px !important;
    }

    .wp-block-query .wp-block-post>.wp-block-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wp-block-query .wp-block-post-title a {
        white-space: normal;
        /* Allow wrapping on mobile */
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   ECAMPUS COURSE CATALOG  —  [ecampus_course_catalog]
   ========================================================================== */

/* Catalog wrapper */
.ecc-catalog {
    font-family: var(--font-raleway, inherit);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 var(--spacing-xl);
    color: #1b1b1f;
}

/* --------------------------------------------------------------------------
   FILTER BAR
   -------------------------------------------------------------------------- */

.ecc-filters {
    background: var(--color-white, #fff);
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-medium, 16px);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

/* Search row */
.ecc-filters__search-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #dfe4ed;
    border-radius: var(--radius-small, 8px);
    background: #fafbfd;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ecc-filters__search-wrap:focus-within {
    border-color: var(--color-european-blue, #1E5AF5);
    box-shadow: 0 0 0 3px rgba(30, 90, 245, 0.12);
    background: #fff;
}

.ecc-filters__search-icon-wrap {
    display: flex;
    align-items: center;
    padding: 0 10px 0 14px;
    color: #8a95a3;
    flex-shrink: 0;
    cursor: text;
}

.ecc-filters__search {
    flex: 1;
    padding: 11px 16px 11px 0 !important;
    border: none !important;
    border-radius: 0 var(--radius-small, 8px) var(--radius-small, 8px) 0;
    font-family: var(--font-raleway, inherit);
    font-size: 15px;
    color: #1b1b1f;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
}

.ecc-filters__search::placeholder {
    color: #aab0bc;
}

.ecc-filters__search:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Selects + buttons row */
.ecc-filters__selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ecc-filters__select {
    flex: 1 1 160px;
    padding: 9px 32px 9px 12px;
    border: 1.5px solid #dfe4ed;
    border-radius: var(--radius-small, 8px);
    font-family: var(--font-raleway, inherit);
    font-size: 14px;
    color: #1b1b1f;
    background: #fafbfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a95a3' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
}

.ecc-filters__select:focus {
    border-color: var(--color-european-blue, #1E5AF5);
    box-shadow: 0 0 0 3px rgba(30, 90, 245, 0.12);
    background-color: #fff;
}

/* Action buttons */
.ecc-filters__btn {
    padding: 9px 20px;
    border-radius: var(--radius-small, 8px);
    font-family: var(--font-raleway, inherit);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 200ms ease, box-shadow 200ms ease, transform 150ms ease;
    line-height: 1;
}

.ecc-filters__btn--apply {
    background: var(--color-european-blue, #1E5AF5);
    color: var(--color-white, #fff);
    border: none;
    box-shadow: 0 2px 8px rgba(30, 90, 245, 0.20);
}

.ecc-filters__btn--apply:hover {
    background: #1549d4;
    box-shadow: 0 4px 14px rgba(30, 90, 245, 0.28);
    transform: translateY(-1px);
}

.ecc-filters__btn--reset {
    background: #f0f4ff;
    color: var(--color-european-blue, #1E5AF5);
    border: 1.5px solid rgba(30, 90, 245, 0.2);
}

.ecc-filters__btn--reset:hover {
    background: #dde6ff;
}

/* --------------------------------------------------------------------------
   RESULTS BAR  (count + active filter chips)
   -------------------------------------------------------------------------- */

.ecc-results-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    min-height: 28px;
}

.ecc-results-bar__count {
    font-size: 14px;
    color: #6b7585;
    white-space: nowrap;
}

.ecc-results-bar__count strong {
    color: #1b1b1f;
    font-weight: 700;
}

.ecc-results-bar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Active-filter chip */
.ecc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #eef2ff;
    color: var(--color-european-blue, #1E5AF5);
    border: 1px solid rgba(30, 90, 245, 0.2);
}

.ecc-chip.tag-university {
    background: rgba(140, 99, 219, .1);
    color: var(--color-purple, #8C63DB);
    border-color: rgba(140, 99, 219, .25);
}

.ecc-chip.tag-type {
    background: rgba(255, 210, 0, .18);
    color: #907a00;
    border-color: rgba(255, 210, 0, .35);
}

.ecc-chip.tag-modality {
    background: rgba(110, 225, 145, .18);
    color: #2b8b45;
    border-color: rgba(110, 225, 145, .35);
}

.ecc-chip__remove {
    color: inherit;
    opacity: 0.6;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

.ecc-chip__remove:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   COURSE LIST
   -------------------------------------------------------------------------- */

.ecc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-medium, 16px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.ecc-item {
    background: var(--color-white, #fff);
    transition: background 200ms ease, border-left-color 200ms ease;
    border-bottom: 1px solid transparent;
    border-left: 3px solid transparent;
    position: relative;
}

/* Subtle ACROSS color separators via alternating left accent + border tint */
.ecc-item:nth-child(6n+1) {
    border-bottom-color: rgba(30, 90, 245, 0.10);
}

/* blue */
.ecc-item:nth-child(6n+2) {
    border-bottom-color: rgba(255, 210, 0, 0.18);
}

/* yellow */
.ecc-item:nth-child(6n+3) {
    border-bottom-color: rgba(255, 160, 220, 0.18);
}

/* rose */
.ecc-item:nth-child(6n+4) {
    border-bottom-color: rgba(255, 70, 60, 0.12);
}

/* red */
.ecc-item:nth-child(6n+5) {
    border-bottom-color: rgba(140, 99, 219, 0.12);
}

/* purple */
.ecc-item:nth-child(6n+6) {
    border-bottom-color: rgba(110, 225, 145, 0.18);
}

/* green */

.ecc-item:last-child {
    border-bottom: none;
}

/* Hover: light tinted background + vivid left accent stripe, cycling through ACROSS palette */
.ecc-item:nth-child(6n+1):hover {
    background: rgba(30, 90, 245, 0.05);
    border-left-color: var(--color-european-blue, #1E5AF5);
}

.ecc-item:nth-child(6n+2):hover {
    background: rgba(255, 210, 0, 0.08);
    border-left-color: var(--color-yellow, #FFD200);
}

.ecc-item:nth-child(6n+3):hover {
    background: rgba(255, 160, 220, 0.10);
    border-left-color: var(--color-rose, #FFA0DC);
}

.ecc-item:nth-child(6n+4):hover {
    background: rgba(255, 70, 60, 0.07);
    border-left-color: var(--color-red, #FF463C);
}

.ecc-item:nth-child(6n+5):hover {
    background: rgba(140, 99, 219, 0.07);
    border-left-color: var(--color-purple, #8C63DB);
}

.ecc-item:nth-child(6n+6):hover {
    background: rgba(110, 225, 145, 0.10);
    border-left-color: var(--color-green, #6EE191);
}

.ecc-item__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
}

.ecc-item__body {
    flex: 1;
    min-width: 0;
}

.ecc-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ecc-item__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b1b1f;
    margin: 0 0 6px;
    line-height: 1.3;
    transition: color 200ms ease;
}

/* Title colour follows the per-row accent on hover */
.ecc-item:nth-child(6n+1):hover .ecc-item__title {
    color: var(--color-european-blue, #1E5AF5);
}

.ecc-item:nth-child(6n+2):hover .ecc-item__title {
    color: #b89900;
}

/* yellow darkened for readability */
.ecc-item:nth-child(6n+3):hover .ecc-item__title {
    color: #c0318f;
}

/* rose darkened */
.ecc-item:nth-child(6n+4):hover .ecc-item__title {
    color: var(--color-red, #FF463C);
}

.ecc-item:nth-child(6n+5):hover .ecc-item__title {
    color: var(--color-purple, #8C63DB);
}

.ecc-item:nth-child(6n+6):hover .ecc-item__title {
    color: #2a9e55;
}

/* green darkened */

.ecc-item__excerpt {
    font-size: 0.875rem;
    color: #6b7585;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right-side meta column */
.ecc-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 160px;
    text-align: right;
}

.ecc-item__deadline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7585;
    white-space: nowrap;
}

.ecc-item__deadline-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #aab0bc;
}

.ecc-item__cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-european-blue, #1E5AF5);
    white-space: nowrap;
    transition: letter-spacing 200ms ease;
}

.ecc-item:hover .ecc-item__cta {
    letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */

.ecc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    border: 1px dashed #dfe4ed;
    border-radius: var(--radius-medium, 16px);
    color: #8a95a3;
}

.ecc-empty__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.ecc-empty__title {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 12px;
}

.ecc-empty__reset {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-european-blue, #1E5AF5);
    text-decoration: none;
    border: 1.5px solid rgba(30, 90, 245, 0.25);
    padding: 8px 18px;
    border-radius: var(--radius-small, 8px);
    transition: background 200ms ease;
}

.ecc-empty__reset:hover {
    background: #f0f4ff;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .ecc-filters {
        padding: 16px;
        gap: 12px;
    }

    .ecc-filters__selects {
        flex-direction: column;
        align-items: stretch;
    }

    .ecc-filters__select {
        flex: 1 1 100%;
    }

    .ecc-filters__btn {
        width: 100%;
        justify-content: center;
    }

    .ecc-item__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .ecc-item__meta {
        align-items: flex-start;
        text-align: left;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ==========================================================================
   ECAMPUS NEWS CATALOG  —  [ecampus_news_catalog]
   ========================================================================== */

.ecn-catalog {
    font-family: var(--font-raleway, inherit);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 var(--spacing-xl);
}

/* ── Header row (count + CTA) ── */
.ecn-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ecn-header__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ecn-results-count {
    font-size: 14px;
    color: #6b7585;
}

.ecn-results-count strong {
    color: #1b1b1f;
    font-weight: 700;
}

.ecn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ecn-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #eef2ff;
    color: var(--color-european-blue, #1E5AF5);
    border: 1px solid rgba(30, 90, 245, 0.2);
}

.ecn-chip__x {
    color: inherit;
    opacity: 0.6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.ecn-chip__x:hover {
    opacity: 1;
}

.ecn-clear {
    font-size: 12px;
    font-weight: 600;
    color: #8a95a3;
    text-decoration: none;
}

.ecn-clear:hover {
    color: var(--color-european-blue, #1E5AF5);
}

.ecn-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--color-european-blue, #1E5AF5);
    color: var(--color-white, #fff);
    border-radius: var(--radius-small, 8px);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(30, 90, 245, 0.20);
    transition: background 200ms ease, box-shadow 200ms ease, transform 150ms ease;
}

.ecn-btn-create:hover {
    background: #1549d4;
    box-shadow: 0 4px 14px rgba(30, 90, 245, 0.28);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* ── Filter bar (reuses .ecc-filters classes) ── */
.ecn-filters {
    background: var(--color-white, #fff);
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-medium, 16px);
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

/* ── News card grid ── */
.ecn-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-medium, 16px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.ecn-card {
    display: flex;
    background: var(--color-white, #fff);
    border-bottom: 1px solid transparent;
    border-left: 3px solid transparent;
    transition: background 200ms ease, border-left-color 200ms ease;
    position: relative;
}

/* Subtle ACROSS color separators — cycling palette */
.ecn-card:nth-child(6n+1) {
    border-bottom-color: rgba(30, 90, 245, 0.10);
}

.ecn-card:nth-child(6n+2) {
    border-bottom-color: rgba(255, 210, 0, 0.18);
}

.ecn-card:nth-child(6n+3) {
    border-bottom-color: rgba(255, 160, 220, 0.18);
}

.ecn-card:nth-child(6n+4) {
    border-bottom-color: rgba(255, 70, 60, 0.12);
}

.ecn-card:nth-child(6n+5) {
    border-bottom-color: rgba(140, 99, 219, 0.12);
}

.ecn-card:nth-child(6n+6) {
    border-bottom-color: rgba(110, 225, 145, 0.18);
}

.ecn-card:last-child {
    border-bottom: none;
}

/* Hover: light tint + vivid left accent stripe */
.ecn-card:nth-child(6n+1):hover {
    background: rgba(30, 90, 245, 0.05);
    border-left-color: var(--color-european-blue, #1E5AF5);
}

.ecn-card:nth-child(6n+2):hover {
    background: rgba(255, 210, 0, 0.08);
    border-left-color: var(--color-yellow, #FFD200);
}

.ecn-card:nth-child(6n+3):hover {
    background: rgba(255, 160, 220, 0.10);
    border-left-color: var(--color-rose, #FFA0DC);
}

.ecn-card:nth-child(6n+4):hover {
    background: rgba(255, 70, 60, 0.07);
    border-left-color: var(--color-red, #FF463C);
}

.ecn-card:nth-child(6n+5):hover {
    background: rgba(140, 99, 219, 0.07);
    border-left-color: var(--color-purple, #8C63DB);
}

.ecn-card:nth-child(6n+6):hover {
    background: rgba(110, 225, 145, 0.10);
    border-left-color: var(--color-green, #6EE191);
}

/* Featured image */
.ecn-card__img-wrap {
    width: 160px;
    min-height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecn-card__img-wrap--placeholder {
    background: #f0f4ff;
}

.ecn-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ecn-card__placeholder-icon {
    width: 40px;
    height: 40px;
    color: #c5cfe0;
}

/* Card body */
.ecn-card__body {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    gap: 20px;
}

/* Date badge */
.ecn-card__datebadge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    padding: 10px 6px;
    background: var(--color-european-blue, #1E5AF5);
    border-radius: var(--radius-small, 8px);
    color: var(--color-white, #fff);
    text-align: center;
    line-height: 1.1;
}

.ecn-card__day {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ecn-card__month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.ecn-card__year {
    font-size: 0.65rem;
    opacity: 0.65;
    margin-top: 2px;
}

/* Content */
.ecn-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecn-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ecn-card__title a {
    color: #1b1b1f;
    text-decoration: none;
    transition: color 200ms ease;
}

/* Title colour follows the per-card accent on hover */
.ecn-card:nth-child(6n+1):hover .ecn-card__title a {
    color: var(--color-european-blue, #1E5AF5);
}

.ecn-card:nth-child(6n+2):hover .ecn-card__title a {
    color: #b89900;
}

.ecn-card:nth-child(6n+3):hover .ecn-card__title a {
    color: #c0318f;
}

.ecn-card:nth-child(6n+4):hover .ecn-card__title a {
    color: var(--color-red, #FF463C);
}

.ecn-card:nth-child(6n+5):hover .ecn-card__title a {
    color: var(--color-purple, #8C63DB);
}

.ecn-card:nth-child(6n+6):hover .ecn-card__title a {
    color: #2a9e55;
}

.ecn-card__excerpt {
    font-size: 0.875rem;
    color: #6b7585;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecn-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.ecn-card__author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #8a95a3;
    font-weight: 600;
}

.ecn-card__readmore {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-european-blue, #1E5AF5);
    text-decoration: none;
    white-space: nowrap;
    transition: letter-spacing 200ms ease;
}

.ecn-card:hover .ecn-card__readmore {
    letter-spacing: 0.03em;
}

.ecn-card:nth-child(6n+2):hover .ecn-card__readmore {
    color: #b89900;
}

.ecn-card:nth-child(6n+3):hover .ecn-card__readmore {
    color: #c0318f;
}

.ecn-card:nth-child(6n+4):hover .ecn-card__readmore {
    color: var(--color-red, #FF463C);
}

.ecn-card:nth-child(6n+5):hover .ecn-card__readmore {
    color: var(--color-purple, #8C63DB);
}

.ecn-card:nth-child(6n+6):hover .ecn-card__readmore {
    color: #2a9e55;
}

/* ── Notices ── */
.ecn-notice {
    padding: 14px 18px;
    border-radius: var(--radius-small, 8px);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.ecn-notice--warn {
    background: rgba(255, 210, 0, 0.15);
    border: 1px solid rgba(255, 210, 0, 0.4);
    color: #7a6200;
}

.ecn-notice--error {
    background: rgba(255, 70, 60, 0.08);
    border: 1px solid rgba(255, 70, 60, 0.25);
    color: #b53530;
}

/* ── Success state ── */
.ecn-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px;
    text-align: center;
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-medium, 16px);
    background: var(--color-white, #fff);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.ecn-success__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.ecn-success__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b1b1f;
    margin: 0 0 8px;
}

.ecn-success__msg {
    font-size: 0.95rem;
    color: #6b7585;
    margin: 0 0 24px;
}

.ecn-success__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   NEWS FORM  —  [ecampus_news_form]
   ========================================================================== */

.ecn-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-white, #fff);
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-medium, 16px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ecn-form {
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ecn-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecn-form__label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 0.01em;
}

.ecn-form__input {
    padding: 11px 14px;
    border: 1.5px solid #dfe4ed;
    border-radius: var(--radius-small, 8px);
    font-family: var(--font-raleway, inherit);
    font-size: 15px;
    color: #1b1b1f;
    background: #fafbfd;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ecn-form__input:focus {
    border-color: var(--color-european-blue, #1E5AF5);
    box-shadow: 0 0 0 3px rgba(30, 90, 245, 0.12);
    background: #fff;
}

.ecn-form__input--error {
    border-color: var(--color-red, #FF463C);
}

.ecn-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.ecn-form__textarea--tall {
    min-height: 200px;
}

.ecn-form__file {
    font-size: 14px;
    color: #4a5568;
}

.ecn-form__hint {
    font-size: 12px;
    color: #8a95a3;
}

.ecn-form__error {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-red, #FF463C);
}

.ecn-form__actions {
    padding-top: 8px;
    border-top: 1px solid #eef1f5;
    display: flex;
    justify-content: flex-end;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ecn-card {
        flex-direction: column;
    }

    .ecn-card__img-wrap {
        width: 100%;
        min-height: 180px;
    }

    .ecn-card__body {
        padding: 16px;
        gap: 14px;
    }

    .ecn-form {
        padding: 20px 16px;
    }

    .ecn-header {
        flex-direction: column;
    }
}

/* ==========================================================================
   HOMEPAGE NAVIGATION — CARD GRID  (.hnc-*)
   Managed via WP Admin → Appearance → Menus → "Homepage Navigation"
   ========================================================================== */

/* ── Wrapper section ── */
.hnc-section {
    background: #f4f6fb;
    padding: 64px var(--spacing-md) 72px;
    font-family: var(--font-raleway);
}

.hnc-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ── Section header ── */
.hnc-header {
    text-align: center;
    margin-bottom: 48px;
}

.hnc-title {
    font-family: var(--font-raleway);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--color-european-blue);
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: 0;
}

.hnc-subtitle {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
    font-weight: 400;
}

/* ── Card grid — fixed 4 columns on desktop → 4+3 for 7 items ── */
.hnc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ── Individual card ── */
.hnc-card {
    background: var(--color-white);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-medium);
    border-top: 5px solid transparent;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: var(--color-black);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.hnc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
    text-decoration: none;
    color: var(--color-black);
}

/* Subtle background tint on hover — accent colours */
.hnc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-medium);
}

.hnc-card:hover::before {
    opacity: 1;
}

/* ── Icon circle ── */
.hnc-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hnc-card:hover .hnc-card__icon {
    transform: scale(1.1) rotate(-4deg);
}

.hnc-card__icon svg {
    width: 26px;
    height: 26px;
}

/* ── Body (title + subnav) ── */
.hnc-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hnc-card__title {
    font-family: var(--font-raleway);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
    color: var(--color-black);
    transition: color 0.2s ease;
}

/* ── Sub-navigation list inside the card ── */
.hnc-card__subnav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hnc-card__subnav li {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.825rem;
    color: #666;
    font-weight: 500;
    line-height: 1.3;
}

.hnc-card__subnav-arrow {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── CTA bar ── */
.hnc-card__cta {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: auto;
    position: relative;
    z-index: 1;
    transition: letter-spacing 0.2s ease;
}

.hnc-card:hover .hnc-card__cta {
    letter-spacing: 1.5px;
}

/* ── Featured cards — subtle accent, not heavy filled background ── */
.hnc-card--featured {
    background: var(--color-white);
    border-top-width: 6px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
    color: var(--color-black);
}

/* Slight tint per variant */
.hnc-card--featured.hnc-blue {
    background: rgba(30, 90, 245, 0.04);
}

.hnc-card--featured.hnc-purple {
    background: rgba(140, 99, 219, 0.04);
}

.hnc-card--featured:hover {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.13);
}

/* ── Shimmer streak on hover ── */
.hnc-card__shimmer {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.18) 50%,
            transparent 100%);
    transform: skewX(-15deg);
    pointer-events: none;
    transition: none;
    border-radius: inherit;
}

.hnc-card:not(.hnc-card--locked):hover .hnc-card__shimmer {
    animation: hnc-shimmer 0.55s ease forwards;
}

@keyframes hnc-shimmer {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* ── Locked card — greyed out, frosted overlay ── */
.hnc-card--locked {
    border-top-color: #ccc !important;
    filter: saturate(0.25) brightness(0.95);
    cursor: pointer;
    position: relative;
}

.hnc-card--locked:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    filter: saturate(0.35) brightness(1);
}

/* Lock overlay — centre-aligned, frosted */
.hnc-card__lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: var(--radius-medium);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 5;
    color: #444;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    padding: var(--spacing-sm);
}

.hnc-card--locked:hover .hnc-card__lock-overlay {
    opacity: 1;
}

.hnc-lock-icon {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

/* ── Badge pill (e.g. "Login required" shown when logged in) ── */
.hnc-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.06);
    color: #666;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

/* ── Login hint bar below the grid ── */
.hnc-login-hint {
    margin-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.hnc-login-hint a {
    color: var(--color-european-blue);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.hnc-login-hint a:hover {
    text-decoration: underline;
}

/* ── COLOUR VARIANTS — cycling through ACROSS palette ── */

/* Blue (European Blue) */
.hnc-blue {
    border-top-color: var(--color-european-blue);
}

.hnc-blue .hnc-card__icon {
    background: rgba(30, 90, 245, 0.1);
    color: var(--color-european-blue);
}

.hnc-blue .hnc-card__cta {
    color: var(--color-european-blue);
}

.hnc-blue::before {
    background: rgba(30, 90, 245, 0.03);
}

.hnc-blue:hover .hnc-card__title {
    color: var(--color-european-blue);
}

/* Yellow */
.hnc-yellow {
    border-top-color: var(--color-yellow);
}

.hnc-yellow .hnc-card__icon {
    background: rgba(255, 210, 0, 0.15);
    color: #907a00;
}

.hnc-yellow .hnc-card__cta {
    color: #907a00;
}

.hnc-yellow::before {
    background: rgba(255, 210, 0, 0.05);
}

.hnc-yellow:hover .hnc-card__title {
    color: #907a00;
}

/* Rose */
.hnc-rose {
    border-top-color: var(--color-rose);
}

.hnc-rose .hnc-card__icon {
    background: rgba(255, 160, 220, 0.18);
    color: #c0318f;
}

.hnc-rose .hnc-card__cta {
    color: #c0318f;
}

.hnc-rose::before {
    background: rgba(255, 160, 220, 0.05);
}

.hnc-rose:hover .hnc-card__title {
    color: #c0318f;
}

/* Purple */
.hnc-purple {
    border-top-color: var(--color-purple);
}

.hnc-purple .hnc-card__icon {
    background: rgba(140, 99, 219, 0.12);
    color: var(--color-purple);
}

.hnc-purple .hnc-card__cta {
    color: var(--color-purple);
}

.hnc-purple::before {
    background: rgba(140, 99, 219, 0.04);
}

.hnc-purple:hover .hnc-card__title {
    color: var(--color-purple);
}

/* Green */
.hnc-green {
    border-top-color: var(--color-green);
}

.hnc-green .hnc-card__icon {
    background: rgba(110, 225, 145, 0.18);
    color: #2a9e55;
}

.hnc-green .hnc-card__cta {
    color: #2a9e55;
}

.hnc-green::before {
    background: rgba(110, 225, 145, 0.05);
}

.hnc-green:hover .hnc-card__title {
    color: #2a9e55;
}

/* Orange */
.hnc-orange {
    border-top-color: var(--color-orange);
}

.hnc-orange .hnc-card__icon {
    background: rgba(250, 135, 74, 0.14);
    color: #c05800;
}

.hnc-orange .hnc-card__cta {
    color: #c05800;
}

.hnc-orange::before {
    background: rgba(250, 135, 74, 0.04);
}

.hnc-orange:hover .hnc-card__title {
    color: #c05800;
}

/* Red */
.hnc-red {
    border-top-color: var(--color-red);
}

.hnc-red .hnc-card__icon {
    background: rgba(255, 70, 60, 0.1);
    color: var(--color-red);
}

.hnc-red .hnc-card__cta {
    color: var(--color-red);
}

.hnc-red::before {
    background: rgba(255, 70, 60, 0.03);
}

.hnc-red:hover .hnc-card__title {
    color: var(--color-red);
}

/* ==========================================================================
   RESPONSIVE — HNC CARD GRID
   ========================================================================== */

/* Tablet: 3 columns */
@media (max-width: 1200px) {
    .hnc-section {
        padding: 52px var(--spacing-sm) 60px;
    }

    .hnc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large mobile / small tablet: 2 columns */
@media (max-width: 768px) {
    .hnc-section {
        padding: 40px var(--spacing-sm) 48px;
    }

    .hnc-header {
        margin-bottom: 32px;
    }

    .hnc-title {
        font-size: 1.5rem;
    }

    .hnc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hnc-card {
        padding: var(--spacing-sm);
        min-height: 160px;
    }

    .hnc-card__title {
        font-size: 1rem;
    }

    .hnc-card__icon {
        width: 44px;
        height: 44px;
    }

    .hnc-card__icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Small mobile: 2 columns */
@media (max-width: 480px) {
    .hnc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hnc-card--featured {
        grid-column: auto;
    }

    .hnc-card__subnav {
        display: none;
    }
}

/* Very small mobile: single column */
@media (max-width: 360px) {
    .hnc-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DARK MODE  (body.dark-mode — controlled by the site header JS toggle)
   ─ ACROSS brand colours are preserved; only surfaces and text are darkened.
   ========================================================================== */

/* ── 1. CSS Variables ── */
body.dark-mode {
    --dm-bg: #0f1117;
    --dm-surface-0: #0f1117;
    --dm-surface-1: #181c27;
    --dm-surface-2: #222736;
    --dm-surface-3: #2c3347;
    --dm-text-primary: #e8eaf6;
    --dm-text-muted: #8a93b2;
    --dm-border: rgba(255, 255, 255, 0.08);
    -webkit-font-smoothing: antialiased;
}

/* ── 2. Base surfaces ── */
body.dark-mode,
body.dark-mode .site {
    background-color: var(--dm-bg);
    color: var(--dm-text-primary);
}

body.dark-mode .site-content,
body.dark-mode .wp-site-blocks,
body.dark-mode main,
body.dark-mode .entry-content,
body.dark-mode .entry-header,
body.dark-mode .wp-block-post-content,
body.dark-mode .wp-block-group,
body.dark-mode .is-layout-flow,
body.dark-mode .is-layout-constrained,
body.dark-mode article,
body.dark-mode .page,
body.dark-mode .post,
body.dark-mode .hentry {
    background-color: var(--dm-bg);
    color: var(--dm-text-primary);
}

/* ── 3. Headings & text ── */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .wp-block-heading {
    color: var(--dm-text-primary);
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode span,
body.dark-mode label {
    color: var(--dm-text-primary);
}

/* ── 4. Links ── */
body.dark-mode a {
    color: #7aa3ff;
}

body.dark-mode a:hover {
    color: #a8c2ff;
}

/* ── 5. Header ── */
body.dark-mode .site-header {
    background-color: var(--dm-surface-2);
    border-bottom-color: rgba(77, 125, 255, 0.3);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .site-title a,
body.dark-mode .wp-block-site-title a {
    color: var(--dm-text-primary);
}

body.dark-mode .site-title a:hover,
body.dark-mode .wp-block-site-title a:hover {
    color: var(--color-european-blue);
}

body.dark-mode .wp-block-navigation-item a,
body.dark-mode .wp-block-navigation-link__content {
    color: var(--dm-text-primary);
}

body.dark-mode .wp-block-navigation-item a:hover,
body.dark-mode .wp-block-navigation-link__content:hover {
    color: var(--color-european-blue);
}

body.dark-mode .mobile-menu-toggle svg {
    color: var(--dm-text-primary);
}

body.dark-mode .wp-block-navigation__submenu-container {
    background-color: var(--dm-surface-2) !important;
    border: 1px solid var(--dm-border) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

/* ── 6. Hero (already dark blue, minor tweaks) ── */
body.dark-mode .across-hero {
    background-color: #0d1a52;
}

/* ── 7. Partner network / graph section ── */
body.dark-mode .partner-network {
    background-color: #0d1020;
}

body.dark-mode .network-header h2 {
    color: #ffffff;
}

body.dark-mode .network-header p {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .network-header p strong {
    color: #7aa3ff;
}

body.dark-mode .uni-logo-item {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .uni-logo-label {
    color: #7aa3ff;
}

body.dark-mode .connection-line {
    opacity: 0.85;
}

body.dark-mode .partner-mobile-carousel::before {
    background: linear-gradient(to right, rgba(13, 16, 32, 0.95), transparent);
}

body.dark-mode .partner-mobile-carousel::after {
    background: linear-gradient(to left, rgba(13, 16, 32, 0.95), transparent);
}

body.dark-mode .carousel-logo img {
    background: #ffffff;
}

body.dark-mode .carousel-logo span {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .carousel-hint {
    color: rgba(255, 255, 255, 0.4);
}

/* ── 7. HNC Card Grid (homepage navigation) ── */
body.dark-mode .hnc-section {
    background: var(--dm-surface-0);
    border-top: none;
}

body.dark-mode .hnc-title {
    color: var(--dm-text-primary);
}

body.dark-mode .hnc-subtitle {
    color: var(--dm-text-muted);
}

body.dark-mode .hnc-card {
    background: var(--dm-surface-1);
    border-top-color: var(--dm-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    color: var(--dm-text-primary);
}

body.dark-mode .hnc-card:hover {
    background: var(--dm-surface-2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
    color: var(--dm-text-primary);
}

/* Colour accent borders stay vivid */
body.dark-mode .hnc-blue {
    border-top-color: var(--color-european-blue);
}

body.dark-mode .hnc-yellow {
    border-top-color: var(--color-yellow);
}

body.dark-mode .hnc-rose {
    border-top-color: var(--color-rose);
}

body.dark-mode .hnc-purple {
    border-top-color: var(--color-purple);
}

body.dark-mode .hnc-green {
    border-top-color: var(--color-green);
}

body.dark-mode .hnc-orange {
    border-top-color: var(--color-orange);
}

body.dark-mode .hnc-red {
    border-top-color: var(--color-red);
}

/* Icon circles — muted tint on dark surface */
body.dark-mode .hnc-blue .hnc-card__icon {
    background: rgba(77, 125, 255, 0.15);
    color: #7aa3ff;
}

body.dark-mode .hnc-yellow .hnc-card__icon {
    background: rgba(255, 210, 0, 0.13);
    color: #e6bd00;
}

body.dark-mode .hnc-rose .hnc-card__icon {
    background: rgba(255, 160, 220, 0.13);
    color: #ff85cc;
}

body.dark-mode .hnc-purple .hnc-card__icon {
    background: rgba(140, 99, 219, 0.15);
    color: #a983e8;
}

body.dark-mode .hnc-green .hnc-card__icon {
    background: rgba(110, 225, 145, 0.13);
    color: #6ee191;
}

body.dark-mode .hnc-orange .hnc-card__icon {
    background: rgba(250, 135, 74, 0.13);
    color: #fa9e6a;
}

body.dark-mode .hnc-red .hnc-card__icon {
    background: rgba(255, 70, 60, 0.12);
    color: #ff6b65;
}

/* CTA text colours */
body.dark-mode .hnc-blue .hnc-card__cta {
    color: #7aa3ff;
}

body.dark-mode .hnc-yellow .hnc-card__cta {
    color: #e6bd00;
}

body.dark-mode .hnc-rose .hnc-card__cta {
    color: #ff85cc;
}

body.dark-mode .hnc-purple .hnc-card__cta {
    color: #a983e8;
}

body.dark-mode .hnc-green .hnc-card__cta {
    color: #6ee191;
}

body.dark-mode .hnc-orange .hnc-card__cta {
    color: #fa9e6a;
}

body.dark-mode .hnc-red .hnc-card__cta {
    color: #ff6b65;
}

/* Title colour on hover */
body.dark-mode .hnc-card__title {
    color: var(--dm-text-primary);
}

body.dark-mode .hnc-blue:hover .hnc-card__title {
    color: #7aa3ff;
}

body.dark-mode .hnc-yellow:hover .hnc-card__title {
    color: #e6bd00;
}

body.dark-mode .hnc-rose:hover .hnc-card__title {
    color: #ff85cc;
}

body.dark-mode .hnc-purple:hover .hnc-card__title {
    color: #a983e8;
}

body.dark-mode .hnc-green:hover .hnc-card__title {
    color: #6ee191;
}

body.dark-mode .hnc-orange:hover .hnc-card__title {
    color: #fa9e6a;
}

body.dark-mode .hnc-red:hover .hnc-card__title {
    color: #ff6b65;
}

/* Sub-nav text */
body.dark-mode .hnc-card__subnav li {
    color: var(--dm-text-muted);
}

/* Featured cards */
body.dark-mode .hnc-card--featured {
    background: var(--dm-surface-2);
    border-top-width: 6px;
}

body.dark-mode .hnc-card--featured:hover {
    background: var(--dm-surface-3);
}

body.dark-mode .hnc-card--featured.hnc-blue {
    background: rgba(77, 125, 255, 0.08);
}

body.dark-mode .hnc-card--featured.hnc-purple {
    background: rgba(140, 99, 219, 0.08);
}

/* Locked cards */
body.dark-mode .hnc-card--locked {
    filter: saturate(0.15) brightness(0.7);
}

body.dark-mode .hnc-card--locked:hover {
    filter: saturate(0.25) brightness(0.85);
}

body.dark-mode .hnc-card__lock-overlay {
    background: rgba(18, 20, 30, 0.7);
    color: #ccc;
}

/* Badge */
body.dark-mode .hnc-card__badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dm-text-muted);
}

/* Login hint */
body.dark-mode .hnc-login-hint {
    color: var(--dm-text-muted);
}

body.dark-mode .hnc-login-hint a {
    color: #7aa3ff;
}

/* ── 8. Footer ── */
body.dark-mode .site-footer,
body.dark-mode footer,
body.dark-mode .across-footer {
    background: #0d1020 !important;
    /* deep navy-black, clearly distinct from page */
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #c8cbe0;
}

body.dark-mode .site-footer h2,
body.dark-mode .site-footer h3,
body.dark-mode .site-footer h4,
body.dark-mode .across-footer h2,
body.dark-mode .across-footer h3 {
    color: #e8eaf6;
}

body.dark-mode .site-footer a,
body.dark-mode footer a,
body.dark-mode .across-footer a {
    color: #8ab0ff;
    opacity: 1;
}

body.dark-mode .site-footer a:hover,
body.dark-mode footer a:hover,
body.dark-mode .across-footer a:hover {
    color: var(--color-yellow);
    opacity: 1;
}

body.dark-mode .footer-bottom,
body.dark-mode .footer-links {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* ── 9. Forms & inputs ── */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="search"],
body.dark-mode input[type="url"],
body.dark-mode input[type="number"],
body.dark-mode select,
body.dark-mode textarea {
    background-color: var(--dm-surface-2);
    color: var(--dm-text-primary);
    border-color: var(--dm-border);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--dm-text-muted);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--color-european-blue);
    box-shadow: 0 0 0 3px rgba(77, 125, 255, 0.2);
    outline: none;
}

/* ── 10. Buttons ── */
body.dark-mode .button,
body.dark-mode .btn,
body.dark-mode button[type="submit"],
body.dark-mode input[type="submit"] {
    background-color: var(--color-european-blue);
    color: #fff;
    border-color: transparent;
}

body.dark-mode .button:hover,
body.dark-mode .btn:hover {
    background-color: #3a6ae0;
    color: #fff;
}

/* ── 11. Misc content surfaces ── */
body.dark-mode .wp-block-group,
body.dark-mode .content-section {
    background-color: var(--dm-surface-0);
}

body.dark-mode .wp-block-group:nth-child(even),
body.dark-mode .content-section:nth-child(even) {
    background-color: var(--dm-surface-1);
}

/* Tables */
body.dark-mode table {
    background: var(--dm-surface-1);
    color: var(--dm-text-primary);
}

body.dark-mode th {
    background: var(--dm-surface-2);
    color: var(--dm-text-primary);
    border-color: var(--dm-border);
}

body.dark-mode td {
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

body.dark-mode tr:nth-child(even) td {
    background: var(--dm-surface-2);
}

/* Cards / panels in plugins */
body.dark-mode .card,
body.dark-mode .panel,
body.dark-mode .box,
body.dark-mode .notice {
    background: var(--dm-surface-1);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

/* Horizontal rules */
body.dark-mode hr {
    border-color: var(--dm-border);
}

/* Scrollbars (Chrome/Edge) */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
    background: var(--dm-surface-0);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--dm-surface-3);
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 125, 255, 0.4);
}

/* ==========================================================================
   DARK MODE — Course Catalog (.ecc-*) & News Catalog (.ecn-*)
   ========================================================================== */

/* ── Page wrapper ── */
body.dark-mode .ecampus-course-page {
    background-color: var(--dm-surface-0);
}

/* ── Filters bar ── */
body.dark-mode .ecc-filters,
body.dark-mode .ecn-filters {
    background: var(--dm-surface-1);
    border-color: var(--dm-border);
}

body.dark-mode .ecc-filters__search-wrap,
body.dark-mode .ecn-filters__search-wrap {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

body.dark-mode .ecc-filters__search-icon-wrap,
body.dark-mode .ecn-filters__search-icon-wrap {
    color: var(--dm-text-muted);
}

body.dark-mode .ecc-filters select,
body.dark-mode .ecn-filters select {
    background: var(--dm-surface-2);
    color: var(--dm-text-primary);
    border-color: var(--dm-border);
}

/* ── Results bar & chips ── */
body.dark-mode .ecc-results-bar,
body.dark-mode .ecn-results-bar {
    color: var(--dm-text-muted);
}

body.dark-mode .ecc-chip,
body.dark-mode .ecn-chip {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

body.dark-mode .ecc-chip:hover,
body.dark-mode .ecn-chip:hover {
    background: var(--dm-surface-3);
}

/* ── List container ── */
body.dark-mode .ecc-list,
body.dark-mode .ecn-grid {
    background: var(--dm-surface-1);
    border-color: var(--dm-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ── Course rows ── */
body.dark-mode .ecc-item {
    background: var(--dm-surface-1);
}

body.dark-mode .ecc-item:nth-child(6n+1) {
    border-bottom-color: rgba(30, 90, 245, 0.18);
}

body.dark-mode .ecc-item:nth-child(6n+2) {
    border-bottom-color: rgba(255, 210, 0, 0.18);
}

body.dark-mode .ecc-item:nth-child(6n+3) {
    border-bottom-color: rgba(255, 160, 220, 0.18);
}

body.dark-mode .ecc-item:nth-child(6n+4) {
    border-bottom-color: rgba(255, 70, 60, 0.18);
}

body.dark-mode .ecc-item:nth-child(6n+5) {
    border-bottom-color: rgba(140, 99, 219, 0.18);
}

body.dark-mode .ecc-item:nth-child(6n+6) {
    border-bottom-color: rgba(110, 225, 145, 0.18);
}

body.dark-mode .ecc-item:nth-child(6n+1):hover {
    background: rgba(30, 90, 245, 0.10);
}

body.dark-mode .ecc-item:nth-child(6n+2):hover {
    background: rgba(255, 210, 0, 0.10);
}

body.dark-mode .ecc-item:nth-child(6n+3):hover {
    background: rgba(255, 160, 220, 0.10);
}

body.dark-mode .ecc-item:nth-child(6n+4):hover {
    background: rgba(255, 70, 60, 0.10);
}

body.dark-mode .ecc-item:nth-child(6n+5):hover {
    background: rgba(140, 99, 219, 0.10);
}

body.dark-mode .ecc-item:nth-child(6n+6):hover {
    background: rgba(110, 225, 145, 0.10);
}

body.dark-mode .ecc-item__title {
    color: var(--dm-text-primary);
}

body.dark-mode .ecc-item__excerpt {
    color: var(--dm-text-muted);
}

body.dark-mode .ecc-item__deadline {
    color: var(--dm-text-muted);
}

body.dark-mode .ecc-item__deadline-icon {
    color: var(--dm-text-muted);
}

/* ── News cards ── */
body.dark-mode .ecn-card {
    background: var(--dm-surface-1);
}

body.dark-mode .ecn-card:nth-child(6n+1) {
    border-bottom-color: rgba(30, 90, 245, 0.18);
}

body.dark-mode .ecn-card:nth-child(6n+2) {
    border-bottom-color: rgba(255, 210, 0, 0.18);
}

body.dark-mode .ecn-card:nth-child(6n+3) {
    border-bottom-color: rgba(255, 160, 220, 0.18);
}

body.dark-mode .ecn-card:nth-child(6n+4) {
    border-bottom-color: rgba(255, 70, 60, 0.18);
}

body.dark-mode .ecn-card:nth-child(6n+5) {
    border-bottom-color: rgba(140, 99, 219, 0.18);
}

body.dark-mode .ecn-card:nth-child(6n+6) {
    border-bottom-color: rgba(110, 225, 145, 0.18);
}

body.dark-mode .ecn-card:nth-child(6n+1):hover {
    background: rgba(30, 90, 245, 0.10);
}

body.dark-mode .ecn-card:nth-child(6n+2):hover {
    background: rgba(255, 210, 0, 0.10);
}

body.dark-mode .ecn-card:nth-child(6n+3):hover {
    background: rgba(255, 160, 220, 0.10);
}

body.dark-mode .ecn-card:nth-child(6n+4):hover {
    background: rgba(255, 70, 60, 0.10);
}

body.dark-mode .ecn-card:nth-child(6n+5):hover {
    background: rgba(140, 99, 219, 0.10);
}

body.dark-mode .ecn-card:nth-child(6n+6):hover {
    background: rgba(110, 225, 145, 0.10);
}

body.dark-mode .ecn-card__img-wrap--placeholder {
    background: var(--dm-surface-2);
}

body.dark-mode .ecn-card__placeholder-icon {
    color: var(--dm-border);
}

body.dark-mode .ecn-card__title a {
    color: var(--dm-text-primary);
}

body.dark-mode .ecn-card__excerpt {
    color: var(--dm-text-muted);
}

body.dark-mode .ecn-card__author {
    color: var(--dm-text-muted);
}

/* ── Meta tags (university, type, modality) ── */
body.dark-mode .ecampus-meta-tag {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

body.dark-mode .ecampus-meta-tag.tag-university {
    border-left-color: var(--color-european-blue);
}

body.dark-mode .ecampus-meta-tag.tag-type {
    border-left-color: var(--color-purple);
}

body.dark-mode .ecampus-meta-tag.tag-modality {
    border-left-color: var(--color-green);
}

/* ── Empty state ── */
body.dark-mode .ecc-empty,
body.dark-mode .ecn-empty {
    color: var(--dm-text-muted);
}

/* ── Add News button ── */
body.dark-mode .ecn-add-btn {
    border-color: var(--color-european-blue);
    color: #7aa3ff;
}

body.dark-mode .ecn-add-btn:hover {
    background: rgba(77, 125, 255, 0.12);
}

/* ── Course creation card ── */
body.dark-mode .ecampus-course-card {
    background: var(--dm-surface-1);
    border-color: var(--dm-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

body.dark-mode .ecampus-form-title {
    color: #7aa3ff;
    border-bottom-color: var(--dm-border);
}

body.dark-mode .ecampus-section-title {
    color: var(--dm-text-primary);
}

body.dark-mode .ecampus-info-box {
    background: var(--dm-surface-2);
    border-left-color: var(--color-european-blue);
}

body.dark-mode .ecampus-course-table td {
    border-bottom-color: var(--dm-border);
    color: var(--dm-text-primary);
}

body.dark-mode .ecampus-course-table td:first-child {
    color: #7aa3ff;
}

body.dark-mode .ecampus-info-actions a,
body.dark-mode .ecampus-info-actions button {
    border-color: #7aa3ff;
    color: #7aa3ff;
}

body.dark-mode .ecampus-info-actions a:hover,
body.dark-mode .ecampus-info-actions button:hover {
    background: rgba(77, 125, 255, 0.15);
    color: #fff;
}

/* --- Accessibility: focus-visible --- */
.hnc-card a:focus-visible,
.ecc-item__inner:focus-visible,
.ecn-card:focus-visible,
.uni-logo-item:focus-visible,
.login-button:focus-visible,
.dark-mode-toggle:focus-visible,
.search-toggle:focus-visible,
.mobile-menu-toggle:focus-visible,
.menu-close:focus-visible {
    outline: 3px solid var(--color-european-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Responsive: header-search mobile overflow fix --- */
@media (max-width: 480px) {
    .header-search {
        width: calc(100vw - 40px);
        right: 20px;
        left: auto;
        min-width: unset;
    }
}

/* --- HEADER --- */
.across-header {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-slow), background-color var(--transition-slow);
    font-family: var(--font-raleway);
}

.across-header * {
    font-family: var(--font-raleway);
}

.across-header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-european-blue);
}

.custom-logo-link {
    display: block;
    max-width: 329px;
}

.custom-logo {
    height: auto;
    max-height: 42px;
    width: auto;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
    position: relative;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 18px;
    color: var(--color-european-blue);
    opacity: 1;
    transition: opacity var(--transition-base), color var(--transition-base);
}

.mobile-menu-toggle svg line {
    stroke: currentColor;
}

.mobile-menu-toggle:hover svg {
    opacity: 0.7;
}

.menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-black);
    z-index: 10000;
}

.menu-close svg {
    width: 24px;
    height: 24px;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

.primary-menu li {
    margin: 0;
    position: relative;
}

.primary-menu a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color var(--transition-slow);
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item>a {
    color: var(--color-european-blue);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-european-blue);
    transition: width var(--transition-slow);
    transform: translateX(-50%);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item>a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-base);
}

.search-toggle:hover {
    opacity: 0.7;
}

.search-toggle svg {
    width: 26px;
    height: 26px;
}

.header-search {
    position: absolute;
    top: calc(100% + 10px);
    right: 40px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-slow), visibility var(--transition-slow), transform var(--transition-slow);
    z-index: 1001;
}

.header-search.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
    position: relative;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    transition: color var(--transition-base);
    color: var(--color-black);
}

.dark-mode-toggle .moon-icon {
    display: block;
    color: var(--color-black);
}

.dark-mode-toggle .sun-icon {
    display: none;
    position: absolute;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: block;
    color: var(--color-white);
}

.dark-mode-toggle:hover .moon-icon {
    color: var(--color-european-blue);
}

body.dark-mode .dark-mode-toggle:hover .sun-icon {
    color: var(--color-yellow);
}

.login-button {
    background-color: var(--color-european-blue);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: inline-block;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 90, 245, 0.3);
}

.social-media-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-media-icons a {
    color: var(--color-black);
    transition: color var(--transition-base), transform var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-media-icons a:hover {
    color: var(--color-european-blue);
    transform: translateY(-2px);
}

.social-media-icons svg {
    width: 20px;
    height: 20px;
}

/* Header dark mode */
body.dark-mode .across-header {
    background-color: var(--dm-surface-2);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .across-header.scrolled {
    background-color: rgba(34, 39, 54, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .site-title {
    color: var(--color-yellow);
}

body.dark-mode .primary-menu a {
    color: var(--color-white);
}

body.dark-mode .primary-menu a:hover,
body.dark-mode .primary-menu a:focus,
body.dark-mode .primary-menu .current-menu-item>a {
    color: var(--color-yellow);
}

body.dark-mode .primary-menu a::after {
    background-color: var(--color-yellow);
}

body.dark-mode .header-search {
    background-color: var(--dm-surface-1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .search-toggle svg,
body.dark-mode .social-media-icons a {
    color: var(--color-white);
}

body.dark-mode .search-toggle:hover svg,
body.dark-mode .social-media-icons a:hover {
    color: var(--color-yellow);
}

body.dark-mode .login-button {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

body.dark-mode .login-button:hover {
    background-color: var(--color-rose);
    box-shadow: 0 4px 10px rgba(255, 210, 0, 0.3);
}

body.dark-mode .main-navigation {
    background-color: var(--dm-surface-1) !important;
}

body.dark-mode .primary-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    z-index: 9998;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }

    .primary-menu {
        gap: 25px;
    }

    .header-actions {
        gap: 15px;
    }

    .social-media-icons {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 3;
    }

    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background-color: var(--color-white) !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2) !important;
        padding: 80px 30px 30px !important;
        transition: transform var(--transition-slow) !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        flex: none !important;
        justify-content: flex-start !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(-100%) !important;
    }

    .main-navigation.toggled {
        transform: translateX(0) !important;
    }

    body.menu-open .main-navigation {
        transform: translateX(0) !important;
    }

    .menu-close {
        display: block !important;
    }

    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .primary-menu a {
        padding: 15px 0;
        font-size: 18px;
    }

    .header-actions {
        gap: 10px;
    }

    .login-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .header-search {
        right: 20px;
        min-width: calc(100vw - 40px);
        max-width: 350px;
    }
}

@media screen and (max-width: 480px) {
    .across-header {
        padding: 12px 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .custom-logo {
        max-height: 35px;
    }

    .search-toggle {
        display: none;
    }

    .login-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* --- FOOTER --- */
.across-footer {
    background: var(--color-european-blue);
    color: var(--color-white);
    padding: 60px 40px 40px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    font-family: var(--font-raleway);
}

.across-footer * {
    font-family: var(--font-raleway);
}

.footer-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.footer-decoration-left {
    position: absolute;
    bottom: -30px;
    left: -50px;
    width: 650px;
    height: auto;
    opacity: 0.9;
    z-index: 0;
}

.footer-decoration-left img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-decoration-right {
    position: absolute;
    top: 20px;
    right: -80px;
    width: 500px;
    height: auto;
    opacity: 0.85;
    z-index: 0;
    transform: rotate(180deg) scaleX(-1);
}

.footer-decoration-right img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: auto;
    max-width: 307px;
    width: 100%;
    display: block;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color var(--transition-slow);
}

.footer-link a:hover {
    color: var(--color-white);
    font-weight: 600;
}

.footer-copyright {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.footer-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.footer-partner-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.footer-partner-logos {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.partner-logo:nth-child(1) img {
    max-width: 103px;
}

.partner-logo:nth-child(2) img {
    max-width: 160px;
}

.partner-logo:nth-child(3) img {
    max-width: 140px;
}

@media screen and (max-width: 1024px) {
    .across-footer {
        padding: 50px 30px 30px;
    }

    .footer-container {
        padding: 0 30px;
    }

    .footer-top-row {
        gap: 20px;
    }

    .footer-logo img {
        max-width: 250px;
    }

    .footer-link a {
        font-size: 15px;
    }

    .footer-partner-logos {
        gap: 30px;
        padding: 15px;
    }

    .partner-logo:nth-child(1) img {
        max-width: 90px;
    }

    .partner-logo:nth-child(2) img {
        max-width: 140px;
    }

    .partner-logo:nth-child(3) img {
        max-width: 120px;
    }

    .footer-decoration-left {
        width: 450px;
        opacity: 0.85;
        bottom: -20px;
        left: -30px;
    }

    .footer-decoration-right {
        width: 350px;
        opacity: 0.75;
        top: 15px;
        right: -50px;
    }
}

@media screen and (max-width: 768px) {
    .across-footer {
        padding: 40px 20px 30px;
        margin-top: 60px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-logo,
    .footer-link,
    .footer-copyright {
        width: 100%;
    }

    .footer-logo img {
        max-width: 250px;
    }

    .footer-copyright {
        font-size: 14px;
    }

    .footer-partner-section {
        margin: 30px 0;
    }

    .footer-partner-logos {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        width: 100%;
    }

    .partner-logo {
        width: 100%;
    }

    .partner-logo:nth-child(1) img {
        max-width: 100px;
    }

    .partner-logo:nth-child(2) img {
        max-width: 150px;
    }

    .partner-logo:nth-child(3) img {
        max-width: 130px;
    }

    .footer-decoration-left {
        width: 350px;
        opacity: 0.8;
        bottom: -20px;
        left: -40px;
    }

    .footer-decoration-right {
        width: 280px;
        opacity: 0.65;
        top: 10px;
        right: -40px;
    }
}

@media screen and (max-width: 480px) {
    .across-footer {
        padding: 30px 15px 20px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-logo img {
        max-width: 200px;
    }

    .footer-link a {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .footer-partner-logos {
        gap: 15px;
        padding: 15px;
    }

    .partner-logo:nth-child(1) img {
        max-width: 80px;
    }

    .partner-logo:nth-child(2) img {
        max-width: 130px;
    }

    .partner-logo:nth-child(3) img {
        max-width: 110px;
    }

    .footer-decoration-left {
        width: 250px;
        opacity: 0.7;
    }

    .footer-decoration-right {
        width: 200px;
        opacity: 0.55;
        top: 5px;
        right: -30px;
    }
}

@media print {
    .footer-decorations {
        display: none;
    }

    .across-footer {
        background: var(--color-european-blue);
        color: var(--color-black);
    }

    .footer-partner-logos {
        background-color: var(--color-white);
        border: 1px solid var(--color-white);
    }
}