/* ===========================
   Reset and base
   =========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Typography and links
   =========================== */
h1 { color: #ffffff; margin-bottom: 10px; }
h2, h3 { color: #0056b3; margin-bottom: 10px; }
a { color: #0056b3; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===========================
   Top contact bar
   =========================== */
.top-contact-bar {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}
.top-contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1359a5;
  font-weight: 500;
}
.contact-icon, .email-icon { color: #002244; }
.whatsapp-link { margin-left: 6px; display: inline-flex; align-items: center; }
.whatsapp-icon { width: 20px; height: 20px; }
.email-icon { width: 18px; height: 18px; margin-right: 6px; }
.sep { color: #9aa4b2; }

/* ===========================
   Floating WhatsApp
   =========================== */
.whatsapp-floating { position: fixed; right: 20px; bottom: 20px; z-index: 999; }
.whatsapp-floating-img { width: 60px; height: auto; cursor: pointer; }

/* ===========================
   Header and navigation
   =========================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 40px;
}
.branding { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 50px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.5rem; color: #1359a5; line-height: 1.1; }

.navigation { display: flex; justify-content: flex-end; }
.nav-list { display: flex; list-style: none; gap: 24px; }
.nav-list a { color: #333333; font-weight: 600; font-size: 0.98rem; }
.nav-list a:hover { color: #0056b3; }

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 80vh;
  background: url('hero-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.hero-content { position: relative; z-index: 1; padding: 40px 20px; max-width: 800px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #ffffff; }
.tagline-gradient {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(90deg, #dbb700, #e3b538);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  background: #0056b3;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}
.btn:hover { background: #003d80; }

/* ===========================
   Sections
   =========================== */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
}
.section h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; }

/* ===========================
   Generic cards row (used for Blogs etc.)
   =========================== */
.cards-row {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===========================
   Card base (no display property here)
   =========================== */
.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* course-card specifics: layout properties only (display set by pagination rules) */
.card.course-card {
  gap: 12px;
  flex-direction: column; /* applied when display:flex is enabled by page rules */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  background: #fff;
  text-align: left;
}

/* icon wrapper: centered box */
.cards-row .icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  overflow: hidden;
  background: transparent;
}

/* image inside icon */
.course-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* card content */
.card.course-card h3 { font-size: 1.05rem; color: #002244; margin-top: 6px; text-align: center; }
.card.course-card p { font-size: 0.95rem; color: #444; line-height: 1.5; text-align: center; }
.card.course-card .links { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.card.course-card .links a { font-weight: 600; color: #0056b3; text-decoration: none; font-size: 0.95rem; }
.card.course-card .links a:hover { text-decoration: underline; }

/* ===========================
   Testimonials
   =========================== */
.testimonial-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
}
.testimonial {
  min-width: 260px;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: #002244;
  flex-shrink: 0;
}

/* ===========================
   Resources
   =========================== */
.resource-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.resource-list li a { font-weight: 500; color: #0056b3; }

/* ===========================
   Live Sessions
   =========================== */
.session-card { text-align: center; max-width: 420px; margin: 0 auto; }

/* Scoped styles for live sessions (keep under #sessions to avoid collisions) */
#sessions .pe-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Session card */
#sessions .pe-session-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, #e6e9ee);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(16,24,40,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

/* Header row */
#sessions .pe-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#sessions .pe-session-title {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-strong, #0f172a);
}

/* Badges */
#sessions .pe-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

#sessions .pe-badge.pe-live {
  background: linear-gradient(90deg,#ff7a59,#ff4d6d);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Meta and description */
#sessions .pe-session-meta {
  font-size: 0.875rem;
  color: var(--muted, #6b7280);
  margin: 0.25rem 0 0.5rem 0;
}

#sessions .pe-session-desc {
  font-size: 0.95rem;
  color: var(--text, #111827);
  margin: 0 0 0.75rem 0;
  flex-grow: 1;
}

/* Footer layout (now contains WhatsApp contact) */
#sessions .pe-session-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* WhatsApp link */
#sessions .pe-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: #25D366;
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37,211,102,0.18);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

#sessions .pe-whatsapp-link:hover,
#sessions .pe-whatsapp-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,211,102,0.18);
  opacity: 0.98;
  outline: none;
}

/* Testimonials (ratings + comments only) - scoped to #testimonials */
#testimonials {
  padding: 1rem 0;
  background: var(--test-bg, transparent);
}

#testimonials .pe-test-heading {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: var(--text-strong, #0f172a);
}

/* Grid */
#testimonials .pe-test-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

/* Item card */
#testimonials .pe-test-item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e6eef6);
  border-radius: 10px;
  padding: 0.9rem;
  box-shadow: 0 6px 18px rgba(15,23,42,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 120px;
}

/* Rating row */
#testimonials .pe-test-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stars container */
#testimonials .pe-stars {
  display: inline-flex;
  gap: 0.12rem;
}

/* ====== Star coloring logic ======
   Default: empty (light gray)
   Filled: first N stars based on data-rating attribute
   ================================== */

/* make stars empty by default */
#testimonials .pe-star {
  width: 16px;
  height: 16px;
  fill: #e6e6e6; /* empty star color */
  display: inline-block;
}

