/* CSS Variables and Resets */
:root {
    --color-bg-light: #f6f3ee;
    /* The beige background */
    --color-bg-white: #ffffff;
    --color-dark: #121212;
    /* Black/Dark Gray */
    --color-dark-alt: #1a1a1a;
    --color-red: #d34c41;
    /* The main red/orange */
    --color-red-hover: #b93f35;

    --text-dark: #121212;
    --text-gray: #666666;
    --text-light-gray: #aaaaaa;
    --text-white: #ffffff;

    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

input,
button {
    font-family: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

.container {
    max-width: 1374px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100% !important;
}

/* Typography Utilities */
.text-red {
    color: var(--color-red);
}

.italic {
    font-style: italic;
    font-family: var(--font-heading);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-red {
    background-color: var(--color-red);
    color: var(--text-white);
}

.btn-red:hover {
    background-color: var(--color-red-hover);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--text-white);
}

.btn-dark:hover {
    background-color: #000000;
}

.btn-red-outline {
    background-color: var(--color-red);
    color: var(--text-white);
    /* The CTA button seems solid red, actually */
}

.btn-outline-black {
    border: 1px solid var(--color-dark);
    background-color: transparent;
    color: var(--color-dark);
    padding: 16px 40px;
}

.btn-outline-black:hover {
    background-color: var(--color-dark);
    color: var(--text-white);
}

.full-width {
    width: 100%;
}

/* Header */
.main-header {
    background-color: var(--color-dark);
    color: var(--text-white);
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 13px;
    color: var(--text-light-gray);
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--text-white);
}

.lang-switch ul.langs {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.lang-switch ul.langs li.lang-item a {
    font-size: 13px;
    padding: 8px 12px;
    color: var(--text-light-gray);
    text-transform: uppercase;
    text-decoration: none;
}

.lang-switch ul.langs li.current-lang a {
    background-color: var(--text-white);
    color: var(--color-dark);
    font-weight: 700;
}

.main-header .btn-red {
    padding: 12px 24px;
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
    background-color: var(--color-bg-white);
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs {
    font-size: 12px;
    color: var(--text-gray);
}

.breadcrumb-link {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    display: flex;
    min-height: 500px;
}

.hero-left {
    flex: 1;
    background-color: var(--color-dark);
    color: var(--text-white);
    padding: 80px 60px 80px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 46px;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-light-gray);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    font-size: 13px;
    color: var(--text-light-gray);
}

.hero-stats strong {
    color: var(--text-white);
    font-size: 15px;
    margin-right: 4px;
}

.hero-right {
    flex: 1;
    background-color: var(--color-red);
    color: var(--text-white);
    padding: 80px 100px 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-top {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.8;
}

.hero-right h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 30px;
}

.video-list {
    margin-bottom: 40px;
}

.video-list li {
    font-size: 14px;
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.video-list li::before {
    content: "📘";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-form input {
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-hint {
    font-size: 11px;
    text-align: center;
    opacity: 0.7;
    margin-top: 8px;
}

/* Category Nav */
.categories-nav {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid #ddd;
}

.categories-nav .container {
    display: flex;
    align-items: center;
    padding: 16px 20px;
}

.cat-list {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.cat-item {
    font-size: 12px;
    color: var(--text-gray);
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: nowrap;
}

.cat-item.active {
    background-color: var(--color-dark);
    color: var(--text-white);
    border-color: var(--color-dark);
}

.cat-arrows {
    display: flex;
    gap: 5px;
    margin: 0 20px;
}

.arrow-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn.active {
    background-color: var(--color-red);
    color: white;
    border-color: var(--color-red);
}

.search-box input {
    border: 1px solid #ddd;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    width: 200px;
}

/* Section Header (Lines) */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-header .line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.section-header h3 {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-gray);
    text-transform: uppercase;
    margin: 0;
}

/* Featured Section */
.featured-section {
    padding: 60px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.image-wrapper {
    position: relative;
    background-color: var(--color-dark);
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;
}

.badge-red-abs,
.badge-dark-abs {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-red-abs {
    background-color: var(--color-red);
}

.badge-dark-abs {
    background-color: var(--color-dark);
}

.badge-time-abs {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    padding: 6px 10px;
}

.featured-main {
    background-color: var(--color-bg-white);
    border: 1px solid #ddd;
}

.featured-main .image-wrapper {
    height: 400px;
}

.featured-main .content {
    padding: 40px;
}

.article-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-red);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.featured-main .title {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.excerpt {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.meta {
    font-size: 11px;
    color: var(--text-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta strong {
    color: var(--color-dark);
    margin-right: 8px;
}

.meta.space-between {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-small {
    background-color: var(--color-bg-white);
    padding: 24px;
    border: 1px solid #ddd;
}

.featured-small .title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 12px;
}

.featured-small .excerpt {
    font-size: 13px;
    margin-bottom: 20px;
}

/* Social Proof */
.social-proof {
    background-color: var(--color-bg-white);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.proof-wrapper {
    display: flex;
    align-items: center;
    padding: 20px 0;
    overflow: hidden;
}

.proof-title {
    font-size: 13px;
    font-weight: 500;
    margin-right: 40px;
    white-space: nowrap;
}

.logos-track-container {
    flex: 1;
    overflow: hidden;
}

.logos-track {
    display: flex;
    gap: 30px;
    align-items: center;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}


/* Pillar Section */
.pillar-section {
    padding: 60px 0;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background-color: var(--color-dark);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.pillar-card .icon {
    font-size: 24px;
    margin-bottom: 20px;
}

.pillar-card .title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
}

.pillar-card .desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    line-height: 1.6;
    flex: 1;
}

.pillar-card .read-more {
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* All Articles */
.all-articles-section {
    padding: 0 0 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: var(--color-bg-white);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.article-card .image-wrapper {
    height: 220px;
}

.article-card .content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card .title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
}

.article-card .excerpt {
    font-size: 14px;
    margin-bottom: 24px;
}

.load-more-wrap {
    text-align: center;
}

/* Mid CTA Section */
.mid-cta-section {
    padding: 40px 0;
}

.cta-wrapper {
    display: flex;
}

.cta-left {
    flex: 1;
    background-color: var(--color-dark);
    color: white;
    padding: 60px;
}

.cta-left .badge-small {
    font-size: 10px;
    color: var(--color-red);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-left h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
    max-width: 400px;
}

.cta-left p {
    font-size: 15px;
    color: #999;
    margin-bottom: 40px;
    max-width: 400px;
}

.cta-right {
    flex: 1;
    background-color: var(--color-red);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 60px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 30px;
}

.quote-author {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
}


.faq-q {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-dark);
    background: none;
    border: none;
}

.arrow-down {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-red);
    border-bottom: 2px solid var(--color-red);
    transform: rotate(45deg);
    margin-right: 8px;
    transition: transform 0.3s;
}

.faq-item.active .arrow-down {
    transform: rotate(-135deg);
    margin-top: 6px;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-a p {
    padding-bottom: 24px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

.main-header .logo {
    margin-bottom: 0 !important;
}

/* Topics Grid */
.topics-section {
    padding: 0 0 80px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.topic-card {
    background-color: var(--color-bg-white);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s;
}

.topic-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.topic-card .icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.topic-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.topic-card .count {
    font-size: 12px;
    color: var(--text-light-gray);
}

/* Bottom Subscribe */
.bottom-subscribe {
    background-color: var(--color-dark);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.bottom-subscribe .title {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 40px;
}

.subscribe-row {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
}

.subscribe-row input {
    flex: 1;
    padding: 16px 24px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.bottom-subscribe .hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.main-footer {
    background-color: var(--color-dark-alt);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-main);
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-light-gray);
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-light-gray);
    line-height: 1.6;
}

.footer-copy a {
    text-decoration: underline;
}

/* =========================================
   Адаптивність (Responsive Design) 
   ========================================= */

/* Планшети (Tablet) */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
    }

    .hero-left {
        padding: 60px 40px;
    }

    .hero-right {
        padding: 60px 40px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .featured-small {
        flex: 1;
        min-width: 300px;
    }

    .pillar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-wrapper {
        flex-direction: column;
    }

    .cta-left,
    .cta-right {
        padding: 40px;
    }

    .nav-list {
        display: none;
        /* Ховаємо основне меню на планшетах для економії місця */
    }
}

/* Мобільні телефони (Mobile) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .main-header .btn-red {
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-left,
    .hero-right {
        padding: 40px 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-right h2 {
        font-size: 26px;
    }

    .categories-nav .cat-list {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .categories-nav .cat-arrows,
    .categories-nav .search-box {
        display: none;
    }

    .featured-main .image-wrapper {
        height: 250px;
    }

    .featured-main .title {
        font-size: 24px;
    }

    .featured-main .content {
        padding: 20px;
    }

    .proof-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .proof-title {
        margin-right: 0;
    }

    .logos-track {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pillar-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-left h2 {
        font-size: 26px;
    }

    .quote-text {
        font-size: 18px;
    }

    .bottom-subscribe .title {
        font-size: 24px;
    }

    .subscribe-row {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

/* Маленькі мобільні (Small Mobile) */
@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .featured-side {
        flex-direction: column;
    }

    .featured-small {
        min-width: 100%;
    }
}

/* Old email subscribe wrap styles */
.email_subscribe_wrap {
    border-radius: 26px;
    background: #FFF;
    padding: 24px 25px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.email_subscribe_wrap_area {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--color-dark);
}

.email_subscribe_wrap form {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .email_subscribe_wrap form {
        flex-direction: column;
    }
}

.email_subscribe_wrap form .left_text {
    margin: 0;
    width: auto;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    max-width: 500px;
}

.tnp-field-email {
    width: 100%;
    max-width: 455px;
    position: relative;
    border-radius: 26px !important;
    background: none !important;
    margin-bottom: 0 !important;
    display: flex;
}

.tnp-field-email .tnp-email {
    height: 52px;
    border-radius: 26px;
    border: 1px solid #D2D2D2;
    background: #FFF;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    padding: 0 160px 0 20px;
    width: 100%;
}

.tnp-field-email .tnp-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 155px;
    height: 52px;
    border-radius: 26px;
    background: #DC5242;
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.tnp-field-email .tnp-submit:hover {
    background: #b83d2e;
}