/*
 Theme Name:   DiBoost-HB Child
 Theme URI:    https://diboosthb.eu
 Description:  A high-performance, accessible Divi 4 LMS child theme for the DiBoost-HB European project — Digital Boost for Health and Beauty Professionals.
 Author:       EDU TECH GRYPHON DISCOVERIES
 Author URI:   https://diboosthb.eu
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  diboost-hb
 Tags:         divi, child-theme, lms, erasmus, health-beauty, accessible
*/

/* ============================================================
   DIBOOST-HB CHILD THEME — GLOBAL STYLES
   Brand Palette:
     Primary Blue   #1A4FA0
     Accent Gold    #F5A623
     Fresh Green    #2ECC71
     Soft White     #F9FAFB
     Dark Text      #1C2B3A
     Mid Grey       #6B7A8D
   ============================================================ */

:root {
  --db-primary:    #1A4FA0;
  --db-primary-dk: #133880;
  --db-accent:     #853455;
  --db-accent-dk:  #D4891A;
  --db-green:      #2ECC71;
  --db-white:      #FFFFFF;
  --db-off-white:  #F9FAFB;
  --db-dark:       #1C2B3A;
  --db-grey:       #6B7A8D;
  --db-light-grey: #E8ECF0;
  --db-radius:     10px;
  --db-radius-lg:  20px;
  --db-shadow:     0 4px 24px rgba(26,79,160,0.10);
  --db-shadow-lg:  0 8px 40px rgba(26,79,160,0.16);
  --db-transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --db-font:       'Inter', 'Segoe UI', Arial, sans-serif;
  --db-font-head:  'Poppins', 'Inter', Arial, sans-serif;
}

/* ── RESET & BASE ─────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  font-family: var(--db-font);
  color: var(--db-dark);
  background: var(--db-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--db-primary);
  text-decoration: none;
  transition: color var(--db-transition);
}
a:hover, a:focus { color: var(--db-accent); }
a:focus-visible {
  outline: 3px solid var(--db-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; height: auto; display: block; }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--db-font-head);
  color: var(--db-dark);
  line-height: 1.25;
  font-weight: 700;
}

.db-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.db-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

/* ── UTILITY CLASSES ─────────────────────────────────── */
.db-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.db-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.db-text-center { text-align: center; }
.db-text-primary { color: var(--db-primary); }
.db-text-accent  { color: var(--db-accent); }
.db-text-white   { color: var(--db-white); }

.db-bg-primary   { background-color: var(--db-primary); }
.db-bg-accent    { background-color: var(--db-accent); }
.db-bg-off-white { background-color: var(--db-off-white); }
.db-bg-dark      { background-color: var(--db-dark); }

/* ── SKIP NAVIGATION (A11Y) ──────────────────────────── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--db-primary);
  color: var(--db-white);
  padding: 10px 18px;
  border-radius: 0 0 var(--db-radius) var(--db-radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--db-white); }

/* ── HEADER / NAVIGATION ─────────────────────────────── */
#main-header,
.et_header_style_centered #main-header,
.et_header_style_left #main-header {
  background: var(--db-white) !important;
  box-shadow: 0 2px 16px rgba(26,79,160,0.08);
}

#et-top-navigation nav > ul > li > a,
.et_pb_menu__menu > nav > ul > li > a {
  color: var(--db-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0 16px !important;
  transition: color var(--db-transition);
}

#et-top-navigation nav > ul > li > a:hover,
#et-top-navigation nav > ul > li.current-menu-item > a {
  color: var(--db-primary) !important;
}

/* CTA button in nav */
#et-top-navigation nav > ul > li.menu-item-cta > a {
  background: var(--db-accent) !important;
  color: var(--db-white) !important;
  border-radius: 50px !important;
  padding: 8px 22px !important;
  font-weight: 700 !important;
  transition: background var(--db-transition), transform var(--db-transition);
}
#et-top-navigation nav > ul > li.menu-item-cta > a:hover {
  background: var(--db-accent-dk) !important;
  transform: translateY(-1px);
}

/* Logo */
#logo { max-height: 60px !important; }

/* Sticky header */
.et-fixed-header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(26,79,160,0.10) !important;
}

/* ── DIVI SECTION OVERRIDES ──────────────────────────── */
.et_pb_section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.et_pb_section.db-hero-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.et_pb_button,
.db-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--db-transition) !important;
  border: 2px solid transparent;
}

