/*
Theme Name: Macoev Theme
Theme URI: https://macoev.it
Author: Alessio Fedi
Description: Tema custom FSE Dark Tech basato su design kit statico.
Version: 1.1.0.7
Requires at least: 6.0
Tested up to: 6.4
*/

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #121212;
    --accent-color: #A4FF00;
    --text-white: #ffffff;
    --text-gray: #a1a1a1;
    --nav-bg: #222222;
    --font-size-subtitle1: 1rem;
    --font-weight-subtitle1: 700;
    --font-size-body2: 0.875rem;
    --font-weight-body2: 400;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 24px;
    overflow-x: hidden;
    margin: 0;
}

/* Fix per WordPress Admin Bar */
body.admin-bar header {
    top: 32px !important;
}

hr {
    width: 100%;
    border-color: var(--text-gray);
    border-width: .75px;
}

/* HEADER */
header {

    position: sticky;
    top: 0px;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 1rem 40px;
    height: auto;
    /* Adattato per WP */
    min-height: 45px;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

header.scrolled {
    background-color: var(--bg-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 40px;
}

header .site-header {
    width: 100%;
}

.logo {
    /* Assicurati di caricare logo.svg nella root del tema */
    background-image: url('logo.svg');
    background-repeat: no-repeat;
    background-position: center center;
    width: 99px;
    height: 18px;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    display: block;
    /* Fix per link vuoti */
}

/* La Nav "Pillola" centrale */
.nav-pill {
    background-color: var(--nav-bg);
    padding: 5px;
    border-radius: 50px;
    display: flex;
    gap: 5px;
    list-style: none;
    align-items: center;
}

/* Gestione Dropdown Desktop */
.nav-pill .wp-block-navigation-item.has-child {
    position: relative;
}

.nav-pill .wp-block-navigation__submenu-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nav-bg);
    border-radius: 15px;
    padding: 10px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-pill .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
.nav-pill .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
    display: flex;
}

/* Freccetta dropdown */
.nav-pill .wp-block-navigation-item.has-child {
    display: flex;
    align-items: center;
}

.nav-pill .wp-block-navigation-submenu__toggle {
    background: transparent;
    border: none;
    padding: 0 10px 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-gray);
    transition: color 0.3s;
}

.nav-pill .wp-block-navigation-item.has-child:hover .wp-block-navigation-submenu__toggle {
    color: var(--text-white);
}

.nav-pill .wp-block-navigation-submenu__toggle svg {
    display: none !important; /* Nasconde l'icona predefinita di WP */
}

.nav-pill .wp-block-navigation-submenu__toggle::after {
    content: "\ea4e"; /* remixicon arrow-down-s-line */
    font-family: 'remixicon' !important;
    font-size: 1.1rem;
    font-weight: 400;
}

.nav-pill .wp-block-navigation__submenu-container .wp-block-navigation-item {
    width: 100%;
    border-radius: 0;
}

.nav-pill .wp-block-navigation__submenu-container a {
    width: 100%;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.nav-pill .wp-block-navigation__submenu-container a:hover {
    background-color: rgba(255,255,255,0.05);
}

.nav-pill a {
    text-decoration: none;
    color: var(--text-gray) !important;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
}

.nav-pill a:hover,
.nav-pill a:focus {
    color: var(--text-white) !important;
}

.nav-pill a.active,
.nav-pill a[aria-current="page"] {
    background-color: var(--accent-color);
    color: #000 !important;
    font-weight: 700;
}

/* HERO SECTION */
.hero {
    display: flex;
    padding: 80px 40px;
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    flex-direction: column;
    gap: 120px;
    /* Rimosso row-gap/column-gap ridondanti */
}

.hero-container {
    z-index: 2;
}

.hero-content {
    max-width: 60%;
    z-index: 2;
    position: relative;
}

/* Tag in alto a sinistra */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1F1F1F;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem !important;
    color: var(--text-gray);
    margin-bottom: 24px;
    width: fit-content;
}

.tag-pill i {
    color: var(--accent-color);
}

.tag-pill figure img {
    width: 24px;
    height: 24px;
    object-fit: none;
}

.tag-pill p {
    margin: 0 !important;
}

/* Tipografia Hero */
h1 {
    font-size: var(--wp--preset--font-size--h-1);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-white);
}

