/* =====================================================
   1) COLOR VARIABLES & GLOBAL RESET
===================================================== */

/* ----------------------
   Lighter Dragon Theme
----------------------- */
:root {
  /* Background & Text */
  --bg-color: #2a2a2a;         /* A lighter dark gray for overall background */
  --text-color: #fafafa;       /* Brighter text for strong contrast */
  --text-color-subtle: #ddd;   /* Slightly dimmer text for secondary elements */

  /* Dragon Red & Gold */
  --dragon-red: #ad4343;       /* Lighter red tone */
  --dragon-red-hover: #8a3535; /* Slightly darker red for hover */
  --other-hover: #e4ce83;
  --gold: #dbbf7c;             /* Lighter gold accent */
  --gold-hover: #8e713e;       /* Gold hover state */

  /* Fonts */
  --font-sans: 'Lora', serif;  /* Using Lora; change as needed */
}

/* Global Reset / Defaults */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.7;
}

.date {
  font-size: 0.85rem;
  color: var(--text-color-subtle);
  margin: -18px -10px -15px auto;
  font-style: italic;
  display: block;
  width: fit-content;
}

/* =====================================================
   2) DESKTOP NAVIGATION (MAIN NAV + SUB NAV)
===================================================== */

/* 2A. Main Navigation Container */
.nav-container {
  display: flex;
  align-items: center;          /* vertical centering */
  justify-content: space-between; /* space between logo and nav links/hamburger */
  background: #3b3b3b;
  padding: 11px 10px 0 10px;
  margin: 0;
  position: relative;
  z-index: 1000;
  /* border-bottom: 1px solid #555;  <-- optional */
}

/* Navigation Logo */
.nav-container a .logo {
  /*
    Removed:
      position: absolute;
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
    So the logo remains in normal flow.
  */
  height: 40px;
  width: 40px;
  margin-right: 20px;     /* optional space to the right of the logo */
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
}

/* 2B. Hamburger (Desktop - hidden by default) */
.hamburger {
  display: none;      /* hidden on desktop by default */
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  /* Removed any absolute positioning. */
  width: 40px;
  height: 35px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  margin: 4px 0;
  transition: transform 0.3s ease,
              opacity 0.3s ease,
              background-color 0.3s ease;
}

/* Hamburger Active State */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--gold);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--gold);
}

/* 2C. Nav Links (Desktop) */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0 auto; /* centers links if there's horizontal space */
  padding: 0;
  transition: max-height 0.3s ease-in-out; /* optional smooth transition */
}

.nav-links li {
  margin: 0 10px;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 12px 18px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  font-size: 16px;
}

/* Hover effect for nav links */
.nav-links li a:hover {
  color: #fff;
  border-bottom: 2px solid var(--gold);
  transition: border-bottom 0.3s ease-in-out;
}

/* Active link in dragon red */
.nav-links li a.active {
  background: var(--dragon-red);
  color: #fff;
  border-radius: 5px;
}

/* 2D. Sub Navigation Bar (Desktop) */
.sub-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #3b3b3b;
  border-bottom: none;
  position: relative;
  z-index: 1000; 
}

/* 2E. Focus States for Accessibility */
.hamburger:focus,
.nav-links li a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =====================================================
   3) Mobile setup
===================================================== */

/* Hide mobile-only elements on desktop */
@media (min-width: 769px) {
  .mobilenav-container,
  .mobile-hamburger,
  .mobile-menu {
    display: none;
  }
}

