/* ===== GLOBAL ===== */
:root {
  --primary-blue: #0b3c5d;
  --secondary-blue: #1f6fa3;
  --accent-gold: #c9a227;
  --light-bg: #f7f9fc;
  --dark-text: #1a1a1a;
  --muted-text: #5f6f81;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

p {
  margin: 5px 0;
}

/* ===== TOP HEADER ===== */
.site-header {
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
  padding: 10px 20px;
}

.site-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.site-header p {
  font-size: 0.95rem;
  margin: 3px 0 0;
  color: #e6f0fa;
}

/* ===== MAIN LAYOUT ===== */
.container {
  display: flex;
  min-height: calc(100vh - 120px);
  width: 90%;
  max-width: 980px;
  margin: auto;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 26%;
  background: #f4f7fb;
  padding: 20px;
  border-right: 1px solid #d6e0ef;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c7d6ea;
}

.sidebar-logo img {
  max-width: 120px;
  margin-bottom: 8px;
}

.sidebar nav a {
  display: block;
  padding: 5px 10px;
  margin: 3px 0;
  color: var(--primary-blue);
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #e8f1fb;
  color: var(--secondary-blue);
}

/* ===== TOP NAV FIX ===== */
nav {
  background: white !important;
  padding: 10px 0;
  border-bottom: 1px solid #d6e0ef;
}

nav a {
  color: var(--primary-blue) !important;
  margin-right: 15px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--secondary-blue) !important;
  text-decoration: underline;
}

/* ===== CONTENT ===== */
.content {
  width: 74%;
  padding: 20px 25px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(90deg, #f7fbff, #ffffff);
  padding: 20px 22px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.hero h2 {
  margin: 0;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.hero p {
  font-size: 0.95rem;
  max-width: 95%;
}

/* ===== SECTION TITLES ===== */
.section-title {
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent-gold);
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #cfd8dc;
}

section:last-child {
  border-bottom: none;
}

/* ===== TWO COLUMN INDEX ===== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ===== PRESIDENT SECTION ===== */
.president-box {
  display: flow-root;
}

.president-box img {
  float: left;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  shape-outside: circle(50%);
  -webkit-shape-outside: circle(50%);
  margin: 0 12px 6px 0;
  border: 2px solid var(--secondary-blue);
}

.president-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
  color: #000;
}

.president-name span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: #666;
}

.president-box p {
  font-size: 0.9rem;
  color: #102027;
  margin-top: 6px;
}

/* ===== CARDS / SERVICES ===== */
.grid, .service-grid, .home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card, .service-box, .home-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #d6e0ef;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover, .service-box:hover, .home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-blue);
}

/* ===== HERO CTA SECTIONS ===== */
.final-cta {
  margin-top: 30px;
  padding: 30px 15px;
  text-align: center;
  background-color: #f5f7fa;
  border-radius: 8px;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  margin-bottom: 15px;
}

.cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: #0b3d91;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.cta-button:hover {
  background: #062c6f;
}

.cta-button.secondary {
  background-color: #444;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar,
  .content {
    width: 100%;
  }

  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 15px;
  }
}
/* ===== SIDEBAR CTA ===== */
.sidebar-cta {
  margin-top: 30px;
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d6e0ef;
}

.sidebar-cta h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--primary-blue);
}

.sidebar-btn {
  display: block;
  margin-top: 10px;
  padding: 6px 10px;
  text-align: center;
  background: #0b3d91;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sidebar-btn:hover {
  background: #062c6f;
}

.sidebar-btn.secondary {
  background: #444;
}
/* ===== MODAL SYSTEM ===== */
.modal-overlay {
  display: none;               /* HIDE by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-card {
  background: #ffffff;
  padding: 25px;
  max-width: 520px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeIn 0.2s ease-in-out;
  border-top: 4px solid var(--primary-blue);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
  color: #444;
}

.close-btn:hover {
  color: #000;
}

/* Optional smooth appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
