/* =========================================================
   resources page styles.
   Loaded after styles/global.css on resources.html only.
   ========================================================= */

@media (max-width: 991px) {
  .allheader-padding {
    padding-bottom: 1rem !important;
  }
}

#download-section {
  scroll-margin-top: 100px;
}

:root {
  --bs-body-font-family: "Poppins", sans-serif;
  --orange: #ff8f00;
  --blue: #00205c;
  --light-orange: #ff8f0033;
  --light-blue-grad: linear-gradient( 135deg, rgba(92, 125, 184, 0.10), rgba(92, 125, 184, 0.01) );
  --side-left: clamp(80px, 10vw, 100px);
  --page-margin: 88px;
  --mobile-page-margin: 20px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (max-width: 1599px) and (min-width: 992px) {
  :root {
    --page-margin: 40px!important;
  }
}

/* GLASS CARD */
.resources-glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 25px;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

#events {
  scroll-margin-top: 140px;
}

.resources-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

/* ICON */
.resources-icon img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

/* CONTENT */
.resources-card-content {
  flex: 1;
}

/* MATCH SITE FONT */
body {
  font-family: 'Poppins', sans-serif;
}

.resourcesheader-image {
  width: 200%;
  overflow: hidden;
  min-height: 450px;
  height: 50vh;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  position: relative;
  left: -130px;
  z-index: 1;
}

/* CUSTOM CURSOR FOLLOW */
.cursor-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 12px rgba(255,143,0,0.6);
  z-index: 1000;
}

/* TARGET */
.target {
  position: absolute;
  width: 70px;
  height: 70px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ICON STYLE */
.icon-main {
  stroke: var(--blue);
  stroke-width: 1.6;
  fill: rgba(0,32,92,0.05);
}

.icon-accent {
  stroke: var(--orange);
  stroke-width: 2;
}

/* CLICK EFFECT */
.target.hit {
  transform: scale(.85);
}

/* SCAN PULSE */
#scanPulse {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  transform: translate(-50%,-50%) scale(.5);
  pointer-events: none;
}

/* GAME OVER */
#gameOver {
  position: absolute;
  inset: 0;
  background: var(--light-blue-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}

/* TARGET */
.target {
  position: absolute;
  width: 70px;
  height: 70px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ICON BASE */
.target svg {
  width: 52px;
  height: 52px;
}

/* PULSE */
.target::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: .5;
  animation: pulse 1.5s infinite;
}

/* GAME OVER */
#gameOver {
  position: absolute;
  inset: 0;
  background: rgba(0,32,92,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

/* OVERLAY */
#gameOver {
  position: absolute;
  inset: 0;
  background: linear-gradient( 135deg, rgba(0,32,92,0.95), rgba(0,58,143,0.95) );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}

#gameOver.active {
  opacity: 1;
  pointer-events: auto;
}

/* SECTION */
.resources-section {
  padding: 40px 20px;
}

/* GRID (optional control) */
.resources-grid {
  margin: 0 auto;
}

/* CARD */
.resources-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  padding: 25px;
  border-radius: 18px;
  background: var(--light-blue-grad);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* HOVER LIFT */
.resources-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(0,0,0,0.12);
}

/* TEXT */
.resources-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* BUTTON ALIGNMENT */
.resources-btn {
  margin-top: auto;
  align-self: center;
}

/* SECTION */
.resources-steps-section {
  padding: 40px 20px;
}

/* CARD */
.resources-step-card {
  height: 100%;
  padding: 30px 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.resources-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(0,0,0,0.12);
}

/* ICON */
.resources-step-icon {
  width: 90px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

/* TITLE */
.resources-step-title {
  font-weight: 700;
  margin-bottom: 10px;
}

/* TEXT (also H3 as requested) */
.resources-step-text {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  /* MOBILE FIXES (TABLET + PHONE) */
  .container-fluid {
    padding: 0px;
    margin: 0px;
  }

  .start-content {
    text-align: center !important;
  }

  .aboutheader-image {
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
    display: block;
  }

  .resources-step-heading {
    margin-bottom: 30px;
  }

  /* RESOURCES GRID */
  .resources-section {
    padding: 20px 0px;
  }

  .resources-header {
    margin-bottom: 30px;
  }

  .resources-card {
    padding: 20px;
    text-align: center;
  }

  .resources-grid > div {
    padding: 12px;
  }

  /* STEP CARDS */
  .resources-step-card {
    padding: 25px 20px;
  }

  .resources-step-icon {
    width: 60px;
    margin-bottom: 15px;
  }

  .resources-step-title {
    font-size: 18px;
  }

  .resources-step-text {
    font-size: 15px;
  }

  /* DARK BLUE CARD (GAME INTRO) */
  .records-split-card-inner {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .records-left-header {
    flex-direction: column;
    gap: 10px;
  }

  .records-card-icon {
    width: 60px;
  }

  .target {
    width: 60px;
    height: 60px;
  }

  .target svg {
    width: 45px;
    height: 45px;
  }

  .resources-icon img {
    width: 90px;
  }
}

.resources-glass-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resources-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
