/*
  ================================================================================
  LOCAL FONT DEFINITIONS
  - Add this CSS to the top of your main stylesheet.
  - Make sure the url() paths correctly point to your /assets/fonts/ directory.
  ================================================================================
*/

/*
 * ===============================================================================
 * Montserrat Font Family
 * ===============================================================================
 */

/* Montserrat Regular (400) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* Tells the browser to show a fallback font while this one loads */
    src: url('../assets/fonts/Montserrat-Regular.subset.woff2') format('woff2'),
    url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
}

/* Montserrat Bold (700) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/Montserrat-Bold.subset.woff2') format('woff2'),
    url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
}

/*
 * ===============================================================================
 * Inter Font Family
 * ===============================================================================
 */

/* Inter Extra-Bold (800) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../assets/fonts/Inter_28pt-ExtraBold.subset.woff2') format('woff2'),
    url('../assets/fonts/Inter_28pt-ExtraBold.ttf') format('truetype');
}


:root {
    --dark-color: #000;
    --light-color: #FFFFFF;
    --accent-color: #ff0000;
    --text-color-dark: #1f1f1f;
    --text-color-light: #e5e5e5;
    --text-color-subtle: #cfcfcf;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #333;
}

button {
    font-family: inherit;
}


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

.mini {
    min-height: 10vh !important;
}

.section-wrapper {
    padding-top: 100px;
    padding-bottom: 100px;
    overflow-x: hidden;
}

.section-wrapper.dark {
    padding-top: 20px;
    padding-bottom: 40px;
    overflow-x: hidden;
}

.section-wrapper-small {
    padding-top: 0px;
    padding-bottom: 0px;
}

.section-wrapper.dark,
.section-wrapper-small.dark {
    background-color: var(--dark-color);
    color: var(--text-color-light);
}

.section-wrapper.light-gray {
    background-color: #f9f9f9;
}

p.section-subline {
    font-size: 1.05rem;
    color: #6b7280;
}

.section-subline::before {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 2px;
    background-color: currentColor;
    margin-right: 0.75rem;
    vertical-align: middle;
    opacity: 0.4;
}


nav {
    background-color: var(--light-color);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

nav .logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.2rem;
}

nav a {
    color: var(--text-color-dark);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

nav .logo img {
    height: 30px;
    width: auto;
}

.nav-links .nav-cta {
    background-color: var(--accent-color);
    color: var(--light-color) !important;
    padding: 8px 18px;
    border-radius: 5px;
    margin-left: 30px;
    transition: all 0.2s ease;
}

.nav-links .nav-cta:hover {
    transform: scale(1.05);
    color: var(--light-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu .nav-cta {
    background-color: var(--accent-color);
    color: var(--light-color) !important;
    padding: 8px 18px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.nav-menu .nav-cta:hover {
    transform: scale(1.05);
}

input.menu-toggle,
#menu-toggle {
    display: none !important;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: 0.3s;
}

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

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


.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60vh;
}

.hero .mini {
    min-height: unset !important;
}

.hero-text {
    flex-basis: 50%;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 2.7rem);
    margin: 0 0 20px 0;
    line-height: 1.1;
    color: var(--light-color);
    letter-spacing: -1px;
}

.hero .sub-headline {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color-subtle);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    gap: 25px;
    align-items: center;
    opacity: 0.6;
}

.hero-badges img {
    height: 45px;
    filter: grayscale(100%);
}

.expertise-footer {
    border-top: 1px solid #222;
}

.highlight-message {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    border-left: 3px solid #ff0000;
    padding-left: 15px;
}

.section-wrapper-small h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-wrapper-small .sub-headline {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color-subtle);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-video {
    flex-basis: 45%;
    text-align: center;
}

.hero-video video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero-image {
    flex-basis: 45%;
    text-align: center;
}

.image-50 {
    width: 50%;
    display: block;
}

.image-50 img {
    width: 100%;
    height: auto;
}

.content-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.grid-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.grid-item p {
    color: #555;
}

#result .grid-item p {
    min-height: 170px;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-align: justify;
}

.mini-artifact {
    margin-top: auto;
    margin-bottom: auto;
    font-size: .95rem;
    color: #444 !important;
    padding-top: 1rem;
    position: relative;
    text-align: center;
}

.grid-item .mini-artifact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background-color: #e0e0e0;
}

#implementation .grid-item p {
    hyphens: auto;
    -webkit-hyphens: auto;
    text-align: justify;
}

#philosophy .quote-wrapper {
    position: relative;
    max-width: 750px;
    margin: 40px auto 0 auto;
    padding: 20px 40px;
}

#philosophy .opening-quote {
    position: absolute;
    top: -20px;
    left: 0;
    font-family: 'Times New Roman', serif;
    font-size: 12rem;
    color: #e0e0e0;
    color: #ff000040;
    line-height: 1;
    z-index: 1;
}

#philosophy blockquote {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 0;
    color: #444;
}

#authority .authority-container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.authority-container p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

#authority img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

#authority img:hover {
    -webkit-filter: unset;
    filter: unset;
    transition: filter 0.6s ease;
}

#authority h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
}

#cta h2, #cta .sub-headline {
    color: var(--light-color);
}

#expertise-intro .content-section {
    max-width: 800px;
    hyphens: auto;
    text-align: justify;
}

#services .services-header {
    padding: 40px;
}

#services .services-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color-dark);
    margin: 0;
}

#services .services-content {
    display: flex;
}

#services .services-list {
    flex: 0 0 40%;
    padding: 40px;
}

#services .service-item {
    padding: 16px 0;
    border-bottom: 1px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #666;
}

#services .service-item:last-child {
    border-bottom: none;
}

#services .service-item:hover {
    color: var(--text-color-dark);
}

#services .service-item.active {
    font-weight: 700;
    color: var(--text-color-dark);
}

#services .service-item.active::before {
    content: '→';
    position: absolute;
    left: 0;
}

#services .service-detail {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#services .problem {
    text-align: justify;
}

#services .solution {
    text-align: justify;
}

#services .detail-content {
    max-width: 500px;
    text-align: center;
    display: none;
    opacity: 0;
}

#services .detail-content.active {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

#services .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#services .service-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    text-align: justify;
}

#services .cta-button:hover {
    background-color: var(--text-color-dark);
    color: white;
}

.cta-center {
    text-align: center;
    margin-top: 1.5rem;
}

#readiness {
    min-height: 400px;
}

#quiz {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 10vh;
    text-align: center;
    padding: 2rem;
}

#start-btn {
    font-size: 1.2rem;
    width: 250px;
}

.quiz-form {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.quiz-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    font-weight: 600;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.quiz-panel.active {
    display: block;
    pointer-events: auto;
}

.quiz-panel.hiding {
    opacity: 0 !important;
    transform: translateY(8px) !important;
}

.quiz-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.answer-btn {
    padding: .7rem 1.4rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    background: #333;
    transition: background .2s ease;
    color: #fff;
    font-weight: 700;
}

.answer-btn:hover {
    background: #000000;
}

.quiz-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.9rem;
    color: var(--text-color-subtle);
}

footer a {
    color: var(--text-color-subtle);
    text-decoration: none;
    margin: 0 15px;
}

.cta-button {
    display: inline-block;
    background-color: #ff0000bf;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--light-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    transition: transform 0.2s ease;
}

.red {
    background-color: #ff0000;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-features {
    font-size: 0.8rem;
    font-style: italic;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #333333;
    border: 2px solid #333333;
    padding: 18px 40px;
    margin-top: 0.75em;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.btn-secondary:hover {
    background: #333333;
    color: #ffffff;
}

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

.highlight-text-bw {
    color: #000 !important;
    background-color: #fff;
    border-radius: 5px;
    font-size: 1.6rem;
    padding-left: 6px;
    padding-right: 6px;
}

.pen-highlight {
    font-weight: bolder;
    background: linear-gradient(104deg, rgba(130, 255, 173, 0) 0.9%, rgb(255, 130, 130) 2.4%, rgba(255, 130, 130, 0.5) 5.8%, rgba(255, 130, 130, 0.1) 93%, rgba(130, 255, 173, 0.7) 96%, rgba(130, 255, 1732, 0) 98%), linear-gradient(183deg, rgba(130, 255, 173, 0) 0%, rgba(130, 255, 173, 0.3) 7.9%, rgba(130, 255, 173, 0) 15%);
    padding: 0.6em 13.7px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    margin: 0;
    border-radius: 7.5px;
    text-shadow: -12px 12px 9.8px rgba(255, 130, 130, 0.7), 21px -18.1px 7.3px rgba(255, 255, 255, 1), -18.1px -27.3px 30px rgba(255, 255, 255, 1);
}

.text-light {
    color: var(--text-color-light) !important;
}

.vcard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.vcard {
    background-color: transparent;
    min-height: 455px;
    perspective: 1500px;
    border: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}


.vcard:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;


    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: left;


    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
}

.card-front {
    background-color: var(--light-color);
}

.card-back {
    background-color: #f8f9fa;
    color: var(--text-color-dark);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}


.card-front h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color-dark);
    margin-top: 0;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.card-front p {
    color: #555;
    flex-grow: 1;
    text-align: justify;
}

.card-front .card-link {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 20px;
}

.card-front .card-link:after {
    content: ' →';
}


.card-back h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-top: 0;
    color: var(--dark-color);
}

.card-back p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
    margin-top: auto;
    padding-top: 1rem;
    position: relative;
}

.subtext {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 70%;
}


.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 80px;
    text-align: left;
}

.column-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.column-text .intro-paragraph {
    text-align: left;
    max-width: none;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.column-text .problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.column-text .problem-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.column-text .problem-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color-subtle);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: unset !important;
}

.language-switcher a:hover {
    color: var(--dark-color);
}

.language-switcher a.active {
    color: var(--dark-color);
    cursor: default;
}

.language-switcher span {
    color: #e0e0e0;
    font-size: 1.1rem;
}

.proof-strip {
    margin-top: 1.5rem;
}

.proof-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.proof-list li {
    list-style: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid #000000;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #ff000038
}

.highlight-box {
    background-color: #C1E1C1;
    padding: 20px;
    border: 1px solid #265600;
    border-radius: 8px;
    margin: 30px 0;
}

.preparation-box {
    text-align: left;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.preparation-box ol {
    padding-left: 20px;
}

.preparation-box ol li {
    margin-bottom: 15px;
}

.preparation-box .linkedin-link {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.cta-button.linkedin {
    background-color: #333 !important;
    margin-top: 20px;
}

.text-subtle {
    font-size: 0.85rem;
    font-weight: 800;
    color: #aaa;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

#consentmanager {
    float: right;
}

.no-select {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.mobile-lang {
    display: none;
}

img, video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .column-image {
        max-width: 100%;
        margin: 0 0 40px 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 60px;
    }

    .hero .sub-headline {
        margin-left: auto;
        margin-right: auto;
    }

    .hamburger {
        display: flex;
    }

    /* Hide desktop language switcher on mobile */
    .desktop-lang {
        display: none !important;
    }

    /* Show mobile language switcher */
    .mobile-lang {
        display: flex !important;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-top: 20px; /* Less spacing */
    }

    .mobile-lang a {
        font-size: 1.3rem !important; /* Same as menu items */
        padding: 10px 0;
    }

    .mobile-lang span {
        font-size: 1.3rem;
        color: #ccc;
    }

    .language-switcher {
        position: static;
    }

    /* Hide desktop nav-links */
    nav .nav-links {
        display: none;
    }

    /* Mobile menu - hidden by default */
    .nav-menu {
        display: none;
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background: var(--light-color);
        flex-direction: column;
        padding: 40px;
        gap: 25px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu a {
        margin-left: 0 !important;
        font-size: 1.1rem;
        padding: 10px 0;
    }

    /* Show menu when checkbox is checked */
    #menu-toggle:checked ~ .nav-right .nav-menu {
        display: flex !important;
    }

    /* Hamburger to X animation */
    #menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    nav .nav-links {
        display: none;
    }


    nav .logo {
        font-size: 1.7rem;
    }

    h1, .hero h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    #process h3 {
        min-height: unset;
    }

    #authority .authority-container {
        flex-direction: column;
        text-align: left;
    }

    .language-switcher {
        position: static;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .language-switcher a {
        font-size: 0.8rem;
    }

    div#services {
        padding-bottom: unset;
    }

    #quiz {
        width: unset;
    }

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

    #services .services-content {
        flex-direction: column;
    }

    #services .services-list {
        border-right: none;
        padding: 20px;
    }

    #services .service-detail {
        padding: 30px 20px;
        min-height: 350px;
    }

    #services .service-icon {
        width: 80px;
        height: 80px;
    }

    #services .service-description {
        font-size: 1rem;
    }

    .proof-list {
        padding: 0;
    }

    .pill {
        width: 100%;
        padding: .6rem .9rem;
        border-radius: 14px;
        text-align: center;
        hyphens: auto;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .grid-item p {
        min-height: unset;
    }

    .section-subline::before {
        content: none;
        display: none;
        width: 0;
        height: 0;
        margin-right: 0;
        opacity: 1;
    }

    .hero.container.mini .hero-image {
        display: none;
    }

    .hero.container.mini .hero-text {
        margin-top: 60px;
    }


}

