/* ============================================================
   MODERN CASSIOPEIA OVERRIDE — user.css
   Adapted from the modern-index.html sailing club design
   Clean, light, nautical blue theme
   ============================================================ */

/* ----------------------------------------------------------
   1. GOOGLE FONTS
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  /* Brand Colors — Nautical Blue palette */
  --primary-blue: #1e76fa;
  --primary-dark: #0d4cc4;
  --secondary-blue: #a5dcfa;
  --accent-blue: #e6f2ff;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.15s ease-in-out;
  --transition-colors: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;

  /* Override Cassiopeia color variables */
  --hue: 215;
  --cassiopeia-color-primary: var(--primary-dark);
  --cassiopeia-color-link: var(--primary-blue);
  --cassiopeia-color-hover: var(--primary-dark);
  --link-color: var(--primary-blue);
  --link-color-rgb: 30, 118, 250;
  --link-hover-color: var(--primary-dark);
  --link-hover-color-rgb: 13, 76, 196;

  /* Override body defaults */
  --body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body-color: var(--gray-800);
  --body-bg: var(--gray-50);
  --template-bg-light: var(--gray-50);
  --template-special-color: var(--primary-dark);
  --template-link-color: var(--primary-blue);

  /* Override border and shadow system */
  --border-color: var(--gray-200);
  --border-radius: var(--radius-lg);
  --border-radius-sm: var(--radius-md);
  --border-radius-lg: var(--radius-xl);
  --box-shadow: var(--shadow);
  --box-shadow-sm: var(--shadow-sm);
  --box-shadow-lg: var(--shadow-lg);
}

/* ----------------------------------------------------------
   3. BASE TYPOGRAPHY
   ---------------------------------------------------------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.6;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  line-height: 1.2;
}

h1,
.h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h2,
.h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3,
.h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  line-height: 1.7;
  color: var(--gray-600);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-colors);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* ----------------------------------------------------------
   4. HEADER — Clean White, Sticky
   ---------------------------------------------------------- */
.container-header {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Remove the dark background gradient */
.container-header::after {
  display: none;
}

.container-header .grid-child {
  position: relative;
  z-index: 1;
}

/* Brand / Logo area — dark text on white, centered */
.container-header .navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gray-900) !important;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 991.98px) {
  .container-header .brand-area .grid-child {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
  }
}

/* Base Responsive Container Fix */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 767.98px) {
  .section-container {
    padding: 0 1rem;
  }
}

.container-header .navbar-brand a {
  color: var(--gray-900) !important;
  transition: var(--transition);
}

.container-header .navbar-brand a:hover {
  opacity: 0.8;
}

.container-header .site-description {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-600) !important;
  white-space: normal;
}

/* Logo image */
.container-header .brand-logo img,
.container-header .brand-logo .logo {
  max-height: 80px;
  width: auto;
}

/* Topbar — light gray bar */
.container-topbar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  color: var(--gray-600);
}

.container-topbar a {
  color: var(--gray-600);
}

.container-topbar a:hover {
  color: var(--primary-blue);
}

/* ----------------------------------------------------------
   5. NAVIGATION — Pill-style, Light Background
   ---------------------------------------------------------- */
.container-header .container-nav {
  padding-bottom: 0.5rem;
  justify-content: center;
}

.container-header .container-nav nav {
  flex: none;
}

.container-header .mod-menu,
.container-header .metismenu.mod-menu {
  justify-content: center;
  color: var(--gray-700) !important;
}

/* Main menu items — dark text on white */
.container-header .mod-menu>li>a,
.container-header .mod-menu>li>span,
.container-header .mod-menu>li>button,
.container-header .metismenu .metismenu-item>a,
.container-header .metismenu .metismenu-item>span,
.container-header .metismenu .metismenu-item>button {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--gray-700) !important;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}

/* Pill-style hover/active — blue tint background */
.container-header .mod-menu>li>a:hover,
.container-header .mod-menu>li.active>a,
.container-header .mod-menu>li>span:hover,
.container-header .metismenu .metismenu-item>a:hover,
.container-header .metismenu .metismenu-item.active>a,
.container-header .metismenu .metismenu-item>button:hover,
.container-header .metismenu .metismenu-item.active>button {
  background-color: var(--accent-blue) !important;
  color: var(--primary-blue) !important;
  text-decoration: none !important;
}

