:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --secondary: #0b132b;
  --accent: #ffc107;
  --light-bg: #f8f9fa;
  --dark-bg: #0b132b;
  --card-bg: #ffffff;
  --text-main: #212529;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.top-bar {
  background: var(--dark-bg);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-box img {
  height: 55px;
  width: auto;
}
.logo-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  font-weight: 600;
  color: var(--secondary);
  padding: 10px 0;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}
.dropdown-item a:hover {
  background: var(--light-bg);
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
}

/* Page Banner */
.page-header {
  background: linear-gradient(rgba(11, 19, 43, 0.85), rgba(11, 19, 43, 0.85)), url('/images/banner.png') center/cover;
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 1.1rem;
  color: #d1d5db;
}

/* Common Layout Elements */
.section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Global Footer CTA */
.footer-cta {
  background: var(--primary);
  color: #ffffff;
  padding: 50px 0;
  text-align: center;
}
.footer-cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.footer-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: #a0aec0;
  padding: 60px 0 20px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--primary);
}
.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

/* FAQ 2-Column Layout */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.faq-card h4 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}

/* 1. Prevent body-level horizontal overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 2. Prevent images and media from exceeding their parent containers */
img, video, iframe, canvas {
  max-width: 100%;
  height: auto;
}

/* 3. Ensure padding and borders don't increase element widths */
*, ::before, ::after {
  box-sizing: border-box;
}