@media (max-width: 1060px) {
    .grid-container {
        grid-template-columns: 1fr !important;
    }

    #result .grid-item p {
        min-height: unset;
    }
}

/* 2-Column Grid */
.grid-container-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin: 40px 0;
    position: relative;
}

@media (max-width: 768px) {
    .grid-container-2col {
        grid-template-columns: 1fr;
        gap: 80px;
    }
}

.grid-container-2col .grid-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.grid-container-2col .grid-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

/* Arrow from left edge of screen into first box */
.grid-container-2col .grid-item:first-child::before {
    content: '';
    position: absolute;
    left: calc(-100vw + 100%); /* Extends to left edge of viewport */
    top: 50%;
    width: calc(100vw - 100%); /* Full width from screen edge to box */
    height: 2px;
    background: #e63946;
    transform: translateY(-1px);
}

.grid-container-2col .grid-item:first-child::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 9px solid #e63946;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateY(-6px);
}

/* Arrow between first and second box */
.grid-container-2col::after {
    content: '';
    position: absolute;
    left: calc(50% - 30px);
    top: 50%;
    width: 60px;
    height: 2px;
    background: #e63946;
    transform: translateY(-1px);
}

.grid-container-2col::before {
    content: '';
    position: absolute;
    left: calc(50% + 21px);
    top: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid #e63946;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateY(-6px);
    z-index: 1;
}

