@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Philosopher:wght@400;700&display=swap');

:root {
  --site-font: 'Philosopher', sans-serif;
}

/* =========================
   Header Styling
   ========================= */

/* Header gradient: bright aqua left → deep teal right */
.container-header,
.header {
  background: linear-gradient(90deg, #b2fefa 0%, #00b894 35%, #004d40 100%) !important;
  border-bottom: none !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25); /* deeper shadow for 3D depth */
}

/* Glow behind logo (soft, subtle) */
.container-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at 15% 50%, rgba(255,255,255,0.5), transparent 70%);
  pointer-events: none;
}

/* Logo container */
.brand {
  padding: 0.5rem 1rem;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* Navigation links */
.container-header nav a {
  color: #ffffff !important;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.container-header nav a:hover,
.container-header nav .active > a {
  color: #f4a300 !important;  /* golden glow */
  text-shadow: 0 0 8px rgba(244,163,0,0.8);
}

/* Header layout: make brand (logo), menu, and custom module line up */
.container-header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

/* Flatten header children into flex */
.container-header .grid-child {
  display: contents; /* let children flow into flex */
}

/* Force menu + social to behave like flex children */
.container-header .grid-child > * {
  margin: 0 0.5rem;
}

/* Main menu stays centre */
.container-header nav {
  margin: 0 auto;
}

/* Social icons aligned right */
.header-social {
  display: flex;
  gap: 1rem;
  margin-left: auto; /* push to far right */
}

.header-social a {
  color: #ffffff;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.header-social a:hover {
  color: #f4a300;
  transform: scale(1.2);
}

/* Make social icons bigger + push away from right border */
.header-social {
  display: flex;
  gap: 1.5rem;        /* more space between each icon */
  margin-left: auto;  /* keep them on the far right */
  margin-right: 2rem; /* extra breathing room from right edge */
  align-items: center;
}

.header-social a {
  color: #ffffff;
  font-size: 1.6rem;  /* increase size of icons */
  line-height: 1;     /* avoid vertical wobble */
  transition: color 0.3s ease, transform 0.3s ease;
}

.header-social a:hover {
  color: #f4a300;     /* golden hover */
  transform: scale(1.25); /* enlarge slightly on hover */
}

/* =========================
   Breadcrumbs
   ========================= */
.breadcrumb {
  background-color: #b2fefa !important; /* light teal (adjust as needed) */
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
}

.breadcrumb {
  background-color: #b2fefa !important;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid #00b894 !important;
}

/* =========================
   Module Cards
   ========================= */

/* Module card headers (e.g. Login Form, Main Menu) */
.card-header,
.module-title {
  background-color: #b2fefa !important; /* light teal */
  color: #004d40 !important;            /* dark teal text for contrast */
  font-weight: 600;
}

.card-header,
.module-title {
  background-color: #b2fefa !important; /* light teal header */
  color: #004d40 !important;            /* dark teal text */
  font-weight: 600;
  border-bottom: 1px solid #00b894 !important;
}

/* Card wrapper */
.card {
  background-color: #eafaf7 !important; /* very light teal for body */
  border: 1px solid #00b894 !important; /* medium teal border */
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Card body */
.card-body {
  background-color: #eafaf7 !important; /* match card wrapper */
  color: #004d40 !important;            /* dark teal text for readability */
}

/* =========================
   Footer
   ========================= */
.container-footer,
.footer {
  background-color: #b2fefa !important; /* light teal */
  color: #004d40 !important;            /* dark teal text */
  border-top: 2px solid #00b894;        /* accent line */
  padding: 1rem;
}

.container-footer,
.footer {
  background-color: #b2fefa !important;
  color: #004d40 !important;
  border-top: 2px solid #00b894;
  padding: 1rem;
  font-weight: 500;
}
/* Prominent teal divider */
.teal-divider {
  border: 0;
  height: 10px; /* thicker line */
  width: 90%; /* nearly full width */
  margin: 3rem auto; /* more breathing room */
  background: linear-gradient(
    90deg,
    transparent,
    #00b894 20%,
    #004d40 50%,
    #00b894 80%,
    transparent
  );
  border-radius: 5px; /* smoother rounded edges */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* subtle depth */
}
/* Mini decorative teal divider with golden accent */
.teal-divider-gold-mini {
  position: relative;
  border: 0;
  height: 10px;
  width: 40%;              /* narrower width */
  margin: 2rem auto;       /* centred */
  background: linear-gradient(
    90deg,
    #00b894 0%,
    #004d40 50%,
    #00b894 100%
  );
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Thin golden line overlay */
.teal-divider-gold-mini::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #f4a300;
  transform: translateY(-50%);
  border-radius: 2px;
}

/* Decorative teal divider with golden accent */
.teal-divider-gold {
  position: relative;
  border: 0;
  height: 12px; /* slightly thicker */
  width: 90%;
  margin: 3rem auto;
  background: linear-gradient(
    90deg,
    transparent,
    #00b894 20%,
    #004d40 50%,
    #00b894 80%,
    transparent
  );
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Thin golden line overlay */
.teal-divider-gold::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #f4a300;
  transform: translateY(-50%);
  border-radius: 2px;
}
/* Decorative teal divider with golden accent */
.teal-divider-gold {
  position: relative;
  border: 0;
  height: 40px;  /* much taller so divider is visible */
  width: 90%;
  margin: 3rem auto;
  background: linear-gradient(
    90deg,
    transparent,
    #00b894 20%,
    #004d40 50%,
    #00b894 80%,
    transparent
  );
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Bold golden line overlay */
.teal-divider-gold::after {
  content: "";
  position: absolute;
  top: 50%;                 /* middle of teal bar */
  left: 5%;                 /* inset from sides */
  right: 5%;
  height: 6px;              /* thicker line */
  background: #f4a300;
  transform: translateY(-50%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(244, 163, 0, 0.9); /* glowing effect */
}
/* Menu buttons styled for Cassiopeia (mod-menu mod-list nav) */
/* Menu buttons: pill style, white default */
.container-header .mod-menu.mod-list.nav .nav-item > a {
  display: inline-block;
  background: #ffffff;          /* white background */
  color: #004d40 !important;    /* dark teal text */
  border: 2px solid #00b894;    /* teal border */
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  margin: 0 0.4rem;
  border-radius: 999px;         /* pill shape */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Hover: dark teal + white text + golden glow */
.container-header .mod-menu.mod-list.nav .nav-item > a:hover {
  background: #004d40; 
  color: #ffffff !important;
  border-color: #004d40;
  box-shadow: 0 0 12px rgba(244,163,0,0.9), /* golden glow */
              0 4px 10px rgba(0,0,0,0.3);   /* depth */
}

/* Active: golden pressed-in */
.container-header .mod-menu.mod-list.nav .nav-item.current > a,
.container-header .mod-menu.mod-list.nav .nav-item.active > a {
  background: #f4a300;          /* golden fill */
  color: #004d40 !important;    /* dark teal text */
  border-color: #c97f00;        /* darker golden border */
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.35), /* pressed look */
              inset 0 -2px 4px rgba(255,255,255,0.25), /* top light */
              0 0 8px rgba(244,163,0,0.6);            /* subtle glow */
  transform: translateY(2px);   /* pushed down */
}



/* Dropdown caret (if you have submenus) */
.header nav .dropdown-toggle::after {
  border-top-color: #ffffff;
}
/* Site-wide font */
body {
  font-family: var(--site-font);
  font-weight: 400;
  line-height: 1.6;
  color: #004d40; /* dark teal as base text colour */
}
/* Headings global */
h1, h2, h3 {
  font-family: var(--site-font);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 1.5rem 0 1rem;
  line-height: 1.3;
  color: #004d40; /* dark teal for consistency */
}

/* H1: saturated dark teal with optional contrasting background */
h1 {
  font-size: 2.6rem;
  text-align: center;
  font-family: var(--site-font);
  font-weight: 700;
  color: #004d40; /* saturated dark teal */
  margin-bottom: 1.5rem;
  position: relative;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Optional background for H1 */
h1.bg-highlight {
  display: inline-block;
  background: #b2fefa; /* light aqua background */
  padding: 0.3rem 1rem;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Decorative flourish under H1 */
h1::after {
  content: "";
  display: block;
  width: 140px;
  height: 6px;
  margin: 0.75rem auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    #00b894,
    #004d40,
    #00b894,
    transparent
  );
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5); /* stronger glow */
}

/* H2: saturated teal with underline */
/* H2: bold, darker teal with high contrast */
h2 {
  font-size: 2rem;
  font-family: var(--site-font);
  font-weight: 700;
  color: #00332d; /* very dark teal for contrast */
  border-bottom: 4px solid #00b894; /* thicker underline */
  padding-bottom: 0.4rem;
  margin: 1.5rem 0 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25); /* subtle depth */
}
h2.bg-highlight {
  display: inline-block;
  background: #eafaf7; /* pale aqua */
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}
h2 {
  border-bottom: 4px solid #f4a300; /* gold underline */
}


/* H3: bold, dark teal, with decorative sidebar */
h3 {
  font-size: 1.6rem;
  font-family: var(--site-font);
  font-weight: 700;
  color: #00332d; /* dark saturated teal */
  margin: 1.5rem 0 1rem;
  position: relative;
  padding-left: 1rem; /* space for sidebar */
}

/* Decorative accent bar on the left */
h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  background: linear-gradient(
    180deg,
    #f4a300,   /* gold at top */
    #00b894 60% /* teal at bottom */
  );
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}
/* Body text adjustments */
body {
  font-family: var(--site-font);
  font-size: 1.2rem;      /* ~17px for readability */
  line-height: 1.7;        /* more breathing room */
  color: #00332d;          /* dark teal for contrast */
  font-weight: 400;
}
ul, ol {
  margin: 0 0 1.2rem 1.5rem; /* indent lists */
  line-height: 1.6;
}

/* Links: strong contrast + weight */
a {
  color: #00796b;        /* deep turquoise teal */
  font-weight: 600;      /* semi-bold for visibility */
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: #f4a300;        /* golden hover */
  text-shadow: 0 0 5px rgba(244,163,0,0.7);
}
/* =========================
   Joomla Buttons
   ========================= */

/* Default button */
.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  background-color: #00b894;     /* vibrant teal */
  color: #ffffff;                /* white text */
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Hover effect */
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: #004d40;     /* dark teal */
  color: #f4a300;                /* golden text */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Active (pressed) effect */
.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
  background-color: #f4a300;     /* golden */
  color: #004d40;                /* dark teal text */
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.4); /* pressed-in */
}
/* =========================
   Joomla Secondary Buttons
   ========================= */

.btn-secondary,
button.btn-secondary,
input[type="button"].btn-secondary,
input[type="reset"],
a.btn-secondary {
  background-color: #ffffff;      /* white background */
  color: #004d40 !important;      /* dark teal text */
  font-weight: 600;
  border: 2px solid #00b894;      /* teal border */
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hover effect */
.btn-secondary:hover,
button.btn-secondary:hover,
input[type="button"].btn-secondary:hover,
input[type="reset"]:hover,
a.btn-secondary:hover {
  background-color: #f4a300;      /* golden fill */
  color: #ffffff !important;      /* white text */
  border-color: #f4a300;          /* golden border */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Active effect */
.btn-secondary:active,
button.btn-secondary:active,
input[type="button"].btn-secondary:active,
input[type="reset"]:active,
a.btn-secondary:active {
  background-color: #004d40;      /* dark teal pressed */
  color: #ffffff !important;
  border-color: #004d40;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.4);
}
/* =========================
   Global Module Header Styling
   ========================= */

/* =========================
   Global Module Card Styling
   ========================= */

/* Module headers (titles) */
.card-header,
.module-title {
  border-left: none !important;             /* remove Cassiopeia's side bar */
  background-color: #b2fefa !important;     /* light teal */
  color: #004d40 !important;                /* dark teal text */
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem 0.5rem 0 0;         /* rounded top corners */
  box-shadow: inset 0 -2px 0 #00b894;       /* subtle teal bottom border */
}

/* Module card body */
.card-body {
  background-color: #eafaf7 !important;     /* very light teal for contrast */
  color: #004d40 !important;                /* dark teal readable text */
  padding: 1rem 1.25rem;
  border-radius: 0 0 0.5rem 0.5rem;         /* rounded bottom corners */
  border: 1px solid #00b894;                /* teal border around card */
  border-top: none;                         /* avoid double border with header */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);   /* soft shadow for depth */
}

/* Whole card wrapper */
.card {
  margin-bottom: 1.5rem;                    /* spacing between modules */
  border: none !important;                  /* rely on header/body borders */
  background: transparent !important;       /* keep background consistent */
}
/* Remove Cassiopeia's gradient pseudo-bar from module headers */
.card-header::before,
.module-title::before {
  content: none !important;
}
/* Sidebar Book Card */
.book-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.book-card .book-cover {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.book-card .book-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--cassiopeia-color-primary, #003366); /* matches midnight blue */
}

.book-card .book-info p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444;
  margin-bottom: 0.75rem;
}

.book-card .book-btn {
  display: inline-block;
  background: var(--cassiopeia-color-primary, #003366);
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.book-card .book-btn:hover {
  background: #002244;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}