/* Ensure mobile navigation works properly */
@media (max-width: 768px) {
  /* Hide desktop nav on mobile */
  .nav-container, .sub-nav {
    display: none;
  }
  /* MOBILE HEADER (Fixed at the Top) */
  .mobilenav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #3b3b3b;
    padding: 5px 15px;
    z-index: 1100;
  }

  /* Mobile Logo (inside top bar) */
  .mobilenav-container .logo {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 7px;
    /* margin-right: auto; <-- only if you want to push hamburger to the far right */
  }
  
  /* Mobile Hamburger (Right Side) */
  .mobile-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* No fixed or absolute positioning here, so Flex can center it. */
    width: 50px;
    height: 50px;
    font-size: 30px;
    color: var(--text-color);
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    z-index: 1101;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: 10px; /* Moves it towards the left */
  }

  /* Hamburger Lines */
  .mobile-hamburger span {
    transform-origin: center center;
    display: block;
    width: 100%;
    height: 4px;
    margin: 4px 0;
    background-color: var(--text-color) !important;
    transition: transform 0.3s ease,
                opacity 0.3s ease,
                background-color 0.3s ease;
  }

  /* Active (“X”) state */
  .mobile-hamburger.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(50deg);
  }
  .mobile-hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-hamburger.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-50deg);
  }

  /* MOBILE MENU (Side Drawer) */
  .mobile-menu {
    position: fixed;
    top: -20px;
    left: -100%;
    width: 65%;
    max-width: 180px;
    height: 100%;
    background: #3b3b3b;
    padding: 10px;
    transition: left 0.3s ease-in-out;
    z-index: 1099;
  }

  /* Make Menu Visible When Active */
  .mobile-menu.active {
    left: 0;
  }

  /* LOGO INSIDE MENU */
  .mobile-menu .logo {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
  }

  /* Mobile Menu Links */
  .mobile-menu .menu-list {
    list-style: none;
    margin: 80px 0 0 0;
    padding: 0;
  }

  .mobile-menu .menu-list li {
    margin-bottom: .5rem;
  }

  .mobile-menu .menu-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
  }

  /* Active Link (Highlighted in Red) */
  .mobile-menu .menu-list a.active {
    background: var(--dragon-red) !important;
    color: #fff !important;
    border-radius: 5px;
    display: inline-block; 
  }

  .mobile-menu .toggle-sub {
    background: transparent !important;
    border: none !important;
    color: var(--text-color) !important;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 5px;
  }

  /* Close Button (Optional) */
  .mobile-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #fafafa;
    background: none;
    border: none;
    cursor: pointer;
  }
  .sub-menu {
    display: none;
  }
  .sub-menu.open {
    display: block;
  }
  .content-wrapper {
    padding: 15px;
    text-align: center;
    /*max-width: 1400px;
    margin: 0 auto; Test for ultra wide*/
  }

  .insight-card .hidden-content h2 {
    font-size: 1.3rem !important;
    line-height: 1.4;
  }  

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .footer {
    text-align: center;
    padding: 20px;
  }
  .services-intro h2 {
    font-size: 1.5rem; /* Reduce size for mobile */
  }

  .services-intro p {
    font-size: 1rem; /* Adjust paragraph size for better readability */
  }
  .service-card h3 {
    font-size: 1.3rem; /* Slightly smaller for a more balanced look */
  }

  .image-pair-block {
    flex-direction: column;
  }

  .image-pair-block .image-block figcaption {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: -10px;
  }

  .identity-poem-section h3 {
    font-size: 1.2rem !important; /* Slightly smaller for a more balanced look */
  }
  .about-section h2 {
    font-size: 1.2rem !important;
  }
  
  .about-header-row {
    gap: 0.70rem !important;
    flex-direction: column;
    align-items: center !important;
    margin-top: -10px !important;
    margin-bottom: 0px !important;
  }

  .about-header-row h2 {
    font-size: 1.2rem !important;
  }

  .about-header-img {
    width: 75px !important;
    max-width: 75px !important;
    object-fit: contain;
    margin: 0 auto !important;
  }
  .testimonials {
    padding: 30px 15px;
  }

  .testimonials h2 {
    font-size: 1.5rem !important;
    margin-bottom: 20px;
  }

  .testimonial {
    padding: 15px;
    margin: 15px auto;
  }

  .testimonial blockquote {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .testimonial p {
    font-size: 0.9rem;
    text-align: left;
    margin-top: 15px;
  }
}

/* =====================================================
   4) HERO SECTION
===================================================== */

.hero {
  position: relative;
  text-align: center;
  background: url("../images/background.png") no-repeat center center / cover;
  height: 400px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--gold);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-color-subtle);
}


