/* ==========================================
   QAZAQ NEWS - MODERN NEWS PORTAL STYLES
   ========================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #58d68d;
    --secondary-color: #1abc9c;
    --dark-color: #2c3e50;
    --light-gray: #ecf0f1;
    --medium-gray: #bdc3c7;
    --text-color: #34495e;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

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

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

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

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

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* === DISCLAIMER BANNER === */
.disclaimer-banner {
    background-color: #e74c3c;
    color: var(--white);
    padding: 15px 0;
    border-bottom: 3px solid #c0392b;
}

.disclaimer-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.disclaimer-banner strong {
    font-weight: 600;
}

/* === HEADER & NAVIGATION === */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo .tagline {
    font-size: 12px;
    color: var(--medium-gray);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.8), rgba(39, 174, 96, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 700px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* === BREAKING NEWS === */
.breaking-news {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 15px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background-color: #c0392b;
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.breaking-text {
    font-size: 15px;
    flex: 1;
    animation: scroll-text 20s linear infinite;
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* === NEWS GRID === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.news-card.featured {
    grid-column: 1 / -1;
}

.news-card.featured .news-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.news-card.featured .news-image {
    grid-column: 1;
}

.news-card.featured .news-meta,
.news-card.featured h3,
.news-card.featured p,
.news-card.featured .btn-secondary {
    grid-column: 2;
}

.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 100%;
    min-height: 350px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.news-meta i {
    margin-right: 5px;
}

.news-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* === CATEGORIES GRID === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon i {
    color: var(--white);
}

.category-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.category-card p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-dark);
}

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

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-tagline {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* === ARTICLE PAGE === */
.article-header {
    padding: 60px 0 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.article-featured-image {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 18px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 30px 0 15px;
}

.article-quote {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
}

/* === CONTACT FORM === */
.contact-section {
    background-color: var(--light-gray);
}

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

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

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

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
}

.contact-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.contact-text p {
    color: var(--text-color);
    margin: 0;
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    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-color);
}

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

/* === MAP SECTION === */
.map-section {
    padding: 80px 0 0;
}

.map-container {
    width: 100%;
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

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

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

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

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

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

.faq-icon {
    font-size: 20px;
    transition: var(--transition);
}

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

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

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

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

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* === ABOUT PAGE === */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid var(--primary-light);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.team-member p {
    color: var(--medium-gray);
    margin-bottom: 15px;
}

/* === RESOURCES PAGE === */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.resource-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.resource-icon i {
    font-size: 32px;
}

.resource-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.resource-card p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.resource-card ul {
    list-style: none;
    padding-left: 0;
}

.resource-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
}

.resource-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* === LEGAL PAGES === */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 40px 0 20px;
}

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

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* === RESPONSIVE DESIGN === */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.featured {
        grid-column: 1 / -1;
    }

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

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

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

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

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

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 32px;
    }

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

    .hero {
        height: 400px;
    }

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

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

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

    .news-card.featured .news-image,
    .news-card.featured .news-meta,
    .news-card.featured h3,
    .news-card.featured p,
    .news-card.featured .btn-secondary {
        grid-column: 1;
    }

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

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

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

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-content p {
        font-size: 16px;
    }

    /* Map on Mobile */
    .map-container iframe {
        height: 300px;
    }

    .map-section {
        padding: 40px 0 0;
    }

    /* Mobile Navigation */
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: var(--box-shadow);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 15px;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
    }

    .cookie-content {
        flex-direction: column;
    }

    .breaking-news .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .breaking-text {
        animation: none;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

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

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

    .news-content h3 {
        font-size: 18px;
    }

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

    .disclaimer-banner p {
        font-size: 12px;
    }
}

/* === ANIMATIONS === */
@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.bg-light {
    background-color: var(--light-gray);
}