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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  color: #fff;
  overflow-x: hidden;
}

.blog-section {
  min-height: 100vh;
  padding: 100px 20px;
  position: relative;
}

/* Animated Background */
.blog-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

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

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -2px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.divider-line {
  width: clamp(40px, 10vw, 80px);
  height: 2px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.divider-bar {
  width: clamp(30px, 8vw, 50px);
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.section-header p {
  color: #94a3b8;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  padding: 0 15px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 35px;
  position: relative;
  z-index: 1;
}

.blog-card {
  background: rgba(20, 27, 45, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0),
    rgba(59, 130, 246, 0),
    rgba(139, 92, 246, 0)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  border-radius: 24px;
}

.blog-card:hover::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.3),
    rgba(59, 130, 246, 0.3),
    rgba(139, 92, 246, 0.3)
  );
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 25px 60px rgba(6, 182, 212, 0.25),
    0 0 80px rgba(6, 182, 212, 0.15);
}

.blog-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #06b6d4, transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.blog-card:hover::after {
  opacity: 1;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.blog-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9);
}

.blog-card:hover .blog-image img {
  transform: scale(1.2);
  filter: brightness(1.1);
}

.blog-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 14, 39, 0.4) 40%,
    rgba(10, 14, 39, 0.95) 100%
  );
}

.blog-category {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 20px;
  background: rgba(6, 182, 212, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 25px;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 600;
  color: #06b6d4;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
  background: rgba(6, 182, 212, 0.3);
  transform: scale(1.05);
}

.blog-content {
  padding: clamp(20px, 4vw, 30px);
  position: relative;
  z-index: 2;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  color: #64748b;
  margin-bottom: 15px;
  font-weight: 500;
}

.blog-date i {
  color: #06b6d4;
  font-size: 1rem;
}

.blog-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  transition: all 0.4s ease;
  line-height: 1.4;
}

.blog-card:hover .blog-title {
  color: #06b6d4;
  transform: translateX(5px);
}

.blog-description {
  color: #94a3b8;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.7;
  margin-bottom: 25px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #06b6d4;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
}

.read-more::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  transition: width 0.4s ease;
}

.blog-card:hover .read-more::after {
  width: 100%;
}

.blog-card:hover .read-more {
  gap: 15px;
  color: #3b82f6;
}

.read-more i {
  font-size: 1rem;
  transition: transform 0.4s ease;
}

.blog-card:hover .read-more i {
  transform: translateX(5px);
}

/* Latest News Sidebar */
.latest-news-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
  z-index: 1;
}

.sidebar-card {
  background: rgba(20, 27, 45, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}

.sidebar-header h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-icon {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: #06b6d4;
  animation: flash 2s infinite;
}

@keyframes flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.news-item {
  display: flex;
  gap: 15px;
  padding: clamp(14px, 3vw, 18px);
  margin-bottom: 18px;
  background: rgba(10, 14, 39, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #06b6d4, #3b82f6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-item:hover::before {
  opacity: 1;
}

.news-item:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15);
}

.news-image {
  width: clamp(70px, 15vw, 90px);
  height: clamp(70px, 15vw, 90px);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.news-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-item:hover .news-image::after {
  opacity: 1;
}

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

.news-item:hover .news-image img {
  transform: scale(1.15);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-title {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-item:hover .news-title {
  color: #06b6d4;
}

.news-date {
  font-size: clamp(0.75rem, 1.5vw, 0.8rem);
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.news-date i {
  font-size: 0.75rem;
  color: #06b6d4;
}

.news-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 12px;
  font-size: clamp(0.65rem, 1.2vw, 0.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.news-badge.trending {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
}

/* View All Button */
.view-all-container {
  text-align: center;
  margin-top: 60px;
  grid-column: 1 / -1;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(14px, 3vw, 18px) clamp(30px, 6vw, 50px);
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.view-all-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.view-all-btn:hover::before {
  opacity: 1;
}

.view-all-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.5);
}

.view-all-btn span {
  position: relative;
  z-index: 1;
}

.view-all-btn i {
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.view-all-btn:hover i {
  transform: translateX(8px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .latest-news-sidebar {
    position: relative;
    top: 0;
    margin-top: 40px;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  }
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .blog-section {
    padding: 80px 15px;
  }

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

  .blog-grid {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 60px 10px;
  }

  .section-header h2 {
    letter-spacing: -1px;
    margin-bottom: 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card {
    max-width: 100%;
  }

  .blog-image {
    height: 200px;
  }

  .blog-category {
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    letter-spacing: 1px;
  }

  .sidebar-card {
    padding: 20px;
  }

  .sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .news-item {
    gap: 12px;
    margin-bottom: 15px;
  }

  .view-all-container {
    margin-top: 40px;
  }

  /* Disable hover effects on touch devices */
  .blog-card:hover {
    transform: none;
  }

  .news-item:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .blog-section {
    padding: 50px 10px;
  }

  .section-header h2 {
    margin-bottom: 15px;
  }

  .divider {
    gap: 8px;
    margin-bottom: 20px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-title {
    margin-bottom: 12px;
  }

  .blog-description {
    margin-bottom: 20px;
  }

  .blog-category {
    padding: 5px 12px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  .sidebar-card {
    padding: 18px;
  }

  .sidebar-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-item {
    padding: 12px;
    gap: 10px;
  }

  .view-all-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .blog-image {
    height: 180px;
  }

  .blog-content {
    padding: 18px;
  }

  .news-badge {
    display: block;
    margin-left: 0;
    margin-top: 5px;
    width: fit-content;
  }
}

/* WOW Animation Classes */
.wow {
  visibility: hidden;
}

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

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 15px;
}

.footer-logo {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: white;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--secondary);
}

.footer-links {
  display: flex;
  list-style: none;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links li {
  margin: 5px 15px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  color: var(--gray);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  padding: 0 15px;
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .blog-section {
    padding: 40px 15px;
  }

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

  .blog-image {
    height: 150px;
  }
}

/* Print Styles */
@media print {
  .blog-section::before {
    display: none;
  }

  .blog-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .view-all-btn,
  footer {
    display: none;
  }
}