@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #004680;
  --primary-dark: #002d54;
  --accent: #e63946;
  --accent-hover: #c92a37;
  --accent-soft: rgba(230, 57, 70, 0.08);
  --neutral-dark: #0f172a;
  --neutral-muted: #475569;
  --neutral-light: #f8fafc;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px -5px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 40px -10px rgba(0, 70, 128, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* Pristine Image Display Controls */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-image-frame, .course-thumb, .ecard-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0b2239;
  box-shadow: var(--shadow-md);
}

.hero-image-frame {
  height: 480px;
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-thumb {
  height: 220px;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.course-card:hover .course-thumb img {
  transform: scale(1.06);
}

.ecard-visual {
  height: 380px;
}
.ecard-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--neutral-dark);
}

/* Header & Cart Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.brand-text h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--neutral-muted);
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--neutral-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.cart-nav-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cart-count {
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #002244 0%, #004680 100%);
  color: var(--white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-description {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item h4 {
  font-size: 32px;
  color: var(--white);
}

.stat-item p {
  font-size: 13px;
  color: #94a3b8;
}

.floating-glass-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: var(--radius-sm);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.glass-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--neutral-muted);
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

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

.course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.course-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.course-body p {
  font-size: 15px;
  color: var(--neutral-muted);
  margin-bottom: 24px;
  flex: 1;
}

/* eCard Section */
.ecard-section {
  background: var(--neutral-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.ecard-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-check-list {
  list-style: none;
  margin: 28px 0 36px;
  display: grid;
  gap: 14px;
}

.feature-check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* Closing Banner */
.closing-banner {
  background: var(--neutral-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.closing-banner h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 16px;
}

.closing-banner p {
  color: #94a3b8;
  font-size: 17px;
  margin-bottom: 32px;
}

.contact-card-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: var(--radius-md);
}

.contact-card-box h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 20px;
  color: var(--accent);
}

/* WooCommerce Integration Styles */
.woocommerce-shop-wrapper {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.woocommerce ul.products li.product {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--white);
  transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.woocommerce a.button, .woocommerce button.button {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
}

.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--accent-hover) !important;
}

/* Footer */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

@media (max-width: 992px) {
  .hero-grid, .ecard-container, .closing-banner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-navigation {
    display: none;
  }
}


/* v4.1.0: responsive image, typography, and layout corrections */
.hero-grid > *, .ecard-container > *, .closing-banner > *, .course-card, .course-body { min-width: 0; }
.hero-image-frame, .course-thumb, .ecard-visual { overflow: hidden; }
.hero-image-frame { height: clamp(300px, 38vw, 480px); }
.hero-image-frame img, .course-thumb img, .ecard-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image-frame img { object-position: center 45%; }
.course-thumb { height: 220px; }
.ecard-visual { min-height: 300px; }
.ecard-visual img { object-position: center; }
.hero-title { text-wrap: balance; }
.hero-description, .section-subtitle, .course-body p { overflow-wrap: anywhere; }
.hero-stats { flex-wrap: wrap; }
.closing-banner { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
.contact-card-box { min-width: 0; overflow-wrap: anywhere; }
.site-footer, .site-header, main { max-width: 100%; }
@media (max-width: 992px) {
  .header-inner { height: auto; min-height: 76px; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .header-actions { margin-left: auto; }
  .hero-section { padding: 64px 0 72px; }
  .hero-grid, .ecard-container, .closing-banner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-image-frame { height: clamp(280px, 55vw, 440px); }
  .ecard-visual { height: 340px; min-height: 0; }
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .closing-banner { padding: clamp(24px, 5vw, 48px); }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .header-inner { align-items: center; }
  .brand-icon { width: 38px; height: 38px; }
  .brand-text h1 { font-size: 20px; }
  .header-actions .btn { padding: 11px 14px; font-size: 13px; }
  .cart-nav-link { padding: 8px 10px; font-size: 12px; }
  .hero-section { padding: 48px 0 56px; }
  .hero-title { font-size: clamp(2.25rem, 10vw, 3.1rem); }
  .hero-description { font-size: 16px; }
  .hero-cta { gap: 10px; margin-bottom: 28px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 18px; padding-top: 22px; }
  .stat-item { flex: 1 1 40%; }
  .stat-item h4 { font-size: 22px; }
  .section-padding { padding: 56px 0; }
  .section-header { margin-bottom: 30px; }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .section-subtitle { font-size: 15px; }
  .courses-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .course-thumb { height: 220px; }
  .course-body { padding: 22px; }
  .ecard-visual { height: 260px; }
  .feature-check-list li { align-items: flex-start; }
  .closing-banner { padding: 24px 20px; border-radius: 16px; }
  .closing-banner h2 { font-size: 29px; }
  .closing-banner > div:first-child > div { flex-direction: column; }
  .contact-card-box { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}


/* Care4CPR updated brand logo */
.brand-logo { flex-shrink: 0; }
.care4cpr-logo {
  display: block;
  width: clamp(190px, 20vw, 270px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.care4cpr-logo-footer {
  width: 245px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .care4cpr-logo { width: 190px; }
  .care4cpr-logo-footer { width: 220px; }
}


/* v4.3.0: clean hero photograph, no baked-in text or floating overlay */
.hero-image-frame { position: relative; }
.hero-image-frame::before, .hero-image-frame::after { content: none !important; display: none !important; }
.hero-image-frame img { object-fit: cover; object-position: center; }
.hero-image-frame .floating-glass-card { display: none !important; }