.cta-button {
  display: inline-block;
  padding: 12px 20px;
  background: var(--gold);
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.cta-button:hover {
  background: var(--dragon-red-hover);
  transform: scale(1.05);
}



/* =====================================================
   5) CATEGORIES & FILTER
===================================================== */

.categories-filter {
  text-align: center;
  margin: 30px 0;
}

.categories-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.category {
  text-align: center;
  background: #3b3b3b;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.category img {
  width: 100%; /* Ensures all images take up full width of their container */
  height: auto; /* Maintains aspect ratio */
  border-radius: 10px; /* Keeps the rounded corners */
  display: block; /* Removes unwanted spacing below images */
}


.category h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--gold);
}
.category p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color-subtle);
}
.read-more {
  display: inline-block;
  padding: 12px 20px;
  background: var(--gold);
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.read-more:hover {
  background: var(--gold-hover);
  transform: scale(1.05);
}


/* =====================================================
   6) FOOTER
===================================================== */

footer {
  text-align: center;
  padding: 20px;
  background: #1d1d1d;
  color: #ccc;
  border-top: 1px solid #555;
}

footer p a {
  color: var(--gold);
  text-decoration: none;
}

footer p a:hover {
  color: var(--gold-hover);
}

.social-links-footer p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links-footer a {
  color: var(--gold);
  text-decoration: none;
}

.social-links-footer a:hover {
  text-decoration: underline;
}

/* =====================================================
 7) MAIN ABOUT SECTION
===================================================== */
.featured-first-poem {
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  max-width: 800px;
  background: rgba(50, 50, 50, 0.95);
  border-top: 4px solid var(--dragon-red);
  border-bottom: 4px solid var(--dragon-red);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
  line-height: 1.75;
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: left;
  backdrop-filter: blur(3px);
}


.featured-first-poem h3,
.featured-first-poem h4 {
  color: var(--gold);
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.featured-first-poem h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--dragon-red);
  margin: 10px auto;
  opacity: 0.7;
}

