/* ============================================================
   Стили для статьи "Базы данных - иной взгляд"
   ============================================================ */

/* --- Hero / Заголовочный блок --- */
.article-hero {
    background: linear-gradient(135deg, #303F9F 0%, #1a237e 100%);
    color: #fff;
    padding: 50px 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.article-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.article-hero h1 {
    color: #fff !important;
    font-size: 2.2em !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.article-hero .article-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 90%;
}

/* --- Основной контент --- */
.article-content {
    max-width: 100%;
}

.article-content p {
    font-size: 1.05em;
    line-height: 1.75;
    margin-bottom: 20px;
    color: #333;
}

.article-content p.lead {
    font-size: 1.15em;
    color: #303F9F;
    font-weight: 500;
    border-left: 4px solid #FF5252;
    padding: 15px 20px;
    background: #f8f9ff;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

/* --- Выделенный блок / цитата --- */
.article-quote {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    border-left: 5px solid #303F9F;
    padding: 30px 35px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-size: 1.05em;
    line-height: 1.7;
    color: #2c3e50;
    position: relative;
}

.article-quote::before {
    content: '"';
    font-size: 4em;
    color: #303F9F;
    opacity: 0.15;
    position: absolute;
    top: 5px;
    left: 15px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* --- Проблема-акцент (красный блок) --- */
.article-problem {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    border: 1px solid #ffd4d4;
    border-left: 5px solid #FF5252;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}

.article-problem p {
    margin-bottom: 0 !important;
}

/* --- Разделитель секций --- */
.article-divider {
    text-align: center;
    margin: 45px 0;
    position: relative;
}

.article-divider::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(to right, transparent, #BBDEFB, transparent);
    position: relative;
    top: 12px;
}

.article-divider span {
    display: inline-block;
    background: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    font-size: 1.5em;
    color: #BBDEFB;
}

/* --- Заголовки секций --- */
.article-content h2 {
    color: #303F9F;
    font-size: 1.5em;
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #BBDEFB;
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #303F9F;
}

/* --- Списки --- */
.article-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
}

.article-content ul li {
    position: relative;
    padding: 10px 0 10px 35px;
    font-size: 1.02em;
    line-height: 1.6;
    color: #333;
    border-bottom: 1px solid #f0f0f5;
}

.article-content ul li:last-child {
    border-bottom: none;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #303F9F;
}

/* --- Список преимуществ (с иконкой-галочкой) --- */
.article-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 30px 0;
}

.article-benefits li {
    background: #f8faff;
    border: 1px solid #e8ecf8;
    border-radius: 10px;
    padding: 18px 20px 18px 50px !important;
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.article-benefits li:hover {
    background: #eef3ff;
    border-color: #303F9F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 63, 159, 0.1);
}

.article-benefits li::before {
    content: '✓' !important;
    background: none !important;
    color: #2e7d32 !important;
    font-size: 1.3em !important;
    font-weight: bold;
    left: 15px !important;
    top: 16px !important;
    width: auto !important;
    height: auto !important;
}

/* --- Список наработок --- */
.article-achievements {
    background: linear-gradient(135deg, #f0f4ff 0%, #eaefff 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
}

.article-achievements ul {
    margin: 0 !important;
}

.article-achievements ul li {
    border-bottom-color: rgba(48, 63, 159, 0.1);
}

.article-achievements ul li:last-child {
    border-bottom: none;
}

.article-achievements ul li::before {
    background: #FF5252;
}

/* --- Ключевая информация (выделение цифр/фактов) --- */
.article-stat {
    display: inline-block;
    background: linear-gradient(135deg, #303F9F, #1a237e);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- Блок "СУБД ГЛОБАЛ" с логотипом --- */
.article-brand-box {
    background: linear-gradient(135deg, #303F9F 0%, #1a237e 100%);
    color: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    margin: 30px 0;
}

.article-brand-box p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 12px !important;
}

.article-brand-box strong {
    color: #FFD54F;
}

/* --- Призыв к сотрудничеству (CTA) --- */
.article-cta {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #66bb6a;
    border-radius: 16px;
    padding: 40px 45px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '🤝';
    font-size: 4em;
    position: absolute;
    right: 20px;
    bottom: 10px;
    opacity: 0.15;
}

.article-cta h2 {
    color: #2e7d32 !important;
    margin-top: 0 !important;
    border-bottom: none !important;
    font-size: 1.6em !important;
}

.article-cta h2::after {
    display: none !important;
}

.article-cta p {
    font-size: 1.1em;
    color: #333;
    max-width: 800px;
    margin: 15px auto 25px auto !important;
    line-height: 1.7;
}

.article-cta .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff !important;
    font-size: 1.15em;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.article-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    color: #fff !important;
}

.article-cta .cta-button:after {
    content: ' →';
    font-weight: 300;
}

/* --- Блок для учебных заведений --- */
.article-education {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #42a5f5;
    border-radius: 16px;
    padding: 40px 45px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.article-education::before {
    content: '🎓';
    font-size: 4em;
    position: absolute;
    right: 20px;
    bottom: 10px;
    opacity: 0.15;
}

.article-education h2 {
    color: #1565c0 !important;
    margin-top: 0 !important;
    border-bottom: none !important;
    font-size: 1.6em !important;
}

.article-education h2::after {
    display: none !important;
}

.article-education p {
    font-size: 1.05em;
    color: #333;
    margin-bottom: 15px !important;
    line-height: 1.7;
}

.article-education ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.article-education ul li {
    position: relative;
    padding: 10px 15px 10px 40px;
    font-size: 1em;
    line-height: 1.5;
    color: #333;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-bottom: none !important;
}

.article-education ul li::before {
    content: '📌' !important;
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 1.1em;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.article-education .edu-button {
    display: inline-block;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff !important;
    font-size: 1.1em;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    margin-top: 10px;
}

.article-education .edu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
    color: #fff !important;
}

.article-education .edu-button:after {
    content: ' →';
    font-weight: 300;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .article-hero {
        padding: 35px 25px;
    }
    .article-hero h1 {
        font-size: 1.6em !important;
    }
    .article-hero .article-subtitle {
        max-width: 100%;
    }
    .article-benefits {
        grid-template-columns: 1fr;
    }
    .article-brand-box {
        padding: 25px 20px;
    }
    .article-education ul {
        grid-template-columns: 1fr;
    }
    .article-cta,
    .article-education {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 1.3em !important;
    }
    .article-content p {
        font-size: 0.95em;
    }
    .article-quote {
        padding: 20px;
    }
    .article-content h2 {
        font-size: 1.2em;
    }
}
