/* QazaqNews Media - Сайт стилдері */

/* Негізгі стильдер */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #0099ff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --error-color: #dc3545;
    --success-color: #28a745;
}

body {
    font-family: 'Poppins', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Header стилдері */
header {
    background-color: var(--white);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.header-contact a {
    color: var(--white);
    text-decoration: none;
}

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

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

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

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

.logo p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero баннер */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 25px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--white);
}

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

/* Жаңалықтар grid */
.news-section {
    padding: 40px 0;
}

.section-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.2);
}

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

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

.news-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

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

.news-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 14px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* Дисклеймер */
.disclaimer {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 18px;
}

.disclaimer p {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

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

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

.cookie-content p {
    margin: 0;
    font-size: 14px;
}

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

.btn-accept,
.btn-decline {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-accept {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-accept:hover {
    background-color: var(--accent-color);
}

.btn-decline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

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

/* Форма стилдері */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-error {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-group.error .form-error {
    display: block;
}

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

.btn-submit:hover {
    background-color: var(--secondary-color);
}

/* Мақала беті */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

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

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-facebook {
    background-color: #1877f2;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-telegram {
    background-color: #0088cc;
}

/* FAQ стилдері */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

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

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Tablet адаптациясы */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h2 {
        font-size: 36px;
    }

    nav ul {
        gap: 20px;
    }
}

/* Телефон адаптациясы */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    nav a {
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .article-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }

    .logo p {
        font-size: 11px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Content беттері */
.content-section {
    padding: 40px 0;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content-section h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 10px;
}

/* Команда бөлімі */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

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

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Қызметтер карточкалары */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.15);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
