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

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

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

/* Header & Navigation */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  height: 80px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #ffd700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), url('images/bright-pavilions.jpg') center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 80px;
  position: relative;
}

.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;
  object-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(255, 215, 0, 0.1));
  pointer-events: none;
}


.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffd700;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.bg-dark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  position: relative;
}

.bg-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/bright-navigation.jpg') center/cover;
  opacity: 0.1;
  pointer-events: none;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #667eea;
  position: relative;
  z-index: 2;
}

.bg-dark h2 {
  color: #fff;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #ffd700);
  border-radius: 2px;
}

/* Overview Section */
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.overview-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.overview-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  border-left: 5px solid #667eea;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.info-card:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.info-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.info-card h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
}

.info-card p {
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.info-card strong {
  color: #ff6b6b;
  font-size: 1.1rem;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-3px);
}

.news-date {
  color: #1e3c72;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.news-item h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-item p {
  color: #666;
  font-size: 0.95rem;
}

/* Navigation Grid */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.nav-item {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-item:hover {
  transform: translateY(-5px);
}

.nav-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nav-item h3 {
  padding: 1rem 1rem 0.5rem;
  color: #fff;
  font-size: 1.2rem;
}

.nav-item p {
  padding: 0 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.nav-link {
  display: block;
  color: #ffd700;
  text-decoration: none;
  padding: 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

/* All Pages Links */
.all-pages-link {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(255,255,255,0.2);
}

.all-pages-link h3 {
  color: #fff;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.page-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.page-links a:hover {
  color: #ffd700;
  border-color: #ffd700;
  background: rgba(255,215,0,0.1);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature p {
  color: #666;
  line-height: 1.6;
}

/* Buttons */
.btn-primary, .action-button a {
  display: inline-block;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-primary:hover, .action-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.action-button {
  text-align: center;
  margin-top: 2rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
}

.footer-section h4 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p, .footer-section li {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-section a:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
  font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1e3c72;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    text-align: center;
    margin: 0.5rem 0;
  }
  
  .page-hero {
    min-height: 40vh;
    padding: 6rem 0 3rem;
    padding-top: calc(6rem + 80px);
  }
  
  .page-hero .hero-image img {
    max-height: 40vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .page-hero h1 {
    font-size: 2.5rem;
  }
  
  .page-hero .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .nav-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .page-links {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  nav {
    padding: 1rem 15px;
  }
  
  .page-hero {
    min-height: 30vh;
    padding: 5rem 0 2rem;
    padding-top: calc(5rem + 80px);
  }
  
  .page-hero .hero-image img {
    max-height: 30vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .page-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
  
  .cta-button, .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .route-table table {
    font-size: 0.9rem;
  }
  
  .route-table th,
  .route-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.nav-item img, .overview-image img {
  transition: opacity 0.3s ease;
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Page Specific Styles */
.page-hero {
  background: linear-gradient(rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
  padding: 8rem 0 4rem;
  margin-top: 0;
  padding-top: calc(8rem + 80px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/bright-navigation.jpg') center/cover;
  opacity: 0.3;
  z-index: 1;
}

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

.page-hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.page-hero .hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Table Styles */
.route-table, .info-grid, .bus-routes, .water-routes, .parking-info, .accommodation-strategy {
  margin: 2rem 0;
}

.route-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.route-table th,
.route-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.route-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: bold;
}

.route-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.route-table h4 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Info Grid Styles */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* List Styles for Content Sections */
.bus-routes ul, .water-routes ul, .parking-info ul, .accommodation-strategy ul {
  list-style: none;
  padding: 0;
}

.bus-routes li, .water-routes li, .parking-info li, .accommodation-strategy li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.bus-routes li:last-child, .water-routes li:last-child, .parking-info li:last-child, .accommodation-strategy li:last-child {
  border-bottom: none;
}

.bus-routes h4, .water-routes h4, .parking-info h4, .accommodation-strategy h4 {
  color: #667eea;
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

/* Enhanced Navigation Styles */
.nav-menu .dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #2c3e50 !important;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-menu a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea !important;
}

.dropdown-menu a.active {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea !important;
  font-weight: bold;
}

.nav-menu a.active {
  color: #ffd700 !important;
  font-weight: bold;
}

/* Breadcrumb Styles */
.breadcrumb-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 0;
  margin-top: 0;
  padding-top: calc(1rem + 80px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #764ba2;
}

.breadcrumb .separator {
  color: #999;
  margin: 0 0.5rem;
}

.breadcrumb .current {
  color: #2c3e50;
  font-weight: bold;
}

/* Page Navigation Styles */
.page-navigation-container {
  margin: 3rem 0;
}

.page-navigation {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 2rem;
}

.page-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.prev-page, .next-page {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  flex: 1;
  max-width: 300px;
}

.prev-page:hover, .next-page:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.nav-direction {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.nav-title {
  color: #2c3e50;
  font-weight: bold;
}

.next-page {
  text-align: right;
  margin-left: auto;
}

/* Sidebar Styles */
.sidebar-container {
  position: sticky;
  top: 100px;
}

.sidebar-menu {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.sidebar-menu h3 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section h4 {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin-bottom: 0.25rem;
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.sidebar-menu a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(5px);
}

.sidebar-menu a.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #fff;
  font-weight: bold;
}

/* Related Pages Styles */
.related-pages-container {
  margin: 3rem 0;
}

.related-pages {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 2rem;
  color: #fff;
}

.related-pages h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #fff;
}

.related-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.related-page-item {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.related-page-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Mobile Responsive for Navigation */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    background: rgba(30, 60, 114, 0.9);
    box-shadow: none;
    border-radius: 0;
  }
  
  .dropdown-menu a {
    color: #fff !important;
    padding-left: 2rem;
  }
  
  .page-nav-links {
    flex-direction: column;
  }
  
  .next-page {
    text-align: left;
    margin-left: 0;
  }
  
  .related-pages-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar-container {
    position: static;
    margin-top: 2rem;
  }
}

/* Print styles */
@media print {
  header, footer, .cta-button, .nav-link, .breadcrumb-container, 
  .page-navigation-container, .sidebar-container, .related-pages-container {
    display: none;
  }
  
  .hero {
    height: auto;
    background: none;
    color: #000;
  }
  
  .section {
    padding: 2rem 0;
  }
}