/* ==========================================================================
   Tech Weeklys - Magazine Home Layout & Story Cards
   Exact Match to weekly-clone-master.lovable.app & dubaiweeklys.com
   ========================================================================== */

/* ==========================================================================
   DUBAI WEEKLYS - 3-Column Home Grid Layout
   Left: 2 stacked small cards | Center: Hero | Right: Featured Stories
   ========================================================================== */

.dw-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr 1.1fr;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 12px;
  align-items: stretch;
}

/* LEFT column: 2 stacked small story cards */
.dw-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  height: 100%;
}

.dw-left-col .story-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  margin-bottom: 0;
  background: transparent;
}

.dw-left-col .story-image-link {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  display: block;
  border-radius: 0;
  flex-shrink: 0;
}

.dw-left-col .story-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding-top: 8px;
}

.dw-left-col .story-category {
  display: none !important;
}

.dw-left-col .card-bookmark-btn {
  display: none !important;
}

.dw-left-col .story-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dw-left-col .story-card h3 a {
  color: var(--text-primary);
}

.dw-left-col .story-card h3 a:hover {
  color: var(--color-primary);
}

.dw-left-col .story-time {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* CENTER column: Hero article */
.dw-hero-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dw-hero-img {
  aspect-ratio: 16 / 10.2;
  border-radius: 0;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  background: var(--bg-muted);
}

.dw-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.dw-hero-col:hover .dw-hero-img img {
  transform: scale(1.02);
}

.dw-hero-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding-top: 14px;
  text-align: center;
}

.dw-hero-title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dw-hero-title a {
  color: var(--text-primary);
}

.dw-hero-title a:hover {
  color: var(--color-primary);
}

.dw-hero-lead {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dw-byline {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dw-hero-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

.dw-byline strong {
  color: var(--text-primary);
  font-weight: 600;
}

.dw-byline-dot {
  color: var(--text-muted);
}

/* RIGHT column: Featured Stories sidebar */
.dw-featured-col {
  border-top: 3.5px solid var(--text-primary);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dw-featured-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.dw-featured-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
}

.dw-featured-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  flex: 1;
}

.dw-featured-item:first-child {
  padding-top: 2px;
}

.dw-featured-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.dw-featured-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 80px;
  height: 80px;
  border-radius: 0;
  flex-shrink: 0;
}

.dw-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.dw-featured-item:hover .dw-featured-thumb img {
  transform: scale(1.05);
}

.dw-featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.dw-featured-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dw-featured-info h3 a {
  color: var(--text-primary);
}

.dw-featured-info h3 a:hover {
  color: var(--color-primary);
}

.dw-featured-info .story-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dw-featured-info .story-time svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Advertisement strip */
.dw-advert-strip {
  display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .dw-home-grid {
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto auto;
  }
  .dw-featured-col {
    grid-column: 1 / -1;
    border-top: 3px solid var(--text-primary);
  }
  .dw-featured-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
}

@media (max-width: 680px) {
  .dw-home-grid {
    grid-template-columns: 1fr;
  }
  .dw-hero-title {
    font-size: 1.6rem;
    text-align: left;
  }
  .dw-hero-lead {
    text-align: left;
  }
  .dw-byline {
    justify-content: flex-start;
  }
  .dw-featured-list {
    grid-template-columns: 1fr;
  }
}

/* Main Hero Magazine Grid (3 Columns) */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.15fr;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 36px;
  align-items: start;
}

/* Left Column: Side Leads (2 Stacked Cards) */
.side-leads {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Base Story Card */
.story-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-card);
  transition: transform var(--transition-fast);
}

.story-card:hover .story-image-link img {
  transform: scale(1.04);
}

.story-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
}

.story-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card-bookmark-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  z-index: 10;
}

.story-card:hover .card-bookmark-btn,
.main-lead:hover .card-bookmark-btn,
.category-lead:hover .card-bookmark-btn,
.card-bookmark-btn.saved {
  opacity: 1;
  transform: scale(1);
}

.card-bookmark-btn.saved {
  background: var(--color-primary);
  color: #000000;
}

.card-bookmark-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.story-card-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}

.story-card h3 a {
  color: var(--text-primary);
  display: inline;
}

.story-card h3 a:hover {
  color: var(--color-primary);
}

/* Center Column: Main Lead (Hero Article) */
.main-lead {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-card);
}

