/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
}

body {
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Sticky Top Menu */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;              /* Adds clean spacing between the branding and menu items */
}

/* ==========================================================================
   Header Style
   ========================================================================== */
.nav-header {
  text-align: center;
  background-color: #ffffff;
}

.nav-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  font-style: italic;
  color: #222;
}


.logo-text {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    justify-content: center; /* Centers the links across the row */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555555;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.2s ease;
}


.nav-item {
    position: relative;
    margin: 0 15px; /* Balanced left and right margins for precise centering */
}

.nav-item a {
    text-decoration: none;
    color: #555555;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
    padding: 5px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.nav-links a:hover {
    color: #00adb5;
}

/* Dropdown Sub-Menu Design */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eeeeee;
    z-index: 1001;
    padding: 5px 0;
}

.dropdown-menu a {
    color: #333333;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f5f5f5;
    margin-left: 0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    color: #00adb5;
}

/* Trigger Dropdown Visibility */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}



/* Explicit Horizontal 3-Column Framework Structure */
.partners-column-row {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 30px;
    max-width: 1050px;
    margin: 0 auto;
}

/* Single Independent Column Stacks */
.partner-column-stack {
    flex: 1; /* Splits workspace evenly into 3 equal parts */
    display: flex;
    flex-direction: column;
    gap: 40px; /* Precise vertical padding gaps between individual cards */
}



/* White Box Logo Container Panel */
.partner-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff; /* White background boxes matching your layout exactly */
    width: 100%;
    aspect-ratio: 1.15 / 1; /* Creates uniform square-like aspect ratios for the cards */
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Precise Size Constraints Limiting Large Logo Images from Over-scaling */
.partner-logo {
    max-width: 85%; /* Prevents logo from filling out the box excessively */
    max-height: 80%; /* Limits height thresholds to replicate reference image formatting */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Location and Info List Styles */
.partner-location-list {
    list-style-type: none;
    padding-left: 5px;
    margin-top: 15px;
}

.partner-location-list li {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #334433;
    margin-bottom: 4px;
}

.sub-location-group {
    margin-top: 5px;
}

.sub-group-title {
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 600;
    color: #2c5c3c;
    margin-top: 15px;
    margin-bottom: 2px;
}

.sub-location-group .partner-location-list {
    margin-top: 2px;
    padding-left: 10px;
}

/* Sections Layout */
section {
    padding-top: 80px; /* Offset to prevent sticky navbar overlap */
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding-bottom: 60px;
}

.main-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #777777;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.download-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-app {
    display: inline-block;
    padding: 10px 20px;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-app:hover {
    background-color: #333333;
}

.banner-wrapper {
    margin-top: 20px;
}

.promo-banner {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Feature Section (Teal Background) */
.feature-section {
    background-color: #00bfb2; /* Matches the vibrant teal backdrop */
    padding: 80px 0;
    text-align: center;
}

.feature-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-graphic {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Info Section */
.info-section {
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.info-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555555;
}

.btn-contact {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 30px;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-contact:hover {
    background-color: #333333;
}

.app-mockup {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: #f9f9f9;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eeeeee;
    font-size: 0.85rem;
    color: #888888;
}


/* ==========================================================================
   Section Layouts & Dynamic Backgrounds
   ========================================================================== */
.partners-container {
    background-color: #a4ffa4; /* Matches the vibrant light green design tone */
    padding: 130px 20px 80px 20px;
    min-height: calc(100vh - 120px);
}

.partner-section {
  padding: 50px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 35px;
  color: #333;
}

/* Gradients derived matching the attached image colors */
.section-hospital {
  background: linear-gradient(to bottom, #b4fca2, #e3ffd9);
}

.section-hotel {
  background: linear-gradient(to bottom, #8ad1fc, #cceaff);
}

.section-food {
  background: linear-gradient(to bottom, #fff694, #fffde0);
}

.section-travel {
  background: linear-gradient(to bottom, #e2bbfd, #f5e8ff);
}

.section-others {
  background: linear-gradient(to bottom, #ffc799, #ffeadd);
}

/* ==========================================================================
   Grid System Configurations (Handles columns variation)
   ========================================================================== */
.partner-grid {
  display: grid;
  gap: 30px 20px;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
  margin: 0 auto;
}

/* 3 Columns Layout */
.grid-3-cols {
  grid-template-columns: repeat(3, minmax(200px, 320px));
}

/* 4 Columns Layout */
.grid-4-cols {
  grid-template-columns: repeat(4, minmax(180px, 260px));
}

/* 5 Columns Layout */
.grid-5-cols {
  grid-template-columns: repeat(5, minmax(150px, 210px));
}

/* ==========================================================================
   Card Styling
   ========================================================================== */
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrapper {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 15px;
  width: 100%;
  aspect-ratio: 1 / 1; /* Makes cards perfectly square */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-wrapper:not(.empty-card):hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.empty-card {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

/* Details list / typography under the boxes */
.partner-details {
  margin-top: 12px;
  width: 100%;
  font-size: 0.80rem;
  color: #555;
  text-align: left;
  padding: 0 5px;
}

.partner-details ul {
  list-style-type: none;
}

.partner-details ul li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 12px;
}

/* Bullet indicator mimicry */
.partner-details ul li::before {
  content: "•";
  color: #777;
  position: absolute;
  left: 0;
  top: 0;
}

.partner-details p {
  text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile Friendly Adaptation)
   ========================================================================== */
@media (max-width: 992px) {
  .grid-5-cols, .grid-4-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3-cols, .grid-5-cols, .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .empty-card {
    display: none; /* Hide placeholder block on smaller layouts */
  }
}

@media (max-width: 480px) {
  .grid-3-cols, .grid-5-cols, .grid-4-cols {
    grid-template-columns: 1fr;
  }
}
