/********** Template CSS **********/
:root {
  /* Site theme variables - Kindergarten Palette */
  --primary: #003366;
  --secondary: #fe5d37; /* Orange/Red pop */
  --light: #FFF5F3;
  --dark: #103741;
  --success: #568260;
  --info: #0dcaf0;
  --warning: #ffc107;

  /* Override Bootstrap v5 CSS variables to apply new color palette */
  --bs-primary: #003366;
  --bs-primary-rgb: 0, 51, 102;

  --bs-secondary: #fe5d37;
  --bs-secondary-rgb: 254, 93, 55;

  --bs-success: #568260;
  --bs-success-rgb: 86, 130, 96;

  --bs-warning: #ffc107;
  --bs-warning-rgb: 255, 193, 7;
  
  --bs-font-sans-serif: 'Heebo', sans-serif;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
  border-radius: 50%; /* Round back to top */
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 600;
  transition: .5s;
  border-radius: 50px; /* Pill shape for all buttons */
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn.btn-primary {
  color: #FFFFFF;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 6px rgba(0, 51, 102, 0.3);
}

.btn.btn-primary:hover {
  background-color: #002244;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 51, 102, 0.4);
}

.btn.btn-secondary {
  color: #FFFFFF;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50%; /* Perfectly round */
}

/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  /* Headlines use Lobster Two for playful look */
  font-family: 'Lobster Two', cursive;
  font-weight: 700;
  color: var(--dark);
}

h5,
h6,
.h5,
.h6 {
  font-weight: 600;
  font-family: 'Heebo', sans-serif; /* Subheadings cleaner */
}

.font-secondary {
  font-family: "Lobster Two", cursive;
}

/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 600;
    outline: none;
    font-family: 'Heebo', sans-serif;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary);
    transform: translateY(-2px);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Softer shadow */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        border-radius: 15px; /* Rounded dropdown */
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 10px;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    
    .dropdown-item {
        border-radius: 10px;
        padding: 8px 15px;
        transition: all 0.2s;
    }
    
    .dropdown-item:hover {
        background-color: var(--light);
        color: var(--primary);
        padding-left: 20px; /* Slide effect */
    }
}

/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 10px;
  top: 0;
  left: 0;
  background: url(../img/bg-header-top.png) center center repeat-x;
  z-index: 1;
}

.header-carousel::after,
.page-header::after {
  height: 19px;
  top: auto;
  bottom: 0;
  background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 500px;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .header-carousel .owl-carousel-item h1 {
    font-size: 30px;
    font-weight: 600;
  }
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  margin: 7px 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--secondary); /* Pop color */
  border-color: var(--secondary);
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(../img/ket.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Hero Text Enhancements */
.header-carousel h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: 4rem; /* Bigger title */
}

.header-carousel p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/*** Facility (Now Academic Departments - Legacy styles kept but unused) ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}


/*** About ***/
.about-img img {
    transition: .5s;
    border-radius: 20px; /* Soften corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img img:hover {
    transform: scale(1.05) rotate(2deg); /* Playful hover */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/*** Classes ***/
.classes-item {
    transition: .5s;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

.classes-item:hover {
    margin-top: -10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--warning); /* Pop border */
}

.classes-item .bg-light {
    background-color: #f8f9fa !important;
    transition: .5s;
}

.classes-item:hover .bg-light {
    background-color: #fff !important; /* Lighten on hover */
}

.classes-item img {
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/*** Team ***/
.team-item .team-text {
  position: absolute;
  width: 250px;
  height: 250px;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ffffff;
  border: 17px solid var(--light);
  border-radius: 250px;
  transition: 0.5s;
}

.team-item:hover .team-text {
  border-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 2px dashed rgba(86, 130, 96, .3) !important; /* Dashed green border */
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}


/*** Footer - Playful Kindergarten Theme ***/
.footer {
    background: #103741; /* Dark Teal Base */
    color: #fff;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 80px;
    padding-top: 60px;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

/* Double-layer top effect */
.footer::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 20px;
    right: 20px;
    height: 30px;
    background-color: var(--secondary); /* Orange layer */
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    z-index: -1;
    opacity: 0.9;
}

.footer::after {
    content: '';
    position: absolute;
    top: -25px;
    left: 40px;
    right: 40px;
    height: 30px;
    background-color: #4da3ff; /* Lighter Blue layer */
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    z-index: -2;
    opacity: 0.7;
}

.footer h3 {
    font-family: 'Lobster Two', cursive;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--warning);
    border-radius: 2px;
}

.footer .btn.btn-social {
    margin-right: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: .4s;
    background: rgba(255,255,255,0.05);
}

.footer .btn.btn-social:hover {
    transform: translateY(-5px) rotate(10deg);
    background: #fff;
    border-color: #fff;
}

/* Colorful Social Icons on Hover */
.footer .btn.btn-social:nth-child(1):hover { color: var(--primary); }
.footer .btn.btn-social:nth-child(2):hover { color: var(--success); }
.footer .btn.btn-social:nth-child(3):hover { color: var(--warning); }
.footer .btn.btn-social:nth-child(4):hover { color: var(--info); }

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    font-family: 'Heebo', sans-serif;
    color: rgba(255,255,255,0.7);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--secondary);
}

