/* ===== CSS Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family:
    "Open Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #f5f5f5;
  color: #333333;
  line-height: 1.6;
  min-width: 320px;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Header Banner ===== */
.header-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-pc {
  width: 100%;
  display: block;
}

.banner-mobile {
  display: none;
  width: 100%;
}

/* ===== Main Content ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

.section {
  margin-bottom: 80px;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  /*margin-bottom: 40px;*/
  padding-top:80px;
}
.section:nth-child(1) .section-title{padding-top:20px;}

.section-title h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-title h2 a {
  color: #c41e3a;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.section-title h2 a img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section-title h2 a:hover {
  opacity: 0.9;
}

/* ===== Section 1: Latest ===== */
.latest-news {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -moz-box-orient: horizontal;
  -moz-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 20px;
}

/* Left Area (50%) */
.latest-left {
  width: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.news-card:hover {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #c41e3a;
}

.news-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.news-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.news-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
  -moz-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px;
  background: #fafafa;
  /* border-left: 1px solid #e0e0e0; */
}

.news-content h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
}

/* News Card Large - Image 70%, Text 30% (first card in latest-left) */
.latest-left .news-card:nth-child(1) .news-image {
  width: 65%;
}

.latest-left .news-card:nth-child(1) .news-content {
  width: 35%;
}

