/*
 * AI Creatives Hub - Custom Astra Styling
 * Color Palette: AI/Tech Modern 2026
 */

/* ========== COLORS ========== */
:root {
    --primary-color: #667EEA;
    --secondary-color: #764BA2;
    --dark-color: #1A202C;
    --light-color: #F7FAFC;
    --success-color: #48BB78;
    --text-color: #2D3748;
    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-accent: linear-gradient(135deg, #667EEA 0%, #20C997 100%);
}

/* ========== TYPOGRAPHY ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

/* ========== LINKS ========== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ========== HEADER ========== */
.site-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.main-header-bar {
    border-bottom: none;
}

.site-title a {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== NAVIGATION ========== */
.main-navigation a {
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* ========== HERO SECTION ========== */
.entry-header {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.entry-header .entry-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.entry-header .entry-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
}

/* ========== BLOG CARDS ========== */
.ast-article-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.ast-article-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

.ast-article-post .entry-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.ast-article-post .entry-title a {
    color: var(--dark-color);
}

.ast-article-post .entry-title a:hover {
    color: var(--primary-color);
}

/* ========== POST META ========== */
.entry-meta {
    font-size: 0.9rem;
    color: #718096;
}

.posted-on a,
.cat-links a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== CATEGORIES ========== */
.cat-links {
    display: inline-block;
    margin-bottom: 10px;
}

.cat-links a {
    background: linear-gradient(135deg, #667EEA10 0%, #764BA220 100%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.cat-links a:hover {
    background: var(--gradient-primary);
    color: white;
}

/* ========== BUTTONS ========== */
.button,
.ast-button,
button,
input[type=submit] {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover,
.ast-button:hover,
button:hover,
input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* ========== FEATURED IMAGES ========== */
.post-thumb img {
    border-radius: 15px 15px 0 0;
    transition: all 0.3s ease;
}

.ast-article-post:hover .post-thumb img {
    transform: scale(1.05);
}

/* ========== CONTENT AREA ========== */
.site-content {
    padding: 40px 0;
}

.entry-content {
    line-height: 1.8;
}

/* ========== PAGINATION ========== */
.ast-pagination {
    margin-top: 50px;
}

.page-numbers {
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 0 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
    color: white;
}

/* ========== MISSION SECTION ========== */
.mission-section {
    background: linear-gradient(135deg, #667EEA10 0%, #764BA220 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.mission-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    body { font-size: 16px; }
    
    .entry-header {
        padding: 40px 20px;
    }
    
    .entry-header .entry-title {
        font-size: 2rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ast-article-post {
    animation: fadeInUp 0.6s ease;
}

/* ========== GRADIENT OVERLAYS ========== */
.ast-featured-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    border-radius: 15px 15px 0 0;
}

/* ========== HERO COVER IMPROVEMENTS ========== */
.hero-cover .wp-block-cover__inner-container h1,
.hero-cover .wp-block-cover__inner-container p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.3);
}

.hero-cover .wp-block-cover__background {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(26, 32, 44, 0.9) 100%) !important;
}

/* Better button visibility on hero */
.hero-cover .wp-block-button__link {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-cover .wp-block-button__link:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* White text color for all hero elements */
.wp-block-cover.hero-cover h1,
.wp-block-cover.hero-cover p,
.wp-block-cover.hero-cover .has-white-color {
    color: #ffffff !important;
}

/* ========== HIDE HOME PAGE TITLE ========== */
.home .entry-header:not(.hero-cover .entry-header),
.home .ast-archive-description,
.home .page-title,
.page-id-1132 .entry-header:not(.hero-cover .entry-header),
.page-id-1132 .ast-archive-description,
.page-id-1132 .page-title {
    display: none !important;
}

/* Ensure hero cover is always visible */
.hero-cover {
    display: block !important;
}

/* ========== REMOVE ALL SPACING BEFORE HERO ========== */
.page-id-1132 .site-content,
.page-id-1132 .ast-container,
.page-id-1132 .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-id-1132 .site-content > *:first-child {
    margin-top: 0 !important;
}

/* Remove any wrapper padding/margin */
.page-id-1132 .ast-separate-container .ast-article-single,
.page-id-1132 .ast-separate-container .ast-article-post {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Make sure hero is first element */
.page-id-1132 .hero-cover {
    margin-top: 0 !important;
}

/* Remove breadcrumbs completely */
.page-id-1132 .ast-breadcrumbs-wrapper,
.page-id-1132 .ast-breadcrumbs {
    display: none !important;
}

/* Remove any empty space in content area */
.page-id-1132 #primary,
.page-id-1132 #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Force no gap between header and content */
.page-id-1132.ast-separate-container #primary {
    padding-top: 0 !important;
}

.page-id-1132 .entry-content > *:first-child {
    margin-top: 0 !important;
}

/* ========== AGGRESSIVE REMOVAL OF SPACE BEFORE HERO ========== */
/* Hide everything before hero-cover */
.page-id-1132 .hero-cover ~ *:not(.hero-cover) {
    /* Keep visible */
}

.page-id-1132 *:not(.site-header):not(.main-navigation):not(.ast-container):not(#masthead) {
    /* Check all elements */
}

/* Nuclear option - hide all elements before first hero-cover */
.page-id-1132 .entry-content > *:not(.hero-cover):first-child,
.page-id-1132 .entry-content > div:empty,
.page-id-1132 .entry-content > section:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Target the specific empty block */
.page-id-1132 .wp-block-cover:not(.hero-cover),
.page-id-1132 .entry-content > .wp-block-group:first-child:empty,
.page-id-1132 .ast-separate-container .entry-content > div:first-child:not(.hero-cover) {
    display: none !important;
}

/* Remove featured image if it exists */
.page-id-1132 .ast-featured-img,
.page-id-1132 .post-thumb,
.page-id-1132 .entry-header .post-thumb-img-content {
    display: none !important;
}

/* Force hero to be at top */
.page-id-1132 .hero-cover:first-child,
.page-id-1132 .entry-content .hero-cover:first-child {
    margin-top: 0 !important;
}

/* ========== HIDE FEATURED IMAGE BLOCK ========== */
/* Target the image that appears before hero */
.page-id-1132 .entry-content > img,
.page-id-1132 .ast-article-single > img,
.page-id-1132 article img[src*='n.webp']:not(.hero-cover img) {
    display: none !important;
}

/* Hide any direct image children of entry-content */
.page-id-1132 .entry-content > img:first-child,
.page-id-1132 .entry-content > img[alt=] {
    display: none !important;
}

/* Hide placeholder and actual image */
.page-id-1132 img[src^=data:image/gif] {
    display: none !important;
}

.page-id-1132 .entry-content > img[src*=n.webp]:not(.wp-block-cover__image-background) {
    display: none !important;
}

/* ========== HOMEPAGE REDESIGN STYLES ========== */

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3) !important;
}

/* Mission Section with Gradient Border */
.mission-section {
    position: relative;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1),
                inset 0 0 0 2px transparent;
    border: 2px solid transparent !important;
    background-clip: padding-box;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #48BB78 100%);
    border-radius: 30px;
    z-index: -1;
}

.mission-section:hover {
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.2);
}

/* Hero Section Enhancements */
.hero-cover .wp-block-cover__inner-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Section Spacing */
.wp-block-group {
    margin-left: auto;
    margin-right: auto;
}

/* Blog Post Cards */
.wp-block-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.wp-block-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.wp-block-post .wp-block-post-featured-image {
    margin: 0;
    overflow: hidden;
}

.wp-block-post .wp-block-post-featured-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.08);
}

