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

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #10b981;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

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

/* ==================== Utility Bar ==================== */
.utility-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 0.875rem;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

.utility-logo svg {
  width: 24px;
  height: 24px;
}

.quick-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.quick-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.quick-links a:hover {
  color: var(--primary-color);
}

/* ==================== Header & Navigation ==================== */
.main-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.site-logo svg {
  width: 40px;
  height: 40px;
}

.site-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Brand image class for optional logo image */
.brand-image {
  height: 40px;
  width: auto;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 5px;
}

/* Main navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* Dropdown menus */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: ' ▾';
  font-size: 0.75em;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

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

.dropdown-menu li {
  border-bottom: 1px solid var(--border-color);
}

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

.dropdown-menu a {
  padding: 12px 16px;
  border-radius: 0;
}

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

/* ==================== Announcement Carousel ==================== */
.announcement-carousel {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  position: relative;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
}

.carousel-slides {
  flex: 1;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  text-align: center;
  padding: 0 60px;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide strong {
  font-weight: 600;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* ==================== Hero Section ==================== */
.hero-section {
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.btn-secondary:hover {
  background: var(--bg-light);
}

/* Quick Actions Sidebar */
.quick-actions-sidebar {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
}

.quick-actions-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.quick-action-item {
  display: block;
  padding: 15px;
  margin-bottom: 10px;
  background: var(--bg-light);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s;
}

.quick-action-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.quick-action-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.quick-action-item span {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Build stamp badge */
.build-stamp {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 20px;
  font-family: 'Courier New', monospace;
}

/* ==================== News Section ==================== */
.news-section {
  padding: 60px 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.news-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-light), var(--border-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 3rem;
}

.news-card-content {
  padding: 20px;
}

.news-card-date {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.news-card-excerpt {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.news-card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.news-card-link:hover {
  text-decoration: underline;
}

/* ==================== Contact Strip ==================== */
.contact-strip {
  background: var(--bg-light);
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.contact-location h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.contact-detail {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.contact-detail strong {
  min-width: 80px;
  color: var(--text-dark);
}

/* ==================== Footer ==================== */
.site-footer {
  background: var(--text-dark);
  color: #e2e8f0;
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 15px;
}

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

.footer-column a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-legal a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-legal a:hover {
  color: white;
}

.footer-stamp {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #64748b;
}

/* ==================== Inner Page Styles ==================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
}

.page-content {
  padding: 60px 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin: 30px 0 15px;
}

.content-wrapper h3 {
  font-size: 1.375rem;
  color: var(--text-dark);
  margin: 25px 0 12px;
}

.content-wrapper p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.content-wrapper ul, .content-wrapper ol {
  margin-bottom: 15px;
  padding-left: 30px;
  color: var(--text-light);
}

.content-wrapper li {
  margin-bottom: 8px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
  /* Mobile menu */
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 15px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    display: none;
    background: var(--bg-light);
  }

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

  .dropdown > a::after {
    float: right;
  }

  /* Hero grid to single column */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  /* News grid to single column */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Contact grid to single column */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer grid to single column */
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  /* Utility bar stacking */
  .utility-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-links {
    flex-wrap: wrap;
  }

  /* Carousel buttons smaller */
  .carousel-slide {
    padding: 0 50px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }
}
