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

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =Theme Styles
-------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Container Widths */
    --container-width-wide: 1400px;
    /* Home, Full width sections */
    --container-width-normal: 1200px;
    /* Standard content */
    --container-width-narrow: 800px;
    /* Blog posts, reading content */

    /* Spacing */
    --container-padding: 2rem;
    --container-padding-mobile: 1.25rem;

    /* Colors & Typography */
    --color-primary: #2E87C8;
    --color-primary-dark: #1d6ba8;
    --color-secondary: #F1843D;
    --color-text: #1f2933;
    --color-heading: #0f172a;
    --color-bg: #ffffff;
    --font-base: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Utility Classes for Containers */
.container,
.container-wide,
.container-narrow {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
}

.container-wide {
    max-width: var(--container-width-wide);
}

.container {
    max-width: var(--container-width-normal);
}

.container-narrow {
    max-width: var(--container-width-narrow);
}

@media (max-width: 768px) {

    .container,
    .container-wide,
    .container-narrow {
        padding-right: var(--container-padding-mobile);
        padding-left: var(--container-padding-mobile);
    }
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font-family: var(--font-base);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1em;
    line-height: 1.2;
}

/* Blockquote Styles */
blockquote {
    background: transparent;
    border-left: 4px solid var(--color-primary);
    margin: 2rem 0;
    padding: 0 0 0 2rem;
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    position: relative;
}

blockquote p {
    margin-bottom: 1.5rem;
    font-style: italic;
}

blockquote p:last-of-type {
    margin-bottom: 0.5rem;
}

blockquote cite,
blockquote footer {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #666;
}

blockquote cite::before,
blockquote footer::before {
    content: '— ';
}

blockquote a {
    color: #2F88C8;
    text-decoration: none;
    font-style: normal;
}

blockquote a:hover {
    text-decoration: underline;
}

.site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.3s ease;
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2F88C8 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-header:hover::before {
    opacity: 1;
}

.header-container {
    max-width: var(--container-width-wide);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {

    width: auto;
    height: auto;
}

.site-title {
    margin: 0;
    font-size: 2rem;
}


/* Logo Adjustment */
.custom-logo-link img {
    height: 80px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* filter: brightness(0) invert(1); Removed to keep original logo color */
    display: block;
    /* Removes bottom space for better centering */
}



/* Primary Navigation
   -------------------------------------------------------------- */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.primary-menu {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    height: 100%;
}

.primary-menu>li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.primary-menu>li>a {
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-heading);
    text-decoration: none;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    isolation: isolate;
}

.primary-menu>li:not(.menu-item-highlight)>a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(46, 135, 200, 0.12);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: -1;
}

.primary-menu>li:not(.menu-item-highlight)>a:hover::before,
.primary-menu>li:not(.menu-item-highlight).submenu-open>a::before,
.primary-menu>li:not(.menu-item-highlight).current-menu-item>a::before,
.primary-menu>li:not(.menu-item-highlight).current_page_item>a::before,
.primary-menu>li:not(.menu-item-highlight).current-menu-ancestor>a::before,
.primary-menu>li:not(.menu-item-highlight).current_page_ancestor>a::before {

    transform: scale(1);
}

.primary-menu>li>a:hover {
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.primary-menu>li.current-menu-item>a,
.primary-menu>li.current_page_item>a,
.primary-menu>li.current-menu-ancestor>a,
.primary-menu>li.current_page_ancestor>a,
.primary-menu>li.submenu-open>a {
    color: var(--color-primary-dark);
}

.primary-menu>li.current-menu-item>a {
    font-weight: 600;
}



/* Highlighted CTA link */
.primary-menu>li.menu-item-highlight>a {
    background: var(--color-secondary);
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    padding: 1rem 2rem;
}

.primary-menu>li.menu-item-highlight>a:active {
    transform: translateY(-1px) scale(0.98);
}

/* Dropdown caret */
.primary-menu>li.menu-item-has-children>a {
    cursor: default;
}

.primary-menu>li.menu-item-has-children>a::after {
    content: '';
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.3s ease;
}

.primary-menu>li.menu-item-has-children.submenu-open>a::after,
.primary-menu>li.menu-item-has-children:hover>a::after {
    transform: rotate(-135deg);
}

/* Submenu */
.primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 240px;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(15, 23, 42, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1001;
    pointer-events: none;
}

.primary-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.primary-menu>li.submenu-open>.sub-menu,
.primary-menu>li:hover>.sub-menu,
.primary-menu>li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.primary-menu .sub-menu li {
    display: block;
    margin: 0;
}

.primary-menu .sub-menu li+li {
    margin-top: 0.35rem;
}

.primary-menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    color: var(--color-heading);
    font-size: 0.92rem;
    border-radius: 14px;
    text-transform: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
    background: rgba(46, 135, 200, 0.08);
    color: var(--color-primary-dark);
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
    position: relative;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1e293b;
    /* Dark for visibility */
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* RESPONSIVE MENU CSS */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .site-header {
        justify-content: center;
        height: auto !important;
        min-height: 70px;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    /* Hide menu by default on mobile */
    .main-navigation .primary-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Slide out to right */
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    /* Show menu when toggled */
    .main-navigation.toggled .primary-menu {
        right: 0;
    }

    /* Overlay */
    .main-navigation.toggled::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(4px);
    }

    .primary-menu>li {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        border-bottom: 1px solid #f1f5f9;
    }

    .primary-menu>li>a {
        font-size: 1.2rem;
        padding: 1rem 1rem;
        width: 100%;
        color: #1e293b;
        justify-content: space-between;
        /* Space for caret */
        border-radius: 0;
    }

    .primary-menu>li:not(.menu-item-highlight)>a::before {
        border-radius: 0;
    }

    /* Submenu on Mobile */
    .primary-menu .sub-menu {
        position: static;
        /* Flow naturally */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 1rem 1rem;
        min-width: 100%;
        background: transparent;
        display: none;
        /* Hidden by default */
        margin-top: 0;
    }

    /* Bridge not needed mobile */
    .primary-menu .sub-menu::before {
        display: none;
    }

    /* Open Submenu */
    .primary-menu>li.submenu-open .sub-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .primary-menu>li.submenu-open>a {
        color: #2F88C8;
    }

    .primary-menu>li.menu-item-has-children>a::after {
        transform: rotate(45deg);
        /* Default pointing down/rightish */
    }

    .primary-menu>li.submenu-open>a::after {
        transform: rotate(-135deg);
        /* Flip when open */
    }

    /* Toggle Button Animation */
    .menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

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

    to {
        opacity: 1;
    }
}

/* Mobile Responsive block removed */



.site-description {
    margin: 0.5rem 0 0;
    color: #666;
}

.site-content {
    max-width: var(--container-width-wide);
    margin: 2rem auto;
    padding: 0 var(--container-padding);
}

/* Blog/Archive with sidebar */
.blog .site-content,
.archive .site-content,
.single .site-content,
.search .site-content,
.error404 .site-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Page template: Archivio Video (with sidebar) */
.page-template-template-video-archive-php .site-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Page templates: Chi Siamo, Autismo, Come Aiutarci (with sidebar) */
.page-template-template-chi-siamo-php .site-content,
.page-template-template-autismo-php .site-content,
.page-template-template-come-aiutarci-php .site-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Page template: Ufficio Stampa (with sidebar) */
.ufficio-stampa-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Pages without sidebar - full width (except specific templates) */
.page:not(.page-template-template-video-archive-php):not(.page-template-template-donazioni-php):not(.page-template-template-rassegna-stampa-php) .site-content {
    display: block;
}

