* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

:root {
  --primary-blue: #003366;
  --secondary-blue: #0055a5;
  --light-blue: #e6f2ff;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-600: #666666;
  --gray-800: #333333;
  --accent-green: #00a86b;
  --max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary-blue);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-blue);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-light {
  background-color: var(--gray-100);
}

.section-blue {
  background-color: var(--light-blue);
}

/* Header */
.header {
  background-color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: 280px;
}

.logo-text {
  display: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 10000;
  position: relative;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
  touch-action: manipulation;
  pointer-events: auto;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  pointer-events: auto;
}

.nav > a,
.dropdown-btn {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.dropdown-btn svg {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
}

.nav > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav > a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-blue);
}

.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.header-link:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
}

.footer-section p {
  line-height: 1.8;
  opacity: 0.9;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-bottom p {
  opacity: 0.9;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Main Content */
main {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 51, 102, 0.3);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--primary-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.alert {
  padding: var(--spacing-sm);
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h3 {
  margin-bottom: var(--spacing-md);
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: var(--spacing-sm);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Page Styles */
.page-header {
  background: linear-gradient(135deg, #003366 0%, #0055a5 100%);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--spacing-lg) 0;
}

.rate-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rate-table thead {
  background-color: var(--primary-blue);
  color: var(--white);
}

.rate-table th,
.rate-table td {
  padding: 1rem;
  text-align: left;
  white-space: nowrap;
}

.rate-table th {
  font-weight: 600;
}

.rate-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
}

.rate-table tbody tr:hover {
  background-color: var(--light-blue);
}

.rate-highlight {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Info Boxes */
.info-box {
  background-color: var(--light-blue);
  padding: var(--spacing-md);
  border-radius: 8px;
  margin: var(--spacing-md) 0;
  border-left: 4px solid var(--secondary-blue);
}

.info-box h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-blue);
}

.warning-box {
  background-color: #fff3cd;
  padding: var(--spacing-md);
  border-radius: 8px;
  margin: var(--spacing-md) 0;
  border-left: 4px solid #ffc107;
}

.warning-box h4 {
  color: #856404;
  margin-bottom: var(--spacing-sm);
}

.warning-box p {
  color: #856404;
}

/* Hero Image Styles */
.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,51,102,0.15);
  margin: 2rem 0;
}

.content-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
}

.feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.small-feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,51,102,0.1), rgba(0,51,102,0.3));
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-actions {
    display: none;
  }

  .hero-image {
    height: 300px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .section {
    padding: 2rem 0;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .rate-table {
    min-width: 500px;
  }

  .hero-image {
    height: 250px;
  }

  .content-image {
    height: 200px;
  }

  .feature-image {
    height: 180px;
  }

  .small-feature-image {
    height: 150px;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    right: 0;
    background-color: var(--primary-blue);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    transition: left 0.3s ease;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    width: 100%;
    z-index: 999;
  }

  .nav.active,
  .nav.nav-open {
    left: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav > a,
  .dropdown-btn {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-menu,
  .dropdown-menu.dropdown-open {
    max-height: 500px;
  }

  .dropdown.active .dropdown-btn svg {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    color: var(--white);
    padding: 0.75rem 1.5rem;
  }

  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-box,
  .warning-box {
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  .card[style*="min-height"] {
    min-height: auto !important;
  }

  a.card {
    min-height: auto !important;
  }

  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  [style*="font-size: 3.5rem"] {
    font-size: 2rem !important;
  }

  [style*="font-size: 3rem"] {
    font-size: 2.5rem !important;
  }

  [style*="font-size: 2.5rem"] {
    font-size: 1.5rem !important;
  }

  .logo img {
    height: 50px !important;
    max-width: 200px !important;
  }

  [style*="padding: 2.5rem"] {
    padding: 1.5rem !important;
  }

  [style*="padding: 4rem"] {
    padding: 2rem !important;
  }

  [style*="gap: 4rem"] {
    gap: 2rem !important;
  }

  [style*="gap: 3rem"] {
    gap: 1.5rem !important;
  }
}
