/* ============================================================
   OSHAS-style website layout
   Navy #002B7F / Gold #FEBA45 theme
   Applied on top of Bootstrap + main.css
   ============================================================ */

:root {
  --osh-navy: #002b7f;
  --osh-navy-dark: #001f5c;
  --osh-gold: #feba45;
  --osh-gold-dark: #f0a41f;
  --osh-light: #edf0f6;
  --osh-ink: #1c2b46;
  --osh-muted: #5b6b86;

  /* Retint the base theme variables used by the inner pages */
  --primary-color: #002b7f;
  --primary-color-rgb: 0, 43, 127;
  --nav-hover-color: #feba45;
  --nav-dropdown-hover-color: #feba45;
}

body.osh-site {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--osh-ink);
  padding-top: 0;
}

.osh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.osh-title {
  color: var(--osh-navy);
  font-weight: 800;
  text-align: center;
  font-size: 42px;
  margin-bottom: 12px;
}

.osh-lead {
  text-align: center;
  color: var(--osh-muted);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* ---------------- Top bar ---------------- */
.osh-topbar {
  background: var(--osh-navy);
  color: #fff;
  font-size: 15px;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.osh-topbar .osh-container {
  width: 100%;
}

.osh-topbar .osh-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.osh-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.osh-topbar a:hover {
  color: var(--osh-gold);
}

.osh-topbar i {
  color: var(--osh-gold);
}

/* ---------------- Header / nav ---------------- */
.osh-header {
  background: var(--osh-light);
  border-bottom: 1px solid #dfe4ee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.osh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.osh-logo img {
  max-height: 58px;
  width: auto;
}

.osh-logo .osh-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--osh-navy);
  line-height: 1.05;
}

.osh-logo .osh-logo-text span {
  color: var(--osh-gold-dark);
}

.osh-nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 32px;
  color: var(--osh-gold);
  cursor: pointer;
  line-height: 1;
}

.osh-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.osh-menu > li {
  position: relative;
}

.osh-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  color: var(--osh-navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s;
}

.osh-menu > li > a:hover,
.osh-menu > li.active > a {
  color: var(--osh-gold-dark);
}

.osh-menu > li > a i {
  font-size: 12px;
}

/* Dropdown (ATP) */
.osh-drop {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 43, 127, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 30;
}

.osh-menu > li:hover > .osh-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.osh-drop li a {
  display: block;
  padding: 9px 18px;
  color: var(--osh-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.osh-drop li a:hover {
  background: var(--osh-light);
  color: var(--osh-navy);
}

/* Mega menu (Qualifications) */
.osh-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(940px, 92vw);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 43, 127, 0.18);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 40;
}

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

.osh-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 26px;
  max-height: 62vh;
  overflow-y: auto;
}

.osh-mega-col h6 {
  color: var(--osh-navy);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 6px 0 6px;
}

.osh-mega-col ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.osh-mega-col ul li a {
  display: block;
  padding: 4px 0;
  color: var(--osh-muted);
  font-size: 13.5px;
  text-decoration: none;
}

.osh-mega-col ul li a:hover {
  color: var(--osh-gold-dark);
}

.osh-mega .osh-mega-footer {
  border-top: 1px solid #eef1f6;
  margin-top: 8px;
  padding-top: 12px;
  text-align: right;
}

.osh-mega .osh-mega-footer a {
  color: var(--osh-navy);
  font-weight: 800;
  text-decoration: none;
}

.osh-atp-btn {
  display: inline-block;
  background: #798aad;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s;
}

.osh-atp-btn:hover {
  background: var(--osh-gold);
  color: var(--osh-navy-dark) !important;
}

.osh-atp-btn-drawer {
  display: none;
  margin-top: 16px;
  text-align: center;
}

.osh-nav-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eef1f6;
}

.osh-nav-head .osh-logo img {
  max-height: 44px;
}

.osh-nav-close {
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--osh-navy);
  cursor: pointer;
  line-height: 1;
}