/* filled star color for ratings 1-5 */
#testimonials .pe-stars[data-rating="1"] .pe-star:nth-child(-n+1),
#testimonials .pe-stars[data-rating="2"] .pe-star:nth-child(-n+2),
#testimonials .pe-stars[data-rating="3"] .pe-star:nth-child(-n+3),
#testimonials .pe-stars[data-rating="4"] .pe-star:nth-child(-n+4),
#testimonials .pe-stars[data-rating="5"] .pe-star:nth-child(-n+5) {
  fill: #f59e0b; /* your filled color */
}

/* Numeric rating */
#testimonials .pe-rating-value {
  font-weight: 700;
  color: var(--text-strong, #0f172a);
  font-size: 0.95rem;
}

/* Comment */
#testimonials .pe-test-comment {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text, #0f172a);
  line-height: 1.35;
  border-left: 3px solid rgba(37,99,235,0.06);
  padding-left: 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* CTA */
#testimonials .pe-test-cta {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

#testimonials .pe-udemy-btn {
  display: inline-block;
  background: linear-gradient(90deg,#ff6b6b,#ff8a5b);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 520px) {
  #testimonials .pe-test-list {
    grid-template-columns: 1fr;
  }

  #testimonials .pe-test-item {
    min-height: auto;
  }
}
/* WhatsApp icon */
#sessions .pe-whatsapp-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
  color: #fff;
}

/* Text label next to icon */
#sessions .pe-whatsapp-text {
  font-size: 0.9rem;
  line-height: 1;
  color: #fff;
}

/* Make link accessible focus-visible */
#sessions .pe-whatsapp-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(37,211,102,0.18);
  border-radius: 8px;
}

/* Responsive tweaks */
@media (max-width: 420px) {
  #sessions .pe-session-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #sessions .pe-whatsapp-link {
    width: 100%;
    justify-content: center;
  }
}

/* Footer layout */
#sessions .pe-session-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Capacity */
#sessions .pe-capacity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

#sessions .pe-capacity-label {
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
}

#sessions .pe-capacity-value {
  font-weight: 700;
  color: var(--accent, #0f172a);
}

/* Buttons */
#sessions .pe-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#sessions .pe-btn {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
}

#sessions .pe-btn:focus {
  outline: 3px solid rgba(59,130,246,0.18);
  outline-offset: 2px;
}

/* Primary button */
#sessions .pe-btn-primary {
  background: linear-gradient(90deg,#2563eb,#7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}

/* Ghost / secondary */
#sessions .pe-btn-ghost {
  background: transparent;
  color: var(--muted, #374151);
  border: 1px solid rgba(15,23,42,0.06);
}

/* Responsive tweaks */
@media (max-width: 420px) {
  #sessions .pe-session-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #sessions .pe-actions {
    justify-content: stretch;
  }

  #sessions .pe-btn {
    width: 100%;
  }
}
/* ===========================
   Footer
   =========================== */
footer {
  background: #002244;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ===========================
   Why Choose Us
   =========================== */
.whyus-ref { background: #ffffff; }
.whyus-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.whyus-item {
  padding: 24px 22px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.whyus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.whyus-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  flex-shrink: 0;
}
.whyus-number {
  font-weight: 700;
  color: #9aa4b2;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.whyus-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #002244;
  margin-bottom: 8px;
}
.whyus-desc {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.6;
}

/* ===========================
   Courses pagination-ready grid
   =========================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

/* hide all course articles by default (target element type for specificity) */
.courses-grid article[data-page] {
  display: none;
}

/* JS toggles .show-page-N on .courses-grid; visible page uses flex layout */
.courses-grid.show-page-1 article[data-page="1"],
.courses-grid.show-page-2 article[data-page="2"],
.courses-grid.show-page-3 article[data-page="3"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* pagination controls */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  align-items: center;
}
.page-btn {
  background: #fff;
  border: 1px solid #e6e9ef;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.page-btn[aria-current="true"] {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

/* ===========================
   Icon background utility classes
   =========================== */
.bg-orange { background-color: #c77aba; }
.bg-blue   { background-color: #3b82f6; }
.bg-teal   { background-color: #0ea5a4; }
.bg-yellow { background-color: #f59e0b; }
.bg-green  { background-color: #10b981; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1000px) {
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-grid { grid-template-columns: 1fr; row-gap: 10px; text-align: center; }
  .navigation { justify-content: center; }
  .nav-list { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }
}
@media (max-width: 768px) {
  .courses-grid { grid-template-columns: 1fr; }
  .top-contact-inner { justify-content: center; flex-wrap: wrap; }
  .whyus-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top-contact-inner { flex-direction: column; align-items: center; gap: 6px; }
  .cards-row .icon { width: 48px; height: 48px; border-radius: 8px; }
  .course-img { width: 100%; height: 100%; object-fit: contain; }
}