/* =========================================
   1. RESET & BASIC SETUP
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6; /* Светло-серый фон, приятный глазу */
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Кнопки */
.btn-primary {
    display: inline-block;
    background-color: #00d084; /* Tech Green */
    color: #0a1f44;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #00b070;
    transform: translateY(-2px);
}

.btn-small {
    background-color: #00d084;
    color: #0a1f44;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

/* =========================================
   2. HEADER
   ========================================= */
.main-header {
    background-color: #0a1f44; /* Deep Blue - Trust */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: #00d084; /* Акцент на .digital */
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: #cbd5e0;
    padding-bottom: 5px;
}

.main-nav a:hover, .main-nav a.active {
    color: #fff;
    border-bottom: 2px solid #00d084;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.btn-login {
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 15px;
    border-radius: 20px;
}

.btn-login:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

.hero-content {
    max-width: 650px;
    animation: fadeIn 1s ease-out;
}

.category-tag {
    background-color: #00d084;
    color: #0a1f44;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.hero h1 {
    font-size: 3rem; /* Большой заголовок */
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* =========================================
   4. MAIN GRID LAYOUT
   ========================================= */
.main-grid {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.content-column {
    flex: 2; /* Занимает 66% ширины */
}

.sidebar {
    flex: 1; /* Занимает 33% ширины */
}

.section-title {
    margin-bottom: 30px;
    border-left: 5px solid #0a1f44;
    padding-left: 15px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: #0a1f44;
}

/* =========================================
   5. NEWS CARDS (Feed)
   ========================================= */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex; /* Картинка слева, текст справа */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-img {
    flex: 0 0 40%; /* Картинка занимает 40% */
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-text {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-text .meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.news-text h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-text h3 a:hover {
    color: #00d084;
}

.news-text p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    font-weight: bold;
    color: #0a1f44;
    font-size: 14px;
}

/* =========================================
   6. SIDEBAR WIDGETS
   ========================================= */
.widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget h3 {
    font-size: 1.2rem;
    color: #0a1f44;
    margin-bottom: 20px;
    border-bottom: 2px solid #f4f7f6;
    padding-bottom: 10px;
}

.trending-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}

.trending-list .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-right: 15px;
}

.trending-list a {
    font-weight: 500;
    color: #333;
}

.trending-list a:hover {
    color: #00d084;
}

/* Ad Widget (Native style) */
.ad-widget {
    padding: 0;
    overflow: hidden;
}

.ad-widget img {
    width: 100%;
}

.ad-text {
    padding: 15px;
    background: #0a1f44;
    color: #fff;
}

/* Newsletter */
.newsletter-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.newsletter-form button {
    width: 100%;
    background: #00d084;
    color: #0a1f44;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

/* =========================================
   7. SINGLE ARTICLE PAGE
   ========================================= */
.single-article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 2.2rem;
    color: #0a1f44;
    margin: 15px 0;
    line-height: 1.2;
}

.article-img {
    margin-bottom: 30px;
}

.article-img img {
    width: 100%;
    border-radius: 4px;
}

.img-caption {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    font-style: italic;
}

.article-content .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #0a1f44;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content blockquote {
    border-left: 4px solid #00d084;
    padding-left: 20px;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 20px;
    margin: 30px 0;
}

.content-img {
    width: 100%;
    margin: 30px 0;
    border-radius: 4px;
}

.share-buttons {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-share {
    background: #f4f7f6;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.btn-share:hover {
    background: #ddd;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: #0a1f44;
    color: #aaa;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

footer ul li {
    margin-bottom: 10px;
}

footer a:hover {
    color: #00d084;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.center-text {
    text-align: center;
}

/* =========================================
   9. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 31, 68, 0.95);
    color: #fff;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    display: none; /* JS включит его */
    border-top: 2px solid #00d084;
}

.cookie-banner p {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
}

.cookie-banner a {
    text-decoration: underline;
}

/* =========================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .main-grid {
        gap: 20px;
    }
    
    .news-card {
        flex-direction: column; /* На планшетах картинка сверху */
    }
    
    .news-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 80px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .main-grid {
        flex-direction: column; /* Сайдбар уходит вниз */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Футер в одну колонку */
        text-align: center;
    }

    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-actions {
        display: none; /* Прячем поиск и логин на мобайле для простоты */
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}