/* ==========================================================================
   BEGINNERS GUIDE PAGE — Фондови за почетници
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */

.bg-hero {
  background-color: var(--hp-navy, #1f2f3f);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 200px 0 80px;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.bg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 47, 63, 0.65);
}

.bg-hero .hp-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.bg-hero__title {
  color: var(--hp-white, #fff);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto;
  max-width: 700px;
}

/* ==========================================================================
   SECTION 2: Intro (50/50 top + red block bottom)
   ========================================================================== */

.bg-intro {
  background: var(--hp-white, #fff);
}

.bg-intro__top {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: var(--hp-section-py, 80px) 0;
}

.bg-intro__title {
  flex: 0 0 50%;
  color: var(--hp-red, #cd2c2a);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.bg-intro__right {
  flex: 1;
  display: flex;
  align-items: center;
}

.bg-intro__right p {
  color: var(--hp-navy, #1f2f3f);
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

/* Red block */
.bg-intro__red {
  background: var(--hp-red, #cd2c2a);
  border-radius: var(--hp-radius-card, 8px);
  padding: 40px 36px;
  margin-bottom: var(--hp-section-py, 80px);
}

.bg-intro__red p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.bg-intro__red p:last-child {
  margin-bottom: 0;
}

.bg-intro__red strong {
  color: var(--hp-white, #fff);
}

/* ==========================================================================
   SECTION 3: 2x2 Info Grid
   ========================================================================== */

.bg-cards {
  background: var(--hp-gray-light, #f8f8f8);
  padding: var(--hp-section-py, 80px) 0;
}

.bg-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bg-cards__item {
  background: var(--hp-white, #fff);
  border-radius: var(--hp-radius-card, 8px);
  padding: 36px 32px;
  border: 1px solid var(--hp-gray-border, #e0e0e0);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.bg-cards__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hp-red, #cd2c2a);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.bg-cards__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.bg-cards__item:hover::after {
  transform: scaleX(1);
}

.bg-cards__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--hp-red, #cd2c2a);
}

img.bg-cards__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s;
}

img.bg-cards__icon--wide {
  width: 80px;
}

.bg-cards__item:hover img.bg-cards__icon {
  transform: scale(1.1);
}

.bg-cards__item h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--hp-navy, #1f2f3f);
  margin: 0;
  line-height: 1.3;
}

.bg-cards__item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--hp-gray, #666);
  margin: 0 0 12px;
}

.bg-cards__item p:last-child {
  margin-bottom: 0;
}

.bg-cards__item ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.bg-cards__item ul li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--hp-navy, #1f2f3f);
  padding: 6px 0 6px 24px;
  position: relative;
}

.bg-cards__item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--hp-red, #cd2c2a);
  border-radius: 50%;
}

/* Numbered lists */
.bg-cards__item ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.bg-cards__item ol li {
  counter-increment: step;
  font-size: 16px;
  line-height: 1.5;
  color: var(--hp-navy, #1f2f3f);
  padding: 10px 0 10px 36px;
  position: relative;
  border-bottom: 1px solid var(--hp-gray-border, #e0e0e0);
  transition: padding-left 0.2s;
}

.bg-cards__item ol li:last-child {
  border-bottom: none;
}

.bg-cards__item ol li:hover {
  padding-left: 40px;
}

.bg-cards__item ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--hp-red, #cd2c2a);
  color: var(--hp-white, #fff);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE — Tablet (992px)
   ========================================================================== */

@media (max-width: 992px) {
  .bg-hero__title { font-size: 36px; }
  .bg-intro__title { font-size: 36px; }
}

/* ==========================================================================
   RESPONSIVE — Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
  .bg-hero { padding: 140px 0 52px; min-height: auto; }
  .bg-hero__title { font-size: 30px; }

  .bg-intro__top { flex-direction: column; gap: 20px; }
  .bg-intro__title { flex: none; font-size: 30px; }
  .bg-intro__right p { font-size: 16px; }
  .bg-intro__red p { font-size: 16px; }

  .bg-cards__grid { grid-template-columns: 1fr; }
  .bg-cards__item { padding: 28px 24px; }
}

/* ==========================================================================
   RESPONSIVE — Small Mobile (576px)
   ========================================================================== */

@media (max-width: 576px) {
  .bg-hero { padding: 120px 0 40px; }
  .bg-hero__title { font-size: 26px; }

  .bg-intro__title { font-size: 26px; }
  .bg-intro__top { padding: 40px 0; }
  .bg-intro__red { padding: 28px 20px; margin-bottom: 40px; }
  .bg-intro__right p,
  .bg-intro__red p { font-size: 15px; }

  .bg-cards__item { padding: 24px 20px; }
  img.bg-cards__icon { width: 44px; height: 44px; margin-bottom: 16px; }
}
