/* =========================================
   GLOBAL STYLES
   ========================================= */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}
* {
  box-sizing: border-box;
}

/* Headings */
h1 {
    margin-bottom: 10px;
    font-size: 3em;
}

h2 {
    margin-top: 0;
}
/* =========================================
   NAVIGATION BAR
   ========================================= */
   .navbar {
    background-color: #000000;
    width: 100%;
    position: sticky; /* Sticks to top when scrolling */
    top: 0;
    z-index: 1000;
    /* We moved the padding and flex stuff to the inner container */
}

/* This new container aligns with your .content width */
.nav-inner {
    max-width: 800px;    /* Matches .content max-width */
    margin: 0 auto;      /* Centers it */
    height: 70px;        /* Height of the bar */
    padding: 0 20px;     /* Matches .content side padding */
    
    /* Flexbox layout to push Logo Left and Button Right */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    vertical-align: middle;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background-color: #ffffff;
    color: #000000;
}

/* =========================================
   HERO SECTION (Gray Banner)
   ========================================= */
.hero {
    background-color: #f4f4f4;
    padding: 10px 20px 30px;
    text-align: center;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   BUTTON STYLES
   ========================================= */
.book-button {
    display: inline-block;
    background-color: #09caff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.book-button:hover {
    background-color: #444444;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px; /* Top/Bottom, Sides */
    text-align: center;
}
.more_detail {
  padding-top: 0px;
  text-align: left;
}

/* =========================================
   IMAGE GRID (3 Images in Squares)
   ========================================= */
.image-banner {
  max-width: 800px;        /* Matches your .content width */
  margin: 0 auto;          /* Centers the block on the page */
  padding: 0 20px 40px;    /* Side padding to align with text, bottom spacing */
  
  display: grid;           /* This turns on the grid layout */
  grid-template-columns: 1fr 1fr 1fr; /* Creates 3 equal columns */
  gap: 20px;               /* The space between the photos */
}

.image-banner img {
  width: 100%;             /* Fills the column width */
  aspect-ratio: 1 / 1;     /* FORCES the image to be a perfect square */
  border-radius: 15px;     /* Rounded corners as requested */
  object-fit: cover;       /* Ensures the image crops nicely instead of stretching */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Optional: Adds a tiny shadow for depth */
}

/* Mobile responsive tweak for images */
@media (max-width: 600px) {
    .image-banner {
        gap: 10px;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 20px 20px;
    font-size: 0.9em;
}

.footer h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p {
    margin: 8px 0;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #cccccc;
    text-decoration: underline;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8em;
    color: #888;
}

/* =========================================
   MODAL (POPUP) STYLES
   ========================================= */
/* The Background Overlay (Hidden by default) */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 2000; /* Sits on top of everything, even the navbar */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.6); /* Black with opacity */
  backdrop-filter: blur(5px); /* Optional: Blurs the background for a modern look */
}

/* The White Content Box */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto; /* 10% from the top and centered */
  padding: 40px;
  border: 1px solid #888;
  width: 90%; 
  max-width: 600px; /* Won't get too wide on desktop */
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* The Close Button (X) */
.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: #000;
}

/* Typography inside the modal */
.modal-content h2 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.modal-content p {
  font-size: 0.95em;
  color: #555;
}

/* =========================================
   CONTACT FORM & ICON STYLES
   ========================================= */

/* The Email Icon in the Footer */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #09caff; /* Matches your 'Book' button blue */
  vertical-align: middle;
  padding: 0 5px;
  transition: transform 0.2s, color 0.2s;
}

.icon-btn:hover {
  transform: scale(1.1);
  color: #ffffff; /* Turns white on hover */
}

/* Form Spacing */
.form-group {
  margin-bottom: 20px;
  text-align: left; /* Ensures labels align left */
}

/* Form Labels */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 0.9em;
  text-transform: uppercase;
}

/* Inputs & Text Area */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit; /* Uses your Helvetica */
  background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #09caff; /* Blue highlight when typing */
  background-color: #fff;
}

/* The Send Button */
.submit-btn {
  display: block;
  width: 100%;
  background-color: #000000; /* Black button */
  color: white;
  padding: 15px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 20px; /* Matches your Book button radius */
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #09caff; /* Turns Blue on hover */
}

/* Helper to hide the spam honeypot */
.hidden { display: none; }

/* =========================================
   ARTICLE SECTION STYLES (COMPLETE)
   ========================================= */

/* --- 1. The Listing Page (Articles) Header (Grey Banner) --- */
.hero.small-hero {
  padding: 60px 20px;
  background-color: #f4f4f4; /* Light grey background */
  margin-bottom: 40px;
  text-align: center;
}

.hero.small-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* --- 2. Article List Layout --- */

.article-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.article-card {
  display: flex;
  flex-direction: row-reverse; /* Puts image on the right */
  justify-content: space-between;
  align-items: stretch;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 250px;
  
  /* New styles to make the link look like a card */
  text-decoration: none; /* Removes the underline from the whole card */
  color: inherit;        /* Keeps text black/grey, prevents "Link Blue" */
  cursor: pointer;
}

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

