/* =========================================
   ARTICLE PAGE STYLES
   ========================================= */

/* --- 1. Article Hero --- */
.article-hero {
  height: 80vh;
  background-image: url("/assets/images/team-hero.jpg");
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
}

.article-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.article-hero .hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 1rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
  color: var(--my-yellow);
  text-decoration: none;
}

.article-hero h1 {
  font-family: var(--stylish-font);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.article-hero h1 span {
  color: var(--my-orange);
}

.author-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.author-tag img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* --- 2. Main Container (Grid) --- */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px; /* Content takes space, Sidebar is fixed width */
  gap: 3rem;
}

/* --- 3. Typography & Content --- */
.main-article p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
  font-size: 1.05rem;
}

.lead-text {
  font-size: 1.25rem !important;
  font-weight: 500;
  color: var(--black) !important;
  border-left: 4px solid var(--my-orange);
  padding-left: 1rem;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block h2 {
  font-family: var(--stylish-font);
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  color: var(--black);
}

.price-tag {
  display: inline-block;
  background: var(--my-orange);
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* --- 4. Fancy Lists & Cards --- */
.fancy-list {
  list-style: none;
  padding: 0;
}

.fancy-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.fancy-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--my-orange);
  font-weight: bold;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.act-card {
  background: var(--soft-off-white);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.act-card:hover {
  transform: translateY(-5px);
  border-color: var(--my-yellow);
}

.act-card svg {
  stroke: var(--my-orange);
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}
.act-card h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.act-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

/* --- 5. Pricing Menu --- */
.pricing-menu {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px dashed #eee;
}

.menu-item:last-child {
  border-bottom: none;
}
.menu-item .price {
  font-weight: 700;
  color: var(--my-orange);
}

/* --- 6. Promo Banner --- */
.promo-banner {
  background: var(--black);
  color: var(--my-yellow);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.promo-banner h3 {
  font-family: var(--stylish-font);
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0;
}
.btn-promo {
  background: var(--my-yellow);
  color: var(--black);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* --- 7. Sidebar --- */
.sidebar {
  position: sticky;
  top: 100px; /* Sticks when scrolling */
  height: fit-content;
}

.widget {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.widget h3 {
  font-family: var(--stylish-font);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--my-yellow);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}
.sidebar-links li {
  margin-bottom: 0.8rem;
}
.sidebar-links a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 600;
  transition: color 0.3s;
}
.sidebar-links a:hover {
  color: var(--my-orange);
  padding-left: 5px;
}

.cta-widget {
  background-size: cover;
  background-position: center;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.widget-overlay {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.widget-overlay h4 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--stylish-font);
}
.widget-overlay a {
  background: var(--my-orange);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
}

/* --- 8. Conclusion Box --- */
.conclusion-box {
  background: var(--soft-yellow-bg);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--my-yellow);
}

.conclusion-box ul {
  text-align: left;
  display: inline-block;
  margin-bottom: 1rem;
}
.conclusion-box button {
  background: var(--black);
  color: var(--my-yellow);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}
.conclusion-box button:hover {
  background: var(--my-orange);
  color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .article-container {
    grid-template-columns: 1fr; /* Stack content and sidebar */
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .article-hero {
    height: 60vh;
  }

  .article-hero h1 {
    font-size: 2.5rem;
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- ARTICLES LIST PAGE STYLES --- */

.articles-list-section {
  padding: 5rem 10%;
  background-color: var(--soft-off-white);
  min-height: 60vh;
}

/* Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Individual Card Design */
.article-preview-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--my-yellow);
}

/* Card Image Area */
.article-preview-card .card-thumb {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.article-preview-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-preview-card:hover .card-thumb img {
  transform: scale(1.05);
}

.category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--my-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Content Area */
.article-preview-card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--medium-text);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.8rem;
}

.article-preview-card h3 {
  font-family: var(--stylish-font);
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: var(--black);
}

.article-preview-card p {
  font-size: 0.95rem;
  color: var(--dark-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit text to 3 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Button */
.read-more-btn {
  margin-top: auto; /* Pushes button to bottom */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.read-more-btn:hover {
  color: var(--my-orange);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .articles-list-section {
    padding: 3rem 1.5rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* --- NEW: INTRO GALLERY (Adapted from Service Page) --- */
.article-intro-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto 1rem auto;
  padding: 0 1rem;
}

.article-intro-gallery .card-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  height: 400px; /* Fixed height for the gallery strip */
}

.article-intro-gallery .wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.article-intro-gallery .wrapper.centre {
  flex: 1.2; /* Center column is slightly wider */
}

.article-intro-gallery .img {
  flex: 1;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-intro-gallery .img:hover {
  transform: scale(1.02);
}

/* --- NEW: INLINE ARTICLE IMAGES --- */
.article-inline-image {
  margin: 2.5rem 0;
  width: 100%;
}

.article-inline-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-inline-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--medium-text);
  text-align: center;
  font-style: italic;
}

/* Mobile Adjustments for Gallery */
@media (max-width: 768px) {
  .article-intro-gallery .card-wrapper {
    height: auto;
    flex-direction: column;
  }

  .article-intro-gallery .wrapper {
    height: 300px; /* Stacked height */
  }
}