.featured-first-poem blockquote {
  font-style: italic;
  border-left: 3px solid var(--dragon-red);
  padding-left: 1rem;
  margin: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.featured-first-poem blockquote p {
  margin: 0.75rem 0;
}

.featured-first-poem figcaption {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--caption-color, #bbb);
  text-align: center;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  line-height: 1.6;
}


.caption-subtext {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}


.main-section {
  margin: 0.5in; /* 1/2-inch margin around */
  padding: 20px;
  background: #3b3b3b;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: center;
}
.main-section img {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.main-section p {
  line-height: 1.5; /* Slightly more spacing */  
}

.main-section h2 {
  margin-bottom: 5px; /* A little spacing but not too much */
  line-height: 1.3; /* Keeps heading text readable */
  text-align: center;
  color: var(--gold);
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.main-section p:first-of-type {
  margin-top: 12px; /* Adds a bit more breathing room */
}

.main-section ul {
  margin-top: 15px; /* Adjust list spacing */
}

.main-section ul li {
  padding-left: 5px; /* Prevents text from feeling too tight */
}

.main-section a {
  color: var(--gold);
  text-decoration: none;
  text-decoration: underline;
  text-underline-offset: 3px; /* Moves underline lower */
  text-decoration-thickness: 1px; /* Adjust thickness */

}
.main-section a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.main-section .cta-button:hover {
  background-color: var(--dragon-red-hover); /* Darker red on hover */
  color: var(--other-hover) !important;
  text-decoration: none !important; /* Remove underline for a clean button look */
}

/* Override global styles for links inside CTA buttons */
.main-section .cta-button {
  display: inline-block;
  background-color: var(--dragon-red);
  color: #ffda09 !important; /* Ensure text is readable */
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

/* Ensure no underline appears inside the button */
.main-section .cta-button a {
  color: inherit !important;
  text-decoration: none !important;
}

/* =====================================================
   8) ABOUT SECTION
===================================================== */

.about-section {
  margin: 0.5in; /* 1/2-inch margin around */
  padding: 20px;
  background: #3b3b3b;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-color);
}
.about-section img {
  float: left;
  margin: 0 20px 20px 0;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.about-section p {
  line-height: 1.5; /* Slightly more spacing */  
}

.about-section h2 {
  margin-bottom: 5px; /* A little spacing but not too much */
  line-height: 1.3; /* Keeps heading text readable */
  text-align: center;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.about-section p:first-of-type {
  margin-top: 12px; /* Adds a bit more breathing room */
}

.about-section ul {
  margin-top: 15px; /* Adjust list spacing */
}

.about-section ul li {
  padding-left: 5px; /* Prevents text from feeling too tight */
}

.about-section a {
  color: var(--gold);
  text-decoration: none;
  text-decoration: underline;
  text-underline-offset: 3px; /* Moves underline lower */
  text-decoration-thickness: 1px; /* Adjust thickness */

}
.about-section a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.about-section .cta-button:hover {
  background-color: var(--dragon-red-hover); /* Darker red on hover */
  color: var(--other-hover) !important;
  text-decoration: none !important; /* Remove underline for a clean button look */
}

/* Override global styles for links inside CTA buttons */
.about-section .cta-button {
  display: inline-block;
  background-color: var(--dragon-red);
  color: #ffda09 !important; /* Ensure text is readable */
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

/* Ensure no underline appears inside the button */
.about-section .cta-button a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Divider Styling */
.divider {
  border: 0;
  height: 2px;
  background: var(--gold);
  margin: 30px 0;
}

/* Quote Styling */
.quote {
  font-style: italic;
  color: var(--text-color-subtle);
  margin: 20px 0;
  text-align: center;
  font-size: 1.2rem;
}

/* Call-to-Action Section */
.cta-section {
  text-align: center;
  margin-top: 40px;
}

.cta-section .cta-button {
  margin: 10px;
  font-size: 1rem;
  transition: background 0.3s;
}
.cta-section .cta-button:hover {
  background: var(--dragon-red-hover);
}

.image-block figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.image-pair-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin: 2rem 0;
}

.image-pair-block .image-block {
  max-width: 100%;
  flex: 1 1 300px;
  text-align: center;
}

.image-pair-block .image-block img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.image-pair-block .image-block figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-color-subtle);
  font-style: italic;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -15px;
  line-height: 1.3;
}

.identity-poem-section {
  margin: 3rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02); /* soft highlight in dark theme */
  border-left: 4px solid var(--dragon-red);
  font-style: italic;
  margin-bottom: 5px;
  margin-top: 15px;
}
.identity-poem-section h3 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: -10px;
  margin-top: -15px;

}

.identity-poem-section p {
  margin-bottom: -10px;
}
.caption-subtext {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-color-subtle);
  font-style: normal;
  opacity: 0.8;
  margin-top: 0px;
}

.about-avatar-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-header-row {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* ALIGN TO BOTTOM */
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
  margin-top: -10px !important;
  flex-wrap: nowrap;
  text-align: center;
  position: relative;
}

.about-header-row {
  display: flex;
  align-items: flex-end; /* NEW: Align all content to the same baseline */
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
}

.about-header-row img {
  width: 120px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0;
  padding: 0;
  object-fit: contain;
  align-self: flex-end; /* NEW: Make sure both images touch the bottom line */
}

.about-header-row h2 {
  margin: 0;
  font-size: 1.5rem;
  flex: 1 1 auto;
  white-space: nowrap;
}

.about-header-img {
  width: 100px;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  align-self: flex-end; /* overrides any weird flex stretching */
}

.about-header-img:hover {
  transform: scale(1.05);
}


/* Optional hover sparkle effect */
.about-header-img:hover {
  transform: scale(1.05);
}


/* =====================================================
   9) TIMELINE
===================================================== */

.timeline {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.timeline li {
  margin: 10px 0;
  position: relative;
  padding-left: 20px;
}
.timeline li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--dragon-red);
  font-size: 1.2rem;
}

.indent {
  padding-left: 20px; /* Adjust as needed */
  display: inline-block;
  width: 1em; /* Adjust bullet spacing */
}

p span.indent + br {
    margin-bottom: 8px; /* Adds space after each bullet point */
}

/* "Read More" Button for Expanding Poems */
button:not(.hamburger) {
  padding: 10px 15px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

button:not(.hamburger):hover {
  background: var(--gold-hover);
  transform: scale(1.05);
}

/* =====================================================
   10) POEMS SECTION
===================================================== */

.poems-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1400px; /* Or 1200px depending on your comfort */
  margin: 0 auto;
  padding: 20px;
}

.poem-card {
  background: #3b3b3b;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.poem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}
.poem-card img {
  width: 100%;
  height: auto;
  max-height: 100%;       /* Keeps image consistent in card */
  object-fit: contain;     /* No cropping */
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
}


.poem-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-color);
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poem-card p {
  font-size: 1rem;
  color: var(--text-color-subtle);
  text-align: center;
}

.hidden-poem {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #4b4b4b;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
  text-align: center;
  color: var(--text-color-subtle);
}

.hidden-poem,
.hidden-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* =====================================================
   Testimonals
