/*
Theme Name: EAN
Theme URI: https://eu-alara.net/
Description: Theme WordPress personnalisé pour European ALARA Network (EAN) recreant fidelement le design Joomla / Gantry Flux original.
Version: 1.0.0
Author: CEPN / EAN
Author URI: https://www.cepn.asso.fr/
Text Domain: ean
*/

/* ==========================================================================
   1. IMPORTS & CSS VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Actor&family=Catamaran:wght@300;400;600;700;800&display=swap');

:root {
    --ean-primary: #7dbda4;
    --ean-primary-hover: #509e7f;
    --ean-primary-dark: #3f7c64;
    --ean-accent-yellow: #ffe6a3;
    --ean-accent-yellow-dark: #ffd870;
    --ean-surround-bg: #a3c7b9;
    --ean-body-bg: #ffffff;
    --ean-text: #605c72;
    --ean-text-dark: #232529;
    --ean-text-light: #8e9dab;
    --ean-border: rgba(231, 232, 234, 0.4);
    --ean-border-dark: #e7e8ea;
    --ean-font-main: 'Actor', 'Catamaran', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ean-font-headings: 'Actor', 'Catamaran', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ean-font-sans: 'Catamaran', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--ean-font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ean-text);
    background-color: var(--ean-surround-bg);
}

body p {
    margin: 0 0 1.25rem 0;
}

body p:last-child {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ean-font-headings);
    color: var(--ean-text-dark);
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a {
    color: var(--ean-primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
    color: var(--ean-primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

hr {
    border: 0;
    border-bottom: 1px solid var(--ean-border);
    margin: 2rem 0;
}

blockquote {
    border-left: 4px solid var(--ean-primary);
    margin: 1.5rem 0;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    color: var(--ean-text);
    background: #fbfdfc;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--ean-border-dark);
}

th, td {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--ean-border-dark);
    text-align: left;
}

th {
    background-color: #f2f5f4;
    font-weight: 600;
    color: var(--ean-text-dark);
}

tr:nth-child(even) td {
    background-color: #fafbfc;
}

/* ==========================================================================
   3. LAYOUT WRAPPERS & SURROUND
   ========================================================================== */
#g-page-surround {
    background: var(--ean-surround-bg);
    margin: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

@media (max-width: 50.99rem) {
    #g-page-surround {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.g-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-horizontal-paddings {
    padding-left: 5%;
    padding-right: 5%;
}

@media (min-width: 75rem) {
    .section-horizontal-paddings {
        padding-left: 8%;
        padding-right: 8%;
    }
}

@media (max-width: 50.99rem) {
    .section-horizontal-paddings {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   4. NAVIGATION & HEADER (#g-navigation)
   ========================================================================== */
#g-navigation {
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    padding: 0.75rem 0;
    gap: 1.5rem;
}

@media (max-width: 50.99rem) {
    .nav-container {
        min-height: 70px;
    }
}

.g-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.g-logo img {
    max-height: 5rem;
    width: auto;
    object-fit: contain;
}

@media (max-width: 50.99rem) {
    .g-logo img {
        max-height: 3.5rem;
    }
}

/* Navigation Menu */
.g-main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.g-toplevel {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.2rem;
}

.g-toplevel > li {
    position: relative;
}

.g-toplevel > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.g-toplevel > li:hover > a {
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
}

.g-toplevel > li.current-menu-item > a,
.g-toplevel > li.current-menu-ancestor > a {
    background: #ffe6a3 !important;
    color: #232529 !important;
    border-bottom: none !important;
}

.g-menu-parent-indicator {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.9;
    color: inherit;
    margin-left: 0.25rem;
}

.g-menu-parent-indicator::after {
    content: "\f107";
    font-family: FontAwesome;
}

/* Dropdowns */
.g-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 120;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.g-toplevel > li:hover > .g-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.g-dropdown li {
    position: relative;
    margin: 0;
    padding: 0;
}

.g-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #605c72;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.g-dropdown li a:hover,
.g-dropdown li.current-menu-item > a {
    color: #000000;
    background: rgba(163, 199, 185, 0.15);
    padding-left: 1.5rem;
}

/* Nested dropdowns (Level 3+) */
.g-dropdown .g-dropdown {
    top: 0;
    left: 100%;
    margin-left: 2px;
}

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

/* Search bar in header (.g-search matching Gantry Flux particle) */
.g-search.header-search {
    position: relative;
    margin-left: 1.25rem;
    flex-shrink: 0;
}

.g-search.header-search form {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
}

.g-search.header-search form::before {
    content: "\f002";
    font-family: FontAwesome;
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    pointer-events: none;
}

.g-search.header-search input[type="search"],
.g-search.header-search input[type="text"] {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 0 !important;
    padding: 0.35rem 0.5rem 0.35rem 1.6rem !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-family: inherit;
    width: 130px;
    outline: none !important;
    box-shadow: none !important;
    transition: width 0.3s ease, border-color 0.2s ease;
}

.g-search.header-search input[type="search"]::placeholder,
.g-search.header-search input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.g-search.header-search input[type="search"]:focus,
.g-search.header-search input[type="text"]:focus {
    width: 190px;
    border-bottom-color: #ffffff !important;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-size: 1.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@media (max-width: 60rem) {
    .mobile-nav-toggle {
        display: block;
    }

    .g-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #a3c7b9;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        z-index: 200;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .g-main-nav.active {
        display: flex;
    }

    .g-toplevel {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .g-toplevel > li > a {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 0;
    }

    .g-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
        border-radius: 4px;
        margin: 0.25rem 0 0.5rem;
    }

    .g-dropdown.active {
        display: block;
    }

    .g-dropdown .g-dropdown {
        left: 0;
        padding-left: 1.5rem;
    }

    .g-search.header-search {
        margin: 1.25rem 0 0 0;
        width: 100%;
    }

    .g-search.header-search input[type="search"] {
        width: 100% !important;
    }
}

/* ==========================================================================
   5. HERO BANNER SECTION (#g-above)
   ========================================================================== */
#g-above {
    position: relative;
    background-color: #d2c0db;
    background-image: url('assets/images/hero-bg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #232529;
    padding: 4.5rem 0;
    overflow: hidden;
}

@media (max-width: 50.99rem) {
    #g-above {
        padding: 2.5rem 0;
    }
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-content-box {
    width: 55%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 60rem) {
    .hero-content-box {
        width: 80%;
    }
}

@media (max-width: 50.99rem) {
    .hero-content-box {
        width: 100%;
        padding: 1.5rem;
    }
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--ean-text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.25;
}

@media (max-width: 50.99rem) {
    .hero-title {
        font-size: 1.6rem;
    }
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ean-text);
    margin: 0;
}

