/* Philippine Flag Colors */
:root {
  --ph-red: #ce1126;
  --ph-blue: #0038a8;
  --ph-gold: #fcd116;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f7;
  --gray-medium: #86868b;
  --gray-dark: #1d1d1f;
  --transition: all 0.3s ease;
}

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

.adsbygoogle {
  margin-bottom: 2rem;
}

/* Fix for Google Maps controls */
.gm-style img {
  max-width: none !important;
  max-height: none !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--white);
  color: var(--gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo-icon {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.logo .small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-medium);
}

.logo .large {
  font-size: 1.5rem;
  color: var(--black);
}

.logo .highlight {
  color: var(--ph-red);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0.5rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-menu-toggle [data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 60px;
  right: 0;
  width: 250px;
  height: calc(100vh - 60px);
  background-color: var(--gray-light);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: var(--transition);
  z-index: 999;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar nav {
  padding: 2rem 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 0.5rem;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  color: var(--gray-dark);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.sidebar nav ul li a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.sidebar nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--ph-red);
}

.sidebar nav ul li a.active {
  color: var(--ph-red);
  background-color: rgba(206, 17, 38, 0.12);
  font-weight: 600;
  border-left: 3px solid var(--ph-red);
  padding-left: calc(2rem - 3px);
}

/* Subitem Navigation */
.sidebar nav ul li.subitem a {
  padding-left: 3.5rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.sidebar nav ul li.subitem a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--ph-red);
}

.sidebar nav ul li.subitem a.active {
  color: var(--ph-red);
  background-color: rgba(206, 17, 38, 0.12);
  font-weight: 600;
  border-left: 3px solid var(--ph-red);
  padding-left: calc(3.5rem - 3px);
}

/* Category Headers in Sidebar */
.sidebar .category-header {
  padding: 1.5rem 2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-medium);
}

.sidebar-footer {
  padding: 1.5rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  width: 100%;
}

.sidebar-footer a {
  font-size: 0.85rem;
  color: var(--ph-red);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.sidebar-footer a:hover {
  color: var(--ph-red);
}

/* Main Content */
.main-content {
  margin-left: 0;
  margin-top: 60px;
  padding: 3rem;
  min-height: calc(100vh - 60px);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured Article Section */
.featured-article {
  margin-bottom: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--ph-blue) 0%, var(--ph-red) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.featured-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 0;
}

.featured-article .content {
  position: relative;
  z-index: 1;
}

.featured-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--ph-gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-article h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.featured-article p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-article .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--white);
  color: var(--ph-blue);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.featured-article .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Featured Carousel */
.featured-carousel {
  position: relative;
  margin-bottom: 4rem;
  border-radius: 16px;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: #f0f0f0;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ph-blue) 0%, var(--ph-red) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: flex-end;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 0;
}

.carousel-slide .content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem;
  color: var(--white);
}

.carousel-slide h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-slide p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-slide .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--white);
  color: var(--ph-blue);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.carousel-slide .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 3rem;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ph-red);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  font-size: 0;
  box-sizing: border-box;
}

.carousel-indicators .indicator.active {
  background-color: var(--ph-red);
  transform: scale(1.3);
}

.carousel-indicators .indicator:hover {
  transform: scale(1.2);
}

/* ===== MARKDOWN CONTENT STYLING ===== */

/* Paragraph Content Container */
.paragraph-content {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Bold text in markdown */
.paragraph-content strong {
  font-weight: 700;
  color: var(--gray-dark);
}

/* Bold text in paragraph paragraphs with background highlight */
.paragraph-content p > strong {
  background-color: rgba(128, 128, 128, 0.2);
  display: inline-block;
  padding: 0 0.25em;
  border-radius: 4px;
}

/* Bold text in list items with background highlight */
.paragraph-content li > strong {
  background-color: rgba(128, 128, 128, 0.2);
  display: inline-block;
  padding: 0 0.25em;
  border-radius: 4px;
}

/* Italic text in markdown */
.paragraph-content em {
  font-style: italic;
  color: var(--gray-dark);
}

/* Paragraphs within markdown content */
.paragraph-content p {
  margin-bottom: 1rem;
  color: var(--gray-dark);
  line-height: 1.8;
}

.paragraph-content p:last-child {
  margin-bottom: 0;
}

/* Unordered lists in markdown */
.paragraph-content ul {
  list-style-type: disc;
  margin: 1rem 0;
  padding-left: 2rem;
}

/* Ordered lists in markdown */
.paragraph-content ol {
  list-style-type: decimal;
  margin: 1rem 0;
  padding-left: 2rem;
}

/* List items in markdown */
.paragraph-content li {
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
  line-height: 1.8;
}

/* List markers in red */
.paragraph-content li::marker {
  color: var(--ph-red);
}

.paragraph-content li:last-child {
  margin-bottom: 0;
}

/* Nested lists */
.paragraph-content ul ul,
.paragraph-content ol ol,
.paragraph-content ul ol,
.paragraph-content ol ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.category-card {
  background-color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  transition: var(--transition);
  z-index: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--ph-red);
  transform: scaleY(0);
  transition: var(--transition);
  z-index: 2;
}