.footer .btn.btn-link:hover {
    color: var(--warning) !important;
    letter-spacing: 1px;
    box-shadow: none;
    padding-left: 5px;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
    border-radius: 50px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--warning) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Cafeteria Schedule Overrides */
.schedule-card {
    border-radius: 25px !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border: 3px solid #fff;
}

.schedule-card .card-header {
    background: linear-gradient(135deg, #fff5f3 0%, #fff 100%) !important;
    border-bottom: 2px dashed #ffe0d6 !important;
}

.schedule-table thead th {
    background-color: #f0f8ff !important;
    color: var(--primary) !important;
    font-family: 'Lobster Two', cursive;
    font-size: 1.1rem;
}

.badge-soft-warning {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba;
}

.badge-soft-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb;
}

/*** Text utilities override ***/
.text-primary {
  color: #d4af37 !important;
}

/* WHY CHOOSE KETI - custom styles */
.why-keti-section {
  background: linear-gradient(
    135deg,
    rgba(86, 130, 96, 0.06) 0%,
    rgba(212, 175, 55, 0.03) 50%,
    rgba(0, 51, 102, 0.02) 100%
  );
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.why-keti-section .container {
  position: relative;
}
.why-keti-section h1,
.why-keti-section h2,
.why-keti-section h3 {
  color: var(--dark);
}
.features-list {
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.features-list .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(16, 55, 65, 0.035);
}
.features-list .feature-item i {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(var(--bs-success-rgb), 0.1),
    rgba(var(--bs-primary-rgb), 0.04)
  );
  color: var(--bs-warning);
  font-size: 14px;
}
.why-keti-section .col-lg-7 p {
  line-height: 1.7;
  color: #334e3f;
}
.why-keti-section .col-lg-7 ul {
  list-style: none;
  padding-left: 0;
}
.why-keti-section .col-lg-7 ul li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

@media (max-width: 991.98px) {
  .features-list .feature-item {
    padding: 0.6rem;
  }
}