.text-highlight {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    /* max-width: 500px; */
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Bottoni */
.btn-primary,
.btn-cta-small,
button[type="submit"] {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-primary:hover,
.btn-cta-small:hover {
    transform: scale(1.05);
}

/* PATTERNS */
.hero-pattern {
    position: absolute;
    top: 5vh;
    width: 100%;
    max-height: 70vh;
    /* max-width: 500px; */
    height: 100%;
    background-image: url(pattern_macoev.svg);
    background-repeat: no-repeat;
    background-position: right top;
    z-index: 1;
    background-size: contain;
    pointer-events: none;
}

/* ARTICLE / CARDS */
.article {
    color: #424242;
    display: flex;
    align-items: center;
    padding: 50px 40px;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: 80px;
    z-index: 100;
    text-align: center;
    flex-direction: column;
}

.article-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    /*background-color: white;*/
    z-index: 100;
    gap: 60px;
    width: 100%;
}

.article-header {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.article-header svg {
    width: 60px;
    height: 60px;
    color: var(--accent-color);
}

.article-header img {
    width: 60px;
    height: 60px;
}

.article-header p.description {
    font-size: 1rem;
    font-weight: 700;
}

h2 {
    font-size: var(--wp--preset--font-size--h-2);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: var(--wp--preset--font-size--h-3);
    /* 48px approx */
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    margin: 0;
}

h4 {
    font-size: var(--wp--preset--font-size--h-4);
    font-weight: 700;
    line-height: 1.3;
}

h5 {
    font-size: var(--wp--preset--font-size--h-5);
    font-weight: 700;
    line-height: 1.4;
}

h6 {
    font-size: var(--wp--preset--font-size--h-6);
    /* 20px */
    font-weight: bold;
    margin: 0 0 10px 0;
}

/* WIDGETS & CARDS */
.widget-partner-container {
    display: flex;
    width: 100%;
    justify-content: center;
}

.article-cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
    /* Ridotto per evitare rotture su schermi medi */
    margin-top: 50px;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-card-detail {
    display: flex;
    flex: 1;
    min-width: 280px;
    gap: 12px;
}

/* TESTIMONIALS */
.testimonials-section {
    background-color: #FFFFFF;
    color: #424242;
    padding: 0;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.testimonials-section.dark {
    background-color: var(--bg-color);
    color: var(--text-white) !important;
    padding: 50px 0;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.header-text {
    max-width: 800px;
    text-align: left;
}

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

/* TOGGLE */
.toggle-switch {
    background-color: #1F1F1F;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    gap: 5px;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
}

.toggle-btn.active {
    background-color: #B4F716;
    color: #121212;
}

.is-hidden {
    display: none !important;
}

/* REVIEWS GRID */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Più responsive */
    gap: 60px;
    text-align: center;
}

.review-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.review-card h6, .review-card p {
    margin-block-start: 0;
    text-align: center;
}

.review-card .fixed-icon img {
    object-fit: contain;
    width: 48px !important;
    height: 48px !important;
}

.review-img {
    background-color: #eee;
    /* Placeholder se immagine manca */
    height: 250px;
    width: 100%;
    border-radius: 20px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
}

.quote {
    font-style: italic;
    font-size: 14px;
    line-height: 1.6;
}

/* FOOTER */
footer {
    position: relative;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    align-items: center;
    background-color: var(--bg-color);
    width: 100%;
}

.announce {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.announce p {
    color: var(--text-white) !important;
    font-size: 16px;
    max-width: 875px;
    margin: 0 auto;
}

.footer-patterns {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-pattern-left,
.footer-pattern-right,
.footer-pattern-bottom {
    position: absolute;
    background-repeat: no-repeat;
    z-index: 1;
}

.footer-pattern-left {
    top: 0;
    left: 0;
    width: 109px;
    height: 100%;
    max-height: 50vh;
    background-image: url('pattern_bottom_left_macoev.svg');
    background-size: contain;
}

.footer-pattern-right {
    top: 0;
    right: 0;
    width: 109px;
    height: 100%;
    max-height: 50vh;
    background-image: url('pattern_bottom_right_macoev.svg');
    background-position: top right;
    background-size: contain;
}

.footer-pattern-bottom {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 114px;
    background-image: url(pattern_bottom_bottom_macoev.svg);
    max-width: 50vw;
    background-position: bottom right;
    background-size: contain;
}

.main-footer {
    /*background-color: #121212;*/
    color: #fff;
    padding: 60px 40px 20px 40px;
    width: 100%;
    border-top: 1px solid #222;
    z-index: 2;
}

.footer-bottom {
    display: flex;
    gap: 30px;
    border-top: 1px solid #222;
    /* Linea separatrice se serve, o rimuovi */
    padding-top: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-bottom p {
    margin: 0 !important;
}

.footer-bottom a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-bottom a:hover {
    color: var(--text-white);
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    justify-content: flex-start;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-block h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.footer-block h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.footer-block p {
    color: #a1a1a1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* CONTACT PILLS */
.contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #ccc;
    transition: border-color 0.3s;
}

.contact-pill:hover {
    border-color: var(--accent-color);
}

.contact-pill i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* LOGHI PARTNER */
.partners-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.partners-logos figure {
    margin: 0;
}

.partners-logos img {
    opacity: 0.8;
    transition: opacity 0.3s;
    max-height: 40px;
    width: auto;
}

.partners-logos img:hover {
    opacity: 1;
}

.newsletter-form {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #444;
    border-radius: 50px;
    padding: 5px;
    background-color: #1a1a1a;
    width: 100%;
    max-width: 400px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 20px;
    width: 100%;
    outline: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header {
        padding: 20px;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

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

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

    .nav-pill {
        overflow-x: auto;
        max-width: 100%;
    }

    .article-cards {
        flex-direction: column;
    }
}

/* CAROUSEL SWIPER */
.macoev-carousel-section {
    padding: 30px 30px;
    background-color: inherit;
    border-radius: 80px;
    margin: 0 auto;
    max-width: 1440px;
    color: inherit;
    width: 100%;
}

.macoev-carousel {
    position: relative;
    padding-bottom: 50px !important; /* Spazio per la paginazione */
}

.macoev-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.macoev-carousel .review-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

/* Frecce personalizzate */
.macoev-carousel .swiper-button-prev,
.macoev-carousel .swiper-button-next {
    color: #ccc;
    transition: color 0.3s, opacity 0.3s;
    width: 24px;
    height: 48px;
}

.macoev-carousel .swiper-button-prev {
    background-image: url('chevron-left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.macoev-carousel .swiper-button-next {
    background-image: url('chevron-right.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.macoev-carousel .swiper-button-prev:hover,
.macoev-carousel .swiper-button-next:hover {
    opacity: 0.7;
}

.macoev-carousel .swiper-button-prev:after,
.macoev-carousel .swiper-button-next:after {
    display: none;
}

/* Paginazione a punti */
.macoev-carousel .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.macoev-carousel .swiper-pagination-bullet-active {
    background: var(--accent-color);
}

.wp-block-navigation .wp-block-navigation-item {
    align-items: center;
    background-color: inherit;
    display: flex;
    position: relative;
    border-radius: 50%;
}

/* --- RESPONSIVE UTILITIES (Per Header/Footer Mobile) --- */

/* Nascondi su Mobile (schermi < 900px) */
@media (max-width: 900px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Nascondi su Desktop (schermi > 901px) */
@media (min-width: 901px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* Stile base per l'header mobile */
.header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px; /* Padding ridotto per mobile */
    margin: 0;
}

/* --- MENU MOBILE CUSTOM (Stile Pillole) --- */

/* 1. Container Overlay: Applichiamo il layout SOLO quando è aperto (.is-menu-open) */
.mobile-menu-custom .wp-block-navigation__responsive-container.is-menu-open {
    background-color: #121212 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Assicuriamo che copra tutto */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Regola di sicurezza: Se non ha la classe .is-menu-open, DEVE essere nascosto */
.mobile-menu-custom .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
}

/* 2. Resetta la lista (UL) e la allinea al centro verticalmente */
.mobile-menu-custom .wp-block-navigation__responsive-container .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    gap: 15px; /* Spazio tra i bottoni */
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 3. Stile base per ogni elemento della lista (LI) */
.mobile-menu-custom .wp-block-navigation__responsive-container .wp-block-navigation-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sottomenu Mobile */
.mobile-menu-custom .wp-block-navigation__submenu-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
    padding: 10px 0;
    list-style: none;
}

.mobile-menu-custom .wp-block-navigation-item.has-child .wp-block-navigation-item__content {
    background-color: transparent;
    font-weight: 700;
    margin-bottom: 5px;
}

.mobile-menu-custom .wp-block-navigation-item.has-child .wp-block-navigation-item__content:after {
    display: none; /* Rimuoviamo la freccia su mobile per pulizia */
}

.mobile-menu-custom .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    width: 180px;
    font-size: 0.95rem;
    padding: 10px 0 !important;
    opacity: 0.8;
}

/* 4. Trasforma i LINK (A) in Pillole / Bottoni */
.mobile-menu-custom .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    display: block;
    width: 200px; /* Larghezza fissa per tutte le pillole */
    padding: 14px 0 !important;
    background-color: #262626; /* Grigio scuro per i non attivi */
    color: #ffffff;
    text-align: center;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* 5. Stato Attivo/Corrente (Verde) */
.mobile-menu-custom .wp-block-navigation__responsive-container .current-menu-item .wp-block-navigation-item__content {
    background-color: var(--accent-color); /* #B4F716 */
    color: #121212; /* Testo nero */
    font-weight: 700;
}

/* 6. Hover */
.mobile-menu-custom .wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* 7. Icona di Chiusura (X) */
.mobile-menu-custom .wp-block-navigation__responsive-container-close {
    background: transparent;
    top: 25px;
    right: 20px;
}

.mobile-menu-custom .wp-block-navigation__responsive-container-close svg {
    fill: #fff;
    width: 32px;
    height: 32px;
}

/* 8. Logo finto in alto a sinistra nell'overlay */
.mobile-menu-custom .wp-block-navigation__responsive-container::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 20px;
    width: 120px;
    height: 30px;
    background-image: url('logo.svg'); /* Assicurati che logo.svg sia nel tema */
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
}

.is-style-default {
    padding-top: 0;
    width: fit-content;
    text-align: center;
}

.macoev-marker,
.is-style-marker {
    background-image: url(macoev-marker.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-position-x: left;
    background-position-y: center;
    background-size: contain;
    padding-left: .875em;
    padding-top: 0;
    width: fit-content;
}

.subtitle1 {
    font-size: var(--font-size-subtitle1);
    font-weight: var(--font-weight-subtitle1);
}

.body2 {
    font-size: var(--font-size-body2);
    font-weight: var(--font-weight-body2);
}

/* SECTION WITH IMAGE */

.section-with-image-container {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    gap: 5em;
    padding-bottom: 5em;
}

/* Stile per invertire immagine e testo */
.is-style-reverse .section-with-image-container {
    flex-direction: row-reverse;
}

.section-with-image-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: center;
    text-align: left;
    max-width: 50vw;
    min-height: 450px;
}

.section-with-image-content p {
    font-size: revert !important;
    margin: 0 !important;
}

.section-with-image-content h4 {
    width: 100%;
}

.section-with-image-content button {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.section-with-image-container img {
    max-height: 450px;
    max-width: 450px;
    border-radius: 8px;
    filter: grayscale(1);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 900px) {

    .hero-pattern {
        display: none;
    }

    .section-with-image-container {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .section-with-image-container img {
        max-height: 100%;
        max-width: 100%;
    }

    .section-with-image-content {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-content: flex-start;
        align-items: flex-start;
        flex-wrap: nowrap;
        justify-content: center;
        text-align: left;
        max-width: 100%;
    }
}

.section-with-review-container {
    margin-block-end: 5em;
}

.section-with-review-container .reviews-grid {
    margin-block-start: 5em;
}

.journal-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    text-align: left;
}

.journal-card h6, .journal-card p, .journal-card .caption {
    margin-block-start: 0;
    text-align: left;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.journal-card figure {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

.journal-card img {
    object-fit: cover;
    width: 100% !important;
    height: 250px !important;
    border-radius: 8px;
    filter: grayscale(1);
}

.ellipsis-max-3-lines {
    line-clamp: 3;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.caption {
    font-size: 0.75rem;
    font-weight: 400;
}

/* Quote */

/* center the blockquote in the page */
.blockquote-wrapper {
    display: flex;
    height: 100vh;
    padding: 0 20px;
}

/* Blockquote main style */
.blockquote {
    position: relative;
    font-family: 'Manrope', sans-serif;
    max-width: 400px;
    margin: 80px auto;
    align-self: center;
}

/* Blockquote header */
.blockquote h1 {
    font-family: 'Manrope', sans-serif;
    position: relative; /* for pseudos */
    color: inherit;
    font-size: 16px !important;
    line-heigth: 1.2rem !important;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    border: 2px solid #a4ff00;
    border-radius:20px;
    padding: 25px;
    displaY: flex;
    flex-direction: column-reverse;
    gap: 1em;
}

/* Blockquote right double quotes */
.blockquote h1:after {
    content:"";
    position: absolute;
    border: 2px solid #a4ff00;
    border-radius: 0 100% 0 0;
    width: 60px;
    height: 60px;
    bottom: -62px;
    left: 50px;
    border-bottom: none;
    border-left: none;
    z-index: 3;
}

.blockquote h1:before {
    content:"";
    position: absolute;
    width: 80px;
    border: 6px solid #fff;
    bottom: -3px;
    left: 50px;
    z-index: 2;
}

/* increase header size after 600px */
@media all and (min-width: 600px) {
    .blockquote h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

}

/* Blockquote subheader */
.blockquote h4 {
    position: relative;
    color: #424242;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    padding-top: 15px;
    z-index: 1;
    margin-left:150px;
    padding-left:12px;
}


.blockquote h4:first-letter {
    margin-left:-12px;
}

.blockquote img {
    filter: grayscale(1);
    height: 3em;
    object-fit: contain;
}