/* =====================
   ROOT COLORS
===================== */
:root {
  --blue: #0A1AFF;
  --navy: #0B132B;
  --green: #2ECC71;
  --gray: #F5F7FA;
  --dark: #1C1C1C;
}

/* =====================
   RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   BASE
===================== */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: #ffffff;
}

h1, h2, h3, h4 {
  font-family: Poppins, Arial, sans-serif;
}

/* =====================
   GLOBAL IMAGES
===================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================
   LAYOUT
===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.center {
  text-align: center;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  background-color: var(--navy);
  padding: 20px 0;
}

.navbar .logo {
  color: #ffffff;
}

.navbar .logo span {
  color: var(--green);
}

.navbar nav a {
  color: #ffffff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

/* =====================
   HERO
===================== */
.hero {
  background: linear-gradient(90deg, var(--blue), var(--navy));
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
}

.hero p {
  margin-top: 15px;
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
}

.primary {
  background-color: var(--green);
  color: #ffffff;
}

.secondary {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 80px 0;
}

.light {
  background-color: var(--gray);
}

/* =====================
   GRIDS (DESKTOP)
===================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* =====================
   CARDS
===================== */
.card,
.team-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: auto;
  overflow: visible;
}

.card img,
.team-card img {
  border-radius: 8px;
  margin-bottom: 15px;
}

/* =====================
   LINKS
===================== */
.link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

/* =====================
   FEATURES
===================== */
.features {
  list-style: none;
  max-width: 600px;
  margin: 30px auto;
}

.features li {
  padding: 10px 0;
}

/* =====================
   REVIEWS CTA
===================== */
.reviews-cta {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: var(--gray);
  border-radius: 12px;
}

.btn-review {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 28px;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.btn-review:hover {
  background: var(--navy);
}

/* =====================
   MOBILE RESPONSIVENESS
===================== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  /* Headings */
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  /* Hero */
  .hero {
    padding: 60px 20px;
  }

  /* FORCE SINGLE COLUMN */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Prevent cut content */
  section,
  .section,
  .card,
  .team-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Navigation */
  nav ul {
    display: none;
    flex-direction: column;
  }

  nav ul.active {
    display: block;
  }

  /* CTA buttons */
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================
   ADMIN / DASHBOARD SAFETY
===================== */
.dashboard,
.admin-content,
.admin-table {
  overflow-x: auto;
  height: auto;
}