/* Donation page - full width without sidebar */
/* Donation page - full width without sidebar */
.donazioni-content,
.donazioni-content .site-main {
    display: block;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-template-template-donazioni-php .donazioni-hero-section {
    margin-top: 0 !important;
}

.site-content.home-content {
    margin: 0 auto;
    padding: 0;
    display: block;
}

@media (max-width: 968px) {

    .blog .site-content,
    .archive .site-content,
    .single .site-content,
    .search .site-content,
    .error404 .site-content,
    .page-template-template-video-archive-php .site-content,
    .ufficio-stampa-layout,
    .page-template-template-chi-siamo-php .site-content,
    .page-template-template-autismo-php .site-content,
    .page-template-template-come-aiutarci-php .site-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .site-content {
        padding: 0 0.5rem;
    }

    .blog .site-content,
    .archive .site-content,
    .single .site-content,
    .search .site-content,
    .error404 .site-content,
    .page-template-template-video-archive-php .site-content,
    .ufficio-stampa-layout,
    .page-template-template-chi-siamo-php .site-content,
    .page-template-template-autismo-php .site-content,
    .page-template-template-come-aiutarci-php .site-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
}

.site-main {
    min-width: 0;
}

/* Posts Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

.archive-header {
    margin-bottom: 3rem;
}

.archive-header .page-title {
    font-size: 2.5rem;
    color: #2F88C8;
    margin: 0;
}

/* Article Styles */
article {
    background: #fff;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

article:hover {
    transform: none;
    box-shadow: none;
}

/* Archive/Blog Grid View */
.posts-grid article .post-thumbnail {
    margin: 0;
    line-height: 0;
    overflow: hidden;
    height: 250px;
    position: relative;
    background: #f0f0f0;
}

.posts-grid article .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.posts-grid article .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.posts-grid article:hover .post-thumbnail img {
    transform: scale(1.1);
}

.posts-grid article .post-content-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.posts-grid article .entry-header {
    padding: 0;
    margin-bottom: 1rem;
}

.posts-grid article .entry-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
}

.posts-grid article .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-grid article .entry-title a:hover {
    color: #2F88C8;
}

.posts-grid article .entry-summary {
    padding: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
}

.posts-grid article .entry-summary p {
    margin-bottom: 0;
}

.posts-grid article .entry-footer {
    padding: 0;
    border: none;
    background: none;
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2F88C8;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #1d6ba8;
    transform: translateX(5px);
    color: #fff !important;
    text-decoration: none !important;
}

.read-more-btn svg {
    stroke: #fff;
}

.read-more-btn svg {
    transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
    transform: translateX(3px);
}

/* Single Post View */
.single article,
.page article {
    margin-bottom: 3rem;
}


/* Single Post Header with Gradient */
.single-post-header {
    background-color: #2F88C8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 3rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

/* Gradient overlay with opacity */
.single-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(47, 136, 200, 0.85) 0%,
            rgba(29, 107, 168, 0.88) 30%,
            rgba(41, 98, 148, 0.90) 50%,
            rgba(29, 107, 168, 0.88) 70%,
            rgba(241, 132, 61, 0.85) 100%);
    z-index: 1;
}

/* Subtle pattern overlay */
.single-post-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    z-index: 2;
    pointer-events: none;
}

.single-header-content {
    max-width: var(--container-width-narrow);
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.post-categories-badge {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.post-categories-badge a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    color: #2F88C8;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.post-categories-badge a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.single-post-header .entry-title {
    font-size: 2.75rem;
    margin: 0 0 1rem;
    line-height: 1.2;
    color: #fff;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.2),
        1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.entry-meta-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.98);
}

.entry-meta-enhanced .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.entry-meta-enhanced .meta-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.entry-meta-enhanced .meta-item svg {
    stroke: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.entry-meta-enhanced .meta-item time {
    font-weight: 500;
}

.single article .entry-meta,
.page article .entry-meta {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.75rem;
}

.single article .entry-meta time {
    color: #2F88C8;
    font-weight: 500;
}

.page article .entry-title {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.single-post-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.entry-meta a {
    color: #2F88C8;
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
}

.single article .post-thumbnail,
.page article .post-thumbnail {
    margin: 0;
    line-height: 0;
    overflow: hidden;
}

.single article .post-thumbnail img,
.page article .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-thumbnail-single {
    flex: 0 0 350px;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 2rem;
    transition: all 0.3s ease;
}

.post-thumbnail-single:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.post-thumbnail-single img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.single article .entry-content,
.page article .entry-content {
    flex: 1;
    padding: 0;
    color: #2c3e50;
}

.single article .entry-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
}

.single article .entry-content p:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: 700;
    float: left;
    line-height: 0.9;
    margin: 0.1rem 0.5rem 0 0;
    color: #2F88C8;
}

.single article .entry-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.single article .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2F88C8, #F1843D);
    border-radius: 2px;
}

.single article .entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #2F88C8;
    font-weight: 600;
}

.single article .entry-content a {
    color: #2F88C8;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    font-weight: 500;
}

.single article .entry-content a:hover {
    border-bottom-color: #2F88C8;
}

.single article .entry-content img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 1.5rem auto !important;
    float: none !important;
}

/* Force sidebar below content on mobile */
#secondary {
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
}

.site-main {
    width: 100% !important;
    max-width: 100% !important;
    order: 1;
}


.single article .entry-content ul,
.entry-content ul {
    margin: 2rem 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.single article .entry-content ul li,
.entry-content ul li {
    margin-bottom: 0.9rem !important;
    line-height: 1.7 !important;
    padding-left: 2.2rem !important;
    position: relative !important;
}

.single article .entry-content ul li::before,
.entry-content ul li::before {
    content: '\2713' !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2F88C8;
    color: white;
    border-radius: 50%;
    font-weight: 700 !important;
    flex-shrink: 0;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    transform: translateY(0.15rem) !important;
}

.single article .entry-content ol,
.entry-content ol {
    counter-reset: custom-counter !important;
    margin: 2rem 0 !important;
    padding-left: 0 !important;
}

.single article .entry-content ol li,
.entry-content ol li {
    
    margin: 0 !important;
    line-height: 1.7 !important;
    padding: 1.15rem 1.5rem 1.15rem 4.2rem !important;
    position: relative !important;
    counter-increment: custom-counter !important;
    list-style: none !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.single article .entry-content ol li:hover,
.entry-content ol li:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12) !important;
}

