:root {
  --bg-color: #e6e7e9;
  --primary-color: #799ac0;
  --primary-dark: #4076ab;
  --accent-color: #de2d3a;
  --text-color: #666;
  --footer-bg: #222;
  /* Darker background for footer */
  --footer-text: #ddd;
  --footer-bottom: #111;
  --white: #ffffff;
  --border-color: #ccc;
  --font-main: "Roboto", "Arial", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Offset for sticky header */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-color);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

/* Header */
header {
  background: var(--white);
  padding: 3px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  max-height: 80px;
  margin-left: 10px;
}

.contact-info {
  text-align: right;
  font-size: 1.1rem;
  padding-right: 10px;
}

.contact-info .phone {
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
}

.fb-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.9rem;
}

/* Navigation */
nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  width: 100%;
}

.nav-menu li {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.nav-menu a {
  display: block;
  padding: 15px 10px;
  color: #eee;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--primary-dark);
  color: var(--white);
}

.nav-menu li.nav-contact-link {
  background-color: #544a92;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
}

.phone-link,
.contact-link {
  display: none;
  white-space: nowrap;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* Main Content Layout */
.main-container {
  display: block;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Sections */
.section {
  background: var(--white);
  padding: 30px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.section:last-child {
  margin-bottom: 0;
}

.section h1,
.section h2 {
  color: #000;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 5px;
}

.hero-sidebar h1,
.hero-sidebar h2 {
  color: #000;
  font-size: 1.8rem;
  display: inline-block;
}

.section h3 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-top: 20px;
  margin-bottom: 5px;
}

.article-main {
  display: flex;
  gap: 20px;
}

.left {
  flex: 2;
  /* 2/3 */
}

.right {
  flex: 1;
  /* 1/3 */
}

.article-info {
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 15px;
}

.article-image-wrapper {
  margin: 20px 0;
  text-align: center;
}

.article-image-wrapper img {
  display: inline-block;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.button:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}





/* Link List */
.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.link-list li:last-child {
  border-bottom: none;
}

/* Contact Details */
.contact-details p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Footer */
/* Footer */
footer {
  margin-top: auto;
  color: var(--footer-text);
  font-size: 0.95rem;
  position: relative;
  /* Create stacking context */
  z-index: 10;
  /* Ensure it stays above map */
}

.footer-content {
  background: var(--footer-bg);
  border-top: 5px solid var(--accent-color);
  padding: 50px 25px 40px 25px;
  margin-top: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
  border-bottom: none;
  /* Removed dashed border */
  padding-bottom: 0;
}

.footer-col a {
  color: #bbb;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 5px;
  text-decoration: none;
}

/* Specific styles for contact list */
.contact-list-footer li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: #bbb;
}

.contact-list-footer i {
  color: var(--accent-color);
  margin-top: 4px;
  /* Align icon with first line of text */
}

.contact-list-footer a {
  display: inline-block;
  color: #bbb;
}

.contact-list-footer a:hover {
  padding-left: 0;
  color: var(--white);
}

/* Company Info Column */
.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.company-desc {
  margin-top: 15px;
  line-height: 1.6;
  color: #bbb;
}

/* Socials */
.footer-socials {
  margin-top: 20px;
}

.footer-socials a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  padding-left: 0;
  /* Reset padding hover effect */
}


.footer-bottom {
  background-color: var(--footer-bottom);
  color: #888;
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  padding: 0 20px;
  margin: 0;
}

/* Responsive Footer */




/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-img-container {
  height: 150px;
  overflow: hidden;
}


.article-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-img-container a {
  display: block;
  width: 100%;
  height: 100%;
}

.article-card:hover .article-img-container img {
  transform: scale(1.05);
}


.article-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-content h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.article-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.article-content h3 a:hover {
  color: var(--accent-color);
}

.article-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.article-content p a {
  color: inherit;
  text-decoration: none;
}

.article-content .read-more {
  color: var(--accent-color);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  align-self: flex-start;
}

.article-content .read-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 5px;
  }

  .article-main {
    flex-direction: column;
  }

  .right {
    order: -1;
    /* prawa kolumna idzie na górę */
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .section {
    background: var(--white);
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
  }

  .section h1,
  .section h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
  }

  .section h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 2px;
  }

  .contact-info {
    text-align: center;
    margin-top: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .phone-link,
  .contact-link {
    display: block;
    text-align: center;
    transition: background-color 0.3s ease;
    color: var(--white);
    padding: 15px;
    margin: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
  }

  .phone-link {
    background-color: #4caf50;
    margin-left: 5px;
    margin-right: 5px;
  }

  .phone-link:hover {
    background-color: #3d8b40;
    color: var(--white);
  }

  .contact-link {
    background-color: #544a92;
    margin-right: 0;
  }

  .contact-link:hover {
    background-color: #3e366e;
    color: var(--white);
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: left;
  }

  .nav-menu a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
  }

  .main-container {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    /* Keep left align mostly, or center if preferred, but lists look better left aligned usually */
  }

  .contact-info,
  .nav-contact-link {
    display: none;
  }

  /* Mobile Articles: Show only the first one */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .cta-button {
    order: -1;
    /* Button on top */
    width: 100%;
    max-width: 300px;
  }

  .review-card {
    min-width: 260px;
    padding: 20px;
  }

  .course-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .course-card-right {
    width: 100%;
    justify-content: space-between;
    align-items: left;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
  }

  .course-title {
    flex-wrap: wrap;
  }

  .price-box {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-link,
  .phone-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .hide-on-very-small {
    display: none;
  }

  .contact-link,
  .phone-link {
    font-size: 1rem;
    padding: 10px;
    margin: 5px 5px;
    margin-right: 5px;
  }
}

