/* EHS Expert Training Center - Website Custom Styles */

:root {
  --ehs-primary: #e84545;
  --ehs-primary-dark: #c93a3a;
  --ehs-navy: #0e1f3d;
  --ehs-navy-light: #16305c;
  --ehs-gold: #f6a821;
  --ehs-muted: #6c757d;
}

body {
  font-family: "Open Sans", system-ui, sans-serif;
  color: #444;
}

body.index-page {
  padding-top: 0;
}

/* Top Bar */
.topbar {
  background: var(--ehs-navy);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
  position: relative;
  z-index: 999;
}

.topbar a {
  color: #ffffff;
  opacity: 0.9;
}

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

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

.topbar .btn-topbar {
  background: var(--ehs-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 600;
  opacity: 1;
}

.topbar .btn-topbar:hover {
  background: var(--ehs-primary-dark);
  color: #fff;
}

/* Header adjustments - solid white nav bar, separate from topbar */
.header {
  top: 0;
  position: sticky;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(14, 31, 61, 0.08);
  border-bottom: 2px solid var(--ehs-primary);
  padding: 10px 0;
}

.index-page .header,
.index-page.scrolled .header {
  background: #ffffff !important;
}

.header .logo h1 {
  color: #0e1f3d;
  font-size: 24px;
  font-weight: 700;
}

.header .logo h1 span {
  color: var(--ehs-primary);
}

/* Nav links - dark, always visible on white */
.header .navmenu a,
.header .navmenu a:focus {
  color: #0e1f3d;
  font-weight: 500;
}

.header .navmenu li:hover > a,
.header .navmenu li:hover > a:focus,
.header .navmenu .active,
.header .navmenu .active:focus {
  color: var(--ehs-primary);
}

.header .navmenu .dropdown ul a {
  color: #3a3939;
}

.header .navmenu .dropdown ul a:hover,
.header .navmenu .dropdown ul .active {
  color: var(--ehs-primary);
}

.header .mobile-nav-toggle {
  color: #0e1f3d;
}

.header .mobile-nav-toggle:hover {
  color: var(--ehs-primary);
}

/* Hero (Home) */
.hero-home {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ehs-navy);
  overflow: hidden;
}

.hero-home.gradient-bg {
  background: linear-gradient(135deg, #0e1f3d 0%, #16305c 55%, #1d3a6b 100%);
}

.hero-home.gradient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(246, 168, 33, 0.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(232, 69, 69, 0.22), transparent 50%);
  z-index: 1;
}

.hero-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 1;
}

.hero-home .container {
  position: relative;
  z-index: 3;
}

.hero-home h2 {
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-home h2 span {
  color: var(--ehs-gold);
}

.hero-home p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 640px;
}

.hero-home .btn-hero {
  display: inline-block;
  background: var(--ehs-primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  margin-right: 10px;
  border: 2px solid var(--ehs-primary);
  transition: 0.3s;
}

.hero-home .btn-hero:hover {
  background: transparent;
  color: var(--ehs-gold);
}

.hero-home .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-home .btn-hero-outline:hover {
  border-color: var(--ehs-gold);
  color: var(--ehs-gold);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--ehs-gold);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

/* Feature icon boxes */
.feature-box {
  padding: 30px 24px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(14, 31, 61, 0.06);
  transition: 0.3s;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(14, 31, 61, 0.12);
}

.feature-box .feature-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 28px;
  color: #fff;
  background: var(--ehs-navy);
  margin-bottom: 18px;
}