.main-lead .story-image-link {
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius-sm);
}

.main-lead:hover .story-image-link img {
  transform: scale(1.03);
}

.main-lead-copy {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
}

.main-lead h1 {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 8px 0 12px;
  text-wrap: balance;
}

.main-lead h1 a {
  color: var(--text-primary);
}

.main-lead h1 a:hover {
  color: var(--color-primary);
}

.main-lead p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.byline strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Right Column: Featured Stories Sidebar */
.featured {
  border-top: 4px solid var(--border-strong);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

.featured > h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.featured-item {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.featured-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.featured-item-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
}

.featured-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

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

.featured-item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.featured-item h3 a {
  color: var(--text-primary);
}

.featured-item h3 a:hover {
  color: var(--color-primary);
}

/* Category Sections (AI, Gadgets, Business, Mobility) */
.category-section {
  border-top: 1px solid var(--border-color);
  padding: 36px 0;
}

.category-section:nth-of-type(even) {
  background-color: var(--bg-alt-section);
}

.category-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Category Big Lead Article */
.category-lead {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
}

.category-lead .story-image-link {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.category-lead:hover .story-image-link img {
  transform: scale(1.03);
}

.category-lead-copy {
  display: flex;
  flex-direction: column;
}

.category-lead h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
}

.category-lead h3 a {
  color: var(--text-primary);
}

.category-lead h3 a:hover {
  color: var(--color-primary);
}

.category-lead p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Category Right Column Cards Grid (2 Columns) */
.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.category-list .story-card h3 {
  font-size: 1.08rem;
}

/* Newsletter Callout Banner */
.newsletter-banner {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-subtle));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 42px 36px;
  margin: 48px 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-primary);
}

.newsletter-copy h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.newsletter-copy p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--color-primary);
}

.newsletter-form button {
  background: var(--color-primary);
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .lead-grid, .hero-grid-4, .dark-carousel-grid, .sidebar-section {
    grid-template-columns: 1fr;
  }
  .three-col-categories, .bottom-grid-6 {
    grid-template-columns: 1fr 1fr;
  }
  .horizontal-cards-grid {
    grid-template-columns: 1fr;
  }
  .main-lead {
    grid-column: 1 / -1;
  }
  .side-leads {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }
  .dark-carousel-list {
    border-left: none;
    border-top: 1px solid #2a2a2a;
    padding-left: 0;
    padding-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  .numbered-card {
    width: 50%;
    flex: none;
    border-bottom: none;
    border-right: 1px solid #2a2a2a;
    padding-right: 16px;
    padding-left: 0;
  }
  .numbered-card:nth-child(even) {
    border-right: none;
    padding-left: 16px;
    padding-right: 0;
  }
}


@media (max-width: 680px) {
  .three-col-categories, .bottom-grid-6, .side-leads, .category-lead, .category-list {
    grid-template-columns: 1fr;
  }
  .lead-grid {
    gap: 24px;
  }
  .main-lead h1 {
    font-size: 1.85rem;
  }
  .category-lead h3 {
    font-size: 1.4rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .horizontal-card {
    grid-template-columns: 100px 1fr;
  }
}

/* ==========================================================================
   DUBAI WEEKLYS CLONE - NEW GRID LAYOUTS (8 Sections)
   ========================================================================== */

/* 1. Hero Featured Grid (1 large left, 3 small stacked right) */
.hero-grid-4 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding-top: 24px;
  padding-bottom: 36px;
  align-items: stretch;
}

/* 2 & 4. 3-Column Category Block (Matches dubaiweeklys.com reference) */
.three-col-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 24px 0;
}

@media (max-width: 992px) {
  .three-col-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .three-col-categories {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.col-block {
  display: flex;
  flex-direction: column;
}

/* Individual column accent colors (matches reference screenshot 2) */
.col-block.col-accent-1 { --col-accent: #FF9F31; } /* Orange / Amber */
.col-block.col-accent-2 { --col-accent: #f43f5e; } /* Coral / Pink / Red */
.col-block.col-accent-3 { --col-accent: #6366f1; } /* Purple / Indigo / Violet */

/* Column header: Title on left, View More on right, solid accent underline across whole column */
.col-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 6px;
  margin-bottom: 20px;
  position: relative;
}
.col-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-top: 2px solid var(--col-accent, var(--color-primary));
  padding-bottom: 1.5px; /* Creates the transparent gap */
  border-bottom: 1px solid var(--col-accent, var(--color-primary));
}

.col-header h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.col-header a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s ease;
  line-height: 1.2;
}

.col-header a:hover {
  color: var(--col-accent, var(--color-primary));
  text-decoration: underline;
}

.col-articles {
  display: flex;
  flex-direction: column;
}

/* ── Compact Horizontal Card (Matches reference screenshot 2) ── */
.compact-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}

.compact-card:last-child {
  border-bottom: none;
}

.compact-thumb {
  display: block;
  width: 112px;
  height: 75px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-muted);
  border-radius: 0;
}

.compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.compact-card:hover .compact-thumb img {
  transform: scale(1.05);
}

.compact-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.compact-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.34;
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.compact-title a:hover {
  text-decoration: underline;
}

.compact-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 6px;
}

.compact-meta .story-time {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.compact-meta .story-time svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}

/* Bookmark button at bottom-right of compact card (matches Screenshot 2) */
.compact-card .compact-bookmark,
.compact-card .card-bookmark-btn.compact-bookmark {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  color: #555555 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.75 !important;
  transform: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  z-index: 1 !important;
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease !important;
}

.compact-card .compact-bookmark svg,
.compact-card .card-bookmark-btn.compact-bookmark svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  fill: none;
  display: block;
}

.compact-card .compact-bookmark:hover,
.compact-card .card-bookmark-btn.compact-bookmark:hover {
  color: var(--text-primary) !important;
  opacity: 1 !important;
  transform: scale(1.15) !important;
}

.compact-card .compact-bookmark.saved,
.compact-card .card-bookmark-btn.saved.compact-bookmark {
  color: var(--color-primary) !important;
  opacity: 1 !important;
  background: transparent !important;
}

.compact-card .compact-bookmark.saved svg,
.compact-card .card-bookmark-btn.saved.compact-bookmark svg {
  fill: currentColor !important;
  stroke: none !important;
}

/* 3 & 5. Dark Featured Section (Matches reference Screenshot 2) */
.dark-featured-carousel {
  background-color: #0e0e0e;
  color: #ffffff;
  padding: 36px 0;
  margin: 24px 0;
}

.dark-featured-carousel .section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 22px;
}

.dark-featured-carousel .section-title-wrap h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: capitalize;
}

.dark-featured-carousel .section-title-wrap a.dark-show-more {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dark-featured-carousel .section-title-wrap a.dark-show-more:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 2-Column Grid: Left Main Lead, Right 3 Stacked Cards */
.dark-carousel-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .dark-carousel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Main Lead (Left) ── */
.dark-main-lead {
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  height: 100%;
}

.dark-lead-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 0;
}

.dark-lead-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.dark-main-lead:hover .dark-lead-img-wrap img {
  transform: scale(1.03);
}

/* Category Badge (Purple/Violet - matching reference) */
.dark-badge {
  background: #6366f1;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 0;
  display: inline-block;
  line-height: 1.3;
}

.dark-lead-img-wrap .dark-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.dark-lead-body {
  position: relative;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
}

.dark-lead-title {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px 0;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}

.dark-lead-title a {
  color: #ffffff;
  text-decoration: none;
}

.dark-lead-title a:hover {
  text-decoration: underline;
}

.dark-lead-excerpt {
  color: #9ca3af;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.dark-lead-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.dark-byline {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.dark-byline strong {
  color: #ffffff;
  font-weight: 600;
}

.dark-meta-divider {
  color: #4b5563;
  margin: 0 3px;
}

.dark-byline .story-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
}

.dark-byline .story-time svg {
  width: 12px;
  height: 12px;
  stroke: #9ca3af;
}

/* Watermark Ghost Numbers */
.dark-watermark-num {
  position: absolute;
  right: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.dark-watermark-lead {
  font-size: 5.2rem;
  bottom: -4px;
  right: 12px;
}

/* ── Right Side Column ── */
.dark-right-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dark-side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

/* Individual Side Card */
.dark-side-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: transparent;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 1;
}

.dark-side-card:last-child {
  border-bottom: none;
  padding-bottom: 16px;
}

.dark-side-thumb {
  display: block;
  width: 140px;
  height: 92px;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 0;
}

.dark-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.dark-side-card:hover .dark-side-thumb img {
  transform: scale(1.05);
}

.dark-side-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  position: relative;
}