/* ---------------- Hero carousel ---------------- */
.osh-hero .carousel-item {
  position: relative;
  min-height: 78vh;
  background: var(--osh-navy);
}

.osh-hero .carousel-item img {
  width: 100%;
  height: 78vh;
  object-fit: cover;
}

.osh-hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 43, 127, 0.62) 0%, rgba(0, 43, 127, 0.25) 55%, rgba(0, 43, 127, 0.45) 100%);
}

.osh-hero .carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 0 8%;
  z-index: 3;
}

.osh-hero .carousel-caption h1 {
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  max-width: 720px;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.osh-hero .carousel-caption p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  max-width: 640px;
  margin-top: 12px;
}

.osh-hero .carousel-caption .osh-hero-cta {
  margin-top: 24px;
}

.osh-hero .carousel-indicators {
  z-index: 4;
}

.osh-hero .carousel-indicators [data-bs-target] {
  width: 30px;
  height: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.osh-hero .carousel-indicators .active {
  background: var(--osh-gold);
}

/* ---------------- Buttons ---------------- */
.osh-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: 0.2s;
  cursor: pointer;
}

.osh-btn-gold {
  background: var(--osh-gold);
  color: var(--osh-navy-dark);
  border-color: var(--osh-gold);
}

.osh-btn-gold:hover {
  background: transparent;
  color: var(--osh-gold);
}

.osh-btn-navy {
  background: var(--osh-navy);
  color: #fff;
  border-color: var(--osh-navy);
}

.osh-btn-navy:hover {
  background: var(--osh-navy-dark);
  color: #fff;
}

.osh-btn-outline {
  background: transparent;
  border-color: var(--osh-gold);
  color: var(--osh-gold);
}

.osh-btn-outline:hover {
  background: var(--osh-gold);
  color: var(--osh-navy-dark);
}

/* ---------------- What We Do ---------------- */
.osh-whatwedo {
  padding: 70px 0 40px;
}

.osh-card {
  display: block;
  height: 100%;
  background: var(--osh-light);
  border-radius: 12px;
  padding: 34px 26px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e3e8f2;
  transition: 0.25s;
}

.osh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 43, 127, 0.14);
}

.osh-card .osh-card-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--osh-navy);
  font-size: 34px;
  box-shadow: 0 10px 24px rgba(0, 43, 127, 0.1);
}

.osh-card h5 {
  color: var(--osh-navy);
  font-weight: 800;
  margin-bottom: 8px;
}

.osh-card p {
  color: var(--osh-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------------- Our Qualifications ---------------- */
.osh-qualifications {
  padding: 30px 0 60px;
}

.osh-qual-card {
  position: relative;
  display: block;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, var(--osh-navy) 0%, #14439e 60%, #1b57c9 100%);
  transition: 0.25s;
}

.osh-qual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 43, 127, 0.24);
}

.osh-qual-card .osh-qual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.osh-qual-card .osh-qual-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 20px 20px;
  background: linear-gradient(180deg, rgba(0, 43, 127, 0) 0%, rgba(0, 31, 92, 0.86) 100%);
}

.osh-qual-card .osh-qual-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--osh-gold);
  color: var(--osh-navy-dark);
  border-radius: 10px;
  font-size: 20px;
}

.osh-qual-card h5 {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* ---------------- Top Courses ---------------- */
.osh-topcourses {
  padding: 20px 0 70px;
}

.osh-course-group {
  background: var(--osh-light);
  border-radius: 12px;
  padding: 20px 26px 26px;
  height: 100%;
}

.osh-course-group.plain {
  background: transparent;
  border: 1px solid #e3e8f2;
}

.osh-course-group h4 {
  color: var(--osh-navy);
  font-weight: 800;
  font-size: 20px;
  margin: 4px 0 12px;
}

.osh-course-group ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.osh-course-group ul li a {
  display: block;
  padding: 7px 0;
  color: var(--osh-ink);
  text-decoration: none;
  font-size: 14.5px;
}

.osh-course-group ul li a:hover {
  color: var(--osh-gold-dark);
}

/* ---------------- About ---------------- */
.osh-about {
  background: var(--osh-light);
  padding: 70px 0;
}

.osh-about h2 {
  color: var(--osh-navy);
  font-weight: 800;
  font-size: 40px;
  margin-bottom: 18px;
}

.osh-about p {
  color: var(--osh-muted);
  line-height: 1.85;
}

.osh-about img {
  max-width: 100%;
  border-radius: 12px;
}

/* ---------------- News ---------------- */
.osh-news {
  padding: 70px 0 40px;
}

.osh-news-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.25s;
}

