@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

/*
Theme Name: NL Sim
Description: Сучасна тема для магазину SIM-карт Нідерландів.
Author: NL Sim Team
Version: 1.0
*/

/* --- Глобальні змінні кольорів з нашого дизайну --- */
:root {
    --c-bg-body: #F4F6F8; /* Світло-сірий фон навколо контенту */
    --c-bg-content: #FFFFFF; /* Білий фон для центрального блоку */
    --c-text-main: #1A2B49; /* Темно-синій для тексту (читається краще за чорний) */
    
    /* Кольори кнопок месенджерів */
    --c-telegram: #2AABEE;
    --c-whatsapp: #25D366;
    --c-viber: #7360F2;
    
    /* Кольори прапора Нідерландів для акцентів */
    --c-flag-red: #AE1C28;
    --c-flag-blue: #21468B;
}

body {
    background-color: #EBF2F9;
    color: var(--c-text-main);
    /* Підключаємо наш новий стильний шрифт */
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* --- Повертаємо системний шрифт для ВСІХ заголовків --- */
h1, h2, h3, h4, h5, h6,
.gutenberg-content-area h2,
.operator-card h2,
.operator-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Структура та Контейнери --- */
.header-container,
.footer-container,
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Смужка прапора Нідерландів зверху --- */
.nl-flag-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, var(--c-flag-red) 33.3%, #ffffff 33.3%, #ffffff 66.6%, var(--c-flag-blue) 66.6%);
    border-bottom: 1px solid #eaeaea;
}

/* --- Шапка сайту --- */
.site-header {
    background-color: #0B111E;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Легка тінь як на макеті */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: 'Russo One', sans-serif;
}

.logo-icon {
    font-size: 28px;
}

/* --- МЕНЮ ТА НАВІГАЦІЯ --- */
.main-navigation ul,
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    letter-spacing: 2px;
}

.main-navigation a,
.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
}



/* 1. Всі звичайні пункти меню (НЕ жирні) */
.main-navigation li > a,
.nav-menu li > a {
    font-weight: 500 !important;
}

/* 2. ТІЛЬКИ активний пункт меню (Жирний) */
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    font-weight: 800 !important;
}

/* 3. Виняток для прапорців WPML (щоб не були жирними) */
.main-navigation li.wpml-ls-item > a,
.nav-menu li.wpml-ls-item > a {
    font-weight: 500 !important; 
}

.main-navigation a:hover,
.nav-menu a:hover {
    color: var(--c-flag-blue); /* При наведенні стає синім */
}

/* Ховаємо кнопку бургера на ПК */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
}

/* --- ПРАВИЛА ДЛЯ ПК (Логотип) --- */
.title-mobile {
    display: none;
}

/* --- Підвал --- */
.site-footer {
    padding: 0px 0 60px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background: transparent;
}

.footer-white-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 15px 40px;
    display: inline-block;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-family: 'Manrope', sans-serif;
}


/* --- ГОЛОВНА СТОРІНКА --- */
.main-white-card {
    background-color: var(--c-bg-content);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: 80px; /* Відступ зверху для квадратиків */
    margin-bottom: 60px;
    padding: 0 40px 60px 40px;
    position: relative;
}

/* --- Квадратики переваг --- */
.features-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    transform: translateY(-40px); /* Виштовхуємо їх наполовину за межі білої картки */
}

.feature-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    width: 30%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.feature-box h3 {
    margin: 0 0 10px 0;
    font-size: 21px;
    color: var(--c-text-main);
    letter-spacing: 1px;
}

.feature-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* --- Текстова частина (Заголовок) --- */
.hero-text-section {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 40px;
    padding: 0 100px 0px 100px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--c-text-main);
}

.hero-subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* --- Кнопки месенджерів --- */
.messengers-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Дозволяє кнопкам переноситися на мобільних телефонах */
}

