:root {
  --red: #c1121f;
  --blue: #003366;
  --white: #ffffff;
  --gray: #f4f4f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--white);
  color: #333;
  line-height: 1.6;
}

/* HEADER */
header {
  background-color: var(--blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 60px;
  margin-right: 10px;
}

nav a {
  color: var(--white);
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--red);
}

/* HERO */
.hero {
  position: relative;
  background: url('images/background.png') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 8rem 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.7);
}

.hero-text {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.btn {
  display: inline-block;
  background-color: var(--red);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
  transition: 0.3s;
}

.btn:hover {
  background-color: #a10e19;
}

/* WHY FIRST AID */
.why-first-aid {
  background-image: url(images/herobg.jpeg) cover no-repeat ;
  padding: 3rem 2rem;
  text-align: center;
}

.why-first-aid ul {
  list-style: none;
  max-width: 600px;
  margin: 1rem auto;
  text-align: left;
}

.why-first-aid ul li::before {
  content: "✔ ";
  color: var(--red);
  font-weight: bold;
}

/* GALLERY */
.image-gallery {
  padding: 2rem;
  text-align: center;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.gallery img {
  width: 300px;
  border-radius: 8px;
}

/* CONTENT CONTAINER */
.content {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ABOUT IMAGES */
.about-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}

.about-images img {
  width: 300px;
  border-radius: 8px;
}

/* INSTRUCTOR */
.instructor {
  background-color: var(--gray);
  padding: 3rem 2rem;
}

.instructor-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}

.instructor-content img {
  width: 250px;
  border-radius: 50%;
  border: 5px solid var(--blue);
}

/* SERVICES */
.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

.service {
  background: var(--gray);
  padding: 1.5rem;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.service img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.service-list a {
  text-decoration: none;
  color: inherit; /* keeps text color consistent */
  display: block; /* makes the whole card clickable */
}

/* TESTIMONIALS */
.testimonials {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  width: 300px;
}

.testimonial img {
  width: 240px;
  height:250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  margin-bottom: 1rem;
}

/* CONTACT */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background-color: var(--red);
  color: var(--white);
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.contact-form button:hover {
  background-color: #a10e19;
}

.contact-info {
  text-align: center;
  margin-top: 2rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}


/* FOOTER */
footer {
  background-color: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .instructor-content {
    flex-direction: column;
  }
}
