/*
 Theme Name:   Astra Child - Sec Point
 Description:  Child theme for Sec Point with Astra Group co-branding (like astra.ru)
 Template:     astra
 Version:      1.0.1
*/

/* === FORCE CSS VARIABLES - BRANDBOOK COMPLIANT === */
:root {
    --ast-brand-dark: #28334E !important;      /* Pantone 2380 C */
    --ast-brand-neon: #00C3F5 !important;       /* Pantone 2985 C */
    --ast-brand-dark-rgb: 40, 51, 78;
    --ast-neon-rgb: 0, 195, 245;
    
    /* Astra theme color mappings */
    --ast-global-color-primary: #28334E !important;
    --ast-global-color-0: #00C3F5 !important;
    --ast-global-color-1: #00588D !important;
    --ast-global-color-2: #28334E !important;
    --ast-global-color-3: #334155 !important;
    --ast-global-color-4: #FFFFFF !important;
    --ast-global-color-5: #F0F5FA !important;
    --ast-global-color-6: #28334E !important;
    --ast-global-color-7: #E2E8F0 !important;
    --ast-global-color-8: #28334E !important;
    --ast-border-color: #E2E8F0 !important;
    --ast-global-color-subtle-background: #F0F5FA !important;
    
    /* Brand font family */
    --ast-global-font-family: "PT Astra Fact", Roboto, Arial, sans-serif !important;
}

/* === PT ASTRA FACT FONT FACE (Brandbook compliant) === */
@font-face {
    font-family: 'PT Astra Fact';
    src: url('https://cdn.astralabs.ru/fonts/PTAstraFact-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'PT Astra Fact';
    src: url('https://cdn.astralabs.ru/fonts/PTAstraFact-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'PT Astra Fact';
    src: url('https://cdn.astralabs.ru/fonts/PTAstraFact-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* Fallback local fonts if CDN unavailable */
@font-face {
    font-family: 'PT Astra Fact';
    src: local('PT Astra Fact'), local('PTAstraFact-Regular');
    font-weight: 400;
}
@font-face {
    font-family: 'PT Astra Fact';
    src: local('PT Astra Fact Medium'), local('PTAstraFact-Medium');
    font-weight: 500;
}
@font-face {
    font-family: 'PT Astra Fact';
    src: local('PT Astra Fact Bold'), local('PTAstraFact-Bold');
    font-weight: 700;
}

/* === BASE LIGHT THEME === */
html body {
    background-color: #FFFFFF !important;
    color: #28334E !important;
    font-family: var(--ast-global-font-family) !important;
}

/* === STICKY HEADER - BRANDBOOK COMPLIANT === */
html body #masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #28334E !important;
    border-bottom: 3px solid #00C3F5 !important;
    box-shadow: 0 2px 20px rgba(40, 51, 78, 0.4) !important;
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease !important;
    min-height: 72px !important;
}

#masthead.scrolled {
    box-shadow: 0 4px 30px rgba(40, 51, 78, 0.6) !important;
    backdrop-filter: blur(10px) !important;
}

html body #masthead .ast-primary-header-bar {
    background: #28334E !important;
    border-bottom: 3px solid #00C3F5 !important;
    min-height: 72px !important;
    height: auto !important;
    padding: 12px 0 !important;
}

html body #masthead .ast-primary-header-bar .site-primary-header-wrap {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

html body #masthead .ast-main-header-wrap {
    background: transparent !important;
}

html body #masthead .site-header-primary-section-left {
    padding: 0 !important;
}

/* Site branding - force flex and proper alignment */
html body #masthead .site-branding {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0 !important;
}

html body #masthead .ast-site-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Official Astra Group logo via pseudo-element - EXACT BRANDBOOK SIZE */
html body #masthead .site-branding::before {
    content: "";
    display: inline-block;
    width: 112px !important;
    height: 35px !important;
    background: url(/wp-content/uploads/astra_header_logo.png) no-repeat center/contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    margin-right: 16px;
}

@media (max-width: 921px) {
    html body #masthead .site-branding::before {
        width: 100px !important;
        height: 30px !important;
    }
}

/* BRAND NAME - Next to logo, increased size for visibility */
html body #masthead .site-branding::after {
    content: "Онлайн-школа «Точка Безопасности»\AАвторизованный партнер ООО «РусБИТех-Астра»";
    white-space: pre;
    display: inline-block;
    font-size: 18px !important;
    line-height: 1.4;
    color: #FFFFFF !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-left: 4px;
}

@media (max-width: 921px) {
    html body #masthead .site-branding::before {
        width: 80px !important;
        height: 28px !important;
    }
    
    html body #masthead .site-branding::after {
        font-size: 14px !important;
        line-height: 1.2;
    }
}

