/* Qazaq News Media - Main Stylesheet */
/* Modern news website design with green accents */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-green: #2d7a4f;
    --primary-green-dark: #1e5436;
    --primary-green-light: #3a9461;
    --accent-green: #4caf50;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-gray-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-green-dark);
}

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

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

/* Header Styles */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-green);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

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

.header-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-contact a {
    color: white;
    font-size: 13px;
}

.header-main {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0;
}

.logo-tagline {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 400;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary-green);
    color: white;
}

.menu-toggle {
    display: none;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 12px 15px;
    }
    
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--primary-green);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    padding: 15px 0;
    position: relative;
    display: none;
}

.disclaimer-banner.active {
    display: block;
}

.disclaimer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.disclaimer-text {
    flex: 1;
}

.disclaimer-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.disclaimer-text p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 400;
}

.disclaimer-close {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.disclaimer-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--accent-green);
    color: white;
}

.cookie-accept:hover {
    background: var(--primary-green);
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-decline:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 400;
}

/* Grid Layouts */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* News Card */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    background: var(--accent-green);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
}

.news-card-title a:hover {
    color: var(--primary-green);
}

.news-card-excerpt {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 15px;
    flex: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: var(--primary-green);
    font-weight: 500;
}

/* Featured News */
.featured-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px;
}

.featured-overlay h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.featured-overlay p {
    font-size: 16px;
    margin-bottom: 0;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sidebar-item:hover {
    box-shadow: var(--shadow-hover);
}

.sidebar-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.sidebar-item-content {
    padding: 15px;
    flex: 1;
}

.sidebar-item-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.sidebar-item-content .news-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Blog Article */
.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.article-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-gray);
}

/* Contact Form */
.contact-section {
    background: var(--bg-gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.info-card p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.info-card a {
    color: var(--primary-green);
    font-weight: 500;
}

/* Map Section */
.map-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-gray-light);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-green);
    color: white;
}

.faq-question.active {
    background: var(--primary-green);
    color: white;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 20px 25px;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-green);
}

.footer-section p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-green);
    padding-left: 5px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-image {
        height: 300px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-item {
        flex-direction: column;
    }
    
    .sidebar-item img {
        width: 100%;
        height: 200px;
    }
    
    .disclaimer-content {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 22px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}