/* ==========================================================================
   6. MAIN CONTAINER & 2-COLUMN LAYOUT (#g-container-main)
   ========================================================================== */
#g-container-main {
    background: var(--ean-body-bg);
    padding: 2.5rem 0 3.5rem 0;
    min-height: 500px;
}

.main-layout-grid {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

@media (max-width: 60rem) {
    .main-layout-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

.mainbar {
    flex: 1 1 73%;
    min-width: 0;
}

.aside-sidebar {
    flex: 0 0 27%;
    min-width: 260px;
}

@media (max-width: 60rem) {
    .mainbar, .aside-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Page Header */
.page-header {
    border-bottom: 2px solid var(--ean-border);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
}

.page-header h1, .page-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--ean-text-dark);
}

.page-header p.description {
    margin: 0.5rem 0 0 0;
    color: var(--ean-text-light);
    font-size: 1.05rem;
}

/* ==========================================================================
   7. POST CARDS & ARTICLES LOOP
   ========================================================================== */
.post-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ean-border);
    position: relative;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-title {
    font-size: 1.65rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.post-title a {
    color: var(--ean-text-dark);
}

.post-title a:hover {
    color: var(--ean-primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--ean-text-light);
    margin-bottom: 1rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-meta a {
    color: var(--ean-text);
}

.post-meta a:hover {
    color: var(--ean-primary);
}

.meta-category {
    background: #f0f6f4;
    color: var(--ean-primary-dark) !important;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.post-thumbnail {
    margin: 1rem 0 1.25rem 0;
    border-radius: 6px;
    overflow: hidden;
}

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

.post-thumbnail:hover img {
    transform: scale(1.02);
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ean-text);
    margin-bottom: 1.25rem;
}

/* Buttons */
.button, .btn, .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ean-font-headings);
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff !important;
    background: var(--ean-primary);
    padding: 0.55rem 1.4rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    text-shadow: none;
    transition: all 0.25s ease;
}

.button:hover, .btn:hover, .wp-block-button__link:hover {
    background: var(--ean-primary-hover);
    box-shadow: 0 4px 12px rgba(125, 189, 164, 0.35);
    color: #ffffff !important;
}

.button-outline {
    background: transparent !important;
    color: var(--ean-primary) !important;
    border: 2px solid var(--ean-primary) !important;
}

.button-outline:hover {
    background: var(--ean-primary) !important;
    color: #ffffff !important;
}

/* Pagination */
.pagination {
    margin: 2.5rem 0 1rem 0;
}

.pagination ul, .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span,
.nav-links a, .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ean-text);
    background: #ffffff;
    border: 1px solid var(--ean-border-dark);
}

