/* HTML Web Development PPT - Slide 67 (a CSS rule is a selector plus the styles in curly braces) */
/* HTML Web Development PPT - Slide 52 (hexadecimal colour codes) */
:root {
  --clr-sky: #6ac5e8;
  --clr-sky-bright: #3db0e9;
  --clr-navy: #070d3f;
  --clr-navy-soft: #0d1650;
  --clr-blue-mid: #006093;
  --clr-lavender: #f1f2ff;
  --clr-indigo-text: #5460a3;
  --clr-white: #ffffff;

  --font-heading: "Montserrat Alternates", "Montserrat", sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-nav: "Inter", "Segoe UI", Arial, sans-serif;
}

/* HTML Web Development PPT - Slide 68 (element name used as the selector) */
/* HTML Web Development PPT - Slide 57 (list a fallback font after the preferred font) */
body {
  font-family: var(--font-body);
  color: #111111;
  overflow-x: hidden;
}

/* HTML Web Development PPT - Slide 89 (target several selectors in one rule, separated by commas) */
h1, h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
}

/* HTML Web Development PPT - Slide 76 (removing the underline from a link with text decoration) */
a {
  text-decoration: none;
}

/* HTML Web Development PPT - Slide 69 (class selector prefixed with a period) */
.font-alt {
  font-family: var(--font-heading);
}

.text-indigo {
  color: var(--clr-indigo-text) !important;
}

/* HTML Web Development PPT - Slide 81 (padding added on each side of an element) */
.btn-pill {
  background-color: var(--clr-navy);
  border: none;
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.7rem 1.9rem;
  border-radius: 50px;
  display: inline-block;
}

.btn-pill-sky {
  background-color: var(--clr-sky-bright);
}

