
    header {
        padding: 100px 0 0!important;
        min-height: 0vh!important;
      /*  background: #673AB7!important*/
      background: #052d2d !important;
    }

    @media (max-width: 767.98px) {
        header {
            text-align: center;
            padding: 69px 0 0 !important;
            min-height: auto;
        }
    }
    .kidologic-badge {
      display: inline-flex;
      gap: 10px;
      align-items: center;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.15);
      font-weight: 600;
      letter-spacing: 0.2px;
    }

  
    .kidologic-card-wrapper {
      display: flex;
      flex-wrap: wrap;
      gap: 20px; /* 👈 spacing between cards */
    }

    .kidologic-card {
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(6px);
      margin-bottom: 0px!important;
    }

    .kidologic-card-yellowgreen {
      /*border: 1px solid rgba(255, 255, 255, 0.08);*/
      background: rgb(219 241 9 / 72%);
     /* backdrop-filter: blur(6px);*/
    }

    .kidologic-card-deepteal {
     /* border: 1px solid rgba(255, 255, 255, 0.08);*/
      background: rgb(24 133 147);
     /* backdrop-filter: blur(6px);*/
    }

    .kidologic-card-green {
     /* border: 1px solid rgba(255, 255, 255, 0.08);*/
      background: rgb(66 133 69);
      /* backdrop-filter: blur(6px);*/
    }

    .kidologic-card-pink {
     /* border: 1px solid rgba(255, 255, 255, 0.08);*/
      background: var(--kido-pink);
      /* backdrop-filter: blur(6px);*/
    }

    .kidologic-card-accent {
     /* border: 1px solid rgba(255, 255, 255, 0.08);*/
      background: var(--kido-accent);
      /* backdrop-filter: blur(6px);*/
    }

    .kidologic-card-green,
.kidologic-card-deepteal,
.kidologic-card-yellowgreen, .kidologic-card-pink, .kidologic-card-accent {
  flex: 1 1 calc(33.33% - 14px); /* 👈 magic line */
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .kidologic-card-green,
  .kidologic-card-deepteal,
  .kidologic-card-yellowgreen, .kidologic-card-pink, .kidologic-card-accent {
    flex: 1 1 100%;
  }
}

    .kidologic-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 👈 THIS replaces margin */
}

    .kidologic-section-title {
      color: #1d2630;
    }

    .kidologic-mini {
      font-size: 0.95rem;
      opacity: 0.85;
    }

    .news-ticker {
      position: relative;
      overflow: hidden;
      border-radius: 14px;
     /* background: rgba(255, 255, 255, 0.75);
      border: 1px solid rgba(29, 38, 48, 0.08);
      */
    }

    .news-track {
      display: flex;
      gap: 28px;
      padding: 12px 0;
      white-space: nowrap;
      animation: kidologic-marquee 25s linear infinite;
    }

    .news-ticker:hover .news-track {
      animation-play-state: paused;
    }

    .news-track:hover  {
      animation-play-state: paused;
    }

    @keyframes kidologic-marquee {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-50%);
      }
    }

    .gallery-thumb {
      cursor: pointer;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(29, 38, 48, 0.10);
      background: #fff;
    }

    .gallery-thumb img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      transition: transform 180ms ease;
      display: block;
    }

    .gallery-thumb:hover img {
      transform: scale(1.03);
    }

    .hero-container-kidologic{
      margin-bottom: 75px;
    }

    .hero-text-gradient-kidlogic {
    --bg-size: 400%;
    /*--color-one: #FFEB3B;
--color-two: rgb(249, 31, 169);
 background: linear-gradient(90deg, var(--color-one), var(--color-two), var(--color-one)) 0 0 / var(--bg-size) 100%;
*/
    --color-one: var(--kido-primary);
    --color-two: var(--kido-accent);
    --color-three: var(--kido-pink);
    background: linear-gradient(90deg, var(--color-one), var(--color-two), var(--color-three)) 0 0 / var(--bg-size) 100%;
    color: #fff0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: move-bg 24s infinite linear;
}

.product-section.no-after::after {
    content: none !important;
}


.navbar-kidologic{
    /*  background: #673AB7!important; */
   /* background: var(--bs-teal)!important; */
    background: #052b2b !important;/*052d2d*/
    
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: all 0.3s ease;

  /* ✅ FIX */
  padding: 0;
  width: auto;
  height: auto;
}
/*
.play-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  top: 0;
  left: 0;
  animation: pulse 1.5s infinite;
  z-index: -1;
}
*/
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
/* Hover effect */
.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.2);
 /* background: rgba(0,0,0,0.8);*/
}

