/* ===========================
   HERO SECTION — A2 RESTORE
=========================== */

.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: #031633;
  align-items: flex-start;
  justify-content: flex-start;
}

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

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 4%;
  
  color: #fff;
  margin-top: 60px;   
  margin-left: 0px;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* HERO TITLE */
.hero-title {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  color: #eaeaea;
  text-shadow: 0 3px 6px rgba(0,0,0,0.55);

  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  max-width: 900px;
  margin: 0 0 1rem 0;
}


/* SUBTITLE */
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 500px;
}

/* BUTTONS */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background-color: #ffc107;
  color: #031633;
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
}

.btn-donate {
  background-color: #ffc107;
  color: #031633;
  font-weight: 700;
}

.btn-donate:hover {
  background-color: #e0aa06;
  color: #031633;
}

/* ===========================
   CARD GRID
=========================== */

/* Home page: keep the card panel vertically balanced within the section.
  Global CSS forces `.panel { margin-top: 0 !important; }`, which makes the panel sit too high.
*/
.home-page .panel {
  margin: 2rem auto !important;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

/* Home only: allow wider panel on desktop so 4-across cards don't feel cramped */
@media (min-width: 1100px) {
  .home-page .panel {
    max-width: 1400px;
  }
}

.card-grid {
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  
}

/* Force 4-across on wide screens (Home has exactly 4 cards now) */
@media (min-width: 1100px) {
  .home-page .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Keep tablet layouts comfortable */
@media (min-width: 900px) and (max-width: 1099px) {
  .home-page .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(3, 22, 51, 0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  min-height: 100px;
}

.card-icon {
  font-size: 2.5rem;
  color: #ffc107;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  color: #031633;
}

.card p {
  margin: 0 0 1rem;
  flex: 1 1 auto;
}

.card .btn {
  margin-top: auto;
  width: fit-content;
  align-self: flex-start;
}

/* CARD HEADER – ICON + TITLE INLINE */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;       /* spacing between icon and title */
  margin-bottom: 0.75rem;
}

.card-header .card-icon {
  margin-bottom: 0;   /* remove old bottom margin */
  font-size: 2.2rem;  /* slightly smaller for inline placement */
}

.card-header h3 {
  margin: 0;
  color: #031633;
  font-size: 1.4rem;
}

/* ===========================
   MOBILE HERO POSITION FIX
=========================== */
@media (max-width: 768px) {
  .hero-content {
    margin-top: 90px !important;   /* moves content DOWN so it clears the mobile navbar */
    margin-left: 0 !important;
  }
}

/* HERO DONATE BUTTON — RED HEART */
.hero-actions .btn-donate i {
  color: #c62828;
}

/* HERO SCHOLARSHIP BUTTON — NAVY */
.btn-scholarship {
  background-color: #031633;
  color: #ffffff;
  border: 2px solid #031633;
}

.btn-scholarship:hover {
  background-color: #021227;
  border-color: #021227;
  color: #ffffff;
}