.single article .entry-content ol li::before,
.entry-content ol li::before {
    content: counter(custom-counter) !important;
    position: absolute !important;
    left: 1.7rem !important;
    top: 50% !important;
    width: 32px !important;
    height: 32px !important;
    background: linear-gradient(135deg, #2F88C8, #1d6ba8) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 8px rgba(47, 136, 200, 0.3) !important;
    line-height: 28px !important;
    text-align: center !important;
}


.single article .entry-content h2,
.single article .entry-content h3,
.single article .entry-content h4,
.page article .entry-content h2,
.page article .entry-content h3,
.page article .entry-content h4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.entry-footer-enhanced {
    margin: 3rem 2rem 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.post-meta-footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    margin: 0;
}

.meta-title svg {
    stroke: #2F88C8;
}

.meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-badge {
    background: #fff;
    color: #2F88C8;
    border: 2px solid #2F88C8;
}

.category-badge:hover {
    background: #2F88C8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 136, 200, 0.3);
}

.tag-badge {
    background: #fff;
    color: #F1843D;
    border: 2px solid #F1843D;
}

.tag-badge:hover {
    background: #F1843D;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 132, 61, 0.3);
}

.single article .entry-footer,
.page article .entry-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.entry-footer span {
    color: #666;
}

.entry-footer a {
    color: #2F88C8;
    text-decoration: none;
}

.entry-footer a:hover {
    text-decoration: underline;
}

.cat-links,
.tags-links,
.comments-link {
    display: inline-block;
}

/* Post Navigation */
.post-navigation,
.posts-navigation {
    margin: 3rem 2rem;
    padding: 0;
    background: transparent;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-previous a:hover,
.nav-next a:hover {
    border-color: #2F88C8;
    box-shadow: 0 4px 12px rgba(47, 136, 200, 0.15);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #2F88C8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #2F88C8;
}

/* Page Header - Default with gradient */
.page-header {
    background: linear-gradient(135deg, #2F88C8 0%, #1d6ba8 100%);
    color: #fff;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 8px;
    text-align: center;
}

/* Archive Page Header - Minimal Style (reuses entry-title styles) */
.archive-header {
    margin-bottom: 0rem;
}

.archive-header .entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .archive-header .entry-title {
        font-size: 1.5rem;
    }
}

.page-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.page-title span {
    color: #F1843D;
}

.site-footer {
    background: #2F88C8;
    color: #fff;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: var(--container-width-normal);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

.footer-address,
.footer-cf {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    color: #fff;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.instagram {
    background: #E4405F;
}

.social-icon.youtube {
    background: #FF0000;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-menu {
        align-items: center;
    }
}

.site-footer a {
    color: #fff;
}

/* Sidebar Styles */
#secondary {
    min-width: 0;
}

.widget {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2F88C8;
    color: #1a1a1a;
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #2F88C8;
}

/* Archives Widget Custom Styles */
.archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archives-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.archives-toggle {
    text-align: center;
    padding-top: 1rem !important;
    border-bottom: none !important;
}

.archives-view-more {
    background: linear-gradient(135deg, #2F88C8, #1d6ba8);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(47, 136, 200, 0.2);
}

.archives-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 136, 200, 0.3);
}

.archives-view-more:active {
    transform: translateY(0);
}

.archives-hidden {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Buttons */
.more-link,
button,
input[type="submit"],
.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2F88C8;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.more-link:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: #1d6ba8;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
}