/* Mobile: vertical arrows */
@media (max-width: 768px) {

    /* Arrow between boxes (vertical) */
    .grid-container-2col::after {
        left: 50%;
        top: calc(50% - 40px);
        width: 2px;
        height: 80px;
        transform: translateX(-1px);
    }

    .grid-container-2col::before {
        left: 50%;
        top: calc(50% + 40px);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 10px solid #e63946;
        border-bottom: none;
        transform: translateX(-6px);
    }
}

/* Fixed 2-column grid */
.grid-container.grid-2col-fixed {
    grid-template-columns: 1fr 1fr;
}

/* Column headers */
.grid-item.column-header {
    background-color: transparent;
    text-align: left;
    padding-bottom: 15px;
}

.grid-item.column-header h3 {
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    border-top: 3px solid #ff0000; /* #e63946 */
}

.grid-item.column-header h3 span {
    background: #ff0000; /* #e63946 */
    padding: 0.2em 0.5em;
    display: inline-block;
}

#how-we-work .grid-container {
    text-align: left !important;
}

#how-we-work .grid-container p {
    text-align: justify !important;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Content items use h4 instead of h3 */
.grid-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

#process h3 {
    min-height: 3.3em;
    align-items: start;
}

.article-break-image figcaption {
    max-width: 900px;
    margin: 10px auto 0 auto;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    font-style: italic;
}

