/* HERO */
.hero-section {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* White card sitting on the bottom; curved top-right corner */
.hero-card {
  position: absolute;
  bottom: 0;            /* touches the bottom of hero */
  left: 8%;             /* move card from left edge (adjust as needed) */
  width: 520px;
  background: #fff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);

  /* curved top-right corner only:
     order: top-left, top-right, bottom-right, bottom-left */
  border-radius: 0 48px 0 0;
}

/* Typography */
.hero-card h1 {
  font-size: 32px;
  color: #3A54A3;
  margin: 0 0 12px 0;
}
.hero-card p {
  margin: 0 0 16px 0;
  color: #4b5563;
  line-height: 1.6;
}

/* slider dots */
.slider-dots { margin-top: 12px; }
.slider-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5dce6;
  margin-right: 8px;
}
.slider-dots span:first-child { background: #3A54A3; }

.slide-text {
    position: relative;
    height: 90px; /* keeps a fixed height to prevent jumping */
    overflow: hidden;
}

.text-item {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    font-size: 32px;
    color: #3A54A3;
    font-weight: 600;
}

.text-item.active {
    opacity: 1;
}

/* Update dots when active */
.slider-dots .dot {
    background: #cfd6df;
}
.slider-dots .dot.active {
    background: #3A54A3;
}

.hero-slides {
    position: relative;
    min-height: 150px;  /* prevents overlap */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

/* Heading style */
.hero-slide h1 {
    font-size: 32px;
    color: #3A54A3;
    margin-bottom: 10px;
}

/* Paragraph style */
.hero-slide p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
}

/* Dots */
.slider-dots {
    margin-top: 15px;
}

.slider-dots .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    background: #d4d9df;
}

.slider-dots .dot.active {
    background: #3A54A3;
}

/* Bottom right decorative bar */
.hero-decoration {
  position: absolute;
  bottom: -15px; 
  right: 0;
  width: 70%;
  height: 40px;
  background: #ffffff;
  border-radius: 0 48px 0 0;
  padding-left: 0%;
  left: 0;
}

/* FIX 2: Move hero decoration to the left on mobile */
@media (max-width: 768px) {
    .hero-decoration {
        right: auto !important;
        left: 0 !important;
        transform: translateX(0) !important;
    }
}


/* --- FIX FOR MOBILE VIEW --- */
@media (max-width: 768px) {

    .hero-card {
        /* 1. Make the card fill the available screen space */
        width: 100%; 
        
        /* 2. Reset the offset so it sticks to the left edge */
        left: 0; 

        /* 3. Remove/reduce the large curved corner */
        /* Change the border-radius to a standard corner, or just remove the top-right curve */
        border-radius: 0; 
        
        /* Optional: Add back some internal padding */
        padding: 24px;
        
        /* Optional: Reduce text size if the headlines still look too large */
        /*
        & h1 {
            font-size: 24px;
        }
        */
    }
}

body {
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
}