/* Hide the default site title text - replaced by logo + brand name */
html body #masthead .site-title {
    display: none !important;
}

/* Header container */
html body #masthead .site-primary-header-wrap {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Menu links - WHITE on BLUE header */
html body #masthead .main-header-menu .menu-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    transition: color 0.2s !important;
}

html body #masthead .main-header-menu .menu-link:hover,
html body #masthead .main-header-menu .current-menu-item > .menu-link {
    color: #FFFFFF !important;
}

/* Mobile header - BLUE */
html body #ast-mobile-header .ast-primary-header-bar {
    background: linear-gradient(135deg, #28334E 0%, #1A237E 100%) !important;
    border-bottom: none !important;
    min-height: 60px !important;
}

html body #ast-mobile-header .site-branding::before {
    width: 80px !important;
    height: 28px !important;
}

html body #ast-mobile-header .site-title {
    display: none !important;
}

/* Remove any duplicate injected logos */
.site-branding img.astra-logo-img,
#ast-mobile-header .site-branding img.astra-logo-img {
    display: none !important;
}

/* Sticky scroll effect */
#masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease !important;
}

#masthead.scrolled {
    box-shadow: 0 4px 30px rgba(40, 51, 78, 0.6) !important;
    backdrop-filter: blur(10px) !important;
}

/* Override parent theme's header bar background */
.ast-primary-header-bar {
    background: #28334E !important;
    border-bottom: 3px solid #00C3F5 !important;
}

/* Remove parent theme's min-height on header bar */
.ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
    min-height: 72px !important;
    height: auto !important;
    padding: 12px 0 !important;
}

/* Submenu - Dark with Astra colors */
.main-header-menu .sub-menu {
    background: #28334E !important;
    border: 1px solid #00C3F5 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(40, 51, 78, 0.4) !important;
    padding: 8px !important;
    min-width: 220px !important;
    margin-top: 8px !important;
}

.main-header-menu .sub-menu .menu-item {
    margin: 0 !important;
}

.main-header-menu .sub-menu .menu-link {
    color: rgba(255,255,255,0.9) !important;
    background: transparent !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    min-height: auto !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .current-menu-item > .menu-link {
    background: rgba(0, 195, 245, 0.15) !important;
    color: #00C3F5 !important;
}

/* Submenu arrow */
.main-header-menu .menu-item-has-children > .menu-link::after {
    content: "\e5cf" !important;
    font-family: "Astra" !important;
    margin-left: 8px !important;
    font-size: 12px !important;
    transition: transform 0.2s !important;
}

.main-header-menu .menu-item-has-children:hover > .menu-link::after {
    transform: rotate(180deg) !important;
}

/* Submenu positioning */
.main-header-menu .menu-item-has-children {
    position: relative !important;
}

.main-header-menu .sub-menu {
    background: #28334E !important;
    border: 1px solid #00C3F5 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(40, 51, 78, 0.4) !important;
    padding: 8px !important;
    min-width: 220px !important;
    margin-top: 8px !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.2s ease !important;
    z-index: 1000 !important;
}

.main-header-menu .menu-item-has-children:hover > .sub-menu,
.main-header-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Sub-submenu */
.main-header-menu .sub-menu .sub-menu {
    top: 0 !important;
    left: 100% !important;
    margin-left: 8px !important;
    margin-top: -8px !important;
}

/* Mobile submenu adjustments */
@media (max-width: 921px) {
    .main-header-menu .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #1E2A3A !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .main-header-menu .sub-menu .menu-link {
        padding: 12px 16px 12px 32px !important;
    }
}
html body {
    background-color: #FFFFFF !important;
    color: #28334E !important;
}

.ast-separate-container,
.ast-plain-container,
.ast-page-builder-template {
    background-color: #FFFFFF !important;
}

.site-content {
    background-color: #FFFFFF !important;
}

#content {
    background-color: #FFFFFF !important;
}

#page {
    background-color: #FFFFFF !important;
}

.site-content .ast-container {
    background-color: #FFFFFF !important;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #F0F5FA 0%, #E8F0FE 100%) !important;
    color: #28334E !important;
    padding: 80px 0;
    border-bottom: 1px solid #E2E8F0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.hero-logo {
    width: 320px;
    height: 80px;
    max-width: 100%;
    display: block;
    margin: 0 auto 16px;
    content: url(/wp-content/uploads/astra_hero_logo.png);
}

.hero-badge {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00C3F5 !important;
    margin: 0 0 20px;
    white-space: nowrap;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #28334E !important;
    margin: 0 0 20px;
    line-height: 1.2;
    max-width: 100%;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #334155 !important;
    margin: 0 0 28px;
    line-height: 1.6;
    max-width: 100%;
    white-space: normal;
}

