/* ====================================== */
/* 耳 NAHIMS Brand Color Palette & Roots */
/* ====================================== */
:root {
  --primary-blue: #000A45; /* Dark Blue for primary elements */
  --accent-yellow: #B3913C; /* Gold for accents and buttons */
  --light-gray: #f8f9fa; /* Bootstrap's standard light background */
}

/* ====================================== */
/* 捗 General & Layout */
/* ====================================== */

/* --- General Link Styling --- */
a {
  text-decoration: none;
  color: var(--primary-blue);
}

a:hover {
  color: var(--accent-yellow);
}

/* --- Navbar Styling --- */
.navbar {
  background-color: #ffffff !important; /* Clean white background */
  border-bottom: 3px solid var(--accent-yellow); /* Gold accent line */
}
.navbar-brand {
  color: var(--primary-blue) !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-logo {
  height: 30px; /* You can adjust this height */
  width: auto;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent-yellow) !important; /* Gold on active/hover */
}

/* --- Footer --- */
footer {
  background-color: var(--primary-blue) !important;
  color: #ffffff !important;
}

/* ====================================== */
/* 笨ｨ Hero Sections (Home & Other Pages) */
/* ====================================== */

/* --- Home Hero Section (Fullscreen) --- */
.hero-section {
  background-color: var(--primary-blue) !important;
  color: #ffffff !important;
  min-height: 100vh; /* Full screen height */
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-section .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Hero Text --- */
.hero-section h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

.hero-section p.lead {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
   text-align: justify;
  text-justify: inter-word;
}

/* --- Hero Image --- */
.hero-image-crop {
  height: 30vh;
  width: auto;
  display: flex; /* Use flexbox to align content */
  justify-content: center;
  align-items: flex-end; /* Align image to the bottom */
  background: transparent;
  box-shadow: none;
  /* Removed overflow: hidden here */
}

.hero-image {
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: none;
  border: none;
  box-shadow: none;
  background: transparent;
  transition: filter 0.3s ease;
  object-fit: contain; /* Ensure the entire image is visible, scale down if needed */
  object-position: bottom; /* Position the image at the bottom of its container */
}

.hero-image:hover {
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
  cursor: pointer;
}

/* --- Page Hero (for 'About', 'Chapters', 'Blog', etc.) --- */
.page-hero {
  background-color: var(--primary-blue) !important;
  color: #ffffff !important;
  height: 40vh; /* Standardized height */
  text-align: center;
  display: flex;
  flex-direction: column; /* Added for vertical stacking */
  align-items: center;
  justify-content: center;
  padding: 20px; /* Added padding for smaller screens */
}

.hero-logo {
  width: 80px; /* Reduced to a sensible default */
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

/* ====================================== */
/* 曝 Components & Utility */
/* ====================================== */

/* --- Buttons --- */
.btn-warning {
  background-color: var(--accent-yellow) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-warning:hover {
  background-color: #9a7e34 !important; /* Slightly darker gold on hover */
  transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
}

/* --- Card Headers --- */
.card-header.bg-primary {
  background-color: var(--primary-blue) !important;
}

/* --- Executive Cards --- */
.executive-card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.executive-card .card-img-top {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.executive-card .card-body {
    color: var(--primary-blue); /* Default for light background cards */
}


/* --- Table Styles (for 'Chapters' page) --- */
.table-primary {
  background-color: var(--primary-blue) !important;
  color: #ffffff !important;
}

/* --- Bootstrap Color Overrides --- */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* --- Status Pills (for 'Chapters' page) --- */
.status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

.financial {
  background-color: rgba(25, 135, 84, 0.1); /* light green background */
  color: #198754; /* dark green text */
  border: 1px solid #198754;
}

.unfinancial {
  background-color: rgba(220, 53, 69, 0.1); /* light red background */
  color: #dc3545; /* dark red text */
  border: 1px solid #dc3545;
}

.financial:hover {
  background-color: #198754;
  color: white;
}

.unfinancial:hover {
  background-color: #dc3545;
  color: white;
}


/* ====================================== */
/* 導 Responsive Adjustments */
/* ====================================== */

@media (max-width: 992px) {
  /* --- Hero Section - Tablet/Mobile Layout --- */
  .hero-section {
    min-height: 100vh; /* still fills screen */
    padding: 2rem 1rem;
  }

  .hero-section .container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center; /* Override justify for small screens */
  }

  .hero-description,
  .hero-section p.lead {
    text-align: center;
  }

  .hero-image-crop {
    margin-top: 1rem;
  }

  .hero-image {
    max-width: 70%; /* fits nicely on mobile */
  }

  /* --- Other Hero Sections --- */
  .page-hero {
    height: 50vh;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  /* --- Hero Section - Small Phone Layout --- */
  .hero-section h1 {
    font-size: 1.7rem;
  }

  .hero-section p.lead {
    font-size: 0.95rem;
  }

  .hero-section .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 2rem;
  }

  .hero-image {
    max-width: 80%;
  }
}

/* ====================================== */
/* 売 Animations */
/* ====================================== */

@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.animate-text {
  opacity: 0;
  animation: fadeInDown 1s ease-out 0.3s forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ====================================== */
/* New: Key Benefits Card Styling */
/* ====================================== */

/* Ensure the card has relative positioning for the overlay */
.benefit-card {
  border: none;
  min-height: 350px;
  background-color: var(--primary-blue);
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Darken the image and ensure the text is readable */
.benefit-card img {
  opacity: 0.5; /* Darken the background image */
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.benefit-overlay {
  /* This ensures the text layer is on top of the image */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.benefit-card:hover img {
  opacity: 0.6; /* Slightly lighter on hover for effect */
}

.benefit-link {
  text-decoration: none;
  display: inline-block;
  /* Use stretched-link to make the whole card clickable, 
     but adding padding for visual separation */
  padding-bottom: 0.5rem; 
}
/* ====================================== */
/* ｧ Modal Overrides */
/* ====================================== */

/* Ensure text inside the modal is dark and readable */
#whatsappModal .modal-content {
  color: #212529; /* Standard dark text color */
}

/* REMOVED DUPLICATE STYLES FROM HERE.
  All styles from blog.html have been merged
  with the existing styles above for a single,
  clean stylesheet.
*/