/* -----------------------------
   CSS RESET & BASE
------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--brown);
  background-color: var(--sand);
}

/* -----------------------------
   COLOR SYSTEM
------------------------------ */

:root {
  --sand: #f4efe6;
  --brown: #4a3b2f;
  --olive: #6b7b3e;
  --white: #ffffff;
  --light-brown: #7a6654;
}

/* -----------------------------
   GLOBAL ELEMENTS
------------------------------ */

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: 3rem 1.5rem;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  max-width: 60ch;
}

/* -----------------------------
   BUTTONS & LINKS
------------------------------ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 0.5rem;
}

.btn.primary {
  background-color: var(--olive);
  color: var(--white);
}

.btn.secondary {
  border: 2px solid var(--olive);
  color: var(--olive);
}

.text-link {
  color: var(--olive);
  font-weight: 600;
}

/* -----------------------------
   HEADER & NAVIGATION
------------------------------ */

header {
  background-color: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -----------------------------
   HERO SECTION
------------------------------ */

.hero {
  background-color: var(--sand);
  text-align: left;
}

.hero p {
  margin: 1rem 0 1.5rem;
}

/* -----------------------------
   ABOUT PREVIEW
------------------------------ */

.about-preview {
  display: grid;
  gap: 2rem;
}

.about-image img {
  border-radius: 6px;
  /* NEW: Limit the width to 350px (or any size you prefer) */
  max-width: 350px; 
  /* NEW: Center the image if the screen is wider than the image */
  margin: 0 auto; 
  /* NEW: Ensure it respects the max-width but stays responsive */
  width: 100%; 
}

/* -----------------------------
   PILLARS
------------------------------ */

.pillars {
  background-color: var(--white);
}

.pillar-grid {
  display: grid;
  gap: 1.5rem;
}

.pillar p {
  color: var(--light-brown);
}

/* -----------------------------
   FEATURED TOURS
------------------------------ */

.tour-grid {
  display: grid;
  gap: 2rem;
}

.tour-card {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 6px;
}

.tour-card img {
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* -----------------------------
   CTA
------------------------------ */

.cta {
  background-color: var(--olive);
  color: var(--white);
  text-align: center;
}

.cta p {
  margin: 1rem auto 1.5rem;
}

.cta .btn.primary {
  background-color: var(--white);
  color: var(--olive);
}

/* -----------------------------
   FOOTER
------------------------------ */

footer {
  background-color: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* -----------------------------
   DESKTOP ENHANCEMENTS
------------------------------ */

@media (min-width: 768px) {

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 5rem 4rem;
  }

  .about-preview {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tour-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.nav-links.open {
  display: block;
  position: absolute;
  top: 60px;
  right: 1.5rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* Add this to main.css */

.hero {
  /* 1. Set the background image */
  background-image: 
    /* This creates a dark, transparent overlay so the text is readable */
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    /* Replace 'your-image-file.jpg' with your actual image path */
    url('../images/main/Aradamilolabg.jpeg');

  /* 2. Ensure the image covers the whole area and is centered */
  background-size: cover;
  background-position: center;

  /* 3. Make the text white so it stands out on the dark background */
  color: #ffffff;

  /* 4. Align text to the middle (vertically and horizontally) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Ensure it has height to show the background */
  min-height: 100vh; /* Adjust this value as needed */
}
/* -----------------------------
   ABOUT PAGE CENTERING
------------------------------ */

/* 1. Target all sections in the About page */
.about-intro,
.about-philosophy,
.about-practice,
.about-experience,
.about-closing {
  /* Aligns text to the center */
  text-align: center; 
}

/* 2. Center the paragraph blocks */
.about-intro p,
.about-philosophy p,
.about-practice p,
.about-experience p,
.about-closing p {
  /* "auto" margins automatically push the block to the center */
  margin-left: auto;
  margin-right: auto;
  
  /* Optional: Keep the gap below paragraphs */
  margin-bottom: 1.5rem; 
}

/* -----------------------------
   GALLERY PAGE
------------------------------ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

.gallery-section {
  padding-top: 5rem; /* Offset for fixed header if needed, or just specific spacing */
  margin-top: -3rem; /* Counteract padding for anchor linking */
}

/* -----------------------------
   LIGHTBOX MODAL
------------------------------ */

#lightbox {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

#lightbox.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  animation-name: zoom;
  animation-duration: 0.3s;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* -----------------------------
   HERO SLIDER
------------------------------ */

#hero-slider {
  position: relative;
  /* New: limit width and center to create side white space */
  width: calc(100% - 3rem); 
  max-width: 1400px; /* Optional: prevent it from getting too wide on huge screens */
  margin: 1rem auto 0; /* Top margin for spacing from header, then centered */
  height: 90vh; /* Adjusted to 90vh to fit better with margins, or keep 100vh? Let's try 90vh to see "white space" all around properly */
  
  overflow: hidden;
  border-radius: 20px; /* Rounded corners for the "floating card" look */
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0; 
}

/* Make sure header doesn't cover it awkwardly or vice versa. 
   If header is sticky/fixed, this works. If static, 100vh-header height might be needed.
   For now, strictly 100vh and ensuring it looks good */

.slider-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4); /* Darken text area slightly */
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
}

.slider-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider-overlay p {
  font-size: 1.25rem;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 60ch;
  color: #f1f1f1;
}

.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.slider-bg.current {
  opacity: 1;
}

.slider-bg.next {
  opacity: 0;
}
/* -----------------------------
   BOOKING FORM STYLING
------------------------------ */

/* 1. Wrapper: Limits width on big screens so lines aren't too long */
.booking-form form {
  max-width: 600px;
  margin: 0 auto; /* Centers the form on the page */
  text-align: left;
}

/* 2. The Container (Label): Separates each question */
.booking-form label {
  display: block;       /* Forces each question onto a new line */
  margin-bottom: 1.5rem; /* Adds space between questions */
  font-weight: 600;     /* Makes the question text bold */
  color: var(--brown);
}

/* 3. The Inputs: Forces the box to sit UNDER the text */
.booking-form input,
.booking-form select,
.booking-form textarea {
  display: block;       /* Forces the input to its own line (under the text) */
  width: 100%;          /* Makes the box fill the whole space */
  padding: 0.8rem;      /* Adds comfortable space inside the box */
  margin-top: 0.5rem;   /* Adds a small gap between "Email" text and the box */
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-family: inherit; /* Ensures font matches the rest of the site */
  font-size: 1rem;
}

/* 4. The Button: Make it full width and clickable */
.booking-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Footer logo sizing */
.footer-logo img {
  max-width: 180px;
  height: auto;
}

/* =========================================
   BLOG SECTION STYLES (ENHANCED UX)
   ========================================= */

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.blog-container h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, var(--olive), #a3b18a);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.blog-container h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--olive), transparent);
    border-radius: 2px;
}