.video-card img {
  transition: transform 0.3s ease;
}

.video-card:hover img {
  transform: scale(1.05); /* optional subtle zoom instead of rotation */
}



/* --- "Play As You Learn" Parallax Background for Video Gallery --- */
#videos {
    /* Pulls the exact sky/cloud background from the live template */
    background-image: url('assets/images/klf/cloud-bg.png');
    background-color: var(--bs-teal); /* Fallback teal */
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    /* Adds breathing room around the videos so you can see the background */
    padding-top: 90px !important;
    padding-bottom: 90px !important;
}

/* Make the title and description white to read well over the blue background */
#videos .kidologic-section-title,
#videos .title p.mb-0 {
    color: #ffffff !important;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Adds a soft drop shadow for readability */
}

/* Dark + blur background */
.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.75); /* darker */
  backdrop-filter: blur(6px);           /* blur effect */
  -webkit-backdrop-filter: blur(6px); /* for mobile Safari */
  
 
}

/* Optional: smooth fade */
.modal-backdrop {
  transition: all 0.3s ease;
}

 .modal-fullscreen-sm-down .modal-content {
    padding-top: 40px; /* space for close button */
  }

  .modal {
    margin-top: 70px;
  }


#slider {
    float: left;
    clear: both;
    width: 100%;
    margin: 0px;
    padding: 0px;
    position: relative;
    overflow: hidden;
}


/*****************/
/*--------------------------------------------------------------
5.0 - Portfolio Styles (Patched for Responsiveness & Modern Cropping)
--------------------------------------------------------------*/

.portfolio-container { max-width: 1170px; width: 100%; margin: 0 auto; overflow: hidden; padding-top: 50px;}