.category-card:nth-child(2)::after {
  background-color: var(--ph-blue);
}

.category-card:nth-child(3)::after {
  background-color: var(--ph-gold);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.category-card:hover::after {
  transform: scaleY(1);
}

.category-card:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Article Feed Sections */
.article-section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}

.section-header a {
  color: var(--ph-red);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.section-header a:hover {
  transform: translateX(4px);
}

/* Hero Article Card - Full Width */
.article-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  background-color: var(--gray-light);
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.article-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.article-hero-content {
  position: relative;
  z-index: 20;
  padding: 2rem;
  color: var(--white);
}

.article-hero .source-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ph-gold);
  margin-bottom: 0.5rem;
}

/* Invisible shape blocker for polaroid avoidance */
.article-hero-content.has-polaroids {
  padding-right: 164px;
}

.article-hero h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-hero p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Prominent Social Buttons Section */
.social-buttons-section {
  margin: 3rem 0;
  background: linear-gradient(180deg, rgba(206, 17, 38, 0.02) 0%, rgba(206, 17, 38, 0.01) 100%);
  padding: 0.625rem;
  border-radius: 8px;
}

.social-buttons-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-buttons-message {
  font-size: 0.875rem;
  color: var(--gray-medium);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.2px;
}

.social-buttons-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem;
  width: 140px;
  background-color: var(--ph-red);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(206, 17, 38, 0.2);
}

.social-button:hover {
  background-color: #b80e26;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

.social-button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(206, 17, 38, 0.2);
}

.social-button i {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.social-button span {
  display: inline;
}

/* Featured Article Grid - 2 Columns */
.articles-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card-2 {
  position: relative;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card-2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-card-2-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--gray-light);
}

.article-card-2-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-2 .source-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ph-red);
  margin-bottom: 0.5rem;
}

.article-card-2 h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  color: var(--black);
}

.article-card-2 p {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin: 0;
  flex-grow: 1;
}

/* Polaroid Stack Overlay for Article Cards */
.polaroid-stack {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 0;
  height: 0;
  z-index: 10;
  pointer-events: none;
}

.polaroid-stack-item {
  position: absolute;
  top: 0;
  right: 0;
  height: 200px;
  aspect-ratio: 1600 / 1983;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: rotate(var(--rotation, 0deg)) translate(var(--offset-x, 0px), var(--offset-y, 0px));
  z-index: var(--z-index, 1);
  overflow: hidden;
}

.polaroid-stack-item img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Article Hero Polaroid Stack Styles */
.article-hero .polaroid-stack-item {
  height: 200px;
}

/* Article Grid 2 Polaroid Stack Styles */
.articles-grid-2 .polaroid-stack-item .polaroid-stack-item {
  height: 140px;
  transition: var(--transition);
}

.articles-grid-2 .card-stack:hover :nth-child(1).polaroid-stack-item {
  transform: rotate(5deg) translate(-1px, -1px);
}

.articles-grid-2 .card-stack:hover :nth-child(2).polaroid-stack-item {
  transform: rotate(2deg) translate(-16px, -1px);
}

.articles-grid-2 .card-stack:hover :nth-child(3).polaroid-stack-item {
  transform: rotate(-3deg) translate(-31px, -1px);
}

/* Articles Grid 3 Polaroid Stack Styles */
.articles-grid-3 .polaroid-stack-item {
  height: 140px;
  transition: var(--transition);
}

.articles-grid-3 .card-stack:hover :nth-child(1).polaroid-stack-item {
  transform: rotate(5deg) translate(-1px, -1px);
}

.articles-grid-3 .card-stack:hover :nth-child(2).polaroid-stack-item {
  transform: rotate(2deg) translate(-16px, -1px);
}

.articles-grid-3 .card-stack:hover :nth-child(3).polaroid-stack-item {
  transform: rotate(-3deg) translate(-31px, -1px);
}

/* Card Stack Wrapper - Contains polaroid overflow */
.card-stack {
  position: relative;
}

/* Subcategory Badge */
.article-subcategory-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ph-red);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Featured Article Grid - 3 Columns */
.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card-3 {
  position: relative;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card-3:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-card-3-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: var(--gray-light);
}