/* The Grid System */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

/* Individual Post Card */
.post-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Hover Effect */
.post-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image Container for zoom effect */
.post-card > a:first-child {
    display: block;
    overflow: hidden;
    position: relative;
}

/* Standardize the Image Size */
.post-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.post-card:hover img {
    transform: scale(1.08);
}

/* Post Content Area */
.post-card h2 {
    font-size: 1.5rem;
    margin: 25px 25px 10px;
    line-height: 1.4;
    font-weight: 700;
}

.post-card h2 a {
    text-decoration: none;
    color: var(--brown);
    transition: color 0.3s ease;
}

.post-card h2 a:hover {
    color: var(--olive);
}

.post-meta {
    font-size: 0.85rem;
    color: #95a5a6;
    margin: 0 25px 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-excerpt {
    padding: 0 25px;
    color: #636e72;
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Read More Button */
.read-more-btn {
    align-self: flex-start;
    margin: 0 25px 30px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--olive), #8a9a5b);
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 123, 62, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8a9a5b, var(--olive));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 123, 62, 0.4);
}

.read-more-btn:hover::before {
    opacity: 1;
}

/* Pagination Styling */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination .page-numbers {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--brown);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--olive);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(107, 123, 62, 0.3);
}

/* =========================================
   SINGLE POST STYLES
   ========================================= */

.single-post-container {
    max-width: 900px;
    margin: 60px auto 100px;
    padding: 0 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.full-post {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    padding: 50px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.full-post h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brown);
    margin-bottom: 20px;
}

.full-post .post-meta {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f2f6;
    text-transform: none;
    letter-spacing: normal;
    display: block;
}

.full-post .featured-image {
    margin: 0 -50px 40px; /* Pulls the image out to the edges of the card */
}

.full-post .featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #34495e;
}

.post-content h2,
.post-content h3 {
    color: var(--brown);
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 25px;
    max-width: none; /* Override default max-width for better reading flow */
}

.post-content img {
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-content a {
    color: var(--olive);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--brown);
}

@media (max-width: 768px) {
    .full-post {
        padding: 30px 20px;
    }
    
    .full-post h1 {
        font-size: 2.2rem;
    }

    .full-post .featured-image {
        margin: 0 -20px 30px;
    }
}