.wp-block-post .wp-block-post-title,
.wp-block-post .wp-block-post-date,
.wp-block-post .wp-block-post-excerpt {
    padding-left: 30px;
    padding-right: 30px;
}

.wp-block-post .wp-block-post-excerpt {
    padding-bottom: 30px;
}

/* Pagination Styling */
.wp-block-query-pagination {
    gap: 10px;
}

.wp-block-query-pagination .page-numbers {
    min-width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .page-numbers.current {
    background: var(--gradient-primary);
    color: white;
}

/* Button Enhancements */
.wp-block-button__link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.mission-section,
.wp-block-post {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-cover h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-cover p {
        font-size: 1.1rem !important;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    .mission-section {
        padding: 40px 20px !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Gradient Text for Headings */
.wp-block-group h2 {
    background: linear-gradient(135deg, #1A202C 0%, #667EEA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Add subtle background pattern */
body.page-id-1132 {
    background-image: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
}

/* ========== ABOUT US PAGE STYLES ========== */

/* Value Cards */
.value-card {
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(102, 126, 234, 0.1) !important;
}

.value-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4) !important;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%) !important;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.stats-section h2,
.stats-section p {
    color: white !important;
}

.stats-section .has-primary-color {
    color: #48BB78 !important;
}

/* CTA Section */
.cta-section {
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cta-section:hover {
    box-shadow: 0 20px 70px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

/* About Hero */
.about-hero .wp-block-cover__inner-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ========== CONTACTS PAGE ========== */
.contact-info-card {
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.contact-form-wrapper {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.response-time-section {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%) !important;
    box-shadow: 0 20px 60px rgba(72, 187, 120, 0.3);
}

.response-time-section h2,
.response-time-section p {
    color: white !important;
}

/* ========== PRIVACY PAGE ========== */
.privacy-intro {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1) !important;
}

.page-id-3 h2 {
    color: #667EEA;
    margin-top: 30px;
}

.page-id-3 ul {
    margin-left: 30px;
}

.page-id-3 ul li {
    margin-bottom: 15px;
}

/* ========== BLOG ARCHIVE & SINGLE POST ========== */
.blog .site-content,
.archive .site-content,
.single-post .site-content {
    padding-top: 60px;
}

/* Blog post cards styling */
.blog .ast-article-post,
.archive .ast-article-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 40px;
    border: 1px solid rgba(102, 126, 234, 0.05);
}

.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Single post styling */
.single-post .entry-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2D3748;
}

.single-post .entry-content h2 {
    font-size: 2.2rem;
    margin-top: 50px;
    margin-bottom: 25px;
    color: #667EEA;
    font-weight: 700;
}

.single-post .entry-content h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1A202C;
    font-weight: 700;
}

.single-post .entry-content p {
    margin-bottom: 25px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 30px 0;
    margin-left: 30px;
}

.single-post .entry-content li {
    margin-bottom: 15px;
    line-height: 1.9;
}

.single-post .entry-content blockquote {
    border-left: 5px solid #667EEA;
    padding-left: 30px;
    margin: 40px 0;
    font-size: 1.3rem;
    font-style: italic;
    color: #4A5568;
}

.single-post .entry-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.single-post .entry-title {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.single-post .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Category archive title */
.archive .page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   УДАЛЕНИЕ ФИОЛЕТОВОГО БЛОКА - ABOUT US
   Дата: 2026-02-17
   ============================================ */

.page-id-1129 .ast-featured-img,
.page-id-1129 .entry-header,
.page-id-1129 .ast-archive-description,
.page-id-1129 header.entry-header,
.page-id-1129 .ast-single-post .entry-header,
.page-id-1129 .ast-article-single > header,
.page-id-1129 .entry-content > *:first-child:empty,
.page-id-1129 .entry-content > div:first-child:empty,
.page-id-1129 .entry-content > figure:first-child:empty,
.page-id-1129 .entry-content > *:empty:first-child {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

.page-id-1129 .site-content,
.page-id-1129 .ast-container,
.page-id-1129 article,
.page-id-1129 .entry-content,
.page-id-1129 .entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-id-1129 .wp-block-cover {
    margin-top: 0 !important;
}

/* Дополнительные правила для скрытия пустых блоков */
.page-id-1129 .ast-separate-container .ast-article-single {
    padding-top: 0 !important;
}

.page-id-1129 .entry-content::before {
    display: none !important;
}