.article-card-3-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-3 .source-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ph-red);
  margin-bottom: 0.4rem;
}

.article-card-3 h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: var(--black);
}

/* Featured Article Grid - 4 Columns */
.articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card-4 {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card-4:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-card-4-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background-color: var(--gray-light);
}

.article-card-4-content {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-4 .source-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ph-red);
  margin-bottom: 0.3rem;
}

.article-card-4 h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
  color: var(--black);
}

/* Compact Article List - Horizontal Layout */
.articles-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.article-compact-item {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  padding: 0.75rem;
  border-radius: 8px;
}

.article-compact-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.article-compact-image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  object-fit: cover;
  background-color: var(--gray-light);
  border-radius: 8px;
}

.article-compact-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-compact-item .source-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ph-red);
  margin-bottom: 0.2rem;
}

.article-compact-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: var(--black);
}

/* Chef Profile Cards with Sqircle Images */
.chef-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: var(--gray-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chef-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--chef-bg, linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%));
  opacity: 0.15;
  z-index: 0;
}

/* Chef card backgrounds are now applied inline from chef-colors.ts */

/* View More Link */
.view-more-link {
  color: var(--ph-red);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.view-more-link:hover {
  transform: translateX(4px);
}

/* Chef Grid - Special layout for chef cards */
.chef-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Featured chef card - larger and more prominent */
.chef-featured {
  grid-column: 1 / -1;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin-bottom: 3rem;
  background-color: var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
  min-height: auto;
}

.chef-featured.chef-card {
  flex-direction: row;
}

.chef-featured .chef-image {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.chef-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  text-align: left;
}

.chef-featured-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.chef-featured-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-medium);
}

/* Chef image - display without cropping */
.chef-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background-size: cover;
  background-position: center;
}

.chef-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--ph-red);
  transform: scaleY(0);
  transition: var(--transition);
  z-index: 1;
}

.chef-card:nth-child(2)::after {
  background-color: var(--ph-blue);
}

.chef-card:nth-child(3)::after {
  background-color: var(--ph-gold);
}

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

.chef-card:hover::after {
  transform: scaleY(1);
}