.btn-messenger {
    flex: 1; /* Ось ця магія робить всі кнопки ідеально однаковими! */
    min-width: 250px; /* Мінімальна ширина для телефонів */
    max-width: 275px; /* Максимальна ширина, щоб вони не розтягнулися на весь екран */
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* Кольори та тіні кнопок */
.btn-tg {
    background-color: var(--c-telegram);
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.4);
}

.btn-wa {
    background-color: var(--c-whatsapp);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-vi {
    background-color: var(--c-viber);
    box-shadow: 0 6px 20px rgba(115, 96, 242, 0.4);
}

/* Ефект при наведенні */
.btn-messenger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- Зона Гутенберга --- */
.gutenberg-content-area {
    max-width: 800px;
    margin: 0 auto; /* Центруємо текстовий контент */
}

/* --- FAQ (Блок Подробиці / Details у Гутенберзі) --- */
.gutenberg-content-area h2 {
    text-align: center;
    font-size: 35px;
    margin: 60px 0 30px;
    color: var(--c-text-main);
}

.wp-block-details {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 0 20px rgba(0,0,0,0.10); /* Рівномірна тінь з усіх боків */
    transition: box-shadow 0.3s ease;
}

.wp-block-details:hover {
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
}

.wp-block-details summary {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 19px;
    color: var(--c-text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
    outline: none;
    letter-spacing: 0.5px;
}

/* Ховаємо стандартний маркер браузера */
.wp-block-details summary::-webkit-details-marker {
    display: none;
}

/* Наша кастомна стрілочка */
.wp-block-details summary::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #A0ABC0;
    transition: transform 0.3s ease;
}

/* Перевертаємо стрілочку при відкритті */
.wp-block-details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

/* --- Стиль тексту відповіді всередині FAQ --- */
.wp-block-details > *:not(summary) {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin-top: 10px;
    padding-top: 0;
    border-top: none; 
}

.wp-block-details summary + * {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* --- Картки Операторів (Блок Медіа та текст) --- */
.operator-card {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: none;
    align-items: center; /* Рівняємо лого і текст по центру */
}

.operator-card .wp-block-media-text__media {
    background: #ffffff;
    border-radius: 16px;
    padding: 15px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    display: flex;
    justify-content: center;
    align-items: center;
}

.operator-card h2,
.operator-card h3,
.operator-card h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 25px;
    font-weight: 700;
    color: var(--c-text-main);
}

.operator-card p {
    margin: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* --- Стилі для посилань у тексті --- */
.gutenberg-content-area a,
.operator-card a {
    color: var(--c-text-main); /* Робимо їх темно-синіми під стиль тексту */
    text-decoration: none; /* Прибираємо стандартне жорстке підкреслення */
    font-weight: 600; /* Робимо жирнішими, щоб виділялися */
    border-bottom: 2px solid rgba(33, 70, 139, 0.2); /* Додаємо м'яку лінію знизу */
    transition: all 0.3s ease;
}

.gutenberg-content-area a:hover,
.operator-card a:hover {
    color: var(--c-flag-blue); /* При наведенні стають яскравіше синіми */
    border-bottom-color: var(--c-flag-blue); /* Лінія теж стає яскравою */
}

/* --- Глобальний стиль для основного тексту (абзаци та списки) --- */
p, 
.gutenberg-content-area p,
.gutenberg-content-area li {
    letter-spacing: 0.5px; /* Оптимальний відступ для читабельності */
    line-height: 1.6; /* Заодно робимо гарний міжрядковий інтервал */
}

/* --- Векторні іконки в кнопках --- */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    fill: #ffffff; /* Робимо іконку білою */
    transition: transform 0.3s ease;
}

.btn-messenger:hover .btn-icon svg {
    transform: scale(1.1);
}

/* --- Розділ Доставка та Оплата --- */
.dp-section-wrapper {
    margin-bottom: 40px;
}

.dp-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.dp-section-wrapper h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text-main);
    margin-top: 0;
    margin-bottom: 20px;
}

.np-logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.np-logo-container img {
    max-width: 240px;
    height: auto;
}

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