@media (max-width: 320px) {
  .contact-link {
    display: none;
  }
}

@media (max-width: 260px) {
  .hide-on-very-small {
    display: none;
  }

  .phone-link {
    font-size: 0.8rem;
    padding: 5px;
    margin: 5px 5px;
    margin-right: 5px;
  }

  .contact-link {
    display: none;
  }
}

/* Articles Section Specifics */
#artykuly {
  background: transparent;
  box-shadow: none;
  padding: 0;
}



/* CTA Section Purple */
.cta-section-purple {
  background-color: #f0eff6;
  border-left: 5px solid #544a92;
  padding: 30px;
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.cta-button {
  background-color: #544a92;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  margin-top: 0;
  /* Override generic button margin if needed */
}

.cta-button:hover {
  background-color: #3e366e;
  color: #ffffff;
}

.cta-button-light {
  background-color: #655d9e;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  margin-top: 0;
  /* Override generic button margin if needed */
}

.cta-button-light:hover {
  background-color: #544a92;
  color: #ffffff;
}

.cta-text {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
  font-weight: 500;
}



.card {
  max-width: 44rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  padding: 10px;
}

.card h3 {
  margin: 0 0 0 0;
  font-size: 1.05rem;
}

.card__header {
  padding: 0.1rem 1rem;
  background: #f0f9ff;
}

.card__title {
  margin: 0;
}

.card__content {
  padding: 0.25rem 0.3rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #f9fafb;
  border: 1px solid #eef2f7;
}

.contact-item i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.label {
  font-weight: 600;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.value {
  font-size: 0.9rem;
}

.value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed #cbd5e1;
}

.value a:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.contact-item {
  display: flex;
  gap: 0.2rem;
  /* odstęp między label a value */
}

.contact-item .label {
  min-width: 85px;
  /* szerokość kolumny etykiet */
  font-weight: bold;
}

.contact-item .value {
  flex: 1;
  /* zajmuje resztę miejsca */
}

.card__image {
  /*display: none; /* domyślnie ukryte na mobile */
  width: 100%;
  margin-top: 0.5rem;
}

/* pokaż tylko na desktopie */
@media (min-width: 992px) {
  .card__image {
    display: block;
  }
}

/* FAQ Accordion */
.faq-section {
  background-color: #f9f9f9;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #f0eff6;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: #fff;
  color: #666;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px 20px;
  max-height: 500px;
  /* Arbitrary large height */
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Testimonials / Reviews */
.reviews-grid {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  margin-top: 10px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  cursor: grab;
}

.reviews-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.reviews-grid.active {
  cursor: grabbing;
  scroll-snap-type: none;
  /* Disable snap while dragging */
}

.review-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  border-top: 4px solid var(--primary-color);
  min-width: 300px;
  scroll-snap-align: start;
  user-select: none;
  /* Prevent text selection while dragging */
}

@media (max-width: 768px) {
  .review-card {
    min-width: 260px;
    padding: 20px;
  }
}

.review-stars {
  color: #ffd700;
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
  font-size: 0.95rem;
}

.review-author {
  font-weight: bold;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  gap: 20px;
}

.review-source {
  font-size: 0.8rem;
  color: #888;
  margin-top: 8px;
  font-style: normal;
  text-align: right;
}

/* Courses List View */
.courses-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: left;
  transition: box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.course-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.course-card-left {
  flex: 1;
}

.course-card-right {
  display: flex;
  align-items: left;
  gap: 20px;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-blue {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-purple {
  background-color: #f3e8ff;
  color: #6b21a8;
}

.badge-orange {
  background-color: #ffedd5;
  color: #c2410c;
}

.course-description {
  color: #555;
  font-size: 0.95rem;
  margin: 15px 0;
  line-height: 1.6;
}

.course-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  display: grid;
  gap: 8px;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #555;
}

.course-features li i {
  color: #22c55e;
  font-size: 0.85rem;
}

.course-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #6b7280;
  font-size: 0.9rem;
}

.course-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.price-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

.button-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.button-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.button-short {
  font-weight: 600;
  transition: all 0.3s ease;
  align-items: center;
  gap: 8px;
  display: inline-block;
  /* prevents full-width */
  width: fit-content;
  /* shrink to fit content */
}




/* Subpage Hero */
.subpage-hero {
  color: #333;
  padding: 0px 0;
  margin-bottom: 15px;
}

.hero-split {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.hero-main {
  flex: 3;
  text-align: right;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%), url('../images/slub.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  padding: 40px 40px 20px 40px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-text-content {

  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  text-align: right;
  /* Keep text inside the box left-aligned for readability, while box is right-aligned */
  margin-left: auto;
  /* Push to right just in case */
}

.hero-text-content h2 {
  color: #fff;
  text-shadow: none;
}

.hero-text-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-shadow: none;
  max-width: 100%;
  color: #eee;
}

.hero-sidebar {
  flex: 2;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card {
  background: #fff;
  color: #333;
  padding: 10px 30px;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.hero-card h2 {
  font-size: 1.8rem;
  color: #002347;
  margin-bottom: 5px;
  border-bottom: none;
  padding-bottom: 0;
  display: block;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 10px 0 !important;
  color: #002347;
  font-size: 1rem !important;
  text-shadow: none !important;
}

.hero-main .cta-button {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  padding: 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  transition: transform 0.2s, background-color 0.2s;
}



.hero-trust-text {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 10px !important;
  color: #333;
  text-shadow: none !important;
}

.hero-stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 5px;
  border: 1px solid #ffd700;
  display: block;
  padding: 5px 15px;
  border-radius: 20px;
  white-space: nowrap;
}

.hero-reviews-count {
  font-weight: bold;
  font-size: 0.95rem;
  margin: 5px 0 0 0 !important;
  color: #002347;
  text-shadow: none !important;
}

.hero-reviews-source {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 20px 0 !important;
  text-shadow: none !important;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.hero-benefits li i {
  font-size: 1.1rem;
  color: #000;
}

.hero-benefits li i.fa-circle-check {
  font-weight: regular;
}

/* Responsive Hero */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .hero-split {
    flex-direction: column;
    gap: 20px;
  }

  .hero-main {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    padding: 40px 20px 10px 20px;
    background-position: top;
  }

  .hero-text-content {
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
  }

  .hero-sidebar {
    width: 100%;
    max-width: 500px;
    align-self: center;
  }

  .hero-sidebar h1,
  .hero-sidebar h2 {
    color: #000;
    font-size: 1.4rem;
    display: inline-block;
  }

  .hero-text-content h2 {
    font-size: 1.3rem;
    display: inline-block;
  }
}

/* Contact Page Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.contact-details-col {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.contact-list-page {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list-page li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.contact-list-page li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-list-page .icon-box {
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-list-page .info-box {
  display: flex;
  flex-direction: column;
  word-break: break-word;
}

.contact-list-page .label {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 3px;
}

.contact-list-page .value {
  font-size: 1.1rem;
  color: #333;
}

.contact-list-page .value a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list-page .value a:hover {
  color: var(--accent-color);
}

.contact-map-col {
  min-height: 400px;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 0;
  /* Lower z-index to avoid overlapping sticky elements or footer */
}

/* Responsive Contact Page */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-col {
    min-height: 300px;
  }

  #map {
    min-height: 300px;
  }
}

