/* =============================================================================
   HANK ROBOTICS NEWS PAGE STYLES
   ============================================================================= */

/* Global News Page Styles */
.news-page {
  background-color: #f5f5f5;
}

/* Featured Hero Section */
.section-featured-hero {
  background-color: #000;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 80px 40px;
}

.section-featured-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  color: white;
  margin: 16px 0 24px 0;
}

.section-featured-hero .news-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffff00;
  margin-bottom: 16px;
}

.section-featured-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

/* News Grid */
.section-news {
  background-color: #f5f5f5;
  padding: 80px 40px;
}

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

/* News Cards */
.news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

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

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

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

.news-card-date {
  display: inline-block;
  background-color: #ffff00;
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.news-card-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.news-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.news-card-link:hover {
  gap: 12px;
}

.news-card-link span {
  font-size: 16px;
}

/* Services Section */
.section-services {
  background-color: white;
  padding: 80px 40px;
}

.section-services h2 {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  text-align: center;
}

.section-services p {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.service-button {
  padding: 16px 24px;
  border: 2px solid #000;
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: white;
  color: #000;
}

.service-button:hover {
  background-color: #ffff00;
  border-color: #ffff00;
  transform: scale(1.02);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #ffff00;
  color: #000;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #e6e600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 0, 0.3);
}

/* Footer */
.section-footer {
  background-color: #000;
  color: #fff;
  padding: 60px 40px 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #333;
}

.footer-column h3 {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ffff00;
}

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

/* Loading Message */
.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

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

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .section-featured-hero > div {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-featured-hero img {
    height: 300px;
  }
}

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

  .section-featured-hero {
    padding: 60px 20px;
  }

  .section-featured-hero h1 {
    font-size: 32px;
  }

  .section-featured-hero img {
    height: 250px;
  }

  .section-services {
    padding: 60px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-button {
    padding: 12px 16px;
    font-size: 13px;
  }

  .section-footer {
    padding: 40px 20px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-card-title {
    font-size: 16px;
  }

  .news-card-description {
    font-size: 13px;
  }

  .section-services h2 {
    font-size: 28px;
  }

  .section-services p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .section-featured-hero {
    padding: 40px 16px;
  }

  .section-featured-hero h1 {
    font-size: 24px;
  }

  .section-featured-hero .news-label {
    font-size: 11px;
  }

  .section-featured-hero img {
    height: 200px;
  }

  .news-card-date {
    font-size: 11px;
    padding: 3px 10px;
  }

  .news-card-title {
    font-size: 15px;
  }

  .section-services h2 {
    font-size: 24px;
  }

  .section-services p {
    font-size: 14px;
  }

  .service-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 12px;
  }
}

/* Utility Classes */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-large {
  max-width: 100%;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container,
  .container-large {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container,
  .container-large {
    padding: 0 16px;
  }
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card {
  animation: fadeIn 0.5s ease-out forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }
.news-card:nth-child(9) { animation-delay: 0.9s; }