.et_pb_button_style_1,
.db-btn-primary {
  background: var(--db-primary) !important;
  color: var(--db-white) !important;
  border-color: var(--db-primary) !important;
}
.et_pb_button_style_1:hover,
.db-btn-primary:hover {
  background: var(--db-primary-dk) !important;
  border-color: var(--db-primary-dk) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,79,160,0.3) !important;
}

.db-btn-accent {
  background: var(--db-accent) !important;
  color: var(--db-white) !important;
  border-color: var(--db-accent) !important;
}
.db-btn-accent:hover {
  background: var(--db-accent-dk) !important;
  border-color: var(--db-accent-dk) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.35) !important;
}

.db-btn-outline {
  background: transparent !important;
  color: var(--db-primary) !important;
  border-color: var(--db-primary) !important;
}
.db-btn-outline:hover {
  background: var(--db-primary) !important;
  color: var(--db-white) !important;
}

/* ── CARDS ───────────────────────────────────────────── */
.db-card {
  background: var(--db-white);
  border-radius: var(--db-radius-lg);
  box-shadow: var(--db-shadow);
  padding: 32px;
  transition: transform var(--db-transition), box-shadow var(--db-transition);
  border: 1px solid var(--db-light-grey);
}
.db-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--db-shadow-lg);
}

.db-card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* ── PARTNER CARDS ───────────────────────────────────── */
.db-partner-card {
  background: var(--db-white);
  border-radius: var(--db-radius-lg);
  box-shadow: var(--db-shadow);
  padding: 40px 32px;
  border: 1px solid var(--db-light-grey);
  transition: transform var(--db-transition), box-shadow var(--db-transition);
}
.db-partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--db-shadow-lg);
}
.db-partner-card .db-partner-flag {
  font-size: 2rem;
  margin-bottom: 12px;
}
.db-partner-card h3 {
  color: var(--db-primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.db-partner-card .db-partner-country {
  color: var(--db-grey);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ── HERO SECTION ────────────────────────────────────── */
.db-hero {
  background: linear-gradient(135deg, var(--db-primary) 0%, #2A6EC8 50%, #1A4FA0 100%);
  color: var(--db-white);
  position: relative;
  overflow: hidden;
}
.db-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.db-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--db-white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

/* ── SECTION DIVIDERS ────────────────────────────────── */
.db-wave {
  position: relative;
  margin-bottom: -2px;
}
.db-wave svg { display: block; }

/* ── STATS BAR ───────────────────────────────────────── */
.db-stats-bar {
  background: var(--db-primary);
  color: var(--db-white);
  padding: 32px 0;
}
.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.db-stat-item .db-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--db-font-head);
  color: var(--db-accent);
  line-height: 1;
}
.db-stat-item .db-stat-label {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ── ACTIVITIES TIMELINE ─────────────────────────────── */
.db-timeline {
  position: relative;
  padding-left: 40px;
}
.db-timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--db-primary), var(--db-accent));
  border-radius: 3px;
}
.db-timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.db-timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--db-accent);
  border: 3px solid var(--db-white);
  box-shadow: 0 0 0 3px var(--db-primary);
}
.db-timeline-num {
  display: inline-block;
  background: var(--db-primary);
  color: var(--db-white);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 32px;
  text-align: center;
  margin-bottom: 10px;
}

/* ── LTT / MEETINGS ──────────────────────────────────── */
.db-meeting-card {
  background: linear-gradient(135deg, var(--db-primary) 0%, #2A6EC8 100%);
  color: var(--db-white);
  border-radius: var(--db-radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.db-meeting-card::after {
  content: '✈';
  position: absolute;
  right: 40px; top: 30px;
  font-size: 5rem;
  opacity: 0.1;
}

/* ── CURRICULUM / PLATFORM ───────────────────────────── */
.db-curriculum-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--db-radius);
  background: var(--db-off-white);
  border-left: 4px solid var(--db-primary);
  margin-bottom: 16px;
  transition: border-color var(--db-transition), background var(--db-transition);
}
.db-curriculum-feature:hover {
  background: #EEF3FB;
  border-left-color: var(--db-accent);
}
.db-curriculum-feature-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--db-primary);
  color: var(--db-white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ── RESULTS PAGE ────────────────────────────────────── */
.db-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,79,160,0.08);
  color: var(--db-primary);
  border: 1px solid rgba(26,79,160,0.15);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CONTACT PAGE ────────────────────────────────────── */
