/* === Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #f8e672ff, #f6f0deff);
  line-height: 2;
  overflow-x: hidden;
  animation: fadeIn 1.2s ease-in;
}

/* === Hero Section === */
.hero {
  height: 83vh;
  position: relative;
  overflow: hidden;
}

.swiper {
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center center;
  height: 100%;
  transition: background-size 0.4s ease;
}

/* Hero Text Box */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  background: rgba(0, 0, 0, 0.55);
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  color: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-content p {
  margin-bottom: 20px;
  color: #ddd;
}

.hero-content a {
  padding: 10px 25px;
  background: linear-gradient(135deg, #ff4081, #ff9100);
  color: #fff;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-content a:hover {
  transform: scale(1.05);
  background: #ff9100;
}

/* ✅ Responsive adjustments for hero section */
@media (max-width: 1024px) {
  .hero {
    height: 100vh;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .swiper-slide {
   /* ✅ Prevents crop */
    background-repeat: no-repeat;
    background-position: center;
  }

  .hero-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.55);
  }

  .hero-content h1 {
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .hero-content a {
    font-size: 0.95rem;
    padding: 10px 22px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }

  .hero-content {
    width: 90%;
    padding: 18px 14px;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-content a {
    font-size: 0.85rem;
    padding: 8px 18px;
  }
}

/* === Mosaic Categories === */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 15px;
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 20px;
}

.mosaic-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: white;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mosaic-item:hover img {
  transform: scale(1.1);
}

.item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.item-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.item-3 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.item-4 {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

.item-5 {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
}

.cat-text {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.mosaic-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgb(248, 200, 8);
}

.mosaic-item:hover .cat-text {
  color: #ffcc00;
  background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 1024px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .mosaic-item {
    grid-column: auto / auto !important;
    grid-row: auto / auto !important;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
  }
  .mosaic-item {
    height: 180px;
  }
}

/* === Featured Section === */
.featured-section {
  padding: 70px 10%;
  background: linear-gradient(135deg, #e3ce45, #ffffff);
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #222;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #333;
  margin: 12px auto 0;
  border-radius: 2px;
}

.featured-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.featured-video {
  flex: 2;
  max-width: 400px;
  max-height: 1000px;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-video video {
  width: 83%;
  height: auto;
  display: block;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .featured-container {
    flex-direction: column;
    align-items: center;
  }

  .featured-video {
    max-width: 83%;
    width: 100%;
    height: auto;
  }

  .featured-video video {
    width: 83%;
    height: auto;
  }

  .featured-text {
    max-width: 100%;
    text-align: center;
    margin-top: 20px;
  }
}

/* === Products, WHO-5, Sticky Blog Card, etc. === */
/* ✅ These sections remain unchanged from your original since they’re already mobile-optimized. */

/* Mosaic grid container */
/* === Mosaic Categories === */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  grid-template-rows: repeat(3, 200px);  /* 3 equal rows */
  gap: 15px;
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 20px;
}

.mosaic-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  text-decoration: none;
  color: white;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Image zoom effect */
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mosaic-item:hover img {
  transform: scale(1.1);
}

/* Mosaic Layout Cuts */
.item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.item-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.item-3 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.item-4 {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

.item-5 {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
}

/* Text overlay */
.cat-text {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* Hover effects */
.mosaic-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgb(248, 200, 8);
}

.mosaic-item:hover .cat-text {
  color: #ffcc00;
  
  background: rgba(0,0,0,0.55);
}

/* Responsive */
@media (max-width: 1024px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .mosaic-item {
    grid-column: auto / auto !important;
    grid-row: auto / auto !important;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
  }
  .mosaic-item {
    height: 180px;
  }
}
/* === Featured Section === */
.featured-section {
  padding: 70px 10%;
  background: linear-gradient(135deg, #e3ce45, #ffffff);
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #222;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #333;
  margin: 12px auto 0;
  border-radius: 2px;
}

.featured-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Video Styling */
.featured-video {
  flex: 2;
  max-width: 440px;
  max-height: 600px;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-video::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid #ccc;
  border-radius: 20px;
  z-index: -1;
}

.featured-video video {
  width: 100%;
  display: block;
  border-radius: 16px;
}
/* Responsive fix for featured video */
@media (max-width: 768px) {
  .featured-container {
    flex-direction: column;   /* stack video & text vertically */
    align-items: center;
  }

  .featured-video {
    max-width: 100%;          /* take full width */
    width: 100%;              /* expand on mobile */
    height: auto;             /* auto height */
  }

  .featured-video video {
    width: 100%;              /* make video fluid */
    height: auto;             /* maintain aspect ratio */
  }

  .featured-text {
    max-width: 100%;          /* text also fits mobile */
    text-align: center;
    margin-top: 20px;
  }
}


/* Text Styling */
.featured-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.featured-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #111;
}

.featured-text p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #444;
}

.featured-text .btn {
  display: inline-block;
  padding: 12px 24px;
 background: linear-gradient(135deg, #ff4081, #ff9100);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.featured-text .btn:hover {
  background: linear-gradient(135deg, #555, #777);
  transform: translateY(-2px);
}

/* === Products === */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.product-card {
   background: linear-gradient(135deg, #e3ce45, #ffffff);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  animation: fadeIn 1s ease;
  position: relative;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  margin-bottom: 10px;
}

.product-card p {
  margin-bottom: 15px;
  font-weight: 600;
  color: #ff9100;
}

.product-card a {
  display: inline-block;
  padding: 8px 20px;
  background: #ff9100;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.product-card a:hover {
  background: #ff4081;
  transform: scale(1.05);
}

.product-card:hover {
  transform: translateY(-8px);
    background: linear-gradient(135deg,#ffffff, #e3ce45 );
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.btn-show-more {
  display: inline-block;
  padding: 10px 20px;
    background: linear-gradient(135deg, #ff4081, #ff9100);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s;
}

.btn-show-more:hover {
  background: #ff9100;
  transform: scale(1.05);
}
/* 🌥️ Cloud Bubble Sticky Blog Highlight Card */
.sticky-blog-card {
  position: fixed;
  bottom: 80px;            /* lifted above footer */
  right: 30px;             /* spacing from edge */
  width: 280px;
  background: #fff;
  border-radius: 50% 50% 40% 60% / 60% 40% 60% 50%;
  padding: 20px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
  text-align: center;
  animation: floatUp 0.8s ease-out;
  transition: all 0.3s ease;
}

/* Hover lift effect */
.sticky-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.3);
}

/* ✨ Bubble Tail */
.sticky-blog-card::after {
  content: "";
  position: absolute;
  bottom: 25px;
  right: -25px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: -10px 5px 0 -5px rgba(0,0,0,0.1);
}

/* ❌ Close Button */
.sticky-blog-card .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f8f8f8;
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 26px;
  text-align: center;
  transition: all 0.3s ease;
}

.sticky-blog-card .close-btn:hover {
  background: #ffebeb;
  color: #e00000;
  transform: scale(1.1);
}

/* 🖼️ Content */
.sticky-blog-card img {
  width: 90%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 80px;
  margin-bottom: 8px;
}

.sticky-blog-card .blog-content h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #333;
}

.sticky-blog-card .blog-content p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* 🟠 Buttons */
.sticky-blog-card .btn-read,
.sticky-blog-card .btn-show {
  display: inline-block;
  margin: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.sticky-blog-card .btn-read {
  background: #ff8800;
  color: #fff;
}

.sticky-blog-card .btn-read:hover {
  background: #e06e00;
}

.sticky-blog-card .btn-show {
  background: #f1f1f1;
  color: #333;
}

.sticky-blog-card .btn-show:hover {
  background: #ddd;
}

/* ☁️ Floating Entry Animation */
@keyframes floatUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* 📱 Mobile Responsive */
@media (max-width: 600px) {
  .sticky-blog-card {
    width: 240px;
    bottom: 60px;
    right: 15px;
    padding: 16px;
  }

  .sticky-blog-card img {
    max-height: 100px;
  }

  .sticky-blog-card .close-btn {
    width: 26px;
    height: 26px;
    font-size: 20px;
    line-height: 24px;
  }
}


/* Text Slider */
.text-slider {
  width: 100%;
  overflow: hidden;
  background: #222;
  font-weight: 600;
  padding: 7px 0;
  position: relative;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scroll-left 150s linear infinite;
}

.slider-track span {
  margin: 0 50px;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Alternate colors */
.slider-track span:nth-child(odd) {
  color: #ffffff; /* white */
}
.slider-track span:nth-child(even) {
  color: #ff8800; /* orange */
}

/* Pause on hover */
.text-slider:hover .slider-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* WHO-5 Form Questions */
#who5Form {
  text-align: left;
}

#who5Form label {
  display: block;
  font-weight: 600;
  color: #000000;
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 6px;
}
#startTest {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
 background: linear-gradient(135deg, #ff4081, #ff9100);
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
}

#startTest:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
 background: linear-gradient(135deg, #ff9100,#ff4081 );
}
#who5Form select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 15px;
  margin-bottom: 10px;
  transition: border-color 0.3s;
}

#who5Form select:focus {
  border-color: #0077cc;
  outline: none;
  background: #fff;
}

/* Submit button */
#who5Form button {
  background: linear-gradient(135deg, #ff4081, #ff9100);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 20px;
}

#who5Form button:hover {
  background: #005fa3;
  transform: scale(1.05);
}

.hidden {
  display: none !important;
}

/* Result box eye-catching */
#who5Result {
  margin-top: 25px;
  font-weight: 600;
  font-size: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease-in-out;
}

.result-good {
  background: linear-gradient(135deg, #a8e063, #56ab2f);
  color: #fff;
}

.result-moderate {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #222;
}

.result-poor {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Container styling */
.who5-section {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.who5-card {
 background: linear-gradient(135deg,   rgb(241, 228, 140), rgb(203, 126, 43));
  padding: 30px;
  border-radius: 15px;
  max-width: 550px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.who5-card h2 {
  margin-bottom: 10px;
  color: #333;
}

.who5-card p {
  margin-bottom: 20px;
  color: #555;
}
/* ===== COOKIE CONSENT POPUP ===== */
#cookieConsent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: #ffffff;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 20px 24px;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

#cookieConsent.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(30px);
  pointer-events: none;
}

#cookieConsent .cookie-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

#cookieConsent p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

#cookieConsent a {
  color: #0078ff;
  text-decoration: underline;
}

#cookieConsent button {
  align-self: flex-end;
  background: linear-gradient(135deg, #ff6b6b, #f06595);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#cookieConsent button:hover {
  background: linear-gradient(135deg, #ff4757, #d63384);
}

/* Responsive for mobile */
@media (max-width: 500px) {
  #cookieConsent {
    bottom: 15px;
    padding: 16px;
  }
  #cookieConsent button {
    width: 100%;
    align-self: center;
  }
}


/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes textGlow {
  from { text-shadow: 0 0 10px #ff4081; }
  to { text-shadow: 0 0 20px #ff9100, 0 0 40px #ff4081; }
}