.feature-box:nth-child(2) .feature-icon { background: var(--ehs-primary); }
.feature-box:nth-child(3) .feature-icon { background: var(--ehs-gold); }
.feature-box:nth-child(4) .feature-icon { background: #1d8a5e; }
.feature-box:nth-child(5) .feature-icon { background: #7a5cd4; }
.feature-box:nth-child(6) .feature-icon { background: #2b7fc2; }

.feature-box h4 {
  font-size: 19px;
  font-weight: 700;
}

.feature-box p {
  color: var(--ehs-muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* Stats / Work Info */
.stats-section {
  background: var(--ehs-navy);
  color: #fff;
  padding: 60px 0;
}

.stats-section .stat-item {
  text-align: center;
}

.stats-section .stat-item h3 {
  color: var(--ehs-gold);
  font-size: 40px;
  font-weight: 800;
}

.stats-section .stat-item p {
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

/* Course cards */
.course-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef0f3;
  box-shadow: 0 6px 20px rgba(14, 31, 61, 0.06);
  transition: 0.3s;
  background: #fff;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(14, 31, 61, 0.12);
}

.course-card .course-top {
  background: var(--ehs-navy);
  color: #fff;
  padding: 22px;
  position: relative;
}

.course-card .course-top h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.course-card .course-top span {
  color: var(--ehs-gold);
  font-size: 13px;
}

.course-card .course-body {
  padding: 20px;
}

.course-card .course-body p {
  color: var(--ehs-muted);
  font-size: 14px;
}

.course-card .course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ehs-muted);
  border-top: 1px dashed #e3e6ea;
  padding-top: 12px;
  margin-top: 10px;
}

.course-card .course-meta i {
  color: var(--ehs-primary);
}

.course-card .course-body .btn-course {
  background: var(--ehs-navy);
  color: #fff;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
}

.course-card .course-body .btn-course:hover {
  background: var(--ehs-primary);
  color: #fff;
}

/* Notices */
.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed #e3e6ea;
}

.notice-list li:last-child {
  border-bottom: 0;
}

.notice-list .notice-date {
  min-width: 62px;
  text-align: center;
  background: var(--ehs-navy);
  color: #fff;
  border-radius: 8px;
  padding: 8px 6px;
  height: fit-content;
}

.notice-list .notice-date .d {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.notice-list .notice-date .m {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notice-list h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.notice-list p {
  color: var(--ehs-muted);
  font-size: 14px;
  margin: 0;
}

/* Page banner */
.page-banner {
  background: var(--ehs-navy);
  position: relative;
  padding: 110px 0 70px;
  color: #fff;
  text-align: center;
  margin-top: 0;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/bg-1.jpg') center/cover no-repeat;
  opacity: 0.18;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h2 {
  color: #fff;
  font-weight: 800;
  font-size: 34px;
}

.page-banner .breadcrumb {
  justify-content: center;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
  --bs-breadcrumb-item-active-color: var(--ehs-gold);
}

.page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 24px;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 61, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: 0.4s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item .gallery-overlay i {
  font-size: 34px;
  color: var(--ehs-gold);
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(14, 31, 61, 0.06);
  text-align: center;
  margin: 10px;
}

.testimonial-card .stars {
  color: var(--ehs-gold);
  font-size: 18px;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--ehs-muted);
  font-size: 15px;
  font-style: italic;
}

.testimonial-card h5 {
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 2px;
}

.testimonial-card span {
  color: var(--ehs-primary);
  font-size: 13px;
}

/* Contact info cards */
.info-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #f7f9fc;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid #eef0f3;
}

.info-card .info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ehs-navy);
  color: var(--ehs-gold);
  border-radius: 10px;
  font-size: 20px;
}

.info-card h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-card p {
  margin: 0;
  color: var(--ehs-muted);
  font-size: 14px;
}

/* Forms */
.form-control:focus {
  border-color: var(--ehs-primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 69, 69, 0.15);
}

.btn-ehs {
  background: var(--ehs-primary);
  border: 2px solid var(--ehs-primary);
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 6px;
}

.btn-ehs:hover {
  background: var(--ehs-primary-dark);
  border-color: var(--ehs-primary-dark);
  color: #fff;
}

.btn-ehs-navy {
  background: var(--ehs-navy);
  border: 2px solid var(--ehs-navy);
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 6px;
}

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

/* Result card */
.result-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef0f3;
  box-shadow: 0 10px 30px rgba(14, 31, 61, 0.08);
  padding: 30px;
}

.result-box .certificate-no {
  display: inline-block;
  background: var(--ehs-navy);
  color: var(--ehs-gold);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}

.badge-pass { background: #1d8a5e; color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.badge-pending { background: var(--ehs-gold); color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; }

/* Swiper nav */
.testimonials-slider .swiper-pagination-bullet { width: 10px; height: 10px; background: var(--ehs-navy); }
.testimonials-slider .swiper-pagination-bullet-active { background: var(--ehs-primary); }

/* Page content typography */
.page-content h3 {
  font-weight: 700;
  margin-bottom: 16px;
}

.page-content p,
.page-content li {
  color: var(--ehs-muted);
  line-height: 1.8;
}

/* Team / Management cards */
.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(14, 31, 61, 0.06);
  transition: 0.3s;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.team-card .team-info {
  padding: 18px;
}

.team-card h5 {
  font-weight: 700;
  margin-bottom: 2px;
}

.team-card span {
  color: var(--ehs-primary);
  font-size: 13px;
}

/* Table content */
.content-table { width: 100%; border-collapse: collapse; }
.content-table th, .content-table td { border: 1px solid #e3e6ea; padding: 10px 14px; text-align: left; font-size: 14px; }
.content-table th { background: var(--ehs-navy); color: #fff; }

@media (max-width: 991px) {
  body { padding-top: 70px; }
  .index-page body { padding-top: 0; }
  .hero-home h2 { font-size: 34px; }
}

@media (max-width: 576px) {
  .hero-home h2 { font-size: 28px; }
}