===================================================== */
.testimonials {
  background-color: var(--bg-color);
  padding: 40px 20px;
  border-top: 2px solid var(--dragon-red-hover);
  border-bottom: 2px solid var(--dragon-red-hover);
  font-family: var(--font-sans);
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--gold);
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.03); /* translucent glow effect */
  border-left: 4px solid var(--dragon-red);
  margin: 20px auto;
  padding: 20px;
  max-width: 800px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.testimonial blockquote {
  margin: 0;
  padding: 0;
  font-style: italic;
  color: var(--text-color-subtle);
  line-height: 1.7;
}

.testimonial p {
  margin-top: 10px;
  text-align: right;
  font-weight: bold;
  color: var(--gold);
}

.testimonial:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 16px rgba(219, 191, 124, 0.2); /* gold glow on hover */
  transition: all 0.3s ease;
}

/* =====================================================
  12 INSIGHTS SECTION
===================================================== */

.insights-section {
  padding: 40px 20px;
  background: var(--bg-color);
  color: var(--text-color);
  text-align: center;
}

/* Insight Article Grid */
.insight-article {
  max-width: 750px or 1200px;  /* Limits text width for readability */
  margin: 0 auto;    /* Centers the content */
  padding: 30px;     /* Adds breathing space */
  line-height: 1.7;  /* Improves readability */
  font-size: 1.1rem; /* Matches other sections */
}

.insight-article p {
  margin-bottom: 20px;
  text-align: left;
}

.insight-article h2 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.insight-article h4 {
  padding-bottom: 6px;
  margin-bottom: 5px;
  text-align: left;
  font-style: italic;
  font-weight: normal;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.insight-article ul {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 25px;
}

.insight-article ul li {
  text-align: left;
  margin-bottom: 12px;
  line-height: 1.6;
}


/* Insight Card */
.insight-card {
  background: #3b3b3b;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.insight-card img {
  width: 100%;              /* Full width of card */
  height: auto;             /* Maintain natural aspect ratio */
  max-height: 600px;        /* Limits tall images */
  object-fit: contain;     /* ensures no cropping */
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 10px;
}

.insight-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--gold);
}


.insight-card p {
  font-size: 1rem;
  color: var(--text-color-subtle);
  margin-bottom: 15px;
}

/* Read More Button */
.insight-card button {
  background: var(--gold);
  color: #000;
  padding: 8px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s ease-in-out;
}

.insight-card button:hover {
  background: var(--gold-hover);
  transform: scale(1.05);
}

/* Hidden Article Content */
.hidden-content {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #4b4b4b;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
  text-align: center;
  color: var(--text-color-subtle);
}

.signature {
  margin-top: 40px;
  font-style: italic !important;
  font-size: 1rem !important;
  text-align: right !important;
  color: var(--text-color-subtle);
}

.signature .lionheart {
  font-weight: bold !important;
  font-family: var(--font-sans), serif;
  color: var(--gold);
}

.footer-signature {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-color-subtle);
  margin-bottom: 10px;
  text-align: center;
}

.lionheart {
  color: var(--gold);
  font-weight: bold;
}

.preview-text {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-color-subtle);
  line-height: 1.6;
  text-align: center !important;
}

.preview-condensed {
  font-size: 1rem;
  color: var(--text-color-subtle);
  line-height: 1.6;
  text-align: center !important;
  margin-bottom: 15px;
  margin-top: -10px;
}

.preview-condensed br {
  display: block;
  content: '';
  margin-top: 0.5rem; /* tighter spacing than <p> or <br><br> */
}


/* ========================
   Code Block Styling
======================== */

/* Inline code styling */
p code, li code {
  background-color: #333;
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-sans), Courier, monospace;
  font-size: 0.95rem;
}

/* =====================================================
   13) Subscribtion Locak & Unlock
===================================================== */
.locked-content {
  display: none;
  font-style: italic;
  color: var(--text-color-subtle); /* Matches your theme */
}

.unlock-btn {
  background-color: var(--dragon-red);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
}
.unlock-btn:hover {
  background-color: var(--dragon-red-hover);
}

.subscription-banner {
  background-color: var(--dragon-red);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid var(--gold);
  z-index: 1000;
}

/* =====================================================
   15) Services SECTION
===================================================== */