.chef-profile-image {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.chef-card:hover .chef-profile-image {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.chef-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  color: var(--gray-dark);
}

.chef-card p {
  color: var(--gray-medium);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Article Page */
.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  padding-top: 1rem;
}

.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--ph-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.article-category:hover {
  background-color: var(--ph-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.article-intro {
  font-size: 1.25rem;
  color: var(--gray-medium);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Jump to Video Button */
.jump-to-video-container {
  display: flex;
  justify-content: center;
  margin: 2rem auto 3rem;
  max-width: 800px;
}

.jump-to-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--ph-red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(206, 17, 38, 0.2);
}

.jump-to-video-btn:hover {
  background-color: #b80e26;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

.jump-to-video-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(206, 17, 38, 0.2);
}

.jump-to-video-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Related Categories Pill Buttons */
.related-categories {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 3rem;
  max-width: 800px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gray-light);
  color: var(--gray-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pill-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.pill-button:hover {
  background-color: var(--ph-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Inline Location Buttons */
.inline-buttons {
  display: inline-flex;
  gap: 0.375rem;
  margin-left: 0.5rem;
  white-space: nowrap;
  vertical-align: middle;
}

.inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--gray-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: var(--gray-dark);
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.inline-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.inline-btn:hover {
  background-color: var(--ph-red);
  border-color: var(--ph-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

/* Embedded Map */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ranked List */
.ranked-item {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--gray-light);
  border-radius: 12px;
  position: relative;
}

.ranked-item-number {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ph-red) 0%, var(--ph-blue) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lexend", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.ranked-item-content {
  margin-left: 64px;
}

.ranked-item h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.ranked-item .location {
  color: var(--gray-medium);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ranked-item p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ranked-item .review-summary {
  padding: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--ph-gold);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.ranked-item .links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ranked-item .links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.ranked-item .links a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.ranked-item .links a:hover {
  color: var(--ph-blue);
  transform: translateX(2px);
}

/* List item (like ranked-item but without the numbered badge) */
.list-item {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--gray-light);
  border-radius: 12px;
  position: relative;
}

.list-item-content {
  /* No left margin since there's no numbered badge */
}

.list-item h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.list-item .location {
  color: var(--gray-medium);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-item p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.list-item .review-summary {
  padding: 1rem;
  background-color: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--ph-gold);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.list-item .links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.list-item .links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.list-item .links a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.list-item .links a:hover {
  color: var(--ph-blue);
  transform: translateX(2px);
}

/* Donation Button Styling - for disaster relief and similar CTA links */
.list-item .links a[href*="donate"],
.list-item .links a[href*="donate"]:any-link,
.list-item .links a:has-text("Donate") {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ce1126 0%, #a00820 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(206, 17, 38, 0.3);
}

.list-item .links a[href*="donate"]:hover,
.list-item .links a[href*="donate"]:any-link:hover {
  background: linear-gradient(135deg, #a00820 0%, #7d061a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(206, 17, 38, 0.4);
}

/* Alternative: target by label text content using data attributes */
.list-item .links a.donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ce1126 0%, #a00820 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(206, 17, 38, 0.3);
}

.list-item .links a.donate-button:hover {
  background: linear-gradient(135deg, #a00820 0%, #7d061a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(206, 17, 38, 0.4);
}

.list-item .links a.donate-button svg {
  width: 20px;
  height: 20px;
}

/* Footer */
footer {
  margin-left: 0;
  padding: 2rem 3rem;
  background-color: var(--gray-dark);
  color: var(--white);
  text-align: center;
  position: relative;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo {
  width: 48px;
  height: auto;
  opacity: 0.15;
  margin: 0 auto 1.5rem;
  display: block;
}

footer p {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

footer p:not(:last-child) {
  margin-bottom: 1rem;
}

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

footer a:hover {
  color: var(--ph-red);
}

/* Footer Social Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

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

.footer-social-link:hover {
  background-color: var(--ph-red);
  transform: translateY(-2px);
}

.footer-social-link i {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 0 1rem;
    height: 56px;
  }

  .logo .small {
    font-size: 0.7rem;
  }

  .logo .large {
    font-size: 1.1rem;
  }

  .sidebar {
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .main-content {
    margin-left: 0;
    margin-top: 56px;
    padding: 1.5rem 1rem;
  }

  footer {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  footer a {
    color: var(--white);
  }

  .carousel-slide h2 {
    font-size: 1rem;
  }

  .featured-article {
    padding: 1.5rem 1.25rem;
  }

  .featured-article h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .featured-article p {
    font-size: 1rem;
  }

  .article-header {
    padding-top: 0.5rem;
    margin-bottom: 2rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
  }

  .article-intro {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .inline-buttons {
    margin-left: 0.25rem;
    gap: 0.25rem;
  }

  .inline-btn {
    width: 26px;
    height: 26px;
  }

  .inline-btn svg {
    width: 13px;
    height: 13px;
  }

  .related-categories {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .pill-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-card {
    min-height: 160px;
    padding: 1.25rem;
  }

  .category-card h3 {
    font-size: 1.1rem;
    line-height: 1.25;
    word-wrap: break-word;
    hyphens: auto;
  }

  .category-card p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .chef-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .chef-featured.chef-card {
    flex-direction: column;
  }

  .chef-featured {
    align-items: center;
    gap: 0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    min-height: 280px;
  }

  .chef-featured .chef-image {
    width: 180px;
    height: 180px;
    border-radius: 0;
    margin: 0;
    margin-bottom: 1rem;
  }

  .chef-featured-content {
    width: 100%;
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .chef-featured-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
  }

  .chef-featured-content p {
    font-size: 0.75rem;
    margin: 0;
  }

  .chef-card {
    min-height: 240px;
    padding: 1.5rem;
  }

  .chef-profile-image {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    margin-bottom: 1rem;
  }

  .chef-card h3 {
    font-size: 1.2rem;
  }

  .chef-card p {
    font-size: 0.75rem;
  }

  .ranked-item {
    padding: 1.5rem 1rem;
  }

  .ranked-item::before {
    position: relative;
    left: 0;
    top: 0;
    float: left;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .ranked-item-content {
    margin-left: 0;
  }

  .ranked-item h3 {
    display: inline;
    font-size: 1.25rem;
  }

  .ranked-item .location {
    clear: left;
    margin-top: 0.75rem;
  }

  .map-container {
    height: 300px;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .article-content li {
    margin-bottom: 0.5rem;
  }

  /* Markdown content on mobile */
  .paragraph-content {
    font-size: 1rem;
  }

  .paragraph-content p {
    margin-bottom: 0.75rem;
  }

  .paragraph-content p > strong {
    padding: 0 0.2em;
    margin-right: 0.375em;
  }

  .paragraph-content ul,
  .paragraph-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
  }

  .paragraph-content li {
    margin-bottom: 0.375rem;
  }

  .paragraph-content li::marker {
    color: var(--ph-red);
  }

  .paragraph-content ul ul,
  .paragraph-content ol ol,
  .paragraph-content ul ol,
  .paragraph-content ol ul {
    margin: 0.375rem 0;
    padding-left: 1.25rem;
  }
}

/* Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .overlay {
    top: 56px;
  }
}

/* Related Articles Section */
.related-articles-section {
  max-width: 800px;
  margin: 4rem auto 0 auto;
  padding: 3rem 0 0 0;
  border-top: 2px solid var(--gray-light);
}

.related-articles-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--gray-dark);
}

/* Responsive for Related Articles */
@media (max-width: 768px) {
  .related-articles-section {
    margin: 3rem 1rem 0 1rem;
    padding-top: 2rem;
  }

  .related-articles-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ===== NEW CONTENT BLOCKS ===== */

/* Pull Quote */
.pullquote {
  border-left: 4px solid var(--red);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  background-color: transparent;
  border-radius: 0;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--gray-dark);
}

.pullquote p {
  margin: 0;
  font-family: "Caladea", serif;
  font-style: italic;
  font-weight: 400;
}

.pullquote footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray-medium);
  font-style: normal;
  font-weight: 500;
  font-family: "Lexend", sans-serif;
  padding: 0;
  background-color: transparent;
}

.pullquote footer::before {
  content: "— ";
}

.pullquote-image {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
}

.pullquote-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery - Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem 1.5rem;
  margin: 2rem 0;
}

.article-content .gallery-grid img {
  margin: 0;
}

.gallery-item {
  border-radius: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 12px;
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery - Portrait Orientation */
.gallery-portrait .gallery-item img {
  aspect-ratio: 10 / 16;
}

/* Gallery - Masonry Layout */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.125rem 0.75rem;
  margin: 2rem 0;
  grid-auto-flow: dense;
}

.article-content .gallery-masonry img {
  margin: 0;
}

.gallery-masonry .gallery-item {
  border-radius: 0;
  overflow: hidden;
}

.gallery-masonry .gallery-item:nth-child(2n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-masonry .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  will-change: transform;
}

/* Gallery - Carousel */
.gallery-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: transparent;
  aspect-ratio: 16 / 9;
}

.article-content .gallery-carousel img {
  margin: 0;
}

.gallery-carousel .gallery-container {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
}

.gallery-carousel .gallery-item {
  min-width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 0;
}

.gallery-carousel .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  will-change: transform;
  border-radius: 0;
}

.gallery-carousel .gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.gallery-dot.active {
  background-color: white;
}

.gallery-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Callout */
.callout {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  border-left: 4px solid;
}

.callout-tip {
  background-color: rgba(0, 150, 136, 0.08);
  border-left-color: #009688;
}

.callout-warning {
  background-color: rgba(255, 152, 0, 0.08);
  border-left-color: #ff9800;
}

.callout-insight {
  background-color: rgba(63, 81, 181, 0.08);
  border-left-color: #3f51b5;
}

.callout-highlight {
  background-color: rgba(206, 17, 38, 0.08);
  border-left-color: var(--red);
}

.callout-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.callout-tip .callout-icon {
  color: #009688;
}

.callout-warning .callout-icon {
  color: #ff9800;
}

.callout-insight .callout-icon {
  color: #3f51b5;
}

.callout-highlight .callout-icon {
  color: var(--red);
}

.callout-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.callout-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--gray-light);
  border-radius: 12px;
  border-top: 3px solid var(--red);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 32px;
  height: 32px;
  color: var(--red);
  display: block;
  margin: 0 auto 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-family: "Lexend", sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-medium);
  font-weight: 500;
}

