/* Qazaq News Media - Қазақстан жаңалықтар порталы */
/* Негізгі стильдер */

:root {
  --primary-blue: #0077BE;
  --primary-yellow: #FFC629;
  --white: #FFFFFF;
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --hover-blue: #005a91;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-blue);
}

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

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

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0092e0 100%);
  color: var(--white);
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.logo-text h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--white);
}

.logo-text p {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: var(--primary-yellow);
  color: var(--primary-blue);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 5px;
}

.nav {
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 0;
  margin-top: 1rem;
  width: 100%;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--white);
  padding: 1.5rem;
  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: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-yellow);
  color: var(--primary-blue);
}

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

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

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

/* Disclaimer Banner */
.disclaimer-banner {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border-left: 5px solid var(--primary-yellow);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.disclaimer-banner h3 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.disclaimer-banner p {
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0092e0 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Featured News */
.featured-news {
  padding: 3rem 0;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

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

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.news-content {
  padding: 1.5rem;
}

.news-category {
  display: inline-block;
  background: var(--primary-yellow);
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

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

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

.news-excerpt {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.news-author {
  font-weight: 500;
}

.news-date {
  color: var(--text-gray);
}

/* Latest News Section */
.latest-news {
  padding: 3rem 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Categories */
.categories {
  padding: 3rem 0;
  background: var(--light-bg);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: var(--primary-blue);
  color: var(--white);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-yellow);
}

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

.category-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-count {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.category-card:hover .category-count {
  color: rgba(255,255,255,0.8);
}

/* Article Page */
.article-header {
  padding: 3rem 0;
  background: var(--light-bg);
}

.article-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-gray);
  font-size: 1rem;
}

.article-body {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin: 2rem 0;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-content h2 {
  margin-top: 2rem;
  color: var(--primary-blue);
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* About Page */
.about-section {
  padding: 3rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 5px solid var(--primary-yellow);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--primary-blue);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Contact Page */
.contact-section {
  padding: 3rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--primary-blue);
}

.info-content p {
  margin: 0;
  color: var(--text-gray);
}

/* Resources Page */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  border-left: 5px solid var(--primary-blue);
}

.resource-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.resource-list {
  list-style: none;
}

.resource-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-list a:hover {
  color: var(--primary-blue);
}

/* FAQ Page */
.faq-section {
  padding: 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.faq-question {
  background: var(--light-bg);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  transition: background 0.3s ease;
}

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

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

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

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

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

.faq-answer.show {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-gray);
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h3 {
  color: var(--primary-yellow);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--primary-yellow);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: var(--primary-yellow);
  color: var(--primary-blue);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav.active {
    max-height: 500px;
  }
  
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .news-grid,
  .news-list {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.py-1 { padding: 1rem 0; }
.py-2 { padding: 2rem 0; }
.py-3 { padding: 3rem 0; }