/* News Card Small - Image 30%, Text 70% (second card in latest-left) */
.latest-left .news-card:nth-child(2) {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.latest-left .news-card:nth-child(2) .news-image {
  width: 30%;
}

.latest-left .news-card:nth-child(2) .news-content {
  width: 70%;
}

/* Middle Area (25%) */
.latest-middle {
  width: 25%;
}

.latest-middle .news-card {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
}

.latest-middle .news-card .news-image {
  width: auto;
}

.latest-middle .news-card .news-content {
  width: 100%;
  padding: 15px;
  min-height: 100px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.latest-middle .news-card .news-content h3 {
  font-size: 1.2rem;
}

/* Right Area (25%) */
.latest-right {
  width: 25%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.news-title-only {
  display: block;
  padding: 20px 18px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.news-title-only:hover {
  background: #fafafa;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #c41e3a;
}

.news-title-only h4 {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
}

/* ===== Section 2: Opinions ===== */
.opinions-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -moz-box-orient: horizontal;
  -moz-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 30px;
}

.opinion-card {
  width: 25%;
  display: block;
  cursor: pointer;
}

.opinion-image {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%; /* 3:2 aspect ratio */
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #ffffff;
  -webkit-transition: all 0.2s ease !important;
  -o-transition: all 0.2s ease !important;
  transition: all 0.2s ease !important;
}

.opinion-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s ease !important;
  -o-transition: -o-transform 0.3s ease !important;
  transition: transform 0.3s ease !important;
}

.opinion-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 18px;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.opinion-card:hover .opinion-overlay {
  opacity: 1;
}

.opinion-card:hover .opinion-image {
  border-color: #c41e3a;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.opinion-card:hover .opinion-image img {
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
  transform: scale(1.05);
}

.opinion-overlay h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

/* ===== Section 3: Cities ===== */
.cities-news {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -moz-box-orient: horizontal;
  -moz-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 20px;
}

.city-card {
  width: -webkit-calc(33.333% - 14px);
  width: -moz-calc(33.333% - 14px);
  width: calc(33.333% - 14px);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.city-card:hover {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #c41e3a;
}

.city-image {
  width: 50%;
  overflow: hidden;
}

.city-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
  object-fit: cover;
}

.city-content {
  width: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
  -moz-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px;
  background: #fafafa;
  /* border-left: 1px solid #e0e0e0; */
}

.city-content h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
}

/* ===== Section 4: Highlight ===== */
.highlight-news {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-box-orient: horizontal;
  -moz-box-direction: normal;
  -ms-flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.highlight-card {
  display: block;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.highlight-card:hover {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #c41e3a;
}

.highlight-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
}

/* Highlight content with image on top (cards 1, 2, 4, 6) */
.highlight-news .highlight-card:nth-child(1) .highlight-content,
.highlight-news .highlight-card:nth-child(2) .highlight-content,
.highlight-news .highlight-card:nth-child(4) .highlight-content,
.highlight-news .highlight-card:nth-child(6) .highlight-content {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
}

/* Highlight content with text on top (cards 3, 5) */
.highlight-news .highlight-card:nth-child(3) .highlight-content,
.highlight-news .highlight-card:nth-child(5) .highlight-content {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
}

.highlight-image {
  overflow: hidden;
}

.highlight-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  -o-object-fit: cover;
  object-fit: cover;
}

.highlight-text {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px;
  background: #fafafa;
  /* border-left: 1px solid #e0e0e0; */
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.highlight-text h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
  text-align: left;
}

/* 40% width cards (1st and 6th) */
.highlight-news .highlight-card:nth-child(1),
.highlight-news .highlight-card:nth-child(6) {
  width: -webkit-calc(40% - 13.33px);
  width: -moz-calc(40% - 13.33px);
  width: calc(40% - 13.33px);
}

/* 30% width cards (2nd, 3rd, 4th, 5th) */
.highlight-news .highlight-card:nth-child(2),
.highlight-news .highlight-card:nth-child(3),
.highlight-news .highlight-card:nth-child(4),
.highlight-news .highlight-card:nth-child(5) {
  width: -webkit-calc(30% - 13.33px);
  width: -moz-calc(30% - 13.33px);
  width: calc(30% - 13.33px);
}

/* 30% width cards - text flex */
.highlight-news .highlight-card:nth-child(2) .highlight-text,
.highlight-news .highlight-card:nth-child(3) .highlight-text {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

/* ===== Footer ===== */
.footer {
  background-color: #b62b00;
  padding: 40px 20px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-line-1,
.footer-line-2 {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-line-2 a {
  color: #ffffff;
  -webkit-transition: color 0.2s ease;
  -o-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.footer-line-2 a:hover {
  color: #ffe5e5;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1400px) {
  .main-content {
    width: 100%;
    max-width: none;
  }

  .footer-content {
    width: 100%;
    max-width: none;
  }
}

@media screen and (max-width: 1024px) {
  /* Banner - show mobile version on small screens */
  .banner-pc {
    display: none;
  }

  .banner-mobile {
    display: block;
  }

  .main-content {
    padding: 40px 20px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* Latest - Stack vertically */
  .latest-news {
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .latest-left,
  .latest-middle,
  .latest-right {
    width: 100%;
  }

  .latest-left .news-card {
    height: auto;
  }

  .latest-left .news-card {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .latest-left .news-card .news-image,
  .latest-left .news-card .news-content {
    width: 100% !important;
  }

  /* Opinions - 2x2 grid */
  .opinions-grid {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .opinion-card {
    width: -webkit-calc(50% - 15px);
    width: -moz-calc(50% - 15px);
    width: calc(50% - 15px);
  }

  /* Show opinion overlay on tablet */
  .opinion-overlay {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }

  /* Cities - Stack */
  .cities-news {
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .city-card {
    width: 100%;
  }

  /* Highlight - Stack vertically */
  .highlight-news {
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .highlight-news .highlight-card {
    width: 100%;
  }

  .highlight-news .highlight-card:nth-child(1),
  .highlight-news .highlight-card:nth-child(2),
  .highlight-news .highlight-card:nth-child(3),
  .highlight-news .highlight-card:nth-child(4),
  .highlight-news .highlight-card:nth-child(5),
  .highlight-news .highlight-card:nth-child(6) {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .section-title h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .section {
    margin-bottom: 50px;
  }

  .section-title h2 a img {
    transform: scale(1.3);
  }

  /* Opinions - Stack on mobile */
  .opinions-grid {
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .opinion-card {
    width: 100%;
  }

  /* Show opinion overlay on mobile */
  .opinion-overlay {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
}

@media screen and (max-width: 480px) {
  .main-content {
    padding: 30px 15px;
  }

  .section-title h2 {
    font-size: 1.2rem;
  }

  .news-content h3,
  .city-content h3,
  .highlight-text h3,
  .opinion-overlay h3 {
    font-size: 0.9rem;
  }

  .news-title-only h4 {
    font-size: 0.9rem;
  }
}

/* ===== IE11 Specific Fixes ===== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  /* IE11 specific styles */
  .latest-news,
  .opinions-grid,
  .cities-news,
  .highlight-news,
  .news-card,
  .city-card {
    display: -ms-flexbox;
  }

  .latest-left .news-card .news-image {
    min-height: 150px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .main-content {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ===== Touch Device Hover States ===== */
.touch-hover,
.news-card.touch-hover,
.opinion-card.touch-hover,
.city-card.touch-hover,
.highlight-card.touch-hover,
.news-title-only.touch-hover {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  border-color: #c41e3a !important;
}

.opinion-card.touch-hover .opinion-overlay {
  opacity: 1 !important;
  -webkit-transform: translateY(0) !important;
  -moz-transform: translateY(0) !important;
  -ms-transform: translateY(0) !important;
  -o-transform: translateY(0) !important;
  transform: translateY(0) !important;
}

.opinion-card.touch-hover .opinion-image img {
  -webkit-transform: scale(1.05) !important;
  -moz-transform: scale(1.05) !important;
  -ms-transform: scale(1.05) !important;
  -o-transform: scale(1.05) !important;
  transform: scale(1.05) !important;
}

/* ===== Image Loading States ===== */
img.loading {
  opacity: 0.6;
  background-color: #e8e8e8;
  background-image: -webkit-linear-gradient(
    45deg,
    #e8e8e8 25%,
    #f5f5f5 25%,
    #f5f5f5 50%,
    #e8e8e8 50%,
    #e8e8e8 75%,
    #f5f5f5 75%,
    #f5f5f5 100%
  );
  background-image: -moz-linear-gradient(
    45deg,
    #e8e8e8 25%,
    #f5f5f5 25%,
    #f5f5f5 50%,
    #e8e8e8 50%,
    #e8e8e8 75%,
    #f5f5f5 75%,
    #f5f5f5 100%
  );
  background-image: -o-linear-gradient(
    45deg,
    #e8e8e8 25%,
    #f5f5f5 25%,
    #f5f5f5 50%,
    #e8e8e8 50%,
    #e8e8e8 75%,
    #f5f5f5 75%,
    #f5f5f5 100%
  );
  background-image: linear-gradient(
    45deg,
    #e8e8e8 25%,
    #f5f5f5 25%,
    #f5f5f5 50%,
    #e8e8e8 50%,
    #e8e8e8 75%,
    #f5f5f5 75%,
    #f5f5f5 100%
  );
  background-size: 20px 20px;
  -webkit-animation: loading-stripe 1.5s linear infinite;
  -moz-animation: loading-stripe 1.5s linear infinite;
  -o-animation: loading-stripe 1.5s linear infinite;
  animation: loading-stripe 1.5s linear infinite;
}

@-webkit-keyframes loading-stripe {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

@-moz-keyframes loading-stripe {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

@-o-keyframes loading-stripe {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

@keyframes loading-stripe {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

img.loaded {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

img.error {
  opacity: 0.5;
  background-color: #ffe5e5;
}

/* ===== Focus States for Accessibility ===== */
.focus-visible {
  outline: 3px solid #d4a017 !important;
  outline-offset: 2px !important;
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    -moz-animation-duration: 0.01ms !important;
    -o-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    -moz-animation-iteration-count: 1 !important;
    -o-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    -o-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Scroll Animations ===== */
/* Default state - show content */
.section,
.news-card,
.opinion-card,
.city-card,
.highlight-card,
.news-title-only {
  opacity: 1;
}

/* Elements get .animate-ready class via JS to start hidden */
.animate-ready {
  opacity: 0;
  will-change: opacity, transform;
}

/* Animate in - show with animation */
.animate-in {
  opacity: 1 !important;
}

/* Section animations - fade in up */
.section.animate-in {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

/* News cards - fade in up with delays */
.news-card,
.news-title-only {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
  -webkit-transition:
    opacity 0.6s ease-out,
    -webkit-transform 0.6s ease-out;
  -o-transition:
    opacity 0.6s ease-out,
    -o-transform 0.6s ease-out;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.news-card.animate-in,
.news-title-only.animate-in {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

/* Opinion cards - fade in up (unified animation) */
.opinion-card {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
  -webkit-transition:
    opacity 0.6s ease-out,
    -webkit-transform 0.6s ease-out;
  -o-transition:
    opacity 0.6s ease-out,
    -o-transform 0.6s ease-out;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.opinion-card.animate-in {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

/* City cards - fade in up (unified animation) */
.city-card {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
  -webkit-transition:
    opacity 0.6s ease-out,
    -webkit-transform 0.6s ease-out;
  -o-transition:
    opacity 0.6s ease-out,
    -o-transform 0.6s ease-out;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.city-card.animate-in {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

/* Highlight cards - fade in up (unified animation) */
.highlight-card {
  -webkit-transform: translateY(40px);
  -moz-transform: translateY(40px);
  -ms-transform: translateY(40px);
  -o-transform: translateY(40px);
  transform: translateY(40px);
  -webkit-transition:
    opacity 0.6s ease-out,
    -webkit-transform 0.6s ease-out;
  -o-transition:
    opacity 0.6s ease-out,
    -o-transform 0.6s ease-out;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.highlight-card.animate-in {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

/* ===== Unified Delays for All Elements ===== */
/* News cards delays */
.latest-left .news-card:nth-child(1),
.latest-right .news-title-only:nth-child(1) {
  -webkit-transition-delay: 0.1s;
  -o-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

.latest-left .news-card:nth-child(2),
.latest-right .news-title-only:nth-child(2) {
  -webkit-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.latest-middle .news-card,
.latest-right .news-title-only:nth-child(3) {
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

/* Opinion cards delays */
.opinion-card:nth-child(1) {
  -webkit-transition-delay: 0.1s;
  -o-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

.opinion-card:nth-child(2) {
  -webkit-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.opinion-card:nth-child(3) {
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

.opinion-card:nth-child(4) {
  -webkit-transition-delay: 0.4s;
  -o-transition-delay: 0.4s;
  transition-delay: 0.4s;
}

/* City cards delays */
.city-card:nth-child(1) {
  -webkit-transition-delay: 0.1s;
  -o-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

.city-card:nth-child(2) {
  -webkit-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.city-card:nth-child(3) {
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

/* Highlight cards delays */
.highlight-news .highlight-card:nth-child(1) {
  -webkit-transition-delay: 0.1s;
  -o-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

.highlight-news .highlight-card:nth-child(2) {
  -webkit-transition-delay: 0.2s;
  -o-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.highlight-news .highlight-card:nth-child(3) {
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

.highlight-news .highlight-card:nth-child(4) {
  -webkit-transition-delay: 0.4s;
  -o-transition-delay: 0.4s;
  transition-delay: 0.4s;
}

.highlight-news .highlight-card:nth-child(5) {
  -webkit-transition-delay: 0.5s;
  -o-transition-delay: 0.5s;
  transition-delay: 0.5s;
}

.highlight-news .highlight-card:nth-child(6) {
  -webkit-transition-delay: 0.6s;
  -o-transition-delay: 0.6s;
  transition-delay: 0.6s;
}