@media (min-width: 768px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reduce congestion in right column */
.why-keti-section .col-lg-7 {
  padding-left: 2rem;
}
.why-keti-section .col-lg-7 > * {
  margin-bottom: 1rem;
}
.why-keti-section h2 {
  margin-top: 0.25rem;
}
.why-keti-section h3 {
  margin-top: 0.75rem;
}

/* Slightly reduce text weight and increase leading for readability */
.why-keti-section p,
.why-keti-section li span,
.why-keti-section .col-lg-7 ul li {
  line-height: 1.7;
  color: #2f4b3f;
}

/* Right column cards and student life */
.why-right .why-card {
  border-left: 6px solid rgba(var(--bs-success-rgb), 0.12);
}
.dept-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(16, 55, 65, 0.06);
}
.dept-icon {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.student-life-list .sl-item {
  align-items: flex-start;
}
.student-life-list .sl-icon {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .why-keti-section .col-lg-7 {
    padding-left: 0;
  }
}

/* Student Life & Values - Kindergarten Theme */
.life-card {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.life-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.life-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
    color: #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.life-card:hover .life-icon {
    transform: rotate(360deg) scale(1.1);
}

.life-card h5 {
    font-family: 'Lobster Two', cursive;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.life-card p {
    font-size: 0.95rem;
    color: #556b60;
    margin-bottom: 0;
}

/* Varied colors for cards */
.col-lg-4:nth-child(1) .life-card { border-color: #ffc107; }
.col-lg-4:nth-child(1) .life-icon { background: #ffc107; }

.col-lg-4:nth-child(2) .life-card { border-color: #568260; }
.col-lg-4:nth-child(2) .life-icon { background: #568260; }

.col-lg-4:nth-child(3) .life-card { border-color: #0dcaf0; }
.col-lg-4:nth-child(3) .life-icon { background: #0dcaf0; }

.col-lg-4:nth-child(4) .life-card { border-color: #003366; }
.col-lg-4:nth-child(4) .life-icon { background: #003366; }

.col-lg-4:nth-child(5) .life-card { border-color: #fe5d37; }
.col-lg-4:nth-child(5) .life-icon { background: #fe5d37; }

/* Circular department card used by Academic Departments section (Legacy/Secondary) */
.dept-card {
    transition: transform .25s ease, box-shadow .25s ease;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    border: 1px solid rgba(16,55,65,0.04);
    padding-top: 36px; /* space for badge */
}
.dept-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(16,55,65,0.08); }

.dept-badge {
    width: 84px;
    height: 84px;
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(16,55,65,0.08);
}

.dept-card h5 { font-size: 1.05rem; font-weight: 700; color: #163b2f; }
.dept-card p { color: #556b60; }

@media (max-width: 992px) {
    .dept-badge { width: 70px; height: 70px; top: -35px; }
}

@media (max-width: 576px) {
    .dept-badge { width: 60px; height: 60px; top: -30px; }
    .dept-card h5 { font-size: 1rem; }
    .dept-card p { font-size: .85rem; }
}


/* Academic Overview - Kindergarten Theme */
.academic-overview-card {
    background: #fff;
    border-radius: 40px;
    padding: 50px;
    position: relative;
    border: 4px dashed rgba(0, 51, 102, 0.1); /* Playful dashed border */
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    overflow: hidden;
}

.academic-overview-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 193, 7, 0.1); /* Yellow blob */
    border-radius: 50%;
    z-index: 0;
}

.academic-overview-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(86, 130, 96, 0.1); /* Green blob */
    border-radius: 50%;
    z-index: 0;
}

.academic-overview-card h2 {
    color: var(--primary);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.academic-overview-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    position: relative;
    z-index: 1;
}

.overview-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: rgba(0, 51, 102, 0.05); /* Faint background icon */
    transform: rotate(15deg);
}


/* =========================================
   Kindergarten Theme Styles (Primary Section)
   ========================================= */

.kindergarten-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
    border: 3px solid transparent;
    border-radius: 25px;
    padding-top: 50px; /* space for badge */
    position: relative;
    overflow: visible !important; /* Allow badge to pop out */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Varied border colors for a playful look */
.col-lg-3:nth-child(1) .kindergarten-card { border-color: #568260; } /* Success/Green */
.col-lg-3:nth-child(2) .kindergarten-card { border-color: #003366; } /* Primary/Blue */
.col-lg-3:nth-child(3) .kindergarten-card { border-color: #0dcaf0; } /* Info/Cyan */
.col-lg-3:nth-child(4) .kindergarten-card { border-color: #ffc107; } /* Warning/Yellow */

.kindergarten-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.kindergarten-badge {
    width: 90px;
    height: 90px;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 4px solid #fff;
    transition: all 0.4s ease;
    z-index: 10;
}

.kindergarten-card:hover .kindergarten-badge {
    transform: translateX(-50%) rotate(15deg) scale(1.1);
}

.kindergarten-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #103741;
    margin-top: 15px;
    font-family: 'Lobster Two', cursive; /* Playful font */
}

.kindergarten-card p {
    color: #556b60;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .kindergarten-badge { width: 80px; height: 80px; top: -40px; }
}

@media (max-width: 576px) {
    .kindergarten-badge { width: 70px; height: 70px; top: -35px; }
    .kindergarten-card h5 { font-size: 1.1rem; }
    .kindergarten-card p { font-size: .9rem; }
}

/* Floating animation for cards */
@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Apply float animation with different delays for a wave effect */
.col-lg-3:nth-child(1) .kindergarten-card { animation: floatCard 4s ease-in-out infinite 0s; }
.col-lg-3:nth-child(2) .kindergarten-card { animation: floatCard 4s ease-in-out infinite 1s; }
.col-lg-3:nth-child(3) .kindergarten-card { animation: floatCard 4s ease-in-out infinite 2s; }
.col-lg-3:nth-child(4) .kindergarten-card { animation: floatCard 4s ease-in-out infinite 3s; }

/* Pause animation on hover to not conflict with hover transform */
.kindergarten-card:hover {
    animation-play-state: paused;
}

/* Small decorative accent for section */
.why-keti-accent {
  position: absolute;
  right: -40px;
  top: -10px;
  width: 120px;
  height: 120px;
  background: rgba(212, 175, 55, 0.07);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* About KETI Academy - Kindergarten Theme */
.about-keti-card {
    background: #fff;
    border-radius: 50px 20px 50px 20px; /* Asymmetrical playful shape */
    padding: 50px;
    position: relative;
    border: 3px solid rgba(254, 93, 55, 0.1); /* Secondary color border */
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

.about-keti-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: rgba(254, 93, 55, 0.05); /* Orange blob */
    border-radius: 50%;
    z-index: 0;
}

.about-keti-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(0, 51, 102, 0.05); /* Blue blob */
    border-radius: 50%;
    z-index: 0;
}

.about-keti-card h1 {
    color: var(--dark);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.about-keti-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.about-keti-card .btn {
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(254, 93, 55, 0.3);
}

.about-keti-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(254, 93, 55, 0.4);
}

.about-decoration-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 60px;
    color: rgba(254, 93, 55, 0.1);
    transform: rotate(20deg);
    z-index: 0;
}
/* Programs Section Refinements - Kindergarten Theme */
.program-card {
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.program-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.program-card.border-primary { border-color: var(--primary) !important; }
.program-card.border-success { border-color: var(--success) !important; }
.program-card.border-warning { border-color: var(--warning) !important; }
.program-card.border-info { border-color: var(--info) !important; }

.program-img-container {
    width: 160px; /* Smaller image size */
    height: 160px;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid; /* Colorful border around image */
}

.program-card.border-primary .program-img-container { border-color: var(--primary); }
.program-card.border-success .program-img-container { border-color: var(--success); }
.program-card.border-warning .program-img-container { border-color: var(--warning); }
.program-card.border-info .program-img-container { border-color: var(--info); }

.program-card .card-body-custom {
    padding: 2rem;
    padding-top: 4rem;
    margin-top: -80px; /* Overlap */
    background: #f8f9fa;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.program-card:hover .card-body-custom {
    background: #fff;
}

.program-card h3 {
    font-family: 'Lobster Two', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.program-card .program-detail-box {
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    padding: 10px;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.program-card:hover .program-detail-box {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}


/* Community Section Redesign - Vibrant Theme */
.community-card {
    border-radius: 30px;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s ease;
    border: none; /* No border needed for solid background */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.community-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Student Card - Blue Theme */
.card-student {
    background: var(--primary);
    color: #ffffff;
}
.card-student .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.card-student .counter,
.card-student h5 {
    color: #ffffff;
}

/* Teacher Card - Green Theme */
.card-teacher {
    background: var(--success);
    color: #ffffff;
}
.card-teacher .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.card-teacher .counter,
.card-teacher h5 {
    color: #ffffff;
}

/* Management Card - Orange Theme */
.card-management {
    background: var(--secondary);
    color: #ffffff;
}
.card-management .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.card-management .counter,
.card-management h5 {
    color: #ffffff;
}

.community-card .icon-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    transition: 0.4s;
    border: 2px solid rgba(255,255,255,0.3);
}

.community-card:hover .icon-box {
    transform: scale(1.1) rotate(10deg);
    background: #ffffff;
}

/* Change icon color on hover to match card bg */
.card-student:hover .icon-box { color: var(--primary); }
.card-teacher:hover .icon-box { color: var(--success); }
.card-management:hover .icon-box { color: var(--secondary); }

.community-card h5 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.community-card .counter {
    font-family: 'Lobster Two', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}


/* Testimonial Section Redesign - Enhanced Kindergarten Theme */
.testimonial-card {
    background: #fff;
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    border: 3px solid transparent; /* Base for colorful borders */
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 15px;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Alternating Colorful Borders & Accents */
.owl-item:nth-child(4n+1) .testimonial-card { border-color: var(--primary); }
.owl-item:nth-child(4n+2) .testimonial-card { border-color: var(--success); }
.owl-item:nth-child(4n+3) .testimonial-card { border-color: var(--warning); }
.owl-item:nth-child(4n+4) .testimonial-card { border-color: var(--info); }

.testimonial-card p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card .parent-info {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 50px;
    margin-top: 1rem;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Colorful backgrounds for parent info on hover */
.owl-item:nth-child(4n+1) .testimonial-card:hover .parent-info { background: rgba(0, 51, 102, 0.05); }
.owl-item:nth-child(4n+2) .testimonial-card:hover .parent-info { background: rgba(86, 130, 96, 0.05); }
.owl-item:nth-child(4n+3) .testimonial-card:hover .parent-info { background: rgba(255, 193, 7, 0.05); }
.owl-item:nth-child(4n+4) .testimonial-card:hover .parent-info { background: rgba(13, 202, 240, 0.05); }

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-right: 15px;
    object-fit: cover; /* Ensures image is not distorted */
}

/* Colorful borders for images */
.owl-item:nth-child(4n+1) .testimonial-card img { border-color: var(--primary); }
.owl-item:nth-child(4n+2) .testimonial-card img { border-color: var(--success); }
.owl-item:nth-child(4n+3) .testimonial-card img { border-color: var(--warning); }
.owl-item:nth-child(4n+4) .testimonial-card img { border-color: var(--info); }

.testimonial-card h3 {
    font-family: 'Lobster Two', cursive;
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--dark);
}

.testimonial-card span {
    font-size: 0.9rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: rgba(0,0,0,0.03);
    z-index: 0;
    transition: 0.3s;
}

.testimonial-card:hover .quote-icon {
    transform: scale(1.1);
    color: rgba(0,0,0,0.06);
}




/* Founder Message Section - Kindergarten Theme */
.founder-card {
    background: #fff;
    border-radius: 20px 50px 20px 50px; /* Asymmetrical playful shape */
    padding: 50px;
    position: relative;
    border: 3px solid rgba(16, 55, 65, 0.1); /* Dark Teal border */
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(13, 202, 240, 0.08); /* Info/Blue blob */
    border-radius: 50%;
    z-index: 0;
}

.founder-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 193, 7, 0.08); /* Yellow blob */
    border-radius: 50%;
    z-index: 0;
}

.founder-card h1 {
    color: var(--dark);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
    font-family: 'Lobster Two', cursive;
}

.founder-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    position: relative;
    z-index: 1;
}

.founder-img-container {
    position: relative;
    z-index: 1;
    padding: 15px;
    background: #fff;
    border-radius: 50%;
    border: 4px dashed var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.founder-img-container:hover {
    transform: rotate(5deg) scale(1.02);
}

.founder-signature {
    font-family: 'Lobster Two', cursive;
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
}