/* Responsive */
/* Breadcrumbs Styles */
.breadcrumbs {
    background: #f8f8f8;
    padding: 1rem 0;
    margin: 0 0 2rem 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    max-width: var(--container-width-wide);
    padding: 0 var(--container-padding);
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

.breadcrumb-prefix {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-weight: 600;
    margin-right: 0.5rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #2F88C8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #1d6ba8;
    text-decoration: underline;
}

.breadcrumb-parent-no-link {
    color: #666;
    cursor: default;
}

.breadcrumb-item.active {
    color: #666;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #999;
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 0;
    }

    .breadcrumb-list {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .breadcrumb-separator {
        padding: 0 0.35rem;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: var(--container-width-narrow);
    padding: 2rem;
    animation: slideInUp 0.8s ease-out;
}

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

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

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin: 0 0 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.slide-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #F1843D;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 132, 61, 0.4);
}

.slide-button:hover {
    background: #d96f2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(241, 132, 61, 0.6);
    text-decoration: none;
    color: #fff;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #2F88C8;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-prev:hover,
.slider-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: #fff;
    width: 35px;
    border-radius: 6px;
}

/* Home Page Styles */
.home-page {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.home-page .hero-slider {
    margin: 0;
    width: 60vw;
}

/* Home Video Section */
.home-video-section {
    background: #f8f8f8;
    padding: 4rem 0;
    margin: 0;
}

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .home-video-section {
        padding: 2rem 0;
    }

    .video-container {
        padding: 0 1rem;
    }
}

/* Sponsors Section */
.sponsors-section {
    background: #fff;
    padding: 4rem 0;
    border-top: 1px solid #e0e0e0;
}

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

.sponsors-title {
    text-align: center;
    font-size: 2rem;
    color: #2F88C8;
    margin-bottom: 3rem;
    font-weight: 600;
}

.sponsors-slider {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.sponsors-track {
    display: flex;
    gap: 3rem;
    animation: scroll-sponsors 80s linear infinite;
    width: fit-content;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

.sponsor-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.sponsor-item:hover {
    transform: scale(1.1);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.sponsor-item:hover img {
    filter: grayscale(100%);
    opacity: 0.8;
}

@keyframes scroll-sponsors {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate sponsors for seamless loop */
.sponsors-track::after {
    content: '';
    display: flex;
    gap: 3rem;
}

@media (max-width: 768px) {
    .sponsors-section {
        padding: 2rem 0;
    }

    .sponsors-container {
        padding: 0 1rem;
    }

    .sponsors-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .sponsor-item {
        width: 150px;
        height: 80px;
    }

    .sponsors-track {
        gap: 2rem;
    }
}

.home-page .hero-slider {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.home-page article {
    margin-top: 3rem;
    padding: 0 var(--container-padding);
    max-width: var(--container-width-wide);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .slider-container {
        height: 400px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
    }

    .slide-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 1rem;
    }

    .slider-next {
        right: 1rem;
    }

    .slide-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 300px;
    }

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

    .slide-subtitle {
        font-size: 0.95rem;
    }
}

/* Special Pages Styles */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-box {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #2F88C8;
}

.contact-box h3 {
    margin-top: 0;
    color: #2F88C8;
}

.fractalimina-contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.map-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.opening-hours {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.donation-callout {
    background: linear-gradient(135deg, #F1843D 0%, #d96f2e 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.donation-callout h3 {
    color: #fff;
    margin-top: 0;
}

.donation-callout ul {
    color: #fff;
}

.donation-methods {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.donation-methods p {
    margin-bottom: 1.5rem;
}

.button-primary {
    background: #F1843D;
}

.button-primary:hover {
    background: #d96f2e;
}

/* Ufficio Stampa / Area Stampa Page */
.ufficio-stampa-page .entry-header {
    background: linear-gradient(135deg, #2F88C8 0%, #1d6ba8 50%, #F1843D 100%);
    padding: 4rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ufficio-stampa-page .entry-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.ufficio-stampa-page .entry-title {
    color: #fff;
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.ufficio-stampa-page .entry-content>h2:first-of-type {
    text-align: center;
    font-size: 1.5rem;
    color: #2F88C8;
    margin-bottom: 3rem;
    font-weight: 600;
}

.ufficio-stampa-page .entry-content>h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #2F88C8;
    position: relative;
}

.ufficio-stampa-page .entry-content>h3::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #F1843D;
}

/* Press Releases Section */
.press-releases,
.press-coverage {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.press-releases h4,
.press-coverage h4 {
    font-size: 1.3rem;
    color: #2F88C8;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.press-releases h4::before {
    content: '📰';
    font-size: 1.5rem;
}

.press-coverage h4::before {
    content: '📄';
    font-size: 1.5rem;
}

.press-release-list,
.press-coverage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.press-release-list li,
.press-coverage-list li {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.press-release-list li:hover,
.press-coverage-list li:hover {
    transform: translateX(8px);
    border-color: #2F88C8;
    box-shadow: 0 4px 16px rgba(47, 136, 200, 0.15);
}

.press-release-list li:last-child,
.press-coverage-list li:last-child {
    margin-bottom: 0;
}

.press-date {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2F88C8, #1d6ba8);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(47, 136, 200, 0.3);
}

.press-release-list a,
.press-coverage-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.press-release-list li:hover a,
.press-coverage-list li:hover a {
    color: #2F88C8;
}

/* Press Contacts Box */
.press-contacts {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 6px solid #2F88C8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.press-contacts::before {
    content: '📞';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    opacity: 0.1;
}

.press-contacts p {
    margin: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.press-contacts strong {
    color: #2F88C8;
    font-weight: 600;
}

/* Kit Stampa Section */
.ufficio-stampa-page .entry-content>ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.ufficio-stampa-page .entry-content>ul>li {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 1.5rem;
}

.ufficio-stampa-page .entry-content>ul>li::before {
    display: none;
}

.ufficio-stampa-page .entry-content>ul>li:hover {
    border-color: #2F88C8;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(47, 136, 200, 0.15);
}

.ufficio-stampa-page .entry-content>ul>li strong {
    display: block;
    color: #2F88C8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ufficio-stampa-page .entry-content>ul>li a {
    color: #F1843D;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.ufficio-stampa-page .entry-content>ul>li a:hover {
    border-bottom-color: #F1843D;
}

/* Ufficio Stampa Responsive */
@media (max-width: 968px) {
    .ufficio-stampa-page .entry-title {
        font-size: 2.25rem;
    }

    .press-releases,
    .press-coverage {
        padding: 1.5rem;
    }

    .ufficio-stampa-page .entry-content>ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ufficio-stampa-page .entry-header {
        padding: 2.5rem 1.5rem;
        margin: 0 0 2rem 0;
    }

    .ufficio-stampa-page .entry-title {
        font-size: 1.75rem;
    }

    .ufficio-stampa-page .entry-content>h3 {
        font-size: 1.5rem;
        margin-top: 3rem;
    }

    .press-release-list li,
    .press-coverage-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .press-date {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }

    .press-contacts {
        padding: 1.5rem;
    }

    .press-contacts::before {
        font-size: 3rem;
        right: 1rem;
    }

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

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Privacy and Cookie Pages */
.privacy-page,
.cookie-page {
    max-width: var(--container-width-narrow);
    margin: 0 auto;
}

.privacy-content,
.cookie-content {
    line-height: 1.8;
}

.privacy-content h2,
.cookie-content h2 {
    color: #2F88C8;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.privacy-content h3,
.cookie-content h3 {
    color: #2F88C8;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.privacy-content h4,
.cookie-content h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.privacy-content ul,
.cookie-content ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.privacy-content li,
.cookie-content li {
    margin-bottom: 0.5rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-table thead {
    background: #2F88C8;
    color: #fff;
}

.cookie-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-table tbody tr:hover {
    background: #f9f9f9;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 2.5rem 0;
    font-size: 0.875rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.75rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #2F88C8;
    color: #fff;
    border-color: #2F88C8;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(47, 136, 200, 0.3);
}

.pagination .page-numbers.current {
    background: #2F88C8;
    color: #fff;
    border-color: #2F88C8;
    font-weight: 700;
    cursor: default;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #333;
    transform: none;
    box-shadow: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 600;
}

@media (max-width: 768px) {

    .pagination,
    .pagination .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.8rem;
    }

    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0.4rem 0.65rem;
        border-radius: 8px;
    }

    /* Ocultar números intermedios en móvil, mostrar solo prev/next/current */
    .pagination .page-numbers.dots {
        display: none;
    }

    /* Botones prev/next más prominentes en móvil */
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    .pagination,
    .pagination .nav-links {
        gap: 0.25rem;
    }

    .pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2F88C8, #F1843D);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(47, 136, 200, 0.3);
}

@media (max-width: 968px) {
    .single article {
        margin-bottom: 2.5rem;
    }

    .single-post-header {
        padding: 2rem 1.5rem;
        margin: 0 0 2rem 0;
        border-radius: 0;
    }

    .single-post-header .entry-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .entry-meta-enhanced {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .entry-meta-enhanced .meta-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }

    .single-post-content-wrapper {
        flex-direction: column-reverse;
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }

    .post-thumbnail-single {
        flex: 0 0 auto;
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 0;
        border-radius: 16px;
    }

    .post-thumbnail-single img {
        border-radius: 16px;
    }

    .entry-footer-enhanced {
        margin: 2rem 1rem 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .post-navigation {
        margin: 2rem 1rem;
    }

    .single article .entry-content p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .single article .entry-content {
        line-height: 1.8;
    }
}

@media (max-width: 768px) {
    .site-content {
        padding: 0;
        margin: 1rem;
    }

    .entry-title {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .entry-content,
    .entry-summary {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }

    /* Single Post Mobile */
    .single article {
        margin-bottom: 2rem;
    }

    .single-post-header {
        padding: 1.5rem 1rem;
        margin: 0 0 1.5rem 0;
        border-radius: 0;
    }

    .single-post-header .entry-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .post-categories-badge {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .post-categories-badge a {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .entry-meta-enhanced {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .entry-meta-enhanced .meta-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .single-post-content-wrapper {
        padding: 1rem;
        gap: 1rem;
    }

    .single article .entry-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .single article .entry-content h2 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }

    .single article .entry-content h3 {
        font-size: 1.15rem;
    }

    .single article .entry-content p:first-of-type::first-letter {
        font-size: 2.25rem;
        margin-right: 0.35rem;
    }

    .single article .entry-content p {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .post-thumbnail-single {
        border-radius: 12px;
    }

    .post-thumbnail-single img {
        border-radius: 12px;
    }

    .entry-footer-enhanced {
        margin: 1.5rem 0.5rem 1rem;
        padding: 1.25rem;
        border-radius: 12px;
    }

    .meta-section {
        gap: 0.75rem;
    }

    .meta-title {
        font-size: 0.85rem;
    }

    .meta-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }

    .post-navigation {
        margin: 1.5rem 0.5rem;
    }

    .nav-previous a,
    .nav-next a {
        padding: 1rem;
    }

    .nav-subtitle {
        font-size: 0.75rem;
    }

    .nav-title {
        font-size: 0.95rem;
    }

    .privacy-content,
    .cookie-content {
        padding: 1rem;
    }
}

/* ========================================
   VIDEO CPT - SINGLE & ARCHIVE
======================================== */

.video-archive-page .video-archive-header {
    max-width: var(--container-width-wide);
    margin: 0 auto 2.5rem auto;
    padding: 0 var(--container-padding);
}

.video-archive-header .page-title {
    font-size: 2.4rem;
    color: #2F88C8;
    margin: 0 0 0.5rem 0;
}

.video-archive-header .archive-subtitle,
.video-archive-header .archive-description {
    max-width: var(--container-width-narrow);
    color: #4b5563;
}

.video-grid {
    margin: 0 0 3rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.video-thumb-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.video-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
}

.video-play-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.video-duration-pill {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
}

.video-card-body {
    padding: 1.25rem 1.4rem 1.4rem 1.4rem;
}

.video-card-title {
    font-size: 1.2rem;
    margin: 0 0 0.35rem 0;
    color: #0f172a;
}

.video-card-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
}

.video-card-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.video-card:hover .video-thumb-wrapper img {
    transform: scale(1.05);
}

.video-card .video-embed-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    margin-top: 0.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    display: none;
}

.video-card .video-embed-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-card.is-playing .video-thumb-wrapper {
    display: none;
}

.video-card.is-playing .video-embed-container {
    display: block;
}

.video-single-page .video-header-gradient {
    background: linear-gradient(135deg, #2F88C8 0%, #1d6ba8 40%, #F1843D 100%);
    padding: 3.5rem 0 3rem 0;
    margin-bottom: 2.5rem;
}

.video-header-content {
    max-width: var(--container-width-normal);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    color: #ffffff;
}

.video-meta-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 2.4rem;
    margin: 0 0 0.75rem 0;
}

.video-subtitle {
    max-width: var(--container-width-narrow);
    font-size: 1.05rem;
    opacity: 0.95;
}

.video-layout {
    max-width: var(--container-width-wide);
    margin: 0 auto 3rem auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.video-player-column {
    min-width: 0;
}

.video-player-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 1.75rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    background: #000;
}

.video-player-frame iframe,
.video-player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-main-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.video-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.video-details-card,
.video-related-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.video-details-card h2,
.video-related-card h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin: 0 0 1rem 0;
}

.video-details-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.video-details-card li {
    font-size: 0.95rem;
    color: #374151;
}

.video-details-card li+li {
    margin-top: 0.4rem;
}

.video-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.video-related-list li+li {
    margin-top: 0.45rem;
}

.video-related-list a {
    color: #1f2937;
    text-decoration: none;
}

.video-related-list a:hover {
    color: #2F88C8;
    text-decoration: underline;
}

@media (max-width: 968px) {
    .video-layout {
        grid-template-columns: 1fr;
    }

    .video-sidebar-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .video-header-gradient {
        padding: 2.5rem 0 2.25rem 0;
    }

    .video-header-content {
        padding: 0 var(--container-padding-mobile);
    }

    .video-title {
        font-size: 1.9rem;
    }

    .video-layout {
        padding: 0 var(--container-padding-mobile);
        gap: 1.75rem;
    }

    .video-main-content {
        padding: 1.5rem 1.25rem;
    }
}

/* ========================================
   PÁGINA DE CONTACTO - ESTILOS MODERNOS
======================================== */

.contatti-page {
    background: #fff;
}

.contatti-page article {
    margin: 0;
    padding: 0;
    background: transparent;
}

.page-header-gradient {
    background: linear-gradient(135deg, #2F88C8 0%, #1d6ba8 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(241, 132, 61, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.page-header-content {
    max-width: var(--container-width-normal);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header-gradient .entry-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
    letter-spacing: 0.5px;
}

.contact-container {
    max-width: var(--container-width-wide);
    margin: 0 auto;
    padding: 0 var(--container-padding) 4rem var(--container-padding);
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    color: #2F88C8;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: var(--container-width-narrow);
    margin: 0 auto;
}

/* Tarjetas de Información de Contacto */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(47, 136, 200, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2F88C8, #F1843D);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(47, 136, 200, 0.2);
    border-color: #2F88C8;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-primary);
    /* Animación eliminada para icono fijo */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.contact-card h3 {
    color: #2F88C8;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-details {
    color: #555;
    line-height: 1.8;
}

.contact-details p {
    margin-bottom: 0.75rem;
}

.contact-details strong {
    color: #333;
    font-weight: 600;
}

.contact-details a {
    color: #2F88C8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: #F1843D;
    text-decoration: underline;
}

.schedule {
    color: #F1843D;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Social Links */
.contact-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(47, 136, 200, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: #2F88C8;
    color: #fff !important;
    transform: translateX(5px);
    text-decoration: none !important;
}

.social-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

/* Formulario de Contacto */
.contact-form-section {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-section h3 {
    color: #2F88C8;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-form-section>p {
    color: #666;
    margin-bottom: 2rem;
}

.fractalimina-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    padding: 0.875rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2F88C8;
    box-shadow: 0 0 0 3px rgba(47, 136, 200, 0.1);
}

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

.form-group label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.button-primary {
    background: linear-gradient(135deg, #2F88C8 0%, #1d6ba8 100%);
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 136, 200, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(47, 136, 200, 0.4);
}

.button-primary:active {
    transform: translateY(0);
}

/* Sección de Direcciones */
.contact-directions {
    margin-bottom: 4rem;
}

.contact-directions h3 {
    color: #2F88C8;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.direction-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.direction-card h4 {
    color: #2F88C8;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.direction-info {
    color: #555;
    line-height: 1.8;
}

.direction-info ul {
    list-style: none;
    padding-left: 0;
}

.direction-info li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.direction-info li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #F1843D;
    font-weight: bold;
}

.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Información Adicional */
.additional-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2F88C8;
}

.info-card h3 {
    color: #2F88C8;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.opening-hours p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.opening-hours .note {
    color: #F1843D;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.useful-numbers {
    list-style: none;
    padding: 0;
}

.useful-numbers li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.useful-numbers li:last-child {
    border-bottom: none;
}

/* Sección FAQ */
.faq-section {
    background: linear-gradient(135deg, rgba(47, 136, 200, 0.05), rgba(241, 132, 61, 0.05));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.faq-section h3 {
    color: #2F88C8;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.faq-section p {
    color: #555;
    font-size: 1.1rem;
}

.faq-section a {
    color: #2F88C8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-section a:hover {
    border-bottom-color: #2F88C8;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-gradient {
        padding: 3rem 1.5rem;
    }

    .page-header-gradient .entry-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .contact-container {
        padding: 0 1rem 2rem 1rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-form-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

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

    .button-primary {
        width: 100%;
        padding: 1rem;
    }

    .directions-grid,
    .additional-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-intro h2 {
        font-size: 1.5rem;
    }

    .contact-intro p {
        font-size: 1rem;
    }
}

/* ========================================
   RASSEGNA STAMPA - VISTA TIMELINE PROFESIONAL
======================================== */

.rassegna-timeline-item {
    display: block;
    margin-bottom: 3rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

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

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

/* Timeline Marker - Hidden */
.rassegna-timeline-marker {
    display: none;
}

.timeline-dot {
    display: none;
}

.timeline-date {
    display: none;
}

.date-day {
    display: none;
}

.date-month {
    display: none;
}

.date-year {
    display: none;
}

/* Rassegna Card */
.rassegna-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(47, 136, 200, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rassegna-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2F88C8 0%, #F1843D 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.rassegna-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(47, 136, 200, 0.15),
        0 0 0 1px rgba(47, 136, 200, 0.1);
}

.rassegna-card:hover::before {
    transform: scaleX(1);
}

.rassegna-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.rassegna-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(47, 136, 200, 0.1), rgba(47, 136, 200, 0.05));
    color: #2F88C8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(47, 136, 200, 0.2);
}

.rassegna-badge svg {
    width: 16px;
    height: 16px;
}

.rassegna-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.rassegna-card-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
}

.rassegna-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.rassegna-card-title svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: #2F88C8;
    transition: transform 0.3s ease;
}

.rassegna-card-title a:hover {
    color: #2F88C8;
}

.rassegna-card-title a:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.rassegna-card-body {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rassegna-card-body p {
    margin-bottom: 1rem;
}

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

.rassegna-card-body a {
    color: #2F88C8;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.rassegna-card-body a:hover {
    color: #F1843D;
    border-bottom-color: #F1843D;
}

.rassegna-card-body ul,
.rassegna-card-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.rassegna-card-body img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.rassegna-card-body strong {
    color: #2F88C8;
    font-weight: 700;
}

.rassegna-card-footer {
    display: none;
}

.rassegna-read-link {
    display: none;
}

/* Ajustes para el archivo cuando es categoría rassegna-stampa */
.category-rassegna-stampa .site-main {
    max-width: var(--container-width-normal);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.category-rassegna-stampa .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 0;
}

.category-rassegna-stampa article {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .rassegna-timeline-item {
        margin-bottom: 2rem;
    }

    .rassegna-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .rassegna-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .rassegna-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }

    .rassegna-meta {
        font-size: 0.8rem;
    }

    .rassegna-card-title {
        font-size: 1.35rem;
    }

    .rassegna-card-body {
        font-size: 0.95rem;
    }

    .rassegna-read-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }
}

/* =====================================================
   NEW HOME PAGE DESIGN
   ===================================================== */

/* Hero Section */
.home-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 136, 200, 0.85) 0%, rgba(47, 136, 200, 0.6) 50%, rgba(241, 132, 61, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: var(--container-width-narrow);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-primary {
    background: #F1843D;
    color: #fff;
    box-shadow: 0 8px 25px rgba(241, 132, 61, 0.4);
}

.hero-btn-primary:hover {
    background: #e5742a;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(241, 132, 61, 0.5);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Services Section */
.services-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.services-container {
    max-width: var(--container-width-wide);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2F88C8, #F1843D);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2F88C8, #F1843D);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(47, 136, 200, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(47, 136, 200, 0.1) 0%, rgba(241, 132, 61, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #2F88C8 0%, #F1843D 100%);
    transform: scale(1.1);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    fill: #2F88C8;
    transition: fill 0.4s ease;
}

.service-card:hover .service-icon svg {
    fill: #fff;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #2F88C8;
}

.service-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2F88C8;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-link {
    color: #F1843D;
    gap: 0.75rem;
}

/* Video Section */
.video-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 136, 200, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.video-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(241, 132, 61, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.video-container {
    max-width: var(--container-width-normal);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.video-section .section-header h2 {
    color: #fff;
}

.video-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #2F88C8 0%, #1d6ba8 50%, #F1843D 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    pointer-events: none;
}

.newsletter-container {
    max-width: var(--container-width-narrow);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.newsletter-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 280px;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.newsletter-form input[type="email"]::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    padding: 1.2rem 2.5rem;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.newsletter-form button:hover {
    background: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Sponsors Section */
.sponsors-section {
    padding: 5rem 2rem;
    background: #fff;
}

.sponsors-container {
    max-width: var(--container-width-wide);
    margin: 0 auto;
}

.sponsors-section .section-header {
    margin-bottom: 3rem;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.sponsor-item {
    flex: 0 0 auto;
    max-width: 180px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.sponsor-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* =====================================================
   NEW FOOTER DESIGN
   ===================================================== */


.site-footer-new {
    background: #2E87C8;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2E87C8, #F1843D, transparent);
}

.footer-main {
    max-width: var(--container-width-wide);
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

/* =========================================
   FOOTER STYLES (Redesign)
   ========================================= */
.site-footer-new {
    background: #2E87C8;
    color: #ffffff;
    font-size: 0.95rem;
    position: relative;
    border-top: none;
    /* Removed gradient border as bg is now blue */
}

.site-footer-new::before {
    display: none;
    /* Removed pseudo-element */
}

.footer-container {
    max-width: var(--container-width-wide);
    margin: 0 auto;
    padding: 4rem var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forced 4 equal columns */
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-logo-text .light-text {
    font-weight: 300;
    color: #ffffff;
    /* Adjusted to white for contrast on blue */
    opacity: 0.9;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    /* Increased opacity */
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #ffffff;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-contact-info p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.foundation-name {
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
}

.footer-contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-contact-info a:hover {
    text-decoration: underline;
}

.footer-contact-col {
    grid-column: auto;
    /* Ensure it stays in flow */
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: #F1843D;
    transform: translateY(-3px);
}

.footer-donate-btn {
    display: inline-block;
    background: #ffffff;
    color: #2E87C8;
    /* Inverted for contrast */
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-donate-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #2E87C8;
    text-decoration: none;
}

.footer-bottom {

    /* Darker overlay instead of solid color */
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom .footer-container {
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: center;
    /* Centered copyright */
    align-items: center;
    gap: 1rem;
}

/* Header fix for redesign */
.site-header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
    }
}





/* =====================================================
   NEW HOME PAGE - RESPONSIVE
   ===================================================== */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .home-hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .video-section,
    .newsletter-section,
    .services-section,
    .sponsors-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .home-hero {
        height: auto;
        min-height: 450px;
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .newsletter-section h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        min-width: auto;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem 2rem;
    }

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

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo-section .footer-logo {
        justify-content: center;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-menu li a::before {
        display: none;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .sponsors-grid {
        gap: 2rem;
    }

    .sponsor-item {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .video-wrapper {
        border-radius: 15px;
    }

    .newsletter-section h2 {
        font-size: 1.5rem;
    }

    .newsletter-section p {
        font-size: 1rem;
    }

    .footer-social-row .social-link {
        width: 45px;
        height: 45px;
    }
}

/* =====================================================
   HOME PAGE (TEMPLATE: Home Page)
   Styles scoped to .home-page-new
   ===================================================== */

/* =====================================================
   HOME PAGE REDESIGN (TEMPLATE: Home Page)
   Styles scoped to .home-page-redesign
   ===================================================== */

.home-page-redesign {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 1. HERO SECTION (Full Screen) */
.home-page-redesign .hero-section-full {
    position: relative;
    width: 100%;
    height: 83vh;
    /* Full Screen */
    overflow: hidden;
}

.home-page-redesign .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-page-redesign .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.home-page-redesign .slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: kenBurns 20s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.home-page-redesign .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.4) 0%,
            rgba(15, 23, 42, 0.2) 50%,
            rgba(15, 23, 42, 0.6) 100%);
}

.home-page-redesign .slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding-top: 4rem;
}

.home-page-redesign .slide-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.home-page-redesign .slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.home-page-redesign .slide-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.home-page-redesign .slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.home-page-redesign .slide-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s, background 0.3s ease, color 0.3s ease;
}

.home-page-redesign .slide.active .slide-button {
    opacity: 1;
    transform: translateY(0);
}

.home-page-redesign .slide-button:hover {
    background: #F1843D;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(241, 132, 61, 0.4);
}

/* Slider Controls */
.home-page-redesign .slider-prev,
.home-page-redesign .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.home-page-redesign .site-header {
    padding: 1rem 0;
    /* Reduced padding from 2rem 0 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
    /* Explicit height */
    display: flex;
    /* Ensure flex for centering */
    align-items: center;
    /* Vertically center content */
}

.home-page-redesign .header-container {
    width: 100%;
    max-width: var(--container-width-wide);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.home-page-redesign .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    /* Slightly reduced padding on scroll */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
    /* Slightly smaller on scroll */
}

/* Logo Adjustment */
.home-page-redesign .custom-logo-link img {
    height: 50px;
    /* Reduced from 80px to fit in 80px header */
    width: auto;
    transition: all 0.3s ease;
}

.home-page-redesign .site-header.scrolled .custom-logo-link img {
    height: 40px;
}

.home-page-redesign .slider-prev:hover,
.home-page-redesign .slider-next:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}

.home-page-redesign .slider-prev {
    left: 3rem;
}

.home-page-redesign .slider-next {
    right: 3rem;
}

.home-page-redesign .slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.home-page-redesign .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-page-redesign .indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

.home-page-redesign .scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    z-index: 10;
}

.home-page-redesign .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    margin-top: 10px;
    position: relative;
}

.home-page-redesign .wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* 2. NARRATIVE SECTIONS (Zig-Zag) */
.home-page-redesign .split-section {
    padding: 8rem 0;
    overflow: hidden;
}

.home-page-redesign .split-section.alt-bg {
    background-color: #f8fafc;
}

.home-page-redesign .split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.home-page-redesign .split-image .image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.home-page-redesign .split-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.home-page-redesign .split-image:hover img {
    transform: scale(1.05);
}

.home-page-redesign .section-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #2F88C8;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.home-page-redesign .section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.home-page-redesign .section-description {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.home-page-redesign .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.home-page-redesign .feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #334155;
}

.home-page-redesign .check-icon {
    color: #2F88C8;
    font-weight: bold;
    margin-right: 0.75rem;
    background: rgba(47, 136, 200, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.home-page-redesign .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #2F88C8;
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(47, 136, 200, 0.3);
}

.home-page-redesign .btn-primary:hover {
    background: #1d6ba8;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(47, 136, 200, 0.4);
}

.home-page-redesign .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.home-page-redesign .stat-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.home-page-redesign .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #F1843D;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.home-page-redesign .stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* 3. NEWS SECTION (Grid) */
.home-page-redesign .news-section {
    padding: 8rem 0;
    background: #ffffff;
}

.home-page-redesign .section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-page-redesign .section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-top: 1rem;
}

.home-page-redesign .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.home-page-redesign .news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.home-page-redesign .news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.home-page-redesign .news-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.home-page-redesign .news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.home-page-redesign .news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-page-redesign .news-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.home-page-redesign .news-meta {
    margin-bottom: 1rem;
}

.home-page-redesign .news-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2F88C8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-page-redesign .news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.home-page-redesign .news-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-page-redesign .news-card-title a:hover {
    color: #2F88C8;
}

.home-page-redesign .news-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.home-page-redesign .news-read-more {
    font-weight: 600;
    color: #2F88C8;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.home-page-redesign .news-read-more:hover {
    gap: 0.8rem;
}

.home-page-redesign .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-page-redesign .btn-secondary:hover {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

/* 4. NEWSLETTER PARALLAX */
.home-page-redesign .newsletter-parallax {
    position: relative;
    padding: 8rem 0;
    color: #ffffff !important;
    overflow: hidden;
}

.home-page-redesign .newsletter-parallax .section-title {
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.home-page-redesign .newsletter-parallax .section-label {
    color: #ffffff !important;
    opacity: 0.8;
}

.home-page-redesign .newsletter-parallax .section-description,
.home-page-redesign .newsletter-parallax p {
    color: #ffffff !important;
    opacity: 0.95;
}

.home-page-redesign .parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: 0;
}

.home-page-redesign .parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 136, 200, 0.9), rgba(241, 132, 61, 0.8));
    z-index: 1;
}

.home-page-redesign .newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.home-page-redesign .newsletter-title,
.home-page-redesign .newsletter-desc {
    color: white !important;
}

.home-page-redesign .newsletter-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.home-page-redesign .newsletter-form-large .input-wrapper {
    display: flex;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 999px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.home-page-redesign .newsletter-form-large input {
    flex-grow: 1;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    outline: none;
    border-radius: 999px;
}

.home-page-redesign .newsletter-form-large .btn-submit {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.home-page-redesign .newsletter-form-large .btn-submit:hover {
    background: #2F88C8;
}

/* 5. SPONSORS (Infinite) */
.home-page-redesign .sponsors-section-redesign {
    padding: 5rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.home-page-redesign .sponsors-title-simple {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #2F88C8;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.home-page-redesign .sponsors-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.home-page-redesign .sponsors-slider-wrapper::before,
.home-page-redesign .sponsors-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.home-page-redesign .sponsors-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.home-page-redesign .sponsors-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

.home-page-redesign .sponsors-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 90s linear infinite;
}

.home-page-redesign .sponsor-logo-item {
    width: 150px;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page-redesign .sponsor-logo-item:hover {
    opacity: 0.8;
}

.home-page-redesign .sponsor-logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.home-page-redesign .sponsor-logo-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .home-page-redesign .split-container {
        gap: 3rem;
    }

    .home-page-redesign .slide-title {
        font-size: 3.5rem;
    }

    .home-page-redesign .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-page-redesign .slide-title {
        font-size: 2.5rem;
    }

    .home-page-redesign .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .home-page-redesign .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .home-page-redesign .news-grid {
        grid-template-columns: 1fr;
    }

    .home-page-redesign .newsletter-form-large .input-wrapper {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
    }

    .home-page-redesign .newsletter-form-large input {
        text-align: center;
        margin-bottom: 1rem;
    }

    .home-page-redesign .newsletter-form-large .btn-submit {
        width: 100%;
    }
}




@media (max-width: 768px) {
    .home-page-new .hero-title {
        font-size: 2.2rem;
    }

    .home-page-new .hero-subtitle {
        font-size: 1.05rem;
    }

    .home-page-new .feature-card {
        grid-template-columns: 1fr;
    }

    .home-page-new .feature-card-content {
        padding: 1.8rem 1.6rem 2rem;
    }

    .home-page-new .newsletter-input-group {
        flex-direction: column;
    }

    .site-footer-new .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .home-page-new .hero-title {
        font-size: 1.8rem;
    }

    .home-page-new .feature-cards-section,
    .home-page-new .news-newsletter-section,
    .home-page-new .sponsors-section-new {
        padding-inline: 1.1rem;
    }
}

/* CENTRO AUTENTICA STYLES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(47, 136, 200, 0.15);
    border-color: #2F88C8;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(47, 136, 200, 0.1), rgba(241, 132, 61, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2F88C8;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #2F88C8, #F1843D);
    color: #ffffff;
    transform: rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: auto;
}

.service-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #334155;
}

.service-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F1843D;
    font-weight: bold;
}

/* Contact Highlight Section */
.section-contact-highlight .newsletter-box {
    padding: 4rem 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    min-width: 200px;
}

.detail-item strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* =Contact Page Redesign
-------------------------------------------------------------- */

/* Hero Section */
.contatti-hero {
    background: #ffffff;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

.contatti-hero .entry-title {
    /* Resetting to match standard pages more closely */
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.contatti-hero .entry-title::after {
    /* Keeping the underline but making it subtle if needed, or we can remove it if standard pages don't have it. 
       Assuming the "zig zag" design of other pages might have underlines, but standard WP titles often don't.
       I'll make it match the "Archive Header" style seen earlier: border-bottom: 3px solid #2F88C8; 
       but here it is an after element. I will keep it but make it standard blue. */
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.contatti-hero .lead-text {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

.contact-content-wrapper {
    max-width: 1400px;
    padding-bottom: 4rem;
}

/* Contact Grid Top (Cards) */
.contact-grid-top {
    margin-bottom: 4rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f1f1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #ffffff;
    border: 2px solid #eef2f6;
    border-radius: 50%;
    
    align-items: center;
    justify-content: center;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-primary);
}

.contact-icon svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.contact-details p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-details .org-name {
    color: var(--color-primary-dark);
    font-weight: 600;
}

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

.contact-card a:hover {
    color: var(--color-secondary);
}

.directions-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-primary) !important;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.contact-list li {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 0.8rem;
}

.contact-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-list.email-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.contact-list.email-list span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 700;
}

/* Split Section (Form + Sidebar) */
.contact-split-section {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Form Styling */


.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    s color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.fractalimina-contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.fractalimina-contact-form .form-group {
    margin-bottom: 1.5rem;
}

.fractalimina-contact-form .form-group.half {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
}

.fractalimina-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-heading);
}

.fractalimina-contact-form input[type="text"],
.fractalimina-contact-form input[type="email"],
.fractalimina-contact-form input[type="tel"],
.fractalimina-contact-form select,
.fractalimina-contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eef2f6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.fractalimina-contact-form input:focus,
.fractalimina-contact-form select:focus,
.fractalimina-contact-form textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 135, 200, 0.1);
}

.fractalimina-contact-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
}

.fractalimina-contact-form input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.button-block {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    border-radius: 8px;
}

/* Info Column (Sidebar) */
.info-block {
    margin-bottom: 2.5rem;
}

.info-block h4 {
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s;
    font-weight: 600;
}

.social-box:hover {
    transform: translateX(5px);
    text-decoration: none;
}

.social-box.fb:hover {
    background: #e7f5ff;
    color: #1877f2;
}

.social-box.ig:hover {
    background: #fff0f5;
    color: #c13584;
}

.social-box.yt:hover {
    background: #fff0f0;
    color: #ff0000;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dashed #ddd;
}

.transport-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.transport-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.transport-icon {
    font-size: 1.5rem;
    background: #f0f7ff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Map Section */
.map-section {
    border-radius: 16px;
    overflow: hidden;
    filter: grayscale(20%);
    transition: filter 0.3s;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-section:hover {
    filter: grayscale(0%);
}

/* FAQ Teaser */
.faq-teaser {
    text-align: center;
    background: #f9f9f9;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.faq-teaser h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.button-outline {
    display: inline-block;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.button-outline:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-wrapper {
        padding: 2rem;
    }

    .info-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contatti-hero .entry-title {
        font-size: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .fractalimina-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .fractalimina-contact-form .form-group.half {
        width: 100%;
    }

    .info-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Rassegna Stampa Archive Layout */
.site-content.rassegna-archive-page {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 2rem;
    padding-bottom: 4rem;
    max-width: var(--container-width-wide);
    margin: 2rem auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.site-content.rassegna-archive-page #primary {
    flex: 1 1 0;
    min-width: 0;
}

.site-content.rassegna-archive-page #secondary {
    flex: 0 0 300px;
    max-width: 300px;
}

.site-content.rassegna-archive-page .posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Rassegna Stampa List Items - Minimal Professional Style */
.press-archive-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.press-archive-item:first-child {
    border-top: 1px solid #e8e8e8;
}

.press-archive-item:hover .press-title a {
    color: #2F88C8;
}

.press-content-column {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.press-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    text-align: left;
}

.press-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.press-title a:hover {
    color: #2F88C8;
}

.press-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.press-excerpt p {
    margin: 0;
}

.press-action-column {
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.press-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    color: #666;
    transition: all 0.25s ease;
}

.press-read-btn:hover {
    border-color: #2F88C8;
    background: #2F88C8;
    color: #fff;
}

.press-read-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .press-archive-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .press-title {
        font-size: 1rem;
    }

    .press-action-column {
        align-self: flex-start;
        padding-top: 0;
    }
}

@media (max-width: 991px) {

    .site-content.rassegna-archive-page #primary,
    .site-content.rassegna-archive-page #secondary {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .site-content.rassegna-archive-page {
        flex-direction: column;
    }
}

/* Video Archive Grid */
.site-content.video-archive-page {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 2rem;
    padding-bottom: 4rem;
    max-width: var(--container-width-wide);
    margin: 2rem auto;
    padding-left: 0;
    padding-right: var(--container-padding);
}

.site-content.video-archive-page #primary {
    flex: 1 1 0;
    min-width: 0;
}

.site-content.video-archive-page #secondary {
    flex: 0 0 300px;
    max-width: 300px;
}

@media (max-width: 991px) {

    .site-content.video-archive-page #primary,
    .site-content.video-archive-page #secondary {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .site-content.video-archive-page {
        flex-direction: column;
    }
}

/* Video Modal - Hidden by default */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.video-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.video-modal-close:hover {
    color: #F1843D;
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Removed cursor pointer as interaction is now direct iframe */
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.video-thumb-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.video-thumb-wrapper iframe,
.video-thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Removed unneeded modal/overlay styles and play icons as player is direct */

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(241, 132, 61, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-icon::before {
    content: "▶";
    margin-left: 4px;
}

.video-card:hover .video-play-icon {
    background: #F1843D;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-fallback-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Removed .video-card-body and .video-card-title as they are no longer used */

/* Testimonial Cards */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 4rem 0;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.testimonial-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    height: 100%;
}

.testimonial-card:nth-child(even) .testimonial-content-wrapper {
    flex-direction: row-reverse;
    text-align: right;
}

.testimonial-image {
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    padding: 2.5rem;
    background: transparent;
}

/* Adjust image for circle within the flip layout or keep as side panel?
   User asked for "flip", usually implying side-by-side.
   Previous design was circular. Let's keep the circle as it looks more "testimonial-like"
   but placed in a container.
*/

.testimonial-image .img-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(46, 135, 200, 0.15);
}

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

.testimonial-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    padding-left: 0;
}

.testimonial-card:nth-child(even) .testimonial-text {
    align-items: flex-end;
    padding-left: 2.5rem;
    padding-right: 0;
}

.testimonial-quote-icon {
    margin-bottom: 1rem;
    color: var(--color-primary);
    opacity: 0.8;
    transform: scale(1.2);
    transform-origin: left;
}

.testimonial-card:nth-child(even) .testimonial-quote-icon {
    transform-origin: right;
}

.testimonial-body {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 300;
}

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

.testimonial-header {
    margin-top: auto;
    border-left: 3px solid var(--color-secondary);
    padding-left: 1rem;
}

.testimonial-card:nth-child(even) .testimonial-header {
    border-left: none;
    border-right: 3px solid var(--color-secondary);
    padding-left: 0;
    padding-right: 1rem;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
}

@media (max-width: 768px) {

    .testimonial-content-wrapper,
    .testimonial-card:nth-child(even) .testimonial-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-image {
        padding: 2rem 2rem 0;
    }

    .testimonial-text,
    .testimonial-card:nth-child(even) .testimonial-text {
        align-items: center;
        padding: 1.5rem 2rem 2.5rem;
    }

    .testimonial-quote-icon,
    .testimonial-card:nth-child(even) .testimonial-quote-icon {
        transform-origin: center;
        margin-bottom: 0.5rem;
    }

    .testimonial-header,
    .testimonial-card:nth-child(even) .testimonial-header {
        border-left: none;
        border-right: none;
        border-top: 3px solid var(--color-secondary);
        padding: 1rem 0 0;
    }
}