/* Comparison */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.comparison-column {
  padding: 1.5rem;
  background-color: var(--gray-light);
  border-radius: 8px;
}

.comparison-column h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red);
}

.comparison-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-column li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.comparison-column li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--gray-light);
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
  align-items: flex-start;
}

.timeline-marker {
  width: 80px;
  height: auto;
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ph-red);
  font-family: "Lexend", sans-serif;
  box-shadow: none;
  padding: 0;
  padding-top: 3px;
  padding-left: 36px;
  position: relative;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
  margin-top: 2px;
}

.timeline-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2px;
  width: 12px;
  height: 12px;
  background-color: var(--ph-red);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(206, 17, 38, 0.15);
  z-index: 1;
  margin-left: -20px;
}

.timeline-content {
  margin-left: 1.5rem;
  padding-top: 2px;
  flex: 1;
}

.timeline-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-medium);
}

/* Features (3-column) */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--gray-light);
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin: 0 auto 1rem;
  display: block;
}

.feature-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-medium);
  line-height: 1.6;
}

/* Accordion */
.accordion {
  margin: 2rem 0;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-light);
}

.accordion-item:first-child .accordion-title {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item:last-child .accordion-content {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.accordion-title {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background-color: var(--gray-light);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.accordion-title::after {
  content: "▼";
  font-size: 0.75rem;
  transition: transform 0.3s;
  transform: rotate(0deg);
}

.accordion-item:has(.accordion-content.open) .accordion-title::after {
  transform: rotate(180deg);
}

.accordion-title:hover {
  background-color: rgba(206, 17, 38, 0.05);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(206, 17, 38, 0.02);
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 1000px;
}

.accordion-inner {
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray-medium);
  line-height: 1.6;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-aspect, 9 / 16);
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--gray-light);
  max-height: max(320px, 100vh);
}