@media (max-width: 1050px) {
    .grid-container.grid-2col-fixed {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-item.column-header:last-of-type {
        display: block !important;
    }

    /* Reorder items using order property */
    .grid-container.grid-2col-fixed .grid-item:nth-child(1) {
        order: 1;
    }

    /* Header 1 */
    .grid-container.grid-2col-fixed .grid-item:nth-child(2) {
        order: 5;
    }

    /* Header 2 - moved down */
    .grid-container.grid-2col-fixed .grid-item:nth-child(3) {
        order: 2;
    }

    /* First left item */
    .grid-container.grid-2col-fixed .grid-item:nth-child(4) {
        order: 6;
    }

    /* First right item */
    .grid-container.grid-2col-fixed .grid-item:nth-child(5) {
        order: 3;
    }

    /* Second left item */
    .grid-container.grid-2col-fixed .grid-item:nth-child(6) {
        order: 7;
    }

    /* Second right item */
    .grid-container.grid-2col-fixed .grid-item:nth-child(7) {
        order: 4;
    }

    /* Third left item */
    .grid-container.grid-2col-fixed .grid-item:nth-child(8) {
        order: 8;
    }

    /* Third right item */
}

/* Blog overview */
.post-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ff0000;
    font-size: 0.9rem;
    color: #666;
}