/* --- 3. Image Styling --- */

.article-thumb {
  width: auto;
  height: 250px;
  max-height: 250px;
  max-width: 250px;
  object-fit: cover;
}

.article-banner-wrapper {
  width: 100%;
  background-color: #000;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.article-banner-wrapper img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --- 4. Text & Typography --- */

.article-text {
  flex: 1;
  padding: 30px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  text-align: left;
}

.article-text h3 {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  line-height: 1.3;
  color: #333;
}

/* (Restored Paragraph Styling) */
.article-text p {
  font-size: 1rem;
  color: #666;
  line-height: 1.3;
  max-width: 600px; /* Keeps text readable */
  margin: 0px;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* (Restored Category Tag Styling) */
.category-tag {
  background-color: #f0f0f0;
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  align-self: flex-start;
  display: inline-block;
  text-transform: uppercase;
  font-family: "Arial Narrow", "Helvetica Condensed", sans-serif;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
/* =========================================
   INDIVIDUAL ARTICLE HEADER (HERO) STYLES
   ========================================= */

.article-hero {
    background-color: #f4f4f4; /* Grey background */
    padding: 40px 20px;     /* Breathing room around the content */
    display: flex;
    align-items: center;    /* Vertically centers the text and image */
    justify-content: center; 
    gap: 40px;              /* Space between text and image */
    margin-bottom: 40px;
}
.article-hero .category-tag {
  background-color: #ffffff;
  color: #000000;
}

/* The Container to keep content width consistent with the rest of the site */
.hero-inner {
    max-width: 800px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

/* 1. The Heading (Left Side) */
.hero-text {
    flex: 1; /* Takes up remaining space */
    padding-right: 20px;
}

.hero-text h1 {
    color: #000000;       /* Black text */
    text-align: left;  /* Left aligned */
    margin: 0;         /* Remove default margins */
    font-size: 2.2rem;
    line-height: 1.2;
}

.hero-text .article-meta {
    color: #888; /* Light grey for the author name */
    margin-top: 10px;
    font-size: 0.9rem;
}

/* 2. The Image (Right Side) */
.hero-image {
    flex-shrink: 0; /* Prevents image from squishing */
}

.hero-image img {
    max-height: 250px; /* Your specific height request */
    width: auto;       /* Maintains aspect ratio */
    border-radius: 4px; /* Optional: slight curve on corners */
    display: block;
}

/* Mobile Responsive: Stack them nicely */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse; /* Puts image on top, text below */
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-top: 20px;
    }

    .hero-text h1 {
        text-align: center;
        font-size: 1.8rem;
    }
}

/* --- 5. Mobile Responsive --- */

@media (max-width: 768px) {
  .article-card {
      flex-direction: column;
  }
  
  .article-thumb {
      width: 100%;
      height: 250px;
      max-width: 100%;
  }

  .article-text {
      padding: 25px;
  }

  .article-banner-wrapper {
      height: 250px;
  }
  .article-container {
    padding: 0px 20px;
  }
}

/* =========================================
   FACT BOX / HIGHLIGHT STYLES
   ========================================= */

   .fact-box {
    background-color: #f9f9f9; /* Light grey background */
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border-left: 4px solid #000; /* Bold black accent line */
}

.fact-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.fact-box ul {
    margin-bottom: 0;
    padding-left: 20px; /* Ensures bullets are inside the box */
}

.fact-box li {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Removes the margin from the very last bullet so the box doesn't look empty at the bottom */
.fact-box li:last-child {
    margin-bottom: 0;
}

/* =========================================
   ARTICLE NAVIGATION STYLES
   ========================================= */

/* Article Navigation Container */
.article-navigation {
  display: flex;
  justify-content: space-between; /* Pushes links to edges */
  align-items: center;
  margin-top: 60px; /* Space between article content and nav */
  padding-top: 30px;
  padding-bottom: 10px;
  border-top: 1px solid #e0e0e0; /* Subtle separator line */
  gap: 20px;
}

/* Common Link Styling */
.blog-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  max-width: 45%; /* Prevents them from crashing into each other */
  color: #333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-link:hover {
  opacity: 0.7;
  transform: translateY(-2px); /* Slight lift on hover */
}

/* Small label (e.g. "Previous Article") */
.nav-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 5px;
  font-weight: 600;
}

/* Article Title styling */
.nav-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Alignment Specifics */
.blog-link.prev {
  text-align: left;
  margin-right: auto; /* Ensures it stays left if next is missing */
}

.blog-link.next {
  text-align: right;
  margin-left: auto; /* Ensures it stays right if prev is missing */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .article-navigation {
      flex-direction: column; /* Stack them on mobile */
      align-items: stretch;
      gap: 30px;
  }
  
  .blog-link {
      max-width: 100%;
      text-align: center !important; /* Center text on mobile */
  }
}