/* Base Styles */
:root {
  --primary: #2B4C7E;    /* Deep navy */
  --secondary: #88A2AA;  /* Muted sage */
  --accent: #D98F4E;     /* Warm copper */
  --text: #2C3539;       /* Charcoal */
  --light: #F5F7FA;      /* Off-white */
  --background: #E6EFF5; /* Subtle blue-gray */
  --shadow: rgba(43, 76, 126, 0.025); /* Very subtle shadow */
  --border-gray: #e0e0e0; /* Light gray for borders */
}

/* Base Styles */
html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  background: var(--background) !important; 
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding-top: 0;
}

/* Navigation */
.mnthen-dropdown-btn,
.mnthen-mobile-menu {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}

.mnthen-dropdown-content {
  -webkit-overflow-scrolling: touch;
  display: none;
  position: absolute;
  background: #fff;
  min-width: 220px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  z-index: 1000;
}

.mnthen-dropdown-content.active {
  display: block;
}

@media (max-width: 768px) {
  .mnthen-nav {
    display: none;
  }

  .mnthen-nav.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
  }

  .mnthen-dropdown-content {
    position: static;
    border: none;
    padding-left: 20px;
  }
}

/* Hero Section - Fixed overlay issue */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  background-color: var(--primary);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(43, 76, 126, 0.5),
    rgba(43, 76, 126, 0.7)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-text {
  max-width: 800px;
  padding: 0 2rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.btn-outline-light {
  border: 2px solid #fff;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

.citation-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.citation-icon:hover {
  opacity: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  outline: 0;
  border: 1px solid var(--border-gray);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-gray);
}

.modal-body {
  padding: 1.25rem;
}

.btn-close {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 0.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  color: #000;
  opacity: 1;
  z-index: 1;
}

.btn-close::before {
  content: "X";
}

body.modal-open {
  overflow: hidden;
}

/* Welcome Section */
.welcome {
  background: var(--light);
  padding: 5rem 0;
}

.welcome-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  border: 1px solid var(--border-gray);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.welcome-card .card-content {
  flex: 1;
}

.icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(43, 76, 126, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-circle i {
  font-size: 1.75rem;
  color: var(--primary);
}

/* Vision Section */
.vision-section {
  background-color: var(--primary);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.vision-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.vision-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.image-container {
  flex: 1;
  min-width: 300px;
}

.circular-image {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.circular-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  text-align: center;
  line-height: 1.5;
}

.text-content {
  flex: 1;
  color: #fff;
}

.text-content h2 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #fff;
}

.text-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.vision-button {
  display: inline-flex;
  padding: 1.25rem 2rem;
  border: 2px solid #fff;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.vision-button:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Museum Section */
.museum-without-walls {
  padding: 6rem 0;
  background: #fff;
  overflow: hidden;
}

.photo-collage {
  position: relative;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
  height: 540px;
}

.collage-item {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item1 { grid-column: 1 / 3; grid-row: 1 / 2; }
.item2 { grid-column: 3 / 4; grid-row: 1 / 3; }
.item3 { grid-column: 1 / 2; grid-row: 2 / 4; }
.item4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.item5 { grid-column: 2 / 4; grid-row: 3 / 4; }

/* Feature Section */
.feature-section {
  background: #f8f9fa;
  padding: 5rem 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card .card-content {
  flex: 1;
}

.feature-icon {
  color: inherit;
  margin-bottom: 1.5rem;
}

/* Content Cards (Blog & Tours) */
.content-card {
  height: 100%;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  overflow: hidden;
  position: relative;
}

.content-image {
  height: 100%;
  position: relative;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trivia Section */
.trivia-section {
  background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.trivia-showcase {
  position: relative;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
}

.trivia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  height: 520px;
  position: relative;
}

.trivia-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-gray);
}

.trivia-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(43, 76, 126, 0.9);
  color: #fff;
  padding: 1rem;
  font-weight: 500;
  text-align: center;
}

.score-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.score-content {
  text-align: center;
}

.score-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.score-label {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global Utility Classes */
.text-primary {
  color: var(--primary) !important;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Media Queries */
@media (max-width: 991px) {
  .vision-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .feature-item h2 {
    font-size: 1.75rem;
  }

  .trivia-grid {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }

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

  .circular-image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .collage-grid {
    height: 400px;
    gap: 10px;
  }

  .features-container {
    flex-direction: column;
  }

  .text-content h2 {
    font-size: 2.5rem;
  }

  .btn-outline-light {
    padding: 0.5rem 2rem !important;
  }

  .vision-button {
    width: 100%;
    justify-content: center;
  }
  
  /* Fix for mobile overlay issue */
  .hero-content {
    padding-top: 0;
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 400px;
  }

  .collage-grid {
    height: 350px;
  }

  .feature-item {
    padding: 1.5rem;
  }
  
  .citation-icon {
    bottom: 10px;
    right: 10px;
  }
}

/* Print Styles */
@media print {
  .modal-backdrop {
    display: none;
  }

  .modal {
    position: static;
  }

  .modal-content {
    box-shadow: none;
  }

  .btn-close {
    display: none;
  }
}