.delivery-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.delivery-list li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 0px;
    color: var(--c-telegram);
    font-size: 18px;
    font-weight: 800;
}

/* --- БЛОК ОПЛАТИ (Вертикальний) --- */
.payment-methods-grid {
    display: flex !important;
    flex-direction: column !important; /* Ламаємо 3 колонки і робимо 1 вертикальну */
    gap: 25px !important;
    margin-top: 10px;
}

.payment-item {
    display: flex !important;
    flex-direction: row !important; /* Картинка зліва, текст справа */
    align-items: center !important;
    width: 100% !important;
}

.payment-icon-wrap {
    width: 60px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0 !important;
    margin-right: 15px;
}

.payment-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.payment-list li {
    position: relative;
    padding-left: 25px;
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
    font-family: 'Manrope', -apple-system, sans-serif !important;
    text-align: left !important;
}

.payment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0px;
    color: var(--c-telegram);
    font-size: 16px;
    font-weight: 800;
}

/* --- РОЗДІЛ: НАШІ ПЕРЕВАГИ --- */
.advantages-section {
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.advantages-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--c-text-main);
    margin-top: 0;
    margin-bottom: 25px;
}

.advantages-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

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

.advantages-list li {
    position: relative;
    padding-left: 55px;
    margin-bottom: 25px;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    font-family: 'Manrope', -apple-system, sans-serif !important;
}

.advantages-list li:last-child {
    margin-bottom: 0;
}

.advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -2px;
    width: 32px;
    height: 32px;
    background-color: #e8f0fe;
    color: var(--c-telegram);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.advantages-list li strong {
    color: var(--c-text-main);
    font-size: 17px;
}

/* Акцент на тексті перед кнопками (Ефект маркера) */
.highlight-action {
    font-weight: 600;
    color: var(--c-text-main);
    box-shadow: inset 0 -12px 0 rgba(43, 172, 226, 0.15);
    padding: 0 4px;
    border-radius: 2px;
}

/* Простий стиль для фінального тексту без груп */
.simple-bottom-text {
    max-width: 900px;
    margin: 0 auto 20px auto !important;
    text-align: center !important;
    font-family: 'Manrope', -apple-system, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #555 !important;
}


/* ========================================= */
/* --- АДАПТИВНІСТЬ ДЛЯ СМАРТФОНІВ --- */
/* ========================================= */

/* Ховаємо мобільну плашку TG на ПК */
.mobile-sticky-tg {
    display: none;
}