.video-container.video-block-small {
  width: 50%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid layout for consecutive small videos */
.article-content > .video-container.video-block-small {
  display: inline-block;
  width: calc(50% - 1rem);
  margin: 0.5rem;
  vertical-align: top;
}

.article-content > .video-container.video-block-small:nth-child(odd) {
  margin-left: 0;
}

.article-content > .video-container.video-block-small:nth-child(even) {
  margin-right: 0;
}

/* Mobile: Stack small videos vertically */
@media (max-width: 768px) {
  .article-content > .video-container.video-block-small {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem auto;
  }
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-masonry .gallery-item:nth-child(2n + 1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Mobile overrides for all masonry variants - 2 columns max */
  .gallery-masonry-v1,
  .gallery-masonry-v2,
  .gallery-masonry-v3,
  .gallery-masonry-v4,
  .gallery-masonry-v5,
  .gallery-masonry-v6,
  .gallery-masonry-v7,
  .gallery-masonry-v8 {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: auto !important;
  }

  .gallery-masonry-v1 .gallery-item,
  .gallery-masonry-v2 .gallery-item,
  .gallery-masonry-v3 .gallery-item,
  .gallery-masonry-v4 .gallery-item,
  .gallery-masonry-v5 .gallery-item,
  .gallery-masonry-v6 .gallery-item,
  .gallery-masonry-v7 .gallery-item,
  .gallery-masonry-v8 .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

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

  .comparison-container {
    grid-template-columns: 1fr;
  }

  .features-container {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .gallery-prev {
    left: 0.5rem;
  }

  .gallery-next {
    right: 0.5rem;
  }

  .gallery-dots {
    bottom: 0.5rem;
  }

  .callout {
    gap: 1rem;
    padding: 1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    width: 70px;
    font-size: 0.6rem;
    margin-top: 1px;
    padding-top: 1px;
    padding-left: 33px;
  }

  .timeline-marker::after {
    width: 10px;
    height: 10px;
    border-width: 2px;
    top: 1px;
    margin-left: -14px;
  }

  .timeline-content {
    margin-left: 1rem;
    padding-top: 1px;
  }

  .gallery-lightbox {
    display: none;
  }

  .lightbox-image-container {
    max-width: 90vw;
  }

  .lightbox-counter {
    font-size: 0.9rem;
  }
}

/* Gallery Lightbox Styles */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.gallery-lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #ce1126;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem 1.5rem;
  transition: background-color 0.2s;
  z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
  z-index: 10000;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  z-index: 10001;
}

/* Gallery item click cursor */
.gallery-item {
  cursor: pointer;
}

.gallery-item:hover img {
  opacity: 0.9;
}

/* Masonry Layout Variations */

/* Variation 1: 2x2 + column pattern */
.gallery-masonry-v1 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}

.gallery-masonry-v1 .gallery-item:nth-child(1),
.gallery-masonry-v1 .gallery-item:nth-child(2),
.gallery-masonry-v1 .gallery-item:nth-child(5),
.gallery-masonry-v1 .gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 1;
}

/* Variation 2: Alternating large and small */
.gallery-masonry-v2 {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
}

.gallery-masonry-v2 .gallery-item:nth-child(odd) {
  grid-column: span 3;
}

.gallery-masonry-v2 .gallery-item:nth-child(even) {
  grid-column: span 2;
}

/* Variation 3: Feature one large, rest small */
.gallery-masonry-v3 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
}

.gallery-masonry-v3 .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Variation 4: 3-column with varied spans */
.gallery-masonry-v4 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
}

.gallery-masonry-v4 .gallery-item:nth-child(3n + 1) {
  grid-column: span 1;
}

.gallery-masonry-v4 .gallery-item:nth-child(6n + 2) {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-masonry-v4 .gallery-item:nth-child(6n + 3) {
  grid-column: span 1;
}

/* Variation 5: Dual columns with repeating pattern */
.gallery-masonry-v5 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
}

.gallery-masonry-v5 .gallery-item:nth-child(4n + 1),
.gallery-masonry-v5 .gallery-item:nth-child(4n + 4) {
  grid-column: span 2;
}

.gallery-masonry-v5 .gallery-item:nth-child(4n + 2),
.gallery-masonry-v5 .gallery-item:nth-child(4n + 3) {
  grid-column: span 1;
}