/* Hero Section for Services */
.hero-services {
  position: relative;
  text-align: center;
  background: url("../images/services-hero.jpg") no-repeat center center/cover;
  height: 400px;
  display: flex;
  flex-direction: column; /* Ensures text + button stack nicely */
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem; /* Add breathing room on mobile */
}

.hero-services::before {
content: '';
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
background: rgba(0, 0, 0, 0.6); /* Darker overlay for better contrast */
z-index: 0;
}

.hero-services .hero-content {
position: relative;
background: rgba(0, 0, 0, 0.5);
padding: 20px;
border-radius: 10px;
z-index: 1;
}

.hero-services h1 {
font-size: 2.5rem;
margin-bottom: 10px;
color: var(--gold);
}

.hero-services p {
font-size: 1.2rem;
color: var(--text-color-subtle);
}

/* Services Intro Section */
.services-intro {
  text-align: center;
  padding: 40px 20px;
  padding-top: 60px; /* Increase from default */
  background: #3b3b3b;
  color: var(--text-color);
}

.services-intro h2 {
font-size: 2rem;
color: var(--gold);
margin-bottom: 15px;
}

.services-intro p {
max-width: 800px;
margin: 0 auto;
font-size: 1.1rem;
color: var(--text-color-subtle);
}

/* Services List Section */
.services-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
max-width: 1400px; /* Or 1200px depending on your comfort */
margin: 0 auto;
padding: 20px;
}

.service-card {
background: #3b3b3b;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
max-width: 100%;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.service-card img {
width: 100%;
height: auto;
max-height: 100%;       /* Keeps image consistent in card */
object-fit: contain;     /* No cropping */
border-radius: 10px;
margin-bottom: 15px;
display: block;
}

.service-card h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: var(--gold);
}

.service-card p {
font-size: 1rem;
color: var(--text-color-subtle);
margin-bottom: 15px;
}

/* =====================================================
   16) Contact SECTION
===================================================== */
/* Contact Page Styles */
.contact-section {
  margin: 40px auto;
  padding: 20px;
  background: #3b3b3b;
  border-radius: 10px;
  max-width: 800px;
}

.contact-section h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 20px;
}

.contact-section p {
  color: var(--text-color-subtle);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: bold;
  color: var(--text-color);
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  background: #4b4b4b;
  border: none;
  border-radius: 5px;
  color: var(--text-color);
  font-size: 1rem;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--text-color-subtle);
}

.contact-form button {
  padding: 12px 20px;
  background: var(--dragon-red);
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--dragon-red-hover);
}

/* Contact Form Success Message */
.contact-form-success {
  padding: 20px;
  background: #4b4b4b;
  color: var(--text-color);
  border-radius: 10px;
  text-align: center;
  font-size: 1.2rem;
}

.contact-form-error {
  padding: 20px;
  background: #b43c3c;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2rem;
}

.contact-form select {
  width: 100%;
  padding: 12px;
  background: #3b3b3b; /* Matches input fields */
  color: var(--text-color); /* Ensures text is readable */
  border: 1px solid #555; /* Subtle border */
  border-radius: 5px;
  font-size: 1rem;
  appearance: none; /* Removes default OS styling */
}

/* Fix for placeholder-like first option (if needed) */
.contact-form select option {
  background: #3b3b3b; /* Ensures dropdown items have the same background */
  color: var(--text-color);
}

/* When the user clicks the dropdown */
.contact-form select:focus {
  outline: none;
  border: 1px solid var(--gold);
  background: #4a4a4a; /* Slightly lighter gray when focused */
}

@media (max-width: 320px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .insight-card .hidden-content h2 {
    font-size: 1.2rem;
  }
  
  .contact-section h2,
  .stories-section h2 {
    font-size: 1.8rem;
  }

  .story-card h3 {
    font-size: 1.3rem;
  }

  .story-content h1 {
    font-size: 1.8rem;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .story-card p {
    font-size: 0.95rem;
  }

  .services-intro h2 {
    font-size: 1.5rem; /* Reduce size for mobile */
  }

  .services-intro p {
    font-size: 1rem; /* Adjust paragraph size for better readability */
  }
  .service-card h3 {
    font-size: 1.3rem; /* Slightly smaller for a more balanced look */
  }
  
  .read-more {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  .about-header-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .about-header-row h2 {
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
    margin: 0 0.5rem;
  }

  .about-header-img {
    width: 70px;
    max-width: 70px;
    object-fit: contain !important;
  }
}