.hero-description {
    font-size: 16px;
    color: #334155 !important;
    margin: 0 0 32px;
    line-height: 1.7;
    max-width: 100%;
    white-space: normal;
}

.hero-partners {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: rgba(0, 195, 245, 0.1);
    border: 1px solid rgba(0, 195, 245, 0.3);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #28334E !important;
    margin: 0;
    letter-spacing: .3px;
    line-height: 1.5;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-partners::before {
    content: "";
    display: inline-block;
    width: 120px;
    height: 28px;
    background: url(/wp-content/uploads/cobrand_astra_tp.png) no-repeat center/contain;
    vertical-align: middle;
}

.hero-partners::after {
    content: "";
    display: inline-block;
    width: 100px;
    height: 28px;
    background: url(/wp-content/uploads/cobrand_logo.png) no-repeat center/contain;
    vertical-align: middle;
}

/* === SERVICES SECTION - MODERN EFFECTS === */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.services-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #28334E !important;
    margin: 0 0 36px;
    text-align: center;
    position: relative;
}

.services-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00C3F5, #00588D);
    margin: 12px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.service-card {
    background: #FFFFFF !important;
    border-radius: 16px;
    padding: 36px 32px;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(40, 51, 78, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00C3F5, #00588D);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(40, 51, 78, 0.12);
    transform: translateY(-8px);
    border-color: #00C3F5 !important;
}

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

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #28334E !important;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 15px;
    color: #334155 !important;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Service card icons - modern SVG */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 195, 245, 0.1), rgba(0, 88, 141, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:nth-child(1)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C3F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E");
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(2)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C3F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='18' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(3)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C3F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:nth-child(4)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C3F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E");
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, #00C3F5 0%, #00588D 100%) !important;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(0, 195, 245, 0.25);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF !important;
    margin: 0 0 12px;
}

.cta-text {
    font-size: 16px;
    color: rgba(255,255,255,0.9) !important;
    margin: 0 0 24px;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: #FFFFFF !important;
    color: #00C3F5 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 20px rgba(0, 195, 245, 0.3);
}

.cta-button:hover {
    background: #F0F5FA !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 195, 245, 0.4) !important;
}

/* === CO-BRANDING SECTION === */
.cobrand-section {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 40px 0;
    margin: 60px 0 0 0;
}

.cobrand-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cobrand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 48px;
}

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

.cobrand-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, #E2E8F0, transparent);
    flex-shrink: 0;
}

.cobrand-logo {
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: grayscale(100%) opacity(0.6);
}

.cobrand-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.cobrand-logo img {
    display: block;
    max-height: 48px;
    width: auto;
}

.cobrand-text {
    flex-basis: 100%;
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6A7E95 !important;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cobrand-section {
        padding: 32px 0;
    }
    .cobrand-row {
        gap: 24px 32px;
    }
    .cobrand-logo img {
        max-height: 40px;
    }
    .cobrand-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
    }
    .cobrand-text {
        font-size: 13px;
    }
}

/* === FOCUS-VISIBLE FOR ACCESSIBILITY === */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
    outline: 3px solid var(--ast-brand-neon) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--ast-brand-neon) !important;
    outline-offset: 2px !important;
}

/* === FOOTER LIGHT - BRANDBOOK COMPLIANT === */
.site-footer {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 40px 0 20px !important;
}
.site-footer .ast-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}
.ast-footer-copyright {
    color: #6A7E95 !important;
    font-size: 14px !important;
    text-align: center !important;
    padding-top: 20px !important;
    border-top: 1px solid #E2E8F0 !important;
    margin-top: 20px !important;
}
.site-footer a {
    color: #00C3F5 !important;
}
.site-footer a:hover {
    color: #00588D !important;
}

/* === BUTTONS === */
.ast-button,
.ast-custom-button,
.button,
input[type="button"],
input[type="submit"],
input[type="reset"],
#comments .submit,
.search .search-submit,
form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button,
body .wp-block-file .wp-block-file__button,
.search .search-submit,
.woocommerce-js a.button,
.woocommerce button.button,
.woocommerce .woocommerce-message a.button,
.woocommerce #respond input#submit.alt,
.woocommerce input.button.alt,
.woocommerce input.button,
.woocommerce input.button:disabled,
.woocommerce input.button:disabled[disabled],
.woocommerce input.button:disabled:hover,
.woocommerce input.button:disabled[disabled]:hover,
.woocommerce #respond input#submit,
.woocommerce button.button.alt.disabled,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product-onsale,
[CLASS*="wc-block"] button,
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping),
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout,
.woocommerce button.button.alt.disabled.wc-variation-selection-needed,
[CLASS*="wc-block"] .wc-block-components-button {
    background: #00C3F5 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    padding: 14px 32px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 195, 245, 0.2);
}