/* Article Template Styles */
.article-full-content {
  background: var(--white);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  overflow-x: hidden;
  max-width: 100%;
}

.article-layout-wrapper {
  width: 100%;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 100px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.toc-container h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 5px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent-color);
  color: var(--primary-dark);
}

.toc-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-container li {
  margin-bottom: 8px;
  border-bottom: 1px dashed #e0e0e0;
  padding-bottom: 8px;
}

.toc-container li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.toc-container a {
  color: #555;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: color 0.2s, padding-left 0.2s;
}

.toc-container a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.article-header h1 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.2;
}

.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #777;
  font-size: 0.9rem;
}

.article-meta-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta-info i {
  color: var(--primary-color);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body .lead {
  font-size: 1.2rem;
  font-weight: 300;
  color: #444;
  margin-bottom: 30px;
}

.article-body h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: none;
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-size: 1.3rem;
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
  scroll-margin-top: 100px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body figure {
  margin: 30px 0;
  text-align: center;
}

.article-body img {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}

.article-body figcaption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 10px;
  font-style: italic;
}

/* Blockquote */
.article-body blockquote {
  margin: 40px 0;
  padding: 20px 30px;
  background-color: #f0f9ff;
  border-left: 5px solid var(--primary-color);
  font-style: italic;
  position: relative;
  font-size: 1.1rem;
  color: #444;
}