.dark-side-content .dark-badge {
  margin-bottom: 6px;
  width: fit-content;
}

.dark-side-title {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px 0;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.dark-side-title a {
  color: #ffffff;
  text-decoration: none;
}

.dark-side-title a:hover {
  text-decoration: underline;
}

.dark-side-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.dark-side-meta .story-time {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dark-side-meta .story-time svg {
  width: 11px;
  height: 11px;
  stroke: #9ca3af;
}

.dark-side-card .dark-watermark-num {
  font-size: 4rem;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

/* Bookmark button inside dark section */
.dark-featured-carousel .compact-bookmark,
.dark-featured-carousel .card-bookmark-btn.compact-bookmark {
  color: #9ca3af !important;
  opacity: 0.8 !important;
}

.dark-featured-carousel .compact-bookmark:hover,
.dark-featured-carousel .card-bookmark-btn.compact-bookmark:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

.dark-featured-carousel .compact-bookmark.saved,
.dark-featured-carousel .card-bookmark-btn.saved.compact-bookmark {
  color: var(--color-primary) !important;
}

/* Carousel Navigation Buttons at bottom */
.dark-carousel-controls {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.dark-nav-btn {
  width: 32px;
  height: 32px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  color: #888888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dark-nav-btn svg {
  width: 16px;
  height: 16px;
}

.dark-nav-btn:hover {
  background: #2a2a2a;
  color: #ffffff;
  border-color: #444444;
}

/* 6. Sidebar Section (Business / Category Archives) */
.sidebar-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 24px 0;
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-widget {
  background: var(--bg-alt-section);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
}
.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-strong);
  padding-bottom: 8px;
}

/* 7. Places To Visit (Horizontal Cards) */
.horizontal-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 24px 0;
}
.horizontal-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}
.horizontal-card .story-image-link {
  aspect-ratio: 1/1;
  border-radius: 50%;
}
.horizontal-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

/* 8. Bottom Grid */
.bottom-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 24px 0;
}

/* Shared Headings */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES FOR NEW LAYOUTS
   ========================================================================== */
@media (max-width: 992px) {
  .horizontal-cards-grid,
  .hero-grid-4,
  .sidebar-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .bottom-grid-6 {
    grid-template-columns: 1fr;
  }
  .horizontal-card {
    grid-template-columns: 110px 1fr;
    gap: 15px;
  }
  .main-lead-copy h1, .main-lead h1 {
    font-size: 1.6rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  .main-lead-copy p {
    font-size: 0.9rem;
    overflow-wrap: break-word;
  }
}

/* ==========================================================================
   Weather Widget - Sidebar
   ========================================================================== */

.weather-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-bottom: 12px;
}

.weather-header {
  background: var(--color-primary);
  padding: 8px 16px;
  margin-bottom: 12px;
}

.weather-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px 4px;
}

/* CRITICAL: Constrain the icon so it never renders at full size */
.weather-icon {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  flex-shrink: 0;
  stroke: var(--color-primary);
}

.weather-temp {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.weather-temp .deg {
  font-size: 1.4rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--text-muted);
}

.weather-forecast {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 12px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forecast-day svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  flex-shrink: 0;
}

.forecast-day span:last-child {
  color: var(--text-primary);
  font-size: 0.78rem;
}

/* ==========================================================================
   About Tech Weeklys Widget - Sidebar
   ========================================================================== */

.about-tech-widget {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

/* Subtle top-right decorative glow */
.about-tech-widget::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,159,49,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.about-tech-inner {
  padding: 24px 22px 20px;
  position: relative;
  z-index: 1;
}

/* Brand Logo Treatment */
.about-tech-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.about-logo-t {
  color: var(--color-primary);
  font-size: 1.85rem;
}

.about-logo-rest {
  color: #f8fafc;
}

/* Double-line accent divider (matches category headers) */
.about-tech-divider {
  width: 100%;
  height: 4px;
  position: relative;
  margin-bottom: 14px;
}

.about-tech-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

.about-tech-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 1px;
  background: rgba(255,159,49,0.4);
}

/* Description text */
.about-tech-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* Footer row: CTA + socials */
.about-tech-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.about-tech-cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.about-tech-cta:hover {
  opacity: 0.75;
}

/* Social Icons */
.about-tech-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.about-social-link:hover {
  background: var(--color-primary);
  color: #000;
}