.ast-button:hover,
.ast-custom-button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
#comments .submit:hover,
.search .search-submit:hover,
form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover,
body .wp-block-file .wp-block-file__button:hover,
.search .search-submit:hover,
.woocommerce-js a.button:hover,
.woocommerce button.button:hover,
.woocommerce .woocommerce-message a.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt.disabled:hover,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover,
[CLASS*="wc-block"] button:hover,
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping):hover,
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout:hover,
.woocommerce button.button.alt.disabled.wc-variation-selection-needed:hover,
[CLASS*="wc-block"] .wc-block-components-button:hover {
    background: #00588D !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0, 195, 245, 0.3) !important;
}

/* Form inputs light theme */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type=reset],
input[type=tel],
input[type=date],
select,
textarea {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #28334E !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    height: 52px !important;
    font-size: 15px !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type=reset]:focus,
input[type=tel]:focus,
input[type=date]:focus,
select:focus,
textarea:focus {
    border-color: #00C3F5 !important;
    box-shadow: 0 0 0 4px rgba(0, 195, 245, 0.15) !important;
}

/* === WOOCOMMERCE LIGHT === */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(40, 51, 78, 0.08) !important;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(40, 51, 78, 0.14) !important;
    border-color: #00C3F5 !important;
}

.woocommerce .price,
.woocommerce .price .amount,
.woocommerce .price ins {
    color: #28334E !important;
    font-weight: 600 !important;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    background: #EFF6FF !important;
    border-color: #00C3F5 !important;
    color: #28334E !important;
}

/* Scroll to top button */
#ast-scroll-top {
    background: #28334E !important;
}

#ast-scroll-top:hover {
    background: #00C3F5 !important;
}

/* Links */
a {
    color: #00C3F5 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

a:hover {
    color: #00588D !important;
    text-decoration: none !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.entry-content :where(h1,h2,h3,h4,h5,h6),
.site-title,
.site-title a {
    color: #28334E !important;
    font-weight: 600 !important;
}

/* Body text */
body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
    color: #28334E !important;
}

/* Footer */
.site-footer {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
}

.ast-footer-copyright {
    color: #6A7E95 !important;
}

/* WooCommerce messages */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    background: #EFF6FF !important;
    border-color: #00C3F5 !important;
    color: #28334E !important;
}

/* Scroll to top button */
#ast-scroll-top {
    background: #28334E !important;
}

#ast-scroll-top:hover {
    background: #00C3F5 !important;
}

/* === PAGE CONTENT IMAGES === */
.entry-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

.entry-content .wp-block-image img {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(40, 51, 78, 0.1) !important;
}

/* Country blocks / project cards */
.country-block,
.project-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

.country-block:hover,
.project-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 24px 48px rgba(40, 51, 78, 0.18) !important;
}

.country-block img,
.project-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.country-block:hover img,
.project-card:hover img {
    transform: scale(1.03) !important;
}

/* === COUNTRY BLOCKS / PROJECT CARDS - COMPREHENSIVE === */
.primer-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.primer-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #28334E !important;
    margin: 0 0 8px;
    text-align: center;
}

.primer-section > p {
    font-size: 1rem;
    color: #64748B !important;
    margin: 0 0 36px;
    text-align: center;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.country-block {
    display: block;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #E2E8F0 !important;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(40, 51, 78, 0.06) !important;
}

.country-block:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(40, 51, 78, 0.14) !important;
    border-color: #00C3F5 !important;
}

.country-block-visual {
    min-height: 180px;
    background-color: #F0F5FA !important;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.35s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.8);
    overflow: hidden;
}

.country-block:hover .country-block-visual {
    transform: scale(1.03);
}

.country-block-content {
    padding: 24px;
}

.country-block-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #28334E !important;
    margin: 0 0 8px;
}

.country-block-content p {
    font-size: 14px;
    color: #64748B !important;
    line-height: 1.6;
    margin: 0 0 12px;
}

.arrow-link {
    color: #00C3F5 !important;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.country-block:hover .arrow-link {
    color: #00588D !important;
}

/* === PRICING TABLES === */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.entry-content table thead tr {
    background: #28334E;
    color: #FFFFFF;
}

.entry-content table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.entry-content table td {
    padding: 12px 18px;
    font-size: 14px;
    color: #28334E;
    border-bottom: 1px solid #E2E8F0;
}

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

.entry-content table tbody tr:hover {
    background: #F0F5FA;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-content table {
        font-size: 13px;
    }
    
    .entry-content table th,
    .entry-content table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    html body #masthead .site-branding::after {
        font-size: 11px !important;
    }
    
    html body #masthead .main-header-menu .menu-link {
        font-size: 14px !important;
        padding: 0 10px !important;
    }
}