.article-body blockquote footer {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
  font-style: normal;
  text-align: right;
  font-weight: bold;
}

/* Styled Table */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.styled-table {
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
  width: 100%;
  min-width: 400px;
}

.styled-table thead tr {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: left;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--primary-color);
}

.styled-table tbody tr:hover {
  background-color: #e6f7ff;
}

/* Sources */
.article-sources {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.article-sources h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 15px;
}

.article-sources ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}

.article-sources li {
  margin-bottom: 8px;
}

.article-sources a {
  color: #666;
  text-decoration: underline;
}

.article-sources a:hover {
  color: var(--primary-color);
}

/* Read Also Section - reuse existing grid styles, just add wrapper spacing */
.read-also-section {
  background-color: transparent;
  box-shadow: none;
  padding: 20px 0;
}

.read-also-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .article-layout-wrapper {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Make sidebar appear ABOVE content on mobile */
  /* Since sidebar comes first in HTML, it naturally appears first */
  .article-toc {
    position: static;
    margin-bottom: 20px;
    padding: 15px;
  }

  .article-full-content {
    padding: 20px;
  }

  .styled-table {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .article-full-content {
    padding: 15px;
  }

  .article-header h1 {
    font-size: 1.4rem;
  }

  .article-body blockquote {
    padding: 15px 20px;
    margin: 25px 0;
  }

  .styled-table th,
  .styled-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-body {
    font-size: 1rem;
  }
}

/* Accordion Styles for Offer Page */
.course-card-accordion {
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.course-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease;
}

.course-card-accordion.active .course-details {
  max-height: 1000px;
  /* Safe upper limit */
  opacity: 1;
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.toggle-icon {
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 5px;
  text-align: center;
}

.course-card-accordion.active .toggle-icon {
  transform: rotate(180deg);
}

.course-card-accordion:hover {
  background-color: #fafafa;
}

/* Responsive adjustments for accordion */
@media (max-width: 768px) {
  .course-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .course-header .course-card-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
  }
}

/* Registration Page Styles */
.text-center {
  text-align: center;
}

.registration-container {
  max-width: 500px;
  margin: 30px auto;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  /* align with first line of text */
  flex-shrink: 0;
}

.small-text {
  font-size: 0.8rem !important;
  color: #666;
  font-weight: normal !important;
  line-height: 1.4;
}

.registration-form .button {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Registration Page Dual Column Layout */
.registration-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  /* Give form slightly more space, or 1.5fr 1fr */
  gap: 60px;
  max-width: 1100px;
  margin: 40px auto;
  align-items: start;
  /* Align to top */
  text-align: left;
}

.registration-col-form {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.registration-aside {
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #eee;
  /* Distinct separation */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Center content in sidebar */
  text-align: center;
  margin-top: 10px;
}

.registration-aside h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.aside-desc {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #666;
}

/* Phone Layout mimicking the image */
.phone-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 5px;
}

.phone-icon {
  font-size: 2rem;
  color: #4285F4;
  /* Google Blue-ish or similar standard blue used in icons */
}

.phone-number-display {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
  line-height: 1.2;
  padding-bottom: 2px;
  transition: color 0.3s;
}

.phone-number-display:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.phone-hours {
  font-size: 0.95rem;
  color: #777;
  margin-top: 5px;
  margin-bottom: 30px;
}

.aside-location {
  color: #666;
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  width: 100%;
}

.aside-location i {
  color: var(--accent-color);
  margin-right: 5px;
}

@media (max-width: 900px) {
  .registration-wrapper {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 40px;
  }

  .registration-aside {
    order: 0;
    /* Keep order or move depending on preference */
    padding: 30px;
  }
}/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 8px;
}

.pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination-link:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    pointer-events: none;
}

.pagination-link.disabled {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #eee;
    cursor: default;
    box-shadow: none;
}

.pagination-ellipsis {
    color: #999;
    font-weight: bold;
    padding: 0 5px;
    font-size: 1.2rem;
}

/* Specific styles for arrows if needed, but standard square/rounded box looks good */
.pagination-link i {
    font-size: 0.9rem;
}
