/* --- 1. GENERAL STYLING --- */

/* Set the specific red color used throughout the site */
:root {
    --case-red: #c8232c;
}

/* --- 2. NAVBAR STYLING (For Hover Animation) --- */
.navbar-nav .nav-link {
    color: #333; 
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    margin-left: 10vh; /* Original margin for spacing */
}

/* Underline Hover Effect */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    left: 50%; /* Start in the middle */
    bottom: 0;
    background: var(--case-red); 
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--case-red);
}

.navbar-nav .nav-link:hover::after {
    width: 100%; /* Expand to full width */
    left: 0; /* Align left */
}


/* --- 3. HERO & RED OVERLAP STYLING --- */
.hero-section {
   margin-top: 80px;
   margin-bottom: -50px;
}

.hero-img {
   width: 75%;
   height: 90vh;
   object-fit: cover;
   border-radius: 0.75rem;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
   margin-left: auto;
   display: block;
   position: relative;
   z-index: 2;
}

.hero-text {
   max-width: 40%;
   background: rgba(255, 255, 255, 0.8);
   padding: 2rem;
   border-radius: 10px;
}

.red-overlap-section {
   position: absolute;
}

.red-content {
   background-color: var(--case-red);
   color: #fff;
   min-height: 400px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding-left: 60px;
   padding-right: 40px;
   box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15);
}

/* Bottom Image Section (Overlap) */
.bottom-image-section {
   position: relative;
   margin-top: -40px;
   margin-left: -350px;
   z-index: 2;
}

.bottom-image {
   display: block;
   width: 30%;
   height: 70%;
   object-fit: cover;
   box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
}

.bottom-caption {
   position: absolute;
   left: 85vh;
   top: 50vh;
   background: rgba(0, 0, 0, 0.55);
   color: #fff;
   padding: 15px 25px;
   border-radius: 10px;
   z-index: 3;
}

.bottom-caption h4 {
   font-weight: 600;
   margin-bottom: 5px;
   font-size: 20px;
}

.bottom-caption p {
   margin: 0;
   font-size: 15px;
}


/* dreams-section */
.dreams-section {
  background: url("images/lets\ chat.avif") center center/cover no-repeat;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dreams-section .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.dreams-section .container {
  position: relative;
  z-index: 2;
}

.dreams-section h2 {
  color: #fff;
  font-weight: 400;
  font-size: 2rem;
  margin: 0;
}

/* Button style */
.btn-chat {
  background-color: #fff;
  color: #c8232c;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  right: -30px; /* overlap towards right edge */
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.btn-chat:hover {
  background-color: #c8232c;
  color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .btn-chat {
    position: static;
    transform: none;
    right: 0;
    margin-top: 1rem;
  }

  .dreams-section h2 {
    text-align: center;
    font-size: 1.5rem;
  }
}




/* --- 4. BLOG SECTION STYLING (With Hover Animation) --- */
.blog-section .card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    padding-top: 50%;
    color: white;
    transition:  0.3s ease;
}

.blog-section .card-img-top {
    width: 100%;
    display: block;
    transition: transform 0.4s ease; /* Key for smooth zoom */
}

/* Hover Animation */
.blog-section .card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-section .card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.blog-section .card:hover .blog-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}


/* --- 5. NEWSLETTER BANNER STYLING --- */
.newsletter-section {
    background-color: var(--case-red) !important; 
}

.newsletter-section .display-6 {
    font-size: 1.75rem; 
}

.newsletter-btn {
    background-color: #fff; 
    border: none;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #f0f0f0;
}

.newsletter-arrow {
    color: var(--case-red); 
    font-size: 1rem;
    vertical-align: middle;
}

/* --- 6. FOOTER STYLING (With Hover Animation) --- */
.footer-section {
   background-color: #f7f7f7 !important;
}

/* Link Styling and Animation (Row 1 & Row 2) */
.footer-link {
   color: #333;
   position: relative;
   padding-bottom: 2px;
   transition: color 0.3s ease;
    display: inline-block; /* Ensure link can use after/padding */
}

/* Underline Animation Effect */
.footer-link::after {
   content: '';
   position: absolute;
   width: 0;
   height: 1px;
   display: block;
   margin-top: 5px;
   left: 0;
   bottom: 0;
   background: var(--case-red);
   transition: width 0.3s ease;
}

.footer-link:hover {
   color: var(--case-red);
}

.footer-link:hover::after {
   width: 100%;
}

/* Social Icons Styling and Animation */
.social-icon-link {
   color: #333;
   font-size: 1.25rem;
   transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon-link:hover {
   color: var(--case-red);
   transform: scale(1.2);
}

/* Divider Styling */
.footer-divider {
   border-top: 1px solid #ddd;
   opacity: 1;
}


/* --- 7. RESPONSIVE MEDIA QUERIES (Original & Adjustments) --- */

@media (max-width: 991.98px) {
    /* Hero Section Mobile Stack */
   .hero-text {
   position: static;
   max-width: 100%;
   text-align: center;
   margin: 2rem auto;
   background: white;
   }

   .hero-img {
   width: 100%;
   margin: 0 auto;
   height: auto;
   }

   .red-content {
   padding: 60px 30px;
   text-align: center;
   }
    
    /* Overlap Section Mobile Fixes */
   .bottom-image-section {
   margin-left: 0;
   margin-top: 0;
   }

   .bottom-image {
   width: 100%;
   height: auto;
   }

   .bottom-caption {
   position: absolute;
   right: 15px;
   bottom: 15px;
   left: auto;
   top: auto;
   max-width: 90%;
   padding: 10px 15px;
   text-align: right;
   }
    
    /* Footer Mobile Fixes */
    .footer-links-group {
 display: flex;
 flex-wrap: wrap;
 margin-bottom: 1rem;
 }
 .footer-links-group a {
 margin-right: 1.5rem !important;
 margin-bottom: 0.5rem;
 }

    /* Newsletter Mobile Fixes */
    .newsletter-section .text-end {
        text-align: center !important; 
        margin-top: 1.5rem;
    }
}






.bottom-image-section1 {
  position: relative;
  z-index: 2;
  margin: 30px;
  margin-top: -250px;
}

.bottom-caption1 {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  z-index: 3;
  bottom: 3%;
  right: 0%;
  max-width: 80%;
  /* The caption will always be over the image */
}

.bottom-image1 {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustment: keep caption on the image for all sizes */
@media (max-width: 991.98px) {
  .bottom-image-section1 {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .bottom-caption1 {
    top: 65%;
    right: 3%;
    padding: 10px 12px;
    font-size: 0.95rem;
    max-width: 90%;
    text-align: right;
  }
}
@media (max-width: 575.98px) {
  .bottom-caption1 {
    top: 70%;
    right: 2%;
    padding: 8px 8px;
    font-size: 0.84rem;
    max-width: 96%;
  }
}





.bottom-image-section2 {
  position: relative;
  z-index: 2;
  margin: 30px;
  margin-top: -170px;
}

.bottom-caption2 {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  z-index: 3;
  bottom: 3%;
  right: 0%;
  max-width: 80%;
  /* The caption will always be over the image */
}

.bottom-image2 {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustment: keep caption on the image for all sizes */
@media (max-width: 991.98px) {
  .bottom-image-section2 {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .bottom-caption2 {
    top: 65%;
    right: 3%;
    padding: 10px 12px;
    font-size: 0.95rem;
    max-width: 90%;
    text-align: right;
  }
}