/* Remove the old underline animation */
.container-header .mod-menu>li::after,
.container-header .metismenu>li>a::after,
.container-header .metismenu>li>button::before {
  display: none !important;
}

/* Dropdown / sub-menu styling */
.container-header .mm-collapse,
.container-header .mod-menu .parent>ul {
  background: var(--white) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0.5rem !important;
  min-width: 200px;
  border: 1px solid var(--gray-200);
  animation: dropdownFade 0.15s ease-in-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-header .mm-collapse .metismenu-item>a,
.container-header .mm-collapse .metismenu-item>span,
.container-header .mod-menu .parent>ul a {
  color: var(--gray-700) !important;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.container-header .mm-collapse .metismenu-item>a:hover,
.container-header .mod-menu .parent>ul a:hover {
  background-color: var(--gray-100) !important;
  color: var(--primary-blue) !important;
  text-decoration: none !important;
}

/* Navbar toggler (hamburger) — dark on white */
.container-header .navbar-toggler {
  color: var(--gray-700) !important;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
}

.container-header .navbar-toggler:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

/* Search in header — light style */
.container-header .container-search input[type="search"],
.container-header .container-search .form-control {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  color: var(--gray-800);
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.container-header .container-search input[type="search"]::placeholder {
  color: var(--gray-400);
}

.container-header .container-search input[type="search"]:focus {
  background: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 118, 250, 0.15);
  outline: none;
}

/* Search module colors for white header */
.container-header .mod-finder,
.container-header .mod-finder a:not(.jmodedit) {
  color: var(--gray-700) !important;
}

/* ----------------------------------------------------------
   6. CONTENT AREA — Cards, Modules, Component
   ---------------------------------------------------------- */
.site-grid {
  padding-top: 0.5rem;
}

/* Card styling for modules */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.card .card-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
}

.card .card-body {
  padding: 1.25rem;
}

/* Module headings */
.card-header h3,
.card-header h4,
.card-header .card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
}

/* Component area */
.container-component {
  padding: 1rem 0;
}

.container-component main {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

/* When homepage uses the modern sections, remove article wrapper styling */
.container-component main:has(.hero-section) {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* Also hide page header/article info for clean homepage */
.container-component main:has(.hero-section) .page-header,
.container-component main:has(.hero-section) .article-info {
  display: none;
}

/* ----------------------------------------------------------
   HOMEPAGE SECTIONS — Hero, Quick Links Cards, About
   Paste the provided HTML into your home article via JCE source
   ---------------------------------------------------------- */

/* Section Titles */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-900);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: var(--radius-full);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: -2rem -2rem 0 -2rem;
  /* bleed past article padding */
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 118, 250, 0.8) 0%, rgba(165, 220, 250, 0.6) 100%);
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 3rem 1.5rem;
  margin: 0 auto;
}

.hero-section .hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero-section .hero-content p {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-section .hero-cta .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-blue);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.hero-section .hero-cta .btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hero-section .hero-cta .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--primary-blue) !important;
  border: 2px solid var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.hero-section .hero-cta .btn-hero-secondary:hover {
  background: transparent;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --- Quick Links Card Grid --- */
.links-section {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.link-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.link-card .card-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--primary-blue);
  transition: var(--transition);
}

.link-card:hover .card-icon {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.05);
}

.link-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.link-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
  font-size: 0.95rem;
}

.link-card .btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--primary-blue);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

.link-card .btn-card:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* --- About Section --- */
.about-section {
  background: var(--gray-50);
  padding: 5rem 1.5rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--gray-900);
  position: relative;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: var(--radius-full);
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 1.125rem;
}

.about-text .btn-about {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: var(--primary-blue);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.about-text .btn-about:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl) !important;
}

/* Homepage responsive */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 60vh;
  }

  .hero-section .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-section .hero-content p {
    font-size: 1.125rem;
  }

  .hero-section .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .links-section,
  .about-section {
    padding: 3rem 1rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}

/* ----------------------------------------------------------
   INNER PAGE SECTIONS — Page Header, Content Sections, Grids
   For membership, sailing, about, etc.
   ---------------------------------------------------------- */

/* Page Header */
.page-header-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.page-header-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.page-header-section .page-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Content Sections */
.content-section {
  padding: 4rem 1.5rem;
}

.content-section.bg-white {
  background: var(--white);
}