/* HTML Web Development PPT - Slide 55 (background-color property on an element) */
.site-header {
  background-color: var(--clr-sky);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  height: 48px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.site-nav a {
  font-family: var(--font-nav);
  color: var(--clr-white);
  font-weight: 400;
  font-size: 1.15rem;
}

/* HTML Web Development PPT - Slide 60 (elements and styles that bolden text) */
.site-nav a.active {
  font-weight: 700;
  text-decoration: underline;
}

.btn-enquire-pill {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  font-family: var(--font-nav);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.6rem;
  border: none;
  display: inline-block;
}

@media (max-width: 767.98px) {
  .header-inner {
    justify-content: center;
  }
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 620px;
  object-fit: cover;
}

.hero-photo-wrap .hero-caption {
  position: absolute;
  top: 15%;
  right: 15%;
  max-width: 10%;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: #000000;
}

@media (max-width: 767.98px) {
  .hero-photo-wrap {
    max-height: none;
  }
  .hero-photo-wrap img {
    max-height: 320px;
  }
  .hero-photo-wrap .hero-caption {
    position: static;
    max-width: 100%;
    padding: 1.2rem 1rem 0.5rem 1rem;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* HTML Web Development PPT - Slide 59 (text alignment property) */
.section-heading-alt {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--clr-navy);
  text-align: center;
}

/* HTML Web Development PPT - Slide 80 (padding pushes the contents away from the edge) */
.course-card-solid {
  background-color: var(--clr-sky);
  border-radius: 24px;
  padding: 2.5rem;
  color: var(--clr-white);
  height: 100%;
}

.course-card-solid h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.course-card-solid p {
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
}

.course-card-solid .btn-pill {
  display: block;
  width: fit-content;
  margin-bottom: 0.8rem;
}

.about-hero {
  position: relative;
}

.about-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.about-hero .about-hero-caption {
  position: absolute;
  left: 0;
  bottom: 12%;
  background-color: var(--clr-navy);
  color: var(--clr-white);
  padding: 1.5rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  max-width: 90%;
}



/* Reference: using MDN's
   media query guide instead - https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Using */
@media (max-width: 767.98px) {
  .about-hero .about-hero-caption {
    position: static;
    padding: 1rem 1.2rem;
  }
}

.feature-square {
  background-color: var(--clr-sky-bright);
  color: var(--clr-white);
  border-radius: 22px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-band {
  background-color: var(--clr-blue-mid);
  color: var(--clr-white);
  padding: 3.5rem 0;
}

.info-band h2 {
  font-weight: 600;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

.info-band p {
  font-size: 1.15rem;
}

.courses-intro {
  color: var(--clr-indigo-text);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.course-detail-card {
  background-color: var(--clr-lavender);
  border-radius: 24px;
  padding: 2.2rem;
  height: 100%;
}

.course-detail-card img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.course-detail-card p {
  font-size: 1.15rem;
}

.ready-banner {
  background-color: var(--clr-sky);
  padding: 3rem 0;
}

.ready-banner h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.ready-banner p {
  color: var(--clr-white);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
}

.ready-banner img {
  width: 56px;
  height: 56px;
}

.course-page-hero {
  background-color: var(--clr-lavender);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.course-page-hero h1 {
  font-family: var(--font-heading);
  color: var(--clr-indigo-text);
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.course-page-hero .subtitle {
  color: var(--clr-sky-bright);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.course-page-hero .subtitle .accent-dark {
  color: #111111;
  font-weight: 700;
}

.course-page-hero img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}

.what-you-learn h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 3rem 0 2.5rem 0;
}

.learn-card {
  background-color: var(--clr-sky);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
}

.learn-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
}

.learn-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.learn-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

.enquiry-navy-section {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.enquiry-navy-section h1 {
  color: var(--clr-sky-bright);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.enquiry-navy-section hr {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 1.5rem 0 2.5rem 0;
}

.enquiry-form {
  max-width: 700px;
  margin: 0 auto;
}

.enquiry-field-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.3rem;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  padding-left: 1.3rem;
}

.enquiry-field-row label {
  font-weight: 300;
  min-width: 130px;
  font-size: 1.15rem;
}

.enquiry-field-row .form-control,
.enquiry-field-row .form-select,
.enquiry-field-row textarea.form-control {
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1rem;
}

/* HTML Web Development PPT - Slide 84 (margin added to one side of an element) */
.footer-vision {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: 3rem;
  min-height: 320px;
}

.footer-vision .flower-deco {
  position: absolute;
  left: -60px;
  bottom: -40px;
  width: 380px;
  max-width: 55vw;
  z-index: 0;
}

.footer-vision .footer-flower-text {
  position: absolute;
  left: 2rem;
  bottom: 2.2rem;
  z-index: 1;
  max-width: 260px;
}

.footer-vision .footer-flower-text p {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.footer-vision .footer-flower-text a {
  color: var(--clr-white);
}

.footer-vision .footer-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 1rem;
}

.footer-vision .footer-brand h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.footer-vision .footer-logo {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 1;
}

.footer-vision .footer-logo img {
  height: 60px;
}

@media (max-width: 767.98px) {
  .footer-vision {
    min-height: 0;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .footer-vision .flower-deco {
    position: static;
    display: block;
    width: 140px;
    margin: 0 auto 1.5rem auto;
  }
  .footer-vision .footer-flower-text {
    position: static;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .footer-vision .footer-brand {
    padding-top: 0;
    order: -1;
  }
  .footer-vision .footer-logo {
    position: static;
    text-align: center;
    margin-top: 1rem;
  }
}

/* HTML Web Development PPT - Slide 90 (border-collapse joins the cell borders into one) */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}

/* HTML Web Development PPT - Slide 89 (borders on several selectors in one rule) */
/* HTML Web Development PPT - Slide 92 (padding on the inside edges of each cell) */
.admin-table th,
.admin-table td {
  border: 1px solid #d6d9f0;
  padding: 0.8rem 1rem;
}

.admin-table th {
  background-color: var(--clr-navy);
  color: var(--clr-white);
}

/* HTML Web Development PPT - Slide 95 (:nth-child pseudo-class for alternating row colours) */
.admin-table tr:nth-child(even) {
  background-color: var(--clr-lavender);
}

.admin-table .btn-pill {
  padding: 0.4rem 1.2rem;
  margin: 0.2rem;
}

.admin-error {
  background-color: #ffe3e3;
  color: #8a1c1c;
  border-radius: 6px;
  padding: 0.7rem 1rem;
}

/* HTML Web Development PPT - Slide 82 (the border outlines an element) */
.admin-confirm {
  border: 2px solid var(--clr-navy);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-footer {
  background-color: var(--clr-navy);
  color: var(--clr-white);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}