.pagination a:hover, .nav-links a:hover {
    background: var(--ean-primary);
    color: #ffffff;
    border-color: var(--ean-primary);
}

.pagination .current, .nav-links .current {
    background: var(--ean-primary);
    color: #ffffff;
    border-color: var(--ean-primary);
}

/* Single Post & Page */
.single-post-article, .page-article {
    background: #ffffff;
}

.single-post-title {
    font-size: 2.2rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.25;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.single-post-content img {
    margin: 1rem 0;
    border-radius: 4px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ean-border);
    gap: 1rem;
}

/* ==========================================================================
   8. SIDEBAR & WIDGETS (#g-aside)
   ========================================================================== */
.widget {
    background: #fbfdfc;
    border: 1px solid var(--ean-border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title, h3.g-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ean-text-dark);
    margin: 0 0 1rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--ean-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.widget ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--ean-text);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--ean-primary);
    padding-left: 0.25rem;
}

/* Next Events Card (Recreating Gantry box1) */
.box1, .widget_ean_next_events {
    background: linear-gradient(135deg, #7dbda4, #62af91) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(125, 189, 164, 0.35);
}

.box1 .widget-title, .widget_ean_next_events .widget-title,
.box1 h3.g-title, .widget_ean_next_events h3.g-title {
    color: #ffe6a3 !important;
    border-bottom: 2px solid rgba(255, 230, 163, 0.5) !important;
}

.box1 p, .widget_ean_next_events p,
.box1 li, .widget_ean_next_events li {
    color: rgba(255, 255, 255, 0.95) !important;
}

.box1 a, .widget_ean_next_events a {
    color: #ffffff !important;
    text-decoration: underline;
}

.box1 a:hover, .widget_ean_next_events a:hover {
    color: #ffe6a3 !important;
}

.box1 .btn-register {
    display: inline-block;
    margin-top: 0.75rem;
    background: #ffe6a3 !important;
    color: #232529 !important;
    font-weight: 700;
    padding: 0.45rem 1.25rem;
    border-radius: 20px;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.box1 .btn-register:hover {
    background: #ffffff !important;
}

/* Login Widget / Box */
.box-login {
    background: #f8faf9;
}

.box-login input[type="text"],
.box-login input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.65rem;
    border: 1px solid var(--ean-border-dark);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ==========================================================================
   9. FOOTER (#g-footer matching original Gantry Flux)
   ========================================================================== */
#g-footer {
    background: var(--ean-surround-bg);
    color: #605c72;
    border-top: none;
    position: relative;
}

#g-footer.section-vertical-paddings {
    padding-top: 3.5vw;
    padding-bottom: 3.5vw;
}

@media (max-width: 50.99rem) {
    #g-footer.section-vertical-paddings {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 50.99rem) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.footer-contact {
    flex: 0 0 71%;
    max-width: 71%;
}

@media (max-width: 50.99rem) {
    .footer-contact {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.footer-contact h2.g-title {
    margin: 0 0 0.5rem;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
}

.footer-contact h2.g-title.g-blockcontent-headline {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    line-height: 1.4;
}

.footer-contact .g-blockcontent-description {
    font-family: 'Actor', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: #605c72;
    margin: 0;
    line-height: 1.5;
}

.footer-contact a {
    color: #605c72;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Scroll To Top button matching Gantry Flux totop particle */
.footer-totop {
    flex: 0 0 29%;
    max-width: 29%;
    text-align: right;
}

@media (max-width: 50.99rem) {
    .footer-totop {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
}

#g-totop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: #ffffff;
    padding: 0.5rem 0;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#g-totop:hover {
    color: #ffffff;
    opacity: 0.8;
    transform: translateY(-2px);
}

#g-totop i {
    font-size: 1.25rem;
}

/* ==========================================================================
   10. SPECIAL JOOMLA MIGRATION CLASSES & WEBLINKS
   ========================================================================== */
.mosaic {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mosaic-item {
    flex-basis: 10rem;
    padding: 0 0.5rem 1rem 0.5rem;
}

.table-th-nowrap, .table-td-nowrap {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

/* Weblinks Grid */
.weblinks-category {
    margin-bottom: 2.5rem;
}

.weblinks-category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ean-text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--ean-primary);
}

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

.weblink-card {
    background: #ffffff;
    border: 1px solid var(--ean-border-dark);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.weblink-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
    border-color: var(--ean-primary);
}

.weblink-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--ean-text-dark);
}

.weblink-url {
    font-size: 0.85rem;
    color: var(--ean-primary);
    word-break: break-all;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Docman Download Button */
.docman_download, .ean-download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ean-primary);
    color: #ffffff !important;
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-decoration: none !important;
}

.docman_download:hover, .ean-download-button:hover {
    background: var(--ean-primary-hover);
    color: #ffffff !important;
}