:root {
  --primary: #1d5d9b;
  --primary-light: #75c2f6;
  --secondary: #112B3C;
  --accent: #a6cbe4;
  --bg: #c8d8e2;
  --text: #212529;
  --text-muted: #47566b;
  --shadow: 0 3px 18px rgba(32,83,117,0.10);
  --radius-lg: 18px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lora', 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
} 

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-family: 'Lora', 'Roboto', serif;
  color: var(--primary);
}

p, .lead, label {
  font-family: 'Roboto', sans-serif;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.2px;
  font-size: 1.25rem;
}

img, video {
  max-width: 100%;
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}

img:hover, video:hover { transform: scale(1.03); }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: linear-gradient(90deg, #194d6f, #a3daf0);
  color: #fff;
  z-index: 1000;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  transition: all var(--transition);
  height:auto;
  flex-wrap: wrap;
}
.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.45rem;
  letter-spacing: 0.4px;
}
.navbar .navbar-brand img { height: 75px; }
.navbar .navbar-brand span {
    font-size: 1.6rem;
  font-weight: bolder;
  background: linear-gradient(90deg, #fff, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-nav {
  display: flex;
  gap: 1em;
}
.nav-link {
  color: #1a425d;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--accent);
  color: var(--secondary);
}
.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5em;
}

/* Better dropdown styling */
.dropdown-menu {
  background: var(--primary-light);
  border: none;
}

.dropdown-item {
  color: var(--secondary);
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* ===== Hero Section ===== */
.hero {
  background: azure;
  color: #fff;
  /* padding-top: revert-layer; */
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  text-align: center;
}
.hero .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* keep above overlay */
  color: #fff;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
}
.hero .btn {
  font-size: 1.2rem; padding: 0.6em 2.4em;
  margin: 0 0.5em;
  border-radius: var(--radius-lg);
  border: none;
  background: #b0d6e4;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0px 30px #fff3;
  transition: background var(--transition), color var(--transition);
}
.hero .btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-img {
    margin: auto;
    max-width: 90%;
    height: 90vh;
    object-fit: cover;
    padding-top: auto;
    transition: transform 0.6s ease;
    border-radius: 0%;
    filter: brightness(50%);
}

/* ===== Sections ===== */
section {
  padding: 80px 0 60px 0;
  background: var(--bg);
}
section:nth-child(even) { background: #f7fafe; }

/* ===== Cards ===== */
.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
  object-fit: cover;
  overflow: hidden;
}
.card:hover { box-shadow: 0 8px 30px rgba(32,83,117,0.23); transform: translateY(-8px) scale(1.01);}
.card-img-top { border-radius: var(--radius-md) var(--radius-md) 0 0; object-fit: cover; height: 250px; }
.card-body { padding: 1.2rem; }
.badge {
    font-family:Arial, Helvetica, sans-serif;
    font-size: 1rem;
  display: inline-block;
  border-radius: 12px;
  padding: 5px 15px;
  /* background: var(--primary-light); */
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  width: 100%;
}

.team-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(90deg, #194d6f, #a3daf0);
  color: #fff;
  padding: 2.5rem 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  font-family: 'Roboto', sans-serif;
}
.footer a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== Forms ===== */
form input, form select, form textarea {
  border-radius: var(--radius-md);
  border: 1px solid #c9e4ee;
  padding: 0.9em 1em;
  width: 100%;
  margin-bottom: 1.1em;
  font-size: 1.05em;
  background: #f7fafe;
  color: var(--text);
  transition: border var(--transition);
}
form input:focus, form select:focus, form textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: #fff;
}

form button[type="submit"] {
  padding: 0.8em 2.5em;
  background: var(--primary-light);
  color: var(--secondary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 1.1em;
  margin-top: 1em;
  transition: background var(--transition), color var(--transition);
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}
form button[type="submit"]:hover {
  background: var(--secondary);
  color: #fff;
}

/* ===== Collage, Grids, Video, Responsive ===== */
.image-collage {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
}
.image-collage img {
  width: 118px; height: 118px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.ratio-16x9 { aspect-ratio: 16/9; width: 100%; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
      p {
    margin-left: 15%;
    margin-right: 15%;
  }
}
@media (max-width: 991px) {
  .navbar-nav { flex-direction: column; gap: 0; background: var(--primary-light); border-radius: var(--radius-md); }
  .navbar-toggler { display: block; }
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero { padding-top: 5.5rem; }
  p {
    margin-left: 10%;
    margin-right: 10%;
  }
}
@media (max-width: 768px) {
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 2.1rem; }
  .container { padding: 0 8px; }
  .navbar .navbar-brand span { font-size: 1.1rem; }
  .card-img-top { height: 160px; }
  .image-collage img { width: 100px; height: 100px; }
  .section { padding: 48px 0; }
  .footer .col-6, 
  .footer .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .contact-info a span {
    font-size: 0.95rem; /* slightly smaller text to fit */
  }
    p {
    margin-left: 10%;
    margin-right: 10%;
  }
}
@media (max-width: 576px) {
  .navbar { padding: 0.7rem 0.3rem; }
  .hero { padding-top: 3.5rem; }
  h1, h2 { font-size: 1.45rem; }
  .card-img-top { height: 120px; }
  .image-collage img { width: 76px; height: 76px; }
  .footer { padding: 1rem 3px; }
  .footer h4{color: #000000;}
    p {
    margin-left: 5%;
    margin-right: 5%;
  }
}

@media (max-width: 480px) {
  .contact-info a span {
    font-size: 0.85rem; /* smaller for narrow phones */
  }
  
}
@media (min-width: 768px) and (max-width: 832px) {
  .footer .col-6, 
  .footer .col-md-3 {
    flex: 0 0 50%;   /* make 2 equal columns */
    max-width: 50%;
  }

  .contact-info a span {
    font-size: 0.9rem; /* slightly smaller so it fits */
  }
}

@media (min-width: 425px) and (max-width: 832px) {
  /* Logo full width, centered */
  .footer .col-12.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center !important;
    align-items: center !important;
  }

  /* Quick Links and Contact Info in one row (2 columns) */
  .footer .col-6.col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
    margin-top: 1rem;
  }
  .footer h4{color: #000000;}
}

a span {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

a:hover span {
  border-color: currentColor; /* matches text color */
}

.followus {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* spacing between items */
}

.follow-item a {
  display: flex;
  align-items: center; /* vertically align icon & text */
  gap: 0.5rem; /* space between icon & text */
  text-decoration: none;
  color: #212529; /* bootstrap dark */
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.follow-item img {
  width: 28px;
  height: 28px;
  object-fit: contain; /* keeps proportions */
}

.list-unstyled {
  display: flex;
  flex-direction: column;
  align-items: baseline;
}
.list-unstyled img {
  width: 28px;
  height: 28px;
  /* object-fit: contain; */
}




#service {
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif; /* or your preferred font */
  font-size: 1rem; /* optional */
}

/* ==== Training Video Cards ==== */
.training-card video,
.training-card .ratio {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  /* object-fit: cover; */
}

/* Ensure video cards match image cards */
.training-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.training-card .card-body {
  flex-grow: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Style headings & text inside video cards */
.training-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.training-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1; /* keeps text balanced inside */
}

/* Video responsiveness */
.ratio {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 992px) {
  .training-card h3 {
    font-size: 1.2rem;
  }
  .training-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .training-card h3 {
    font-size: 1.05rem;
  }
  .training-card p {
    font-size: 0.9rem;
  }
}