/* Modern Hexagon Mask - No background image needed */
.portfolio-content { 
    display: inline-block; 
    width: 381px; 
    height: 330px; 
    position: relative; 
    overflow: hidden; 
    z-index: 9; 
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.portfolio-content1 { margin: auto; display: block; right: 0px; left: 0px; }
.portfolio-content2 { margin: -168px 0 0 114px; float: left; }
.portfolio-content3 { margin: -168px 0px 0px 182px; float: left; }
.portfolio-content4 { margin: -6px 0px 0px 114px; float: left; }
.portfolio-content5 { margin: -168px 0px 0px -100px; float: left; }
.portfolio-content6 { margin: -6px 0px 0px -100px; float: left; }
.portfolio-content7 { margin: -168px 0px 0px 395px; float: left; }

/* --- Hexagon White Border Fix --- */

/* 1. Ensure the outer container has a white background (this becomes the border) */
.portfolio-content {
    background-color: #ffffff; 
}

/* 2. Reset the inner wrappers */
.portfolio-outer, 
.front-portfolio .portfolio-thumb {
    transform: none !important;
    -webkit-transform: none !important;
    width: 100%;
    height: 100%;
    position: relative;
}

/* 3. Shrink the inner image container slightly to reveal the white background */
.front-portfolio {
    width: 100%;
    height: 100%;
    position: relative;
    /* Apply the exact same hexagon cut to the inner image */
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    
    /* Shrink it by 4% (0.96). Change this to 0.98 for a thinner border, or 0.94 for thicker */
    transform: scale(0.96) !important; 
    -webkit-transform: scale(0.96) !important;
    transform-origin: center center;
}




.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

/* Hover Overlay Styles & Animations */
.front-portfolio .image-overlay { position: absolute; visibility: hidden; opacity: 0; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 9999; background: rgba(0,140,153,0.9); }

.front-portfolio .image-overlay,
.front-portfolio .image-overlay h5,
.front-portfolio .image-overlay .link,
.front-portfolio .image-overlay .zoom {
    transition: all 0.35s ease-in-out;
    -webkit-transition: all 0.35s ease-in-out;
}

@media screen and (-webkit-min-device-pixel-ratio:0) { 
    ::i-block-chrome,.front-portfolio .image-overlay { visibility: visible; opacity: 1; display: none; }
    ::i-block-chrome,.front-portfolio:hover .image-overlay { display: block; }
}

.portfolio-content1 .front-portfolio .image-overlay { background: rgba(230,188,107,0.9); }
.portfolio-content2 .front-portfolio .image-overlay { background: rgba(243,166,189,0.9); }
.portfolio-content3 .front-portfolio .image-overlay { background: rgba(230,107,114,0.9); }
.portfolio-content4 .front-portfolio .image-overlay { background: rgba(233,186,11,0.9); }
.portfolio-content5 .front-portfolio .image-overlay { background: rgba(47,134,206,0.9); }
.portfolio-content6 .front-portfolio .image-overlay { background: rgba(229,104,84,0.9); }
.portfolio-content7 .front-portfolio .image-overlay { background: rgba(103,156,187,0.9); }

.portfolio-content .front-portfolio .image-overlay h5 a { color: inherit; }
.portfolio-content1 .front-portfolio .image-overlay a { color: #ddaa0c; }
.portfolio-content2 .front-portfolio .image-overlay a { color: #fa8cba; }
.portfolio-content3 .front-portfolio .image-overlay a { color: #ef7b80; }
.portfolio-content4 .front-portfolio .image-overlay a { color: #ebb50d; }
.portfolio-content5 .front-portfolio .image-overlay a { color: #6996cf; }
.portfolio-content6 .front-portfolio .image-overlay a { color: #ec6d5a; }
.portfolio-content7 .front-portfolio .image-overlay a { color: #6a9eba; }
.portfolio-content .front-portfolio .image-overlay a:hover { color: #333338; }
        
.portfolio-thumb:hover .image-overlay { visibility: visible; opacity: 1; }
.front-portfolio.even { margin-top: 102px; }
        
.front-portfolio-container { float: left; clear: both; width: 100%; margin: 0px auto; padding: 0px; position: relative; }

.front-portfolio .image-overlay h5 { top: 30%; left: 0px; right: 0px; margin: auto; text-align: center; position: absolute; text-transform: uppercase; color: #FFF; font-weight: 700; transform: scale(0); -webkit-transform: scale(0); -moz-transform: scale(0); }
.front-portfolio .image-overlay h5 a { color: #FFFFFF; }

/* --- Modern Circular Hover Buttons --- */
.front-portfolio .image-overlay a.link, 
.front-portfolio .image-overlay a.zoom { 
    background: #fff; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 16px; 
    height: 42px; 
    width: 42px; 
    border-radius: 50%; /* Creates the perfect circle */
    position: absolute; 
    z-index: 9999; 
    color: #333333;
    text-decoration: none;
}

/* Hover effects for the buttons themselves */
.front-portfolio .image-overlay a.link:hover, 
.front-portfolio .image-overlay a.zoom:hover {
    background: #673AB7; /* Kidologic Purple */
    color: #ffffff;
}

.front-portfolio .image-overlay .link { top: 55%; margin-top: -21px; left: 0px; }
.front-portfolio .image-overlay .zoom { top: 55%; margin-top: -21px; right: 0px; }

/* Adjusted hover resting positions for the new circle width */
.front-portfolio:hover .link { left: 32%; }
/* .front-portfolio:hover .zoom { right: 32%; } */
.front-portfolio:hover .zoom { right: 44%; } 
.front-portfolio:hover .image-overlay h5 { transform: scale(1); -webkit-transform: scale(1); -moz-transform: scale(1); }

/* Force-kill the old 2014 CSS triangle border hacks */
.front-portfolio a.link:before, .front-portfolio a.zoom:before,
.front-portfolio a.link:after, .front-portfolio a.zoom:after { 
    display: none !important; 
}
/* --- Responsive Adjustments --- */

/* Tablet Sizing */
@media only screen and (min-width: 960px) and (max-width: 1240px) {
    .portfolio-container { width: 710px; }
    .portfolio-content { width: 194px; height: 168px; }
    .front-portfolio { height: 162px; }
   /* 
    .portfolio-content1 { margin: -0px 0 0 353px; }
    .portfolio-content2 { margin: -85px 0 0 209px; }
    .portfolio-content3 { margin: -85px 0px 0px 94px; }
    .portfolio-content4 { margin: -3px 0px 0px 210px; }
    .portfolio-content5 { margin: -86px 0px 0px -50px; }
    .portfolio-content6 { margin: -3px 0px 0px -50px; }
    .portfolio-content7 { margin: -86px 0px 0px 354px; }
    */

    .portfolio-content1 { margin: -0px 0 0 259px; } 
    .portfolio-content2 { margin: -85px 0 0 115px; }
    .portfolio-content3 { margin: -85px 0px 0px 94px; }
    .portfolio-content4 { margin: -3px 0px 0px 115px; }
    .portfolio-content5 { margin: -86px 0px 0px -50px; }
    .portfolio-content6 { margin: -3px 0px 0px -50px; }
    .portfolio-content7 { margin: -86px 0px 0px 260px; }

    /*
    .front-portfolio .image-overlay a.link, .front-portfolio .image-overlay a.zoom { font-size: 12px; height: 32px; line-height: 32px; width: 22px; }
    .front-portfolio a.link:before, .front-portfolio a.zoom:before { left: -8px; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-right: 8px solid #FFFFFF; }
    .front-portfolio a.link:after, .front-portfolio a.zoom:after { right: -8px; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-left: 8px solid #FFFFFF; }
   */
   .front-portfolio .image-overlay a.link, .front-portfolio .image-overlay a.zoom { font-size: 14px; height: 34px; width: 34px; line-height: normal; }

    /*.front-portfolio .image-overlay h5 { font-size: inherit; top: 30%; }*/
    .front-portfolio .image-overlay h5 { font-size: inherit; top: 28%; }
    .front-portfolio .image-overlay .link { top: 60%; }
    .front-portfolio:hover .link { left: 28%; }
    /* .front-portfolio .image-overlay .zoom { top: 60%; }*/
    /* .front-portfolio:hover .zoom { right: 28%; }*/
    .front-portfolio:hover .zoom { right: 40%; }
}

/* Mobile Sizing Fix */
@media only screen and (max-width: 959px) {
    .portfolio-container { width: 100%; padding: 0 15px; }
    
    .front-portfolio-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding-bottom: 40px;
    }

    .portfolio-content {
        margin: 0 !important;
        float: none !important;
        position: relative !important;
        width: 250px;
        height: 216px;
    }
}

@media only screen and (max-width: 555px) {
  .mobileGallery{
    display: block;
  }

  .nonMobileGallery{
    display: none;
  }
}

@media only screen and (min-width: 556px) {
  .mobileGallery{
    display: none;
  }

  .nonMobileGallery{
    display: block;
  }
}

/******Modal Popup*******/
/* --- Lightbox "prettyPhoto" Clone Styles --- */

.pretty-lightbox-dialog {
    max-width: 800px; 
}

/* Creates the thick white frame and removes default bootstrap borders */
.pretty-lightbox-content {
    background: #ffffff;
    border-radius: 6px;
    border: none;
    padding: 15px; 
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.pretty-lightbox-body {
    border-radius: 4px;
    overflow: hidden;
    background: #000; /* Prevents white flashes while image loads */
}

/* Custom Floating Close Button */
.pretty-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #333333;
    color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1055;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

/* Hover effect matching your Kido theme */
.pretty-close-btn:hover {
    background: #673AB7; /* Kidologic Purple */
    border-color: #673AB7;
    color: #ffffff;
    transform: scale(1.1);
}

/* Make the backdrop slightly darker to match prettyPhoto */
.modal-backdrop.show {
    opacity: 0.85 !important;
}


.kidologic-page-headings{
    height: 275px;
}



/* 1. Base container styling */
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
 /* border-bottom: 1px dashed #333;*//* Visual cue for the user */
}

/* 2. Create and hide the tooltip box */
.tooltip-container::after {
  content: attr(data-tooltip); /* Pulls text from the HTML attribute */
  position: absolute;
  bottom: 125%; /* Positions it directly above the text */
  left: 50%;
  transform: translateX(-50%); /* Centers the tooltip horizontally */
  
  /* Styling */
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  

  white-space: normal;       /* Allow the text to wrap instead of cutting off */
  width: max-content;        /* Let it expand to its natural content width */
  max-width: 250px;          /* Prevent it from expanding infinitely wide */
  z-index: 1050;             /* Force it above Bootstrap cards and structural boundaries */
  
  
  /* Hide by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out; /* Smooth fade effect */
}

/* 3. Reveal the tooltip on hover */
.tooltip-container:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Create the arrow triangle */
.tooltip-container::before {
  content: "";
  position: absolute;
  bottom: 110%; 
  left: 50%;
  transform: translateX(-50%);
  
  /* Triangle border trick */
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  
  /* Match the fade timing of the tooltip */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
}

/* Reveal arrow on hover */
.tooltip-container:hover::before {
  opacity: 1;
  visibility: visible;
}