.content-section.bg-accent {
  background: var(--accent-blue);
}



/* Grid Layouts */
.grid-2,
.grid-3 {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Responsiveness for grids */
@media (max-width: 991.98px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Inner page cards */
.content-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-md);
}

.content-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.content-card h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.content-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-card ul li {
  margin-bottom: 0.35rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Special Offer / Featured Card */
.offer-card,
.featured-card {
  border: 3px solid var(--primary-blue);
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-blue) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.featured-card.bg-white {
  background: var(--white);
}

@media (max-width: 575.98px) {
  .content-card {
    padding: 1.25rem;
  }

  .offer-card,
  .featured-card {
    padding: 1.5rem 1rem;
  }
}

.offer-card .offer-icon,
.featured-card .featured-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.offer-card h2,
.featured-card h2 {
  color: var(--primary-blue);
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.offer-card .offer-price {
  font-size: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.pricing-table thead th {
  background: var(--gray-100);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.pricing-table thead th:last-child {
  text-align: right;
}

.pricing-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.05rem;
}

.pricing-table tbody tr {
  transition: var(--transition);
}

.pricing-table tbody tr:hover {
  background: var(--gray-50);
}

.pricing-table tr.highlight-row {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #dbeafe 100%);
}

.pricing-table tr.highlight-row td {
  color: var(--primary-dark);
  font-weight: 600;
}

.pricing-table tr.highlight-row td:last-child {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Card icon for benefit cards */
.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  text-align: center;
}

/* Stat Cards */
.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Team Cards */
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-blue);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.team-card h3 {
  font-size: 1.15rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.team-bio {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.team-email {
  font-size: 0.8rem;
  color: var(--primary-blue);
  text-decoration: none;
  word-break: break-all;
  margin-top: 0.5rem;
}

/* Responsive Iframe Wrapper */
.iframe-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  background: var(--white);
}

.iframe-wrapper.aspect-4-3 {
  padding-top: 75%;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 767.98px) {
  .iframe-wrapper {
    padding-top: 100%;
    /* More square on mobile for better visibility */
    border-radius: var(--radius-lg);
  }
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--gray-600);
}

.text-sm {
  font-size: 0.875rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* Inner page responsive */
@media (max-width: 767.98px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-header-section h1 {
    font-size: 1.75rem;
  }

  .content-section {
    padding: 2.5rem 1rem;
  }

  .offer-card {
    padding: 1.5rem;
  }

  .offer-card h2 {
    font-size: 1.5rem;
  }

  .pricing-table {
    font-size: 0.875rem;
  }

  .pricing-table td,
  .pricing-table th {
    padding: 0.65rem 0.75rem;
  }
}

/* Article titles */
.com-content-article .page-header h1,
.com-content-article .page-header h2 {
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

/* Article info / meta */
.com-content-article dd,
.article-info {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Images in articles */
.com-content-article img,
.item-image img {
  border-radius: var(--radius-xl);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.com-content-article img:hover,
.item-image img:hover {
  box-shadow: var(--shadow-lg);
}

/* Breadcrumbs */
.mod-breadcrumbs {
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: 0.75rem 0;
}

.mod-breadcrumbs a {
  color: var(--primary-blue);
  font-weight: 500;
}

/* ----------------------------------------------------------
   7. BUTTONS — Clean, Solid Style
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  min-height: 44px;
  /* Touch target size */
}

.btn-primary {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 0.65rem 1.5rem;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 0.65rem 1.5rem;
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

/* ----------------------------------------------------------
   8. FORMS — Clean Input Styling
   ---------------------------------------------------------- */
.form-control,
.form-select {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 0.925rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 118, 250, 0.15);
  outline: none;
}

.form-label,
label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
}

/* ----------------------------------------------------------
   9. SIDEBAR MODULES
   ---------------------------------------------------------- */
.container-sidebar-left .card,
.container-sidebar-right .card {
  border-radius: var(--radius-xl);
  margin-bottom: 1.25rem;
}

.container-sidebar-left .card .card-header,
.container-sidebar-right .card .card-header {
  background: transparent;
  border-bottom: 2px solid var(--accent-blue);
  padding: 0.85rem 1rem;
}

.container-sidebar-left .card .card-header h3,
.container-sidebar-right .card .card-header h3 {
  font-size: 0.95rem;
  color: var(--primary-dark);
}

/* Sidebar menu items */
.sidebar-right .metismenu .metismenu-item,
.sidebar-left .metismenu .metismenu-item {
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.sidebar-right .metismenu .metismenu-item:hover,
.sidebar-left .metismenu .metismenu-item:hover {
  background-color: var(--gray-100);
}

/* ----------------------------------------------------------
   10. FOOTER — Dark, Clean
   ---------------------------------------------------------- */
.container-footer.footer {
  background: var(--gray-900) !important;
  color: var(--gray-300);
  margin-top: 3rem;
  position: relative;
}

/* Decorative top accent line */
.container-footer.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-blue);
}

.container-footer .grid-child {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.container-footer a:not(.btn),
.container-footer .btn-link {
  color: var(--gray-300) !important;
  text-decoration: none;
  transition: var(--transition-colors);
}

.container-footer a:not(.btn):hover,
.container-footer .btn-link:hover {
  color: var(--primary-blue) !important;
}

.container-footer .mod-footer {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* Footer headings */
.container-footer h3,
.container-footer h4 {
  color: var(--white) !important;
  font-weight: 600;
}

/* ----------------------------------------------------------
   11. BACK-TO-TOP BUTTON
   ---------------------------------------------------------- */
.back-to-top-link {
  background: var(--primary-blue) !important;
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-full) !important;
  width: 3rem;
  height: 3rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
}

.back-to-top-link:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ----------------------------------------------------------
   12. PAGINATION
   ---------------------------------------------------------- */
.pagination .page-item .page-link {
  border: 1px solid var(--gray-200);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  margin: 0 0.15rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}

.pagination .page-item.active .page-link {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.pagination .page-item .page-link:hover {
  background-color: var(--accent-blue);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* ----------------------------------------------------------
   13. ALERTS / SYSTEM MESSAGES
   ---------------------------------------------------------- */
.alert {
  border-radius: var(--radius-lg);
  border: none;
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.alert-info {
  background: var(--accent-blue);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-blue);
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.alert-warning {
  background: #fefce8;
  color: #854d0e;
  border-left: 4px solid #f59e0b;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* ----------------------------------------------------------
   14. TABLES
   ---------------------------------------------------------- */
.table {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table thead th {
  background: var(--gray-100);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-100);
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

/* ----------------------------------------------------------
   15. TABS
   ---------------------------------------------------------- */
.nav.nav-tabs {
  background: var(--gray-100) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  box-shadow: none !important;
  padding: 0.35rem !important;
}

.nav.nav-tabs .nav-link {
  border-radius: var(--radius-md) !important;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-500) !important;
  transition: var(--transition);
}

.nav.nav-tabs .nav-link.active {
  background: var(--white) !important;
  color: var(--primary-blue) !important;
  box-shadow: var(--shadow-sm) !important;
  background-image: none !important;
}

.nav.nav-tabs .nav-link.active::after {
  display: none !important;
}

.nav-tabs+.tab-content {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
  border: 1px solid var(--gray-200) !important;
  border-top: 0 !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ----------------------------------------------------------
   16. QUICK LINKS — Modern Card Grid
   Add class "quick-links" to your table in the JCE editor
   ---------------------------------------------------------- */
.quick-links {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0.75rem !important;
  width: 100%;
  margin-bottom: 1.5rem;
  background: transparent !important;
}

.quick-links td {
  border: none !important;
  background: var(--white);
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-xl) !important;
  padding: 0 !important;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quick-links td:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue) !important;
}

.quick-links td a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--gray-700) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: var(--transition-colors);
}

.quick-links td a:hover {
  color: var(--primary-blue) !important;
}

/* Style the "Quick Links:" label cell differently */
.quick-links td:first-child {
  background: var(--primary-blue);
  border-color: var(--primary-blue) !important;
  box-shadow: var(--shadow-md);
}

.quick-links td:first-child,
.quick-links td:first-child a,
.quick-links td:first-child span,
.quick-links td:first-child strong {
  color: var(--white) !important;
}

.quick-links td:first-child:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* Responsive: stack on small screens */
@media (max-width: 767.98px) {

  .quick-links,
  .quick-links tbody,
  .quick-links tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .quick-links td {
    display: block !important;
  }

  .quick-links {
    border-spacing: 0 !important;
  }
}

/* ----------------------------------------------------------
   17. MICRO-ANIMATIONS & TRANSITIONS
   ---------------------------------------------------------- */
* {
  scroll-behavior: smooth;
}

/* Subtle focus ring for accessibility */
.btn:focus,
.nav-link:focus,
:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Image hover effects */
figure img {
  transition: var(--transition);
}

figure:hover img {
  transform: scale(1.02);
}

/* Selection color */
::selection {
  background-color: rgba(30, 118, 250, 0.15);
  color: var(--gray-900);
}

/* Scrollbar styling (Webkit browsers) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ----------------------------------------------------------
   18. RESPONSIVE REFINEMENTS
   ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .container-header .container-nav {
    padding-bottom: 0.5rem;
  }

  .container-component main {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .container-header .mod-menu>li,
  .container-header .metismenu .metismenu-item {
    border-bottom: 1px solid var(--gray-200);
  }

  .container-header .mm-collapse,
  .container-header .mod-menu .parent>ul {
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    background: var(--gray-50) !important;
    margin-top: 0.25rem;
  }
}

@media (max-width: 575.98px) {

  .container-header .brand-logo img,
  .container-header .brand-logo .logo {
    max-height: 85px;
    /* Increased from 60px for better visibility */
  }

  .container-component main {
    padding: 0.75rem;
  }

  .container-footer .grid-child {
    padding: 2rem 1rem;
    flex-direction: column;
    text-align: center;
  }

  .content-section {
    padding: 2.5rem 0;
    /* Reduced vertical padding */
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .offer-card {
    padding: 1.25rem;
    margin: 0 -0.5rem;
    /* Allow card to be slightly wider */
  }

  .offer-card h2 {
    font-size: 1.35rem;
  }

  .offer-card .offer-price {
    font-size: 1.25rem;
  }
}

/* Responsive Table Helper Fixes */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

/* Transform table to cards on mobile */
@media (max-width: 767.98px) {

  .pricing-table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table th,
  .pricing-table td,
  .pricing-table tr {
    display: block;
    width: 100%;
  }

  /* Hide table headers but keep for screen readers */
  .pricing-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .pricing-table tr {
    border: 1px solid var(--gray-200);
    margin-bottom: 1.25rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
  }

  .pricing-table tr.highlight-row {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(135deg, var(--accent-blue) 0%, #dbeafe 100%);
  }

  .pricing-table td {
    border: none !important;
    position: relative;
    padding: 0.5rem 0 0.5rem 35% !important;
    text-align: right !important;
    border-bottom: 1px solid var(--gray-100) !important;
    font-size: 0.9rem;
    word-break: break-word;
    /* Ensure long text doesn't push width */
  }

  .pricing-table td:last-child {
    border-bottom: none !important;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 700;
  }

  /* Show labels from data-label attribute */
  .pricing-table td::before {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 30%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    content: attr(data-label);
  }
}

/* Desktop behaviors */
@media (min-width: 768px) {
  .pricing-table {
    display: table;
  }

  .pricing-table thead {
    display: table-header-group;
  }

  .pricing-table tbody {
    display: table-row-group;
  }

  .pricing-table tr {
    display: table-row;
  }

  .pricing-table td,
  .pricing-table th {
    display: table-cell;
  }
}

.table-responsive .pricing-table,
.table-responsive .table {
  margin-bottom: 0;
  border: none;
  width: 100%;
  /* Ensure it doesn't overflow by default */
}

.table-responsive th {
  white-space: nowrap;
}

@media (min-width: 768px) {

  .table-responsive .pricing-table,
  .table-responsive .table {
    min-width: 750px;
    /* Only force min-width on desktop/tablet */
  }
}

@media (min-width: 992px) {
  .table-responsive {
    border: none;
    overflow: visible;
  }

  .table-responsive .pricing-table,
  .table-responsive .table {
    min-width: 100%;
  }
}

/* ===== MEMBERS LOGIN PORTAL ===== */
.com-users-login .login-form {
  max-width: 450px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary-blue);
}

.com-users-login fieldset .control-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.com-users-login input[type='text'],
.com-users-login input[type='password'] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.com-users-login button.btn-primary {
  width: 100%;
  padding: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.com-users-login .login-links {
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.com-users-login .login-links a {
  color: var(--primary-blue);
  font-size: 0.9rem;
  text-decoration: none;
}