/* Variation 6: Staggered tall images */
.gallery-masonry-v6 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
}

.gallery-masonry-v6 .gallery-item:nth-child(5n + 1),
.gallery-masonry-v6 .gallery-item:nth-child(5n + 3) {
  grid-row: span 2;
}

.gallery-masonry-v6 .gallery-item:nth-child(5n + 2),
.gallery-masonry-v6 .gallery-item:nth-child(5n + 4),
.gallery-masonry-v6 .gallery-item:nth-child(5n) {
  grid-column: span 1;
}

/* Variation 7: Spiral pattern */
.gallery-masonry-v7 {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
}

.gallery-masonry-v7 .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-masonry-v7 .gallery-item:nth-child(2),
.gallery-masonry-v7 .gallery-item:nth-child(3) {
  grid-column: span 2;
}

.gallery-masonry-v7 .gallery-item:nth-child(4),
.gallery-masonry-v7 .gallery-item:nth-child(5) {
  grid-column: span 1;
}

.gallery-masonry-v7 .gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Variation 8: Balanced mixed grid */
.gallery-masonry-v8 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
}

.gallery-masonry-v8 .gallery-item:nth-child(8n + 1) {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-masonry-v8 .gallery-item:nth-child(8n + 2),
.gallery-masonry-v8 .gallery-item:nth-child(8n + 3) {
  grid-column: span 1;
}

.gallery-masonry-v8 .gallery-item:nth-child(8n + 4) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-masonry-v8 .gallery-item:nth-child(8n + 5),
.gallery-masonry-v8 .gallery-item:nth-child(8n + 6),
.gallery-masonry-v8 .gallery-item:nth-child(8n + 7) {
  grid-column: span 1;
}

@media (max-width: 768px) {
  /* Responsive Article Cards */
  .article-hero {
    min-height: 250px;
  }

  .article-hero-content {
    padding: 1.5rem;
  }

  .article-hero h3 {
    font-size: 1.3rem;
  }

  .article-hero p {
    font-size: 0.8rem;
  }

  .articles-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-card-2-image {
    height: 150px;
  }

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

  .article-card-3-image {
    height: 120px;
  }

  .articles-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .article-card-4-image {
    height: 100px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header a {
    margin-top: 0.5rem;
  }

  .gallery-lightbox {
    padding: 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
  }

  .lightbox-image-container {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox-counter {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  /* Mobile ranked items - prevent badge overlap */
  .ranked-item {
    padding-top: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .ranked-item-number {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .ranked-item-content {
    margin-left: 0;
  }

  .ranked-item h3 {
    font-size: 1.5rem;
    word-break: break-word;
  }
}

/* ========================================
   SEARCH FUNCTIONALITY
   ======================================== */

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.header-search-input {
  width: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  color: #000;
}

.search-container.expanded .header-search-input {
  width: 140px;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  opacity: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
}

.search-container.expanded .header-search-input::placeholder {
  color: #ccc;
}

.search-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0.5rem;
  color: #000;
  flex-shrink: 0;
}

.search-icon [data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: #000;
}

.search-container.expanded .search-icon {
  display: flex;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
}

.search-container.expanded .search-toggle {
  display: none;
}

.search-results-dropdown {
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 375px;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  margin-left: auto;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

.search-results-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  .search-results-dropdown {
    top: 56px;
    height: calc(100vh - 56px);
  }
}

@media (max-width: 375px) {
  .search-results-dropdown {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: auto;
  }
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.search-dismiss-button {
  display: none;
  padding: 0.5rem 1rem;
  background: #f5f5f7;
  border: none;
  border-bottom: 1px solid #ddd;
  color: #999;
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.search-dismiss-button:active {
  background: #e5e5e7;
}

.search-dismiss-button [data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: #999;
}

/* Show dismiss button on mobile */
@media (max-width: 768px) {
  .search-dismiss-button {
    display: flex;
  }
}

.search-results-grid .article-card-3 {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-results-grid .article-card-3:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.search-results-grid .article-card-3-image {
  height: 120px;
}

.search-results-grid .article-card-3-content {
  padding: 0.75rem;
}

.search-results-grid .article-card-3 h3 {
  font-size: 0.9rem;
  margin: 0;
}

.search-results-grid .article-card-3 .source-label {
  font-size: 0.6rem;
  margin-bottom: 0.3rem;
}

.search-no-results {
  text-align: center;
  padding: 2rem;
  color: #999;
  grid-column: 1 / -1;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #000;
  transition: opacity 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:hover {
  opacity: 0.7;
}

.search-toggle [data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Archive Pages */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.archive-item {
  padding: 1.5rem;
  border-left: 4px solid #ce1126;
  background-color: #f9f9f9;
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.2s;
}

.archive-item:hover {
  background-color: #f0f0f0;
  transform: translateX(4px);
}

.archive-item-date {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.archive-item-link h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  line-height: 1.4;
}

.archive-item-link h3:hover {
  color: #ce1126;
}

.archive-item-link p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Featured Search Result */
.search-result-featured {
  grid-column: 1 / -1;
}

.search-result-featured .article-card-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.search-result-featured .article-card-3-image {
  height: auto;
  min-height: 240px;
}

.search-result-featured .article-card-3-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result-featured .article-card-3-content h3 {
  font-size: 1.25rem;
}

/* Search Archive Section */
.search-archive-section {
  grid-column: 1 / -1;
  border-top: 2px solid #e0e0e0;
  padding-top: 1rem;
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.search-archive-header {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem 0;
  padding: 0 0 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

/* Social Sharing Buttons */
.social-sharing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto;
  padding: 0;
  flex-wrap: wrap;
  max-width: 800px;
}

.social-sharing-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-share-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-share-btn svg {
  width: 20px;
  height: 20px;
}

.social-share-facebook {
  color: #1877f2;
}

.social-share-facebook:hover {
  background-color: #f0f2f5;
}

.social-share-x {
  color: #000;
}

.social-share-x:hover {
  background-color: #f0f0f0;
}

.social-share-email {
  color: #ea4335;
}

.social-share-email:hover {
  background-color: #ffebee;
}

.social-share-copy {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #666;
}

.social-share-copy:hover {
  color: #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Letter Styles */

.story-article {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem 1rem 0 1rem;
}

.story-header {
  margin-bottom: 2rem;
}

.story-hero-image-container {
  margin: 0 0 2rem 0;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.story-hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.story-date {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

.story-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.story-description {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.story-author-section {
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f9f9f9;
  border-left: 4px solid #ce1126;
  border-radius: 4px;
}

.author-profile {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e0e0e0;
}

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

.author-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ddd, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #1a1a1a;
}

.author-title {
  display: block;
  font-size: 0.875rem;
  color: #ce1126;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.author-bio {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.story-content {
  max-width: 800px;
  margin: 3rem 0;
  line-height: 1.8;
}

.story-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.story-content h2:first-child {
  margin-top: 0;
}

.story-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.story-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .story-article {
    padding: 2rem 1rem 0 1rem;
  }

  .related-articles-section {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .story-title {
    font-size: 1.75rem;
  }

  .story-description {
    font-size: 1rem;
  }

  .story-content {
    margin: 2rem 0;
  }

  .story-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-photo {
    width: 80px;
    height: 80px;
  }

  .letter-hero-image-container {
    max-height: 250px;
  }
}

/* Serif Font Class - for editorial/letter content */
.serif {
  font-family: "Caladea", serif;
}

.paragraph-content.serif {
  font-style: italic;
}

h2.serif,
h3.serif {
  font-family: "Caladea", serif;
  font-style: italic;
}

/* Polaroid collection styles */
.polaroid-collection {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem;
}

.polaroid-item {
  position: relative;
  width: 280px;
  margin: 0 -7px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: rotate(var(--rotation, 0deg));
  z-index: var(--z-index, 1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.polaroid-item:hover {
  transform: rotate(var(--rotation, 0deg)) translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.polaroid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Videos Collection Page */
.videos-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--gray-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.video-card-container {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-aspect, 9 / 16);
  overflow: hidden;
}

.video-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-info {
  padding: 1rem;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
  line-height: 1.4;
}

.video-source {
  font-size: 0.85rem;
  color: var(--gray-medium);
  margin-bottom: 0.5rem;
}

.video-source a {
  color: var(--ph-blue);
  text-decoration: none;
  font-weight: 500;
}

.video-source a:hover {
  text-decoration: underline;
}

.video-date {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

/* Default video card - use natural size from grid */
.video-card-default {
  grid-column: span 1;
}

/* Small video card - compact size */
.video-card-small {
  grid-column: span 1;
  max-width: 280px;
  justify-self: center;
}

/* Videos Pagination */
.videos-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination-link {
  padding: 0.75rem 1.5rem;
  background-color: var(--ph-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.pagination-link:hover {
  background-color: var(--ph-red);
  transform: translateY(-2px);
}

.pagination-info {
  font-size: 1rem;
  color: var(--gray-dark);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .videos-collection {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .videos-collection {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .video-card-small {
    max-width: none;
  }

  .videos-pagination {
    gap: 1rem;
  }

  .pagination-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .videos-collection {
    grid-template-columns: 1fr;
  }
}