.osh-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 43, 127, 0.12);
}

.osh-news-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--osh-navy-dark), #1b57c9);
  color: var(--osh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.osh-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.osh-news-body {
  padding: 20px;
}

.osh-news-body h5 {
  color: var(--osh-navy);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.osh-news-body p {
  color: var(--osh-muted);
  font-size: 14px;
  min-height: 42px;
}

.osh-news-body .osh-read {
  display: inline-block;
  background: var(--osh-navy);
  color: #fff;
  padding: 9px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.osh-news-body .osh-read:hover {
  background: var(--osh-gold);
  color: var(--osh-navy-dark);
}

/* ---------------- Testimonials / FAQ ---------------- */
.osh-list-section {
  padding: 60px 0 20px;
}

.osh-review {
  padding: 18px 0 6px;
}

.osh-review h5 {
  color: var(--osh-navy);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.osh-review h5 sub,
.osh-review h5 .date {
  color: var(--osh-gold-dark);
  font-weight: 600;
  font-size: 13px;
}

.osh-review p {
  color: var(--osh-muted);
  margin: 0 0 10px;
}

.osh-list-section hr {
  border-top: 1px solid #e2e7f1;
  opacity: 1;
  margin: 4px 0 10px;
}

.osh-faq h5 {
  color: var(--osh-navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.osh-faq p {
  color: var(--osh-muted);
  margin-bottom: 10px;
}

/* ---------------- Footer ---------------- */
.osh-footer {
  background: var(--osh-navy);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 50px;
}

.osh-footer h6 {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}

.osh-footer p,
.osh-footer a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.9;
}

.osh-footer a:hover {
  color: var(--osh-gold);
}

.osh-footer .osh-footer-logo {
  max-height: 60px;
  margin-bottom: 14px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.osh-footer .osh-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--osh-navy);
  border-radius: 50%;
  margin-right: 8px;
  font-size: 17px;
}

.osh-footer .osh-social a:hover {
  background: var(--osh-gold);
  color: var(--osh-navy-dark);
}

.osh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 30px;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1199px) {
  .osh-menu > li > a { padding: 12px 9px; font-size: 14px; }
  .osh-hero .carousel-caption h1 { font-size: 42px; }
}

@media (max-width: 991px) {
  .osh-nav-toggle { display: block; }

  .osh-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 88vw;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    padding: 18px 18px 30px;
    overflow-y: auto;
    transition: right 0.3s;
    z-index: 1200;
  }

  .osh-nav.open { right: 0; }

  .osh-nav-head { display: flex; }

  .osh-atp-btn-drawer { display: block; }

  body.osh-nav-locked { overflow: hidden; }

  .osh-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .osh-menu > li { border-bottom: 1px solid #eef1f6; }

  .osh-menu > li > a {
    padding: 14px 6px;
    justify-content: space-between;
  }

  .osh-drop,
  .osh-mega {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    width: 100%;
    padding: 0 0 10px 10px;
    display: none;
  }

  .osh-menu > li.open > .osh-drop,
  .osh-menu > li.open > .osh-mega { display: block; }

  .osh-mega-grid { grid-template-columns: 1fr; max-height: none; }

  .osh-hero .carousel-item,
  .osh-hero .carousel-item img { height: 62vh; min-height: 62vh; }

  .osh-hero .carousel-caption h1 { font-size: 32px; }
  .osh-hero .carousel-caption p { font-size: 16px; }

  .osh-title { font-size: 32px; }
}

@media (max-width: 576px) {
  .osh-hero .carousel-caption { padding: 0 6%; }
  .osh-hero .carousel-caption h1 { font-size: 26px; }
  .osh-title { font-size: 26px; }
  .osh-about h2 { font-size: 30px; }
}

/* ============================================================
   Inner pages
   ============================================================ */

/* Section titles (override base theme) */
.osh-site .section-title {
  padding-bottom: 34px;
}

.osh-site .section-title h2 {
  color: var(--osh-navy);
  font-weight: 800;
  font-size: 34px;
}

.osh-site .section-title h2:before,
.osh-site .section-title h2:after {
  background: var(--osh-gold);
  height: 3px;
  width: 42px;
}

.osh-site .section-title p {
  color: var(--osh-muted);
  margin-top: 6px;
}

/* Page banner */
.osh-site .page-banner {
  background: var(--osh-navy);
  padding: 92px 0 60px;
}

.osh-site .page-banner::before {
  opacity: 0.22;
}

.osh-site .page-banner h2 {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.osh-site .page-banner .breadcrumb {
  --bs-breadcrumb-item-active-color: var(--osh-gold);
}

.osh-site .page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.osh-site .page-banner .breadcrumb a:hover {
  color: var(--osh-gold);
}

/* Generic section heading used on inner pages */
.osh-subtitle {
  color: var(--osh-navy);
  font-weight: 800;
  margin-bottom: 14px;
}

/* Cards use the oshas look on inner pages too */
.osh-site .card.shadow,
.osh-site .card.shadow-sm {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 43, 127, 0.08) !important;
  border: 1px solid #e6eaf3 !important;
}

.osh-site .text-danger {
  color: var(--osh-gold-dark) !important;
}

.osh-site .badge.bg-danger {
  background: var(--osh-navy) !important;
}

/* Buttons (base theme already retinted via --ehs-primary) */
.osh-site .btn-ehs,
.osh-site .btn-ehs-navy {
  border-radius: 8px;
}

/* Info cards (contact) */
.osh-site .info-card {
  background: var(--osh-light);
  border-color: #e3e8f2;
  border-radius: 12px;
}

.osh-site .info-card .info-icon {
  background: var(--osh-navy);
  color: var(--osh-gold);
}

/* Result / verification box */
.osh-site .result-box .certificate-no {
  background: var(--osh-navy);
  color: var(--osh-gold);
}

/* Content tables */
.osh-site .content-table th {
  background: var(--osh-navy);
  color: #fff;
}

/* Gallery filters */
.osh-site .gallery-filters .btn-outline-secondary {
  color: var(--osh-navy);
  border-color: #c9d2e4;
  border-radius: 30px;
  padding: 6px 18px;
}

.osh-site .gallery-filters .btn-outline-secondary:hover,
.osh-site .gallery-filters .btn-outline-secondary.filter-active {
  background: var(--osh-navy);
  border-color: var(--osh-navy);
  color: #fff;
}

/* Course cards (listing / detail) */
.osh-site .course-card .course-top {
  background: var(--osh-navy);
}

.osh-site .course-card .course-body .btn-course {
  background: var(--osh-navy);
}

.osh-site .course-card .course-body .btn-course:hover {
  background: var(--osh-gold);
  color: var(--osh-navy-dark);
}

/* About / mission icons */
.osh-site .feature-icon {
  background: var(--osh-navy);
  color: var(--osh-gold);
}

/* Team cards */
.osh-site .team-card span {
  color: var(--osh-gold-dark);
}

.osh-site .team-card .social-links a {
  color: var(--osh-navy);
}

/* Forms focus */
.osh-site .form-control:focus,
.osh-site .form-select:focus {
  border-color: var(--osh-navy);
  box-shadow: 0 0 0 0.2rem rgba(0, 43, 127, 0.15);
}

.osh-site .form-label {
  font-weight: 600;
  color: var(--osh-navy);
}