@media (max-width: 768px) {
    /* Виправляємо відступи тексту */
    .hero-text-section {
        padding: 0 15px;
    }

    /* Ширина білої картки */
    .main-white-card {
        padding: 0 15px 40px 15px;
    }

    /* ЗАГАЛЬНА КАРТКА ДЛЯ ПЕРЕВАГ */
    .features-row {
        background: #ffffff;
        border-radius: 16px;
        padding: 25px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.09);
        flex-direction: column;
        gap: 0; 
        transform: translateY(-30px);
        width: 100%;
        box-sizing: border-box;
    }

    /* Налаштування окремих пунктів списку */
    .feature-box {
        background: transparent;
        box-shadow: none;
        padding: 20px 0;
        border-radius: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .feature-box:first-child { padding-top: 0; }
    .feature-box:last-child { border-bottom: none; padding-bottom: 0; }

    /* ІКОНКА: Тепер стоїть впритул до заголовка */
    .feature-icon {
        font-size: 24px;
        margin-bottom: 0;
        margin-right: 10px;
    }

    /* ЗАГОЛОВОК: Біля іконки */
    .feature-box h3 {
        margin: 0;
        font-size: 19px;
    }

    /* ТЕКСТ: На новому рядку, на всю ширину і по центру */
    .feature-box p {
        width: 100%;
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.5;
        color: #555;
    }

    /* --- МОбІЛЬНА ПЛАШКА ТЕЛЕГРАМ (Суцільна) --- */
    .site-header {
        position: relative !important;
        top: auto !important;
    }

    .mobile-sticky-tg {
        display: block;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: var(--c-telegram); 
        border-radius: 0 !important; 
        z-index: 9999 !important;
        padding: 16px 0 !important; 
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .sticky-tg-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #ffffff !important;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
        gap: 12px;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }
	
    /* Додаємо відступ всьому сайту знизу, щоб плашка не перекривала текст */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Відступи для текстових блоків та груп на мобільних */
	.operator-card p,
    .simple-bottom-text {
        padding-left: 30px !important;
        padding-right: 30px !important;   
    }
    
    .operator-card .wp-block-media-text__content {
        padding: 20px 0 0 0;
        text-align: center;
    }
    
    .dp-section-wrapper .wp-block-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .advantages-card {
        padding: 30px 20px;
    }

    /* --- ФУТЕР Мобільна версія --- */
    .site-footer {
        padding: 0px 0 30px 0;
    }
    
    .footer-white-card {
        display: block !important;
        margin: 0 15px !important;
        padding: 12px 20px !important;
    }

    /* --- ШАПКА, БУРГЕР ТА ЛОГОТИП (Мобільна версія) --- */
    .site-header {
        padding: 15px 0 !important; 
    }

    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
    }

    .menu-toggle {
        display: flex !important;
        position: relative !important; 
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 40px !important;
        height: 40px !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important; 
        z-index: 1001 !important;
        padding: 0 !important;
        cursor: pointer;
    }

    .menu-toggle .bar {
        width: 26px !important;
        height: 2px !important;
        background-color: #ffffff !important;
        display: block !important;
        border-radius: 2px !important;
    }

/* --- Випадаюче меню (Мобільна версія) --- */
    .main-navigation ul,
    .nav-menu {
        display: none; /* Тепер точно ховаємо меню */
        flex-direction: row !important; /* Дозволяємо елементам ставати поруч... */
        flex-wrap: wrap !important; /* ...і переноситися на нові рядки */
        justify-content: center !important; /* Центруємо все по горизонталі */
        
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #0B111E !important;
        padding: 40px 20px 20px 20px !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.4) !important;
        gap: 20px !important;
        z-index: 1000 !important;
    }

    /* Показуємо меню при натисканні на бургер */
    /* Додав класи, які WordPress часто використовує для активації */
    .main-navigation ul.is-active,
    .nav-menu.is-active,
    .main-navigation.toggled ul {
        display: flex !important;
    }

    /* 1. Звичайні пункти меню (Головна, Оператори тощо) */
    .main-navigation ul li,
    .nav-menu li {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important; /* Змушуємо їх розтягуватися і падати в стовпчик */
        text-align: center !important;
    }

    /* 2. Прапорці WPML */
    .main-navigation ul li.wpml-ls-item,
    .nav-menu li.wpml-ls-item {
        width: auto !important; /* Дозволяємо прапорцям займати мало місця і стояти в один ряд */
        margin-top: 10px !important; /* Відділяємо їх від текстових посилань */
    }
	
    .nav-menu li {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* --- НАЛАШТУВАННЯ ЛОГОТИПА --- */
    .title-desktop {
        display: none !important;
    }

    .title-mobile {
        display: inline !important;
        font-family: 'Russo One', sans-serif !important;
        font-size: 24px !important; 
        font-weight: 500 !important;
        letter-spacing: 2px !important;
        color: #ffffff !important;
        text-transform: none !important; 
        padding-left: 10px;
    }

    /* Повертаємо жирність головному заголовку на мобільних */
    h1, 
    .wp-block-heading h1,
    h1.wp-block-heading {
        font-weight: 900 !important;
    }

    /* Вирівнювання прапорця та тексту */
    .logo-link {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        text-decoration: none !important;
    }
}

/* Гарантований відступ між картками Доставка та Оплата на ПК */
.dp-section-wrapper .wp-block-columns {
    gap: 40px !important; /* Відстань між колонками */
}