.post-meta .date {
    font-weight: 600;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
}

.tag:hover {
    background-color: #e0e0e0;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* Individual blog post */
.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.back-to-blog {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card:nth-child(3n+1) .blog-card-placeholder {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    /* Dark slate gradient - cyber/tech aesthetic */
}

.blog-card:nth-child(3n+2) .blog-card-placeholder {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    /* Dark gray gradient - modern minimal */
}

.blog-card:nth-child(3n+3) .blog-card-placeholder {
    background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
    /* Deep teal to muted green - tech/environmental */
}


/* Link in taxonomy ATF */
.taxonomy-back-link {
    color: var(--text-color-subtle);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.taxonomy-back-link:hover {
    color: var(--light-color);
    border-bottom-color: var(--light-color);
}

/* Title Overlay on Image */
.blog-card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.blog-card-title .highlight-text-bw {
    display: inline;
    padding: 0.2em 0.4em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Blog Card Content */
.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tags - Small and Subtle */
.blog-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.blog-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.blog-tag:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Tags in ATF - Hero section */
.blog-tags-atf {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.blog-tag-atf {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgb(255 0 0 / 27%);
    border-radius: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.blog-tag-atf:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Description - Left aligned, hyphenated */
.blog-description {
    text-align: justify;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Card Footer */
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.blog-read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.blog-read-more:hover {
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   INDIVIDUAL BLOG POST STYLING
   ======================================== */

blog-single {
    background-color: #fff;
    padding: 60px 0;
}

/* Content wrapper - constrain width for readability */
.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Reset any centering from parent styles */
.blog-single-content,
.blog-single-content * {
    text-align: left !important;
}

/* Base content styling */
.blog-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    hyphens: auto;
    margin-top: 35px;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.blog-single-content p {
    margin: 0 0 1.5em 0;
}

.blog-single-content > p:first-child {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
}

.blog-single-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1f1f1f;
    margin: 2.5em 0 1em 0;
    line-height: 1.3;
}

.blog-single-content h2:first-child {
    margin-top: 0;
}

.blog-single-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f1f1f;
    margin: 2em 0 0.8em 0;
    line-height: 1.4;
}

.blog-single-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 1.5em 0 0.6em 0;
}

/* Lists */
.blog-single-content ul,
.blog-single-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.blog-single-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.blog-single-content ul ul,
.blog-single-content ol ol,
.blog-single-content ul ol,
.blog-single-content ol ul {
    margin: 0.5em 0;
}

/* Blockquotes */
.blog-single-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background-color: #f9f9f9;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: #555;
}

.blog-single-content blockquote p {
    margin: 0;
}

.blog-single-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.blog-single-content code {
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    color: #d63384;
}

.blog-single-content pre {
    background-color: #f5f5f5;
    padding: 1.5em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 2em 0;
    border: 1px solid #e0e0e0;
}

.blog-single-content pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
    font-size: 0.95em;
}

/* Links */
.blog-single-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: border-color 0.2s ease;
}

.blog-single-content a:hover {
    border-bottom-color: transparent;
}

/* Images */
.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 2.5em 0;
    display: block;
}

/* Horizontal rules */
.blog-single-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 3em 0;
}

/* Tables */
.blog-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.blog-single-content th,
.blog-single-content td {
    padding: 0.75em;
    border: 1px solid #e0e0e0;
}

.blog-single-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Emphasis */
.blog-single-content strong {
    font-weight: 700;
    color: #000;
}

.blog-single-content em {
    font-style: italic;
}

/* Footer */
.blog-single-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px 0 40px;
    border-top: 2px solid #e0e0e0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.back-to-blog:hover {
    transform: translateX(-4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-single {
        padding: 40px 0;
    }

    .blog-single-content {
        font-size: 1rem;
    }

    .blog-single-content h2 {
        font-size: 1.6rem;
    }

    .blog-single-content h3 {
        font-size: 1.3rem;
    }

    .blog-single-content h4 {
        font-size: 1.1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero.section-wrapper-small.dark {
        min-height: unset;
    }

    .section-wrapper-small h1 {
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

/* Audio Article Player */
.audio-article {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.audio-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.audio-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.audio-duration {
    font-size: 0.9rem;
    color: #666;
}

.audio-article audio {
    width: 100%;
    margin-top: 10px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .audio-article {
        padding: 15px;
    }

    .audio-info h3 {
        font-size: 1rem;
    }
}