.db-contact-card {
  background: var(--db-white);
  border-radius: var(--db-radius-lg);
  box-shadow: var(--db-shadow);
  padding: 40px;
  text-align: center;
  transition: transform var(--db-transition);
}
.db-contact-card:hover { transform: translateY(-4px); }
.db-contact-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--db-primary), #2A6EC8);
  color: var(--db-white);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.db-social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.db-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--db-transition);
  text-decoration: none;
}
.db-social-link.facebook  { background: #1877F2; color: #fff; }
.db-social-link.instagram { background: linear-gradient(135deg,#833AB4,#E1306C,#F77737); color: #fff; }
.db-social-link.linkedin  { background: #0A66C2; color: #fff; }
.db-social-link:hover     { opacity: 0.88; transform: translateY(-2px); }

/* ── EU DISCLAIMER BANNER ────────────────────────────── */
.db-eu-disclaimer {
  background: var(--db-off-white);
  border-top: 3px solid var(--db-primary);
  padding: 28px 0;
  font-size: 0.82rem;
  color: var(--db-grey);
  line-height: 1.6;
}
.db-eu-disclaimer strong { color: var(--db-dark); }

/* ── FOOTER ──────────────────────────────────────────── */
#main-footer {
  background: var(--db-dark) !important;
  color: rgba(255,255,255,0.75) !important;
}
#main-footer .footer-widget h4,
#main-footer .footer-widget .et_pb_widget_title {
  color: var(--db-white) !important;
  font-family: var(--db-font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
#main-footer a { color: rgba(255,255,255,0.65) !important; }
#main-footer a:hover { color: var(--db-accent) !important; }
#footer-bottom { background: rgba(0,0,0,0.3) !important; }
#footer-info    { color: rgba(255,255,255,0.45) !important; font-size: 0.8rem; }

/* ── DIVI BLURB / ICON MODULE ────────────────────────── */
.et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image {
  margin-bottom: 20px;
}
.et_pb_blurb_description {
  color: var(--db-grey);
  line-height: 1.7;
}

/* ── DIVI ACCORDION ──────────────────────────────────── */
.et_pb_accordion .et_pb_accordion_item h5 {
  font-family: var(--db-font-head);
  font-weight: 600;
}

/* ── DIVI TABS ───────────────────────────────────────── */
.et_pb_tabs .et_pb_tab_active {
  border-top: 3px solid var(--db-primary) !important;
}

/* ── PROGRESS BARS ───────────────────────────────────── */
.et_pb_progress_bar .et-pb-progress {
  background: var(--db-primary) !important;
}

/* ── HIGHLIGHT BOX ───────────────────────────────────── */
.db-highlight-box {
  background: linear-gradient(135deg, rgba(26,79,160,0.06) 0%, rgba(245,166,35,0.06) 100%);
  border: 1px solid rgba(26,79,160,0.12);
  border-radius: var(--db-radius-lg);
  padding: 40px;
}

/* ── BREADCRUMBS ─────────────────────────────────────── */
.db-breadcrumb {
  font-size: 0.85rem;
  color: var(--db-grey);
  padding: 16px 0;
}
.db-breadcrumb a { color: var(--db-primary); }
.db-breadcrumb span { margin: 0 6px; }

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.db-page-hero {
  background: linear-gradient(135deg, var(--db-primary) 0%, #2A6EC8 100%);
  color: var(--db-white);
  padding: 80px 0 60px;
  text-align: center;
}
.db-page-hero h1 {
  color: var(--db-white);
  font-size: clamp(2rem, 4vw, 3rem);
}
.db-page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 16px auto 0;
}

/* ── GRID SYSTEM ─────────────────────────────────────── */
.db-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.db-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.db-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 980px) {
  .et_pb_section { padding-top: 56px; padding-bottom: 56px; }
  .db-hero-section { padding-top: 72px !important; padding-bottom: 72px !important; }
  .db-meeting-card { padding: 32px 24px; }
}

@media (max-width: 768px) {
  .et_pb_section { padding-top: 40px; padding-bottom: 40px; }
  .db-timeline { padding-left: 28px; }
  .db-timeline::before { left: 10px; }
  .db-timeline-item::before { left: -24px; }
  .db-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .db-stats-grid { grid-template-columns: 1fr 1fr; }
  .db-stat-item .db-stat-number { font-size: 1.8rem; }
}

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes db-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes db-pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.db-animate-up {
  animation: db-fade-up 0.6s ease forwards;
}
.db-animate-delay-1 { animation-delay: 0.1s; }
.db-animate-delay-2 { animation-delay: 0.2s; }
.db-animate-delay-3 { animation-delay: 0.3s; }

/* ── PRINT STYLES ────────────────────────────────────── */
@media print {
  .db-hero,
  #main-footer,
  #top-header,
  .et_mobile_menu_bar,
  .et-fixed-header { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
