:root {
  --accent-1: #0d47a1;   /* deeper royal blue */
  --accent-2: #00b4d8;   /* modern teal */
  --muted: #6b7280;
  --card-bg: rgba(255, 255, 255, 0.96);
  --glass: rgba(255, 255, 255, 0.55);
  --radius: 16px;
  --max-width: 1200px;
  --shadow-soft: 0 10px 35px rgba(13, 47, 91, 0.08);
  --text-dark: #0b1220;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

/* Layout container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO */
.esafety-hero {
  background: var(--gradient);
  color: #fff;
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: var(--shadow-soft);
  animation: fadeInHero 1.2s ease-in-out;
}

/* Animated background logo */
.esafety-hero::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 5%;
  width: 700px;
  height: 360px;
  background-image: url('/assets/images/isf-hero-logo.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  transform: rotate(-8deg) scale(1.05);
  animation: floatLogo 6s ease-in-out infinite alternate;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  padding-left: 6px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.5px;
  animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.4;
}

/* MAIN WRAP */
.main-wrap {
  margin-top: -40px;
}

/* INTRO */
.policy-intro {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 8px 28px rgba(12, 30, 50, 0.05);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  animation: fadeIn 1.3s ease-in;
}

.policy-intro h2 {
  color: var(--accent-1);
  margin-top: 0;
}

.quick-points {
  margin: 12px 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* FILTER BUTTONS */
.policy-filter {
  text-align: center;
  margin: 12px 0 30px;
}

.filter-buttons {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(13, 71, 161, 0.15);
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-1);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(13, 47, 91, 0.15);
}

/* POLICY GRID */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-bottom: 40px;
  animation: fadeInUp 1.4s ease;
}

.policy-card {
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.92));
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(8, 22, 40, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  justify-content: space-between;
  border: 1px solid rgba(12, 38, 90, 0.05);
}

.policy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 36px rgba(6, 18, 45, 0.1);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.policy-icon {
  font-size: 2rem;
  color: var(--accent-2);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 180, 216, 0.1), rgba(3, 99, 162, 0.06));
}

.policy-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 700;
  margin: 0;
}

.policy-desc {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
  max-height: 3.2em;
  overflow: hidden;
}

/* Buttons */
.btn {
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.2s ease;
}

.btn.view {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.07);
}

.btn.view:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* REPORT SECTION */
.report-section {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 26px;
  margin: 34px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
  border-left: 4px solid var(--accent-1);
  animation: fadeIn 1.5s ease;
}

.report-section h2 {
  color: var(--accent-1);
  margin-top: 0;
}

.contact-list {
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.small-note {
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}

/* RESOURCE HUB */
.resource-hub {
  background: linear-gradient(180deg, #f9fdff, #eef9ff);
  padding: 26px;
  border-radius: 14px;
  margin-bottom: 50px;
  animation: fadeInUp 1.2s ease;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.resource {
  background: white;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(4, 18, 40, 0.05);
  transition: all 0.25s ease;
}

.resource:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(4, 18, 40, 0.08);
}

.resource i {
  font-size: 1.9rem;
  color: var(--accent-2);
  margin-bottom: 10px;
}

/* ANIMATIONS */
@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatLogo {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(-8deg) translateY(10px); }
}

@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .esafety-hero::after { display: none; }
  .hero-inner { text-align: center; padding-left: 0; }
  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .esafety-hero { padding: 70px 0 50px; }
  .filter-buttons { gap: 6px; }
  .policy-desc { max-height: 3.8em; }
}

/* === Scroll Animation Effects === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: delay for staggered effect */
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
