:root {
  --nav-bg: #0a2239;
  --nav-bg-hover: #133c5b;
  --nav-text: #ffffff;
  --nav-accent: #e6b31e;
  --nav-border: #1f3b57;
  --body-bg: #e8f4f8;
  --text-color: #4a4a4a;
  --heading-color: #8b7355;
  --cyan: #00b4d8;
  --font-sans: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Oswald', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--body-bg);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Header & Nav --- */
header {
  background: var(--nav-bg);
  color: var(--nav-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.logo-text span {
  color: #c44536;
}

nav {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.main-nav > li > a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.main-nav > li > a:hover,
.main-nav > li > a:focus-visible {
  color: var(--nav-accent);
  border-color: var(--nav-accent);
  outline: none;
}

.main-nav > li > a .caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* --- Mega menu panel --- */
.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: min(960px, 100vw - 2.5rem);
  background: #ffffff;
  color: #1b2733;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  padding: 1.25rem 1.5rem 1.4rem;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
  transform: translate(-50%, 8px);
}

.main-nav > li:hover > .mega-menu,
.main-nav > li:focus-within > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.mega-column {
  min-width: 0;
}

.mega-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #62748a;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.mega-list {
  list-style: none;
}

.mega-list li + li {
  margin-top: 0.1rem;
}

.mega-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: #1b2733;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}

.mega-list a span.bullet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd2e1;
  flex-shrink: 0;
}

.mega-list a:hover,
.mega-list a:focus-visible {
  background: #f1f4f8;
  color: var(--nav-bg);
  outline: none;
}

.mega-note {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #8a9bb5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #edf0f4;
  padding-top: 0.6rem;
}

.mega-note strong {
  color: #415b76;
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb a {
  color: var(--cyan);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Page Content --- */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--heading-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--heading-color);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

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

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.card-content {
  padding: 1.5rem;
}

.card-content h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--nav-bg);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-block;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
}

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

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

.team-member {
  text-align: center;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--cyan);
}

.team-member h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--nav-bg);
  margin-bottom: 0.25rem;
}

.team-member .title {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.85rem;
  color: #666;
}

/* --- Stats Section --- */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Contact Form --- */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--nav-bg);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #0095b6;
}

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

.btn-secondary:hover {
  background: #0d2d4a;
}

/* --- Table Styles --- */
.data-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin: 2rem 0;
}

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

.data-table th {
  background: var(--nav-bg);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.data-table tr:hover {
  background: #f8f9fa;
}

/* --- News List --- */
.news-list {
  margin: 2rem 0;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.news-item-content {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.news-item .date {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-item h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--nav-bg);
  margin-bottom: 0.5rem;
}

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

/* --- Sidebar Layout --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.sidebar {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--nav-bg);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

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

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  color: var(--text-color);
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid #eee;
}

.sidebar a:hover {
  color: var(--cyan);
}

/* --- Feature Box --- */
.feature-box {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 3rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.feature-box h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.feature-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* --- Footer --- */
footer {
  background: var(--body-bg);
  border-top: 2px solid #ccc;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-section p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: underline;
}

.footer-section a:hover {
  color: var(--cyan);
}

.search-box {
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 0.9rem;
}

.search-box button {
  padding: 0.5rem 1rem;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.2s;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--cyan);
}

.copyright {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  font-size: 0.8rem;
  color: #888;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .mega-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    width: 100%;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0.4rem;
    box-shadow: none;
    border-radius: 8px;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
}
