/*-----------------------------------------
   Dayanand Arya Vedic Public School, Godda
   Custom Color Theme Overrides
   Colors: Gold (#DCAE1D), Light Mint (#CAE4DB), Dark Teal (#00303F), Sage (#7A9D96)
-----------------------------------------*/

:root {
  /* User-defined colors */
  --color-gold: #DCAE1D;
  --color-light-mint: #CAE4DB;
  --color-dark-teal: #00303F;
  --color-sage: #7A9D96;

  /* Body background & base typography */
  --rs-white: #FFFFFF;
  --rs-black: #000000;

  /* Redefining template theme variables */
  --rs-theme-blue: var(--color-dark-teal);
  --rs-theme-blue-two: #00222D;
  /* Darker teal shade for header/footers */
  --rs-theme-red: var(--color-gold);
  --rs-theme-red-two: #C19614;
  /* Hover state gold */

  --rs-theme-cyan: var(--color-sage);
  --rs-theme-light-cyan: #99BBB4;
  --rs-theme-green: var(--color-sage);
  --rs-theme-green-two: #568178;

  /* Background values */
  --rs-bg-primary: var(--color-light-mint);
  /* Mint skin background */
  --rs-bg-secondary: #E5F3EE;
  /* Subtle green-mint tint */
  --rs-bg-dark-blue: #00222D;

  /* Typography colors */
  --rs-text-primary: #2C3E42;
  /* Dark slate-teal text for high contrast */
  --rs-text-secondary: #5A7377;
  --rs-title-primary: #00202A;
  /* Slate-teal for headings */
  --rs-title-secondary: var(--color-dark-teal);
  --rs-title-tertiary: #00202A;
}

/* Base Body Styles */
body {
  background-color: #F3FAF8 !important;
  /* Soft mint skin body background */
  color: var(--rs-text-primary) !important;
}

/* Header & Navigation Overrides */
.header-wrapper,
#rs-sticky-header,
.rs-header-area .header-wrapper {
  background-image: linear-gradient(-90deg, var(--color-dark-teal) 0%, #001E27 100%) !important;
}

/* Replace inline blue/purple gradients */
[style*="background-image:-webkit-linear-gradient(-90deg, #0b4383"],
[style*="background-image: -webkit-linear-gradient(-90deg, #0b4383"],
[style*="background-image:-webkit-linear-gradient(-90deg, #1575e3"],
[style*="background-image: -webkit-linear-gradient(-90deg, #1575e3"] {
  background-image: linear-gradient(-90deg, var(--color-dark-teal) 0%, #001E27 100%) !important;
}

/* Heading Typography Overrides (Dark teal headings) */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  color: var(--color-dark-teal) !important;
  font-family: "Bitter", serif;
}

/* Ensure Breadcrumb Headings are White against dark background */
.rs-breadcrumbs h1 {
  color: var(--rs-white) !important;
}

.is-white,
.is-white * {
  color: var(--rs-white) !important;
}

/* Primary buttons (Gold text contrast styling) */
.rs-btn.has-theme-red {
  background: var(--color-gold) !important;
  color: var(--rs-title-primary) !important;
  border-color: var(--color-gold) !important;
  font-weight: 700;
}

.rs-btn.has-theme-red:hover {
  background: var(--color-dark-teal) !important;
  color: var(--rs-white) !important;
  border-color: var(--color-dark-teal) !important;
}

.rs-btn.has-theme-red.has-icon .icon-box svg path {
  fill: var(--rs-title-primary) !important;
}

.rs-btn.has-theme-red:hover.has-icon .icon-box svg path {
  fill: var(--rs-white) !important;
}

/* Subtitle Highlights */
.section-subtitle.has-theme-red {
  color: var(--color-gold) !important;
}

.section-subtitle.has-theme-red svg path {
  fill: var(--color-gold) !important;
}

/* Page Section Backgrounds */
.bg-primary {
  background-color: var(--color-light-mint) !important;
}

.bg-secondary {
  background-color: #E5F3EE !important;
}

/* Form Styles (Unrolling Paper Scroll Animation) */
.rs-contact-form-wrapper {
  background: linear-gradient(to bottom, #fffdfa 0%, #fefcf5 50%, #faf6ea 100%) !important;
  border-radius: 6px !important;
  border-left: 4px double #dcae1d !important;
  border-right: 4px double #dcae1d !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 50px 40px !important;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.12), inset 0 20px 20px -20px rgba(0, 0, 0, 0.05) !important;
  position: relative !important;
  overflow: visible !important;
  /* Visible for spindle overhang */

  /* Progressive Enhancement: Form is fully visible by default */
  transform: none !important;
  opacity: 1 !important;
  clip-path: none !important;
}

/* Rolled state applied immediately by JS on load */
.rs-contact-form-wrapper.is-rolled {
  transform-origin: top center !important;
  transform: perspective(1200px) rotateX(-38deg) scaleY(0.01) !important;
  opacity: 0 !important;
  clip-path: inset(0 0 99% 0) !important;
  transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1), clip-path 1.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

/* Unrolled state class triggered by IntersectionObserver */
.rs-contact-form-wrapper.is-rolled.is-unrolled {
  transform: perspective(1200px) rotateX(0deg) scaleY(1) !important;
  opacity: 1 !important;
  clip-path: inset(0 0 0% 0) !important;
}

/* Rolled paper top cylinder cap */
.rs-contact-form-wrapper::before {
  content: "" !important;
  position: absolute !important;
  left: -15px !important;
  right: -15px !important;
  height: 20px !important;
  background: linear-gradient(to bottom, #ffffff 0%, #e8dec2 60%, #bca574 100%) !important;
  border: 1px solid #9c8453 !important;
  border-radius: 10px !important;
  top: -10px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  z-index: 98 !important;
  pointer-events: none !important;
}

/* Bottom unrolling spindle bar */
.rs-contact-form-wrapper::after {
  content: "" !important;
  position: absolute !important;
  left: -15px !important;
  right: -15px !important;
  height: 20px !important;
  background: linear-gradient(to bottom, #dcae1d 0%, #a3790e 50%, #dcae1d 100%) !important;
  border: 1px solid #7c5c07 !important;
  border-radius: 10px !important;
  bottom: -10px !important;
  /* Default fully unrolled position */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
  z-index: 99 !important;
  pointer-events: none !important;
}

.rs-contact-form-wrapper.is-rolled::after {
  bottom: calc(100% - 10px) !important;
  /* Start at top when rolled */
  transition: bottom 1.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

/* Bottom spindle position when unrolled */
.rs-contact-form-wrapper.is-rolled.is-unrolled::after {
  bottom: -10px !important;
}

/* Input boxes & fields styling */
.rs-contact-input input,
.rs-contact-input textarea {
  border: 1px solid rgba(0, 48, 63, 0.12) !important;
  border-bottom: 3px solid rgba(0, 48, 63, 0.15) !important;
  background-color: #ffffff !important;
  color: var(--color-dark-teal) !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01) !important;
}

.rs-contact-input input:hover,
.rs-contact-input textarea:hover {
  border-color: rgba(220, 174, 29, 0.4) !important;
  border-bottom-color: #dcae1d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(220, 174, 29, 0.08) !important;
  background-color: #ffffff !important;
}

.rs-contact-input input:focus,
.rs-contact-input textarea:focus {
  border-color: #00303f !important;
  border-bottom-color: #dcae1d !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 48, 63, 0.08) !important;
  transform: translateY(-3px) !important;
  outline: none !important;
}

.rs-contact-input input::placeholder,
.rs-contact-input textarea::placeholder {
  color: #8fa6ad !important;
  font-weight: 400 !important;
  transition: color 0.3s ease !important;
}

.rs-contact-input input:focus::placeholder,
.rs-contact-input textarea:focus::placeholder {
  color: rgba(0, 48, 63, 0.3) !important;
}

/* Submit Button */
.rs-contact-btn button[type="submit"] {
  background: linear-gradient(135deg, #00303f 0%, #004a61 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 16px 30px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 48, 63, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  cursor: pointer !important;
}

.rs-contact-btn button[type="submit"]:hover {
  background: linear-gradient(135deg, #dcae1d 0%, #c49614 100%) !important;
  box-shadow: 0 15px 35px rgba(220, 174, 29, 0.45) !important;
  transform: translateY(-4px) scale(1.01) !important;
  color: #ffffff !important;
  letter-spacing: 2.5px !important;
  border-radius: 14px !important;
}

.rs-contact-btn button[type="submit"]:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 15px rgba(220, 174, 29, 0.3) !important;
}

/* Odometer & Stats Section (Make numbers dark teal and gold) */
.rs-funfact-item .rs-funfact-number {
  color: var(--color-dark-teal) !important;
}

.rs-funfact-item .rs-funfact-title {
  color: var(--color-sage) !important;
}

/* Selection Cursor Overrides */
#cursor-ball {
  border: 2px solid var(--color-gold) !important;
  box-shadow: 
    0 0 10px var(--color-gold), 
    0 0 20px rgba(255, 186, 0, 0.4), 
    inset 0 0 8px var(--color-gold) !important;
  background-color: rgba(255, 186, 0, 0.05) !important;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
}

#cursor-ball::after {
  background: var(--color-gold) !important;
  box-shadow: 
    0 0 8px var(--color-gold), 
    0 0 16px var(--color-gold) !important;
  width: 5px !important;
  height: 5px !important;
}

.cursor-hover #cursor-ball {
  background-color: var(--color-gold) !important;
  box-shadow: 
    0 0 20px var(--color-gold), 
    0 0 40px var(--color-gold) !important;
}

/* Back-to-Top Button */
.rs-backtotop.has-theme-red {
  background: var(--color-gold) !important;
}

.rs-backtotop.has-theme-red svg.arrowicon path {
  fill: var(--rs-title-primary) !important;
}

.rs-backtotop.has-theme-red svg.scrollprogress circle {
  stroke: var(--color-dark-teal) !important;
}

/* Mobile responsive navigation overrides (MeanMenu) */
.mean-container .mean-bar {
  background: var(--color-dark-teal) !important;
}

.mean-container .mean-nav {
  background: var(--color-dark-teal) !important;
}

.mean-container .mean-nav ul li a {
  color: var(--rs-white) !important;
}

.mean-container .mean-nav ul li a:hover {
  color: var(--color-gold) !important;
}

.mean-container .mean-nav ul li a.mean-expand {
  background: rgba(255, 255, 255, 0.08) !important;
}

.mean-container .mean-nav ul li a.mean-expand:hover {
  background: var(--color-gold) !important;
  color: var(--rs-title-primary) !important;
}

/* Footer Section styling */
.rs-footer-area {
  background-color: #001D27 !important;
}

.rs-footer-area .rs-footer-widget-title {
  color: var(--color-gold) !important;
}

.rs-footer-area p,
.rs-footer-area span,
.rs-footer-area a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.rs-footer-area a:hover {
  color: var(--color-gold) !important;
}

.rs-footer-widget-social .theme-social a {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.rs-footer-widget-social .theme-social a:hover {
  background-color: var(--color-gold) !important;
}

.rs-footer-widget-social .theme-social a:hover svg path,
.rs-footer-widget-social .theme-social a:hover i {
  fill: var(--rs-title-primary) !important;
  color: var(--rs-title-primary) !important;
}

.rs-footer-copyright-area {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Program Card & List Details */
.rs-program-content {
  background-color: var(--color-dark-teal) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.rs-program-content .rs-program-title a {
  color: var(--color-gold) !important;
}

.rs-program-content .rs-program-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}

.rs-program-list-item p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.rs-program-list-icon svg path {
  fill: var(--color-gold) !important;
}

/* Container for phone/email top line */
.header-top-contact-shine {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 4px 0;
}

.header-top-contact-shine a {
  color: var(--rs-white) !important;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-top-contact-shine .shine-sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: normal;
}

/* Full top-bar diagonal silver shine effect */
.rs-header-top.rs-header-top-one {
  position: relative !important;
  overflow: hidden !important;
}

.rs-header-top.rs-header-top-one::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(224, 224, 224, 0.25) 20%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(224, 224, 224, 0.25) 80%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-30deg);
  z-index: 100;
  pointer-events: none;
  /* Crucial: clicks pass through to login buttons */
  animation: full-silver-shine 8s infinite ease-in-out;
}

@keyframes full-silver-shine {
  0% {
    left: -150%;
  }

  85% {
    /* Glides extremely slowly over 6.8 seconds */
    left: 150%;
  }

  100% {
    /* Pauses for 1.2 seconds offscreen */
    left: 150%;
  }
}

/* Align logo and style it nicely */
.header-logo {
  display: flex !important;
  align-items: center !important;
}

/* School banner logo */
.header-logo img[src="img/logo.jpeg"],
.rs-footer-widget-logo img[src="img/logo.jpeg"] {
  max-height: 80px !important;
  width: auto !important;
  object-fit: contain;
  border-radius: 4px;
  background-color: #ffffff !important;
  padding: 4px;
  margin: 2px 0 !important;
  /* 2px top and bottom margin */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease;
}

.header-logo img[src="img/logo.jpeg"]:hover {
  transform: scale(1.02);
}

/* Scale down the logo in the sticky header for a compact scroll experience */
.rs-sticky-header .header-logo img[src="img/logo.jpeg"] {
  max-height: 55px !important;
}

/* Mobile responsive scaling */
@media only screen and (max-width: 575px) {
  .header-logo img[src="img/logo.jpeg"] {
    max-height: 48px !important;
  }
}

/* Styling for nested submenus (flyouts) inside "More" */
.main-menu .submenu li {
  position: relative !important;
}

/* Initially hide nested submenu */
.main-menu .submenu li>ul {
  position: absolute !important;
  left: 100% !important;
  top: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: all 0.3s ease-in-out !important;
  background-color: #00303f !important;
  /* Premium Dark Teal background */
  width: 240px !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  padding: 10px 0 !important;
  z-index: 1000 !important;
}

/* Show nested submenu on hover */
.main-menu .submenu li:hover>ul {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scaleX(1) !important;
  pointer-events: all !important;
}

/* Style links inside nested submenu */
.main-menu .submenu li>ul li a {
  color: #ffffff !important;
  font-size: 13px !important;
  padding: 8px 20px !important;
  transition: all 0.2s ease-in-out !important;
  text-transform: capitalize !important;
}

.main-menu .submenu li>ul li a:hover {
  background-color: #dcae1d !important;
  /* Accent Gold */
  color: #00303f !important;
  /* Dark Teal text */
  padding-left: 25px !important;
}

/* Arrow indicator for items that have nested submenus */
.main-menu .submenu .menu-item-has-children>a::after {
  content: "\f105" !important;
  /* FontAwesome right angle chevron */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  float: right !important;
  margin-top: 3px !important;
  font-size: 12px !important;
  transition: transform 0.2s ease !important;
}

/* Force Submenu High Z-Index and fix clickability */
.main-menu .submenu {
  z-index: 99999 !important;
}

.main-menu ul li:hover > .submenu,
.main-menu ul.multipage-menu > li:hover > ul.submenu,
.main-menu .submenu li:hover > ul {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Animated sliding underline & water droplet ripple for main top-level menu items */
.main-menu ul.multipage-menu>li {
  position: relative !important;
}

.main-menu ul.multipage-menu>li>a {
  position: relative !important;
  display: inline-block !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  z-index: 1 !important;
}

/* Water droplet ripple / wavy background effect on hover */
.main-menu ul.multipage-menu>li>a::before {
  content: "" !important;
  position: absolute !important;
  width: 40px !important;
  height: 40px !important;
  top: 50% !important;
  left: 50% !important;
  background: radial-gradient(circle, rgba(220, 174, 29, 0.25) 0%, rgba(220, 174, 29, 0) 70%) !important;
  border: 1px solid rgba(220, 174, 29, 0.5) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) scale(0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  transform-origin: center !important;
}

.main-menu ul.multipage-menu>li:hover>a::before {
  animation: water-droplet-wavy 1.2s ease-in-out infinite alternate !important;
}

@keyframes water-droplet-wavy {
  0% {
    transform: translate(-50%, -50%) scale(0.6) !important;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55% !important;
    /* Wavy droplet shape */
    opacity: 0.8 !important;
  }

  50% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40% !important;
    transform: translate(-50%, -50%) scale(1.1) rotate(45deg) !important;
    opacity: 0.5 !important;
  }

  100% {
    border-radius: 50% !important;
    transform: translate(-50%, -50%) scale(1.6) rotate(90deg) !important;
    opacity: 0 !important;
  }
}

.main-menu ul.multipage-menu>li>a::after {
  content: "" !important;
  position: absolute !important;
  width: 0 !important;
  height: 2px !important;
  bottom: 25px !important;
  left: 50% !important;
  background-color: #dcae1d !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  transform: translateX(-50%) !important;
}

.main-menu ul.multipage-menu>li:hover>a::after,
.main-menu ul.multipage-menu>li.active>a::after {
  width: 70% !important;
}

.main-menu ul.multipage-menu>li:hover>a {
  color: #dcae1d !important;
  transform: translateY(-2px) !important;
}

/* About Section Overlapping Thumbs & Centered Badge (2 Image Style) */
.rs-about-two .rs-about-thumb-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 550px !important;
  margin: 0 auto !important;
  aspect-ratio: 550 / 580 !important;
  display: block !important;
}

.rs-about-two .rs-about-thumb-wrapper .rs-about-thumb {
  position: absolute !important;
  width: 73% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 40px !important;
  border: 10px solid #ffffff !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  animation: none !important;
  transition: all 0.4s ease !important;
}

/* First/Top Image */
.rs-about-two .rs-about-thumb-wrapper .rs-about-thumb:nth-child(1) {
  top: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
}

/* Second/Bottom Image */
.rs-about-two .rs-about-thumb-wrapper .rs-about-thumb:nth-child(2) {
  bottom: 0 !important;
  right: 0 !important;
  z-index: 2 !important;
}

.rs-about-two .rs-about-thumb-wrapper .rs-about-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 30px !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.25, 1) !important;
}

.rs-about-two .rs-about-thumb-wrapper .rs-about-thumb:hover img {
  transform: scale(1.08) !important;
}

.rs-about-two .rs-about-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  width: 150px !important;
  height: 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #dcae1d !important;
  border-radius: 50% !important;
  border: 8px solid #ffffff !important;
  box-shadow: 0 10px 30px rgba(220, 174, 29, 0.5) !important;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  overflow: visible !important;
}

.rs-about-two .rs-about-badge img {
  width: 90px !important;
  height: 90px !important;
  object-fit: contain !important;
  z-index: 2 !important;
  transition: transform 0.5s ease !important;
}

/* Watery wavy ripple animation on hover */
.rs-about-two .rs-about-badge::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(220, 174, 29, 0.3) !important;
  border-radius: 50% !important;
  z-index: 1 !important;
  transition: all 0.5s ease !important;
}

.rs-about-two .rs-about-badge:hover {
  box-shadow: 0 12px 35px rgba(220, 174, 29, 0.7) !important;
  animation: watery-blob 3s ease-in-out infinite alternate !important;
}

.rs-about-two .rs-about-badge:hover img {
  transform: scale(1.1) rotate(5deg) !important;
}

/* Outer watery wave rings on hover */
.rs-about-badge:hover::before {
  animation: watery-wave-ring 2s linear infinite !important;
}

@keyframes watery-blob {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55% !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
  }

  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40% !important;
    transform: translate(-50%, -50%) rotate(10deg) scale(1.05) !important;
  }

  66% {
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50% !important;
    transform: translate(-50%, -50%) rotate(-10deg) scale(0.98) !important;
  }

  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55% !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
  }
}

@keyframes watery-wave-ring {
  0% {
    transform: scale(1) !important;
    opacity: 1 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(220, 174, 29, 0.8) !important;
  }

  100% {
    transform: scale(1.6) !important;
    opacity: 0 !important;
    border-radius: 50% !important;
    border: 3px solid rgba(220, 174, 29, 0.1) !important;
  }
}

/* Sketchy background shapes styling */
.sketchy-shape {
  position: absolute !important;
  opacity: 0.12 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: all 0.5s ease-in-out !important;
}

.sketchy-shape svg {
  width: 90px !important;
  height: 90px !important;
  stroke: var(--color-dark-teal) !important;
  stroke-width: 1.5 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.sketchy-shape.shape-book {
  top: 15% !important;
  left: 5% !important;
  animation: float-wavy-1 14s ease-in-out infinite !important;
}

.sketchy-shape.shape-idea {
  bottom: 12% !important;
  left: 8% !important;
  animation: float-wavy-2 16s ease-in-out infinite !important;
}

.sketchy-shape.shape-pencil {
  top: 18% !important;
  right: 5% !important;
  animation: float-wavy-1 15s ease-in-out infinite !important;
  animation-delay: -3s !important;
  /* Offset phase */
}

.sketchy-shape.shape-cap {
  bottom: 15% !important;
  right: 8% !important;
  animation: float-wavy-2 18s ease-in-out infinite !important;
  animation-delay: -5s !important;
  /* Offset phase */
}

@keyframes float-wavy-1 {
  0% {
    transform: translate(0, 0) rotate(0deg) !important;
  }

  25% {
    transform: translate(12px, -20px) rotate(4deg) !important;
  }

  50% {
    transform: translate(-8px, -35px) rotate(-3deg) !important;
  }

  75% {
    transform: translate(-18px, -15px) rotate(2deg) !important;
  }

  100% {
    transform: translate(0, 0) rotate(0deg) !important;
  }
}

@keyframes float-wavy-2 {
  0% {
    transform: translate(0, 0) rotate(0deg) !important;
  }

  33% {
    transform: translate(-15px, -25px) rotate(-5deg) !important;
  }

  66% {
    transform: translate(12px, -15px) rotate(4deg) !important;
  }

  100% {
    transform: translate(0, 0) rotate(0deg) !important;
  }
}

/* ==========================================================================
   Overlapping Fun Fact Strip Styles
   ========================================================================== */
.rs-funfact-overlap {
  position: relative !important;
  z-index: 99 !important;
  margin-top: -95px !important;
  margin-bottom: -45px !important;
  padding: 0 !important;
  background-color: transparent !important;
}

.rs-funfact-overlap .rs-funfact-wrapper {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.4), 0 10px 30px rgba(0, 48, 63, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  padding: 35px 30px !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  align-items: center !important;
  overflow: visible !important;
}

@media (max-width: 991px) {
  .rs-funfact-overlap {
    margin-top: -60px !important;
    margin-bottom: -30px !important;
  }

  .rs-funfact-overlap .rs-funfact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 30px 20px !important;
  }
}

.rs-funfact-overlap .rs-funfact-item {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 15px 20px !important;
  border-radius: 12px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.rs-funfact-overlap .rs-funfact-item:hover {
  transform: translateY(-5px) !important;
  background: rgba(220, 174, 29, 0.05) !important;
  border-color: rgba(220, 174, 29, 0.15) !important;
}

/* Styled Gold Card for the Highlighted Middle "Top 10" item */
.rs-funfact-overlap .rs-funfact-item.has-theme-red {
  background: linear-gradient(135deg, #dcae1d 0%, #c49614 100%) !important;
  border: 1px solid #dcae1d !important;
  box-shadow: 0 10px 25px rgba(220, 174, 29, 0.35) !important;
}

.rs-funfact-overlap .rs-funfact-item.has-theme-red:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 15px 30px rgba(220, 174, 29, 0.45) !important;
}

.rs-funfact-overlap .rs-funfact-icon {
  width: 65px !important;
  height: 65px !important;
  min-width: 65px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(0, 48, 63, 0.06) !important;
  padding: 12px !important;
  transition: all 0.4s ease !important;
}

.rs-funfact-overlap .rs-funfact-item:hover .rs-funfact-icon {
  background: rgba(0, 48, 63, 0.1) !important;
  transform: scale(1.1) rotate(5deg) !important;
}

/* Middle gold card icon style */
.rs-funfact-overlap .rs-funfact-item.has-theme-red .rs-funfact-icon {
  background: rgba(255, 255, 255, 0.2) !important;
}

.rs-funfact-overlap .rs-funfact-item.has-theme-red:hover .rs-funfact-icon {
  background: rgba(255, 255, 255, 0.3) !important;
}

.rs-funfact-overlap .rs-funfact-icon svg {
  width: 100% !important;
  height: 100% !important;
  fill: #00303f !important;
}

.rs-funfact-overlap .rs-funfact-item.has-theme-red .rs-funfact-icon svg {
  fill: #ffffff !important;
}

/* Content styling */
.rs-funfact-overlap .rs-funfact-content {
  flex-grow: 1 !important;
}

.rs-funfact-overlap .rs-funfact-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #00303f !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.2 !important;
}

.rs-funfact-overlap .rs-funfact-item.has-theme-red .rs-funfact-title {
  color: #ffffff !important;
}

.rs-funfact-overlap .rs-funfact-desc {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  color: #556c75 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.rs-funfact-overlap .rs-funfact-item.has-theme-red .rs-funfact-desc {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* White outline modifier for sketchy background shapes in dark/red sections */
.sketchy-shape.is-white-stroke svg {
  stroke: rgba(255, 255, 255, 0.4) !important;
}

/* Faculty Item Image Hover Zoom Animation */
.rs-faculty-five .rs-faculty-thumb img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.25, 1) !important;
}

.rs-faculty-five .rs-faculty-item:hover .rs-faculty-thumb img {
  transform: scale3d(1.08, 1.08, 1) !important;
}

/* Program Section Custom Pinning & Overlapping Styles */
.rs-program-area {
  position: relative !important;
  overflow: hidden !important;
}

/* ==========================================================================
   Team Item Premium Hover & Shine Effects
   ========================================================================== */
.rs-team-item {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.22, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* Diagonal Shine Effect on Circular Image Container (Glow-like line) */
.rs-team-one .rs-team-thumb > a {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}

.rs-team-one .rs-team-thumb > a::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  ) !important;
  transform: skewX(-25deg) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.rs-team-item:hover .rs-team-thumb > a::after {
  left: 150% !important;
  transition: left 2s cubic-bezier(0.25, 1, 0.22, 1) !important;
}

/* Animated circular yellow outline on hover */
.rs-team-one .rs-team-thumb {
  position: relative !important;
}

.rs-team-one .rs-team-thumb::before {
  content: '' !important;
  position: absolute !important;
  top: -6px !important;
  left: -6px !important;
  right: -6px !important;
  bottom: -6px !important;
  border-radius: 50% !important;
  padding: 3px !important;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 186, 0, 0.4) 60%,
    var(--rs-theme-yellow) 80%,
    #ffffff 95%,
    var(--rs-theme-yellow) 100%
  ) !important;
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  filter: drop-shadow(0 0 3px var(--rs-theme-yellow)) !important;
  opacity: 0 !important;
  transform: scale(0.9) rotate(0deg) !important;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.22, 1) !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

.rs-team-item:hover .rs-team-thumb::before {
  opacity: 1 !important;
  transform: scale(1) rotate(360deg) !important;
  animation: outline-spin 1.5s linear infinite !important;
}

@keyframes outline-spin {
  0% {
    transform: scale(1) rotate(0deg) !important;
  }
  100% {
    transform: scale(1) rotate(360deg) !important;
  }
}

/* Sketchy watermark background shapes inside team cards */
.rs-team-item {
  position: relative !important;
}

.rs-team-item .sketchy-shape {
  position: absolute !important;
  width: 60px !important;
  height: 60px !important;
  stroke: rgba(0, 48, 63, 0.04) !important;
  fill: none !important;
  stroke-width: 1.5 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.22, 1) !important;
}

.rs-team-item .shape-book {
  bottom: 20px !important;
  left: 15px !important;
  transform: rotate(-15deg) !important;
}

.rs-team-item .shape-laptop {
  bottom: 20px !important;
  right: 15px !important;
  transform: rotate(15deg) !important;
}

/* Hover effects for sketchy shapes: subtle color glow and gentle float */
.rs-team-item:hover .shape-book {
  transform: translateY(-5px) rotate(-5deg) scale(1.15) !important;
  stroke: rgba(225, 48, 108, 0.08) !important;
}

.rs-team-item:hover .shape-laptop {
  transform: translateY(-5px) rotate(5deg) scale(1.15) !important;
  stroke: rgba(0, 119, 181, 0.08) !important;
}

/* Grey Outline & Position Lift on Hover */
.rs-team-item:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(180, 180, 180, 0.5) !important;
  box-shadow: 0 0 25px 4px rgba(180, 180, 180, 0.25), 0 12px 35px rgba(0, 48, 63, 0.08) !important;
}

/* Image Zoom & Contrast Increase on Hover (Zooming Towards User) */
.rs-team-item .rs-team-thumb img {
  transition: all 0.4s cubic-bezier(0.25, 1, 0.22, 1) !important;
}

.rs-team-item:hover .rs-team-thumb img {
  filter: contrast(1.18) brightness(1.05) !important;
  transform: scale(1.08) !important;
}

/* ==========================================================================
   Social Icons Hover Drop Animation (Drop to bottom, slide back in)
   ========================================================================== */
/* Elevate z-index so the dropdown is not hidden under the card contents */
.rs-team-one .rs-team-social {
  z-index: 99 !important;
}

/* Reset default fly-up positions on hover */
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(2),
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(3),
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(4),
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(5) {
  bottom: 0;
}

/* Base transition & style for social icons */
.rs-team-one .rs-team-social a {
  position: absolute !important;
  bottom: 0; /* No !important here so keyframes can animate it */
  left: 0;   /* No !important here so keyframes can animate it */
  width: 60px !important;
  height: 60px !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: rotate(0deg) scale(0.3) !important;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.22, 1) !important; /* smooth return */
  z-index: 10 !important;
}

.rs-team-one .rs-team-item:hover .rs-team-social a {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Drop and spin animations for each icon, landing below designation */
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(2) {
  animation: ball-drop-1 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(3) {
  animation: ball-drop-2 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.08s;
}
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(4) {
  animation: ball-drop-3 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.16s;
}
.rs-team-one .rs-team-item:hover .rs-team-social a:nth-child(5) {
  animation: ball-drop-4 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.24s;
}

/* Keyframe animations for bouncing and rotating like a falling ball */
@keyframes ball-drop-1 {
  0% {
    bottom: 0;
    left: 0;
    transform: rotate(0deg) scale(0.3);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  75% {
    bottom: -195px; /* hits floor / squash */
    left: -110px;
    transform: rotate(270deg) scale(1.06);
  }
  90% {
    bottom: -180px; /* bounces up */
    left: -110px;
    transform: rotate(315deg) scale(0.97);
  }
  100% {
    bottom: -185px; /* settles */
    left: -110px;
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

@keyframes ball-drop-2 {
  0% {
    bottom: 0;
    left: 0;
    transform: rotate(0deg) scale(0.3);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  75% {
    bottom: -195px;
    left: -38px;
    transform: rotate(270deg) scale(1.06);
  }
  90% {
    bottom: -180px;
    left: -38px;
    transform: rotate(315deg) scale(0.97);
  }
  100% {
    bottom: -185px;
    left: -38px;
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

@keyframes ball-drop-3 {
  0% {
    bottom: 0;
    left: 0;
    transform: rotate(0deg) scale(0.3);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  75% {
    bottom: -195px;
    left: 38px;
    transform: rotate(270deg) scale(1.06);
  }
  90% {
    bottom: -180px;
    left: 38px;
    transform: rotate(315deg) scale(0.97);
  }
  100% {
    bottom: -185px;
    left: 38px;
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

@keyframes ball-drop-4 {
  0% {
    bottom: 0;
    left: 0;
    transform: rotate(0deg) scale(0.3);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  75% {
    bottom: -195px;
    left: 110px;
    transform: rotate(270deg) scale(1.06);
  }
  90% {
    bottom: -180px;
    left: 110px;
    transform: rotate(315deg) scale(0.97);
  }
  100% {
    bottom: -185px;
    left: 110px;
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* Individual Icon Bouncy Ball Rotate on Hover */
.rs-team-one .rs-team-social a i {
  display: inline-block !important;
  font-size: 24px !important;
  transition: all 0.3s ease !important;
}

/* Set specific brand colors by default */
.rs-team-one .rs-team-social a .ri-facebook-fill {
  color: #1877F2 !important;
}
.rs-team-one .rs-team-social a .ri-twitter-x-fill {
  color: #000000 !important;
}
.rs-team-one .rs-team-social a .ri-instagram-line {
  color: #E1306C !important;
}
.rs-team-one .rs-team-social a .ri-linkedin-fill {
  color: #0077B5 !important;
}

/* On hover: fill background with brand color and turn icon white */
.rs-team-one .rs-team-social a:nth-child(2):hover {
  background-color: #1877F2 !important;
  border-color: #1877F2 !important;
}
.rs-team-one .rs-team-social a:nth-child(2):hover i {
  color: #ffffff !important;
}

.rs-team-one .rs-team-social a:nth-child(3):hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
}
.rs-team-one .rs-team-social a:nth-child(3):hover i {
  color: #ffffff !important;
}

.rs-team-one .rs-team-social a:nth-child(4):hover {
  background-color: #E1306C !important;
  border-color: #E1306C !important;
}
.rs-team-one .rs-team-social a:nth-child(4):hover i {
  color: #ffffff !important;
}

.rs-team-one .rs-team-social a:nth-child(5):hover {
  background-color: #0077B5 !important;
  border-color: #0077B5 !important;
}
.rs-team-one .rs-team-social a:nth-child(5):hover i {
  color: #ffffff !important;
}

.rs-team-one .rs-team-social a:hover i {
  animation: bounceRotate 0.8s ease !important;
}

@keyframes bounceRotate {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }
  40% {
    transform: translateY(10px) rotate(180deg);
  }
  60% {
    transform: translateY(-5px) rotate(250deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Falling Stationery Animation Overrides (Program Area Bottom)
--------------------------------------------------------------*/
.rs-program-area {
  position: relative !important;
  overflow: hidden !important;
}

.falling-stationery-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.falling-item {
  position: absolute;
  bottom: 25px; /* rest position slightly offset from the bottom edge */
  width: 60px;
  height: 60px;
  opacity: 0;
  color: #ffffff;
}

.falling-item svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px #ffffff) drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
}

/* Horizontal positioning for desktop */
.falling-item.item-bag { left: 5%; --land-rotation: -10deg; }
.falling-item.item-pencil { left: 13%; --land-rotation: 20deg; }
.falling-item.item-book { left: 21%; --land-rotation: -5deg; }
.falling-item.item-laptop { left: 29%; --land-rotation: 0deg; }
.falling-item.item-ruler { left: 37%; --land-rotation: 30deg; }
.falling-item.item-cap { left: 45%; --land-rotation: -15deg; }
.falling-item.item-palette { left: 53%; --land-rotation: 12deg; }
.falling-item.item-microscope { left: 61%; --land-rotation: -8deg; }
.falling-item.item-globe { left: 69%; --land-rotation: 15deg; }
.falling-item.item-calculator { left: 77%; --land-rotation: -12deg; }
.falling-item.item-clock { left: 85%; --land-rotation: 8deg; }
.falling-item.item-bell { left: 93%; --land-rotation: -22deg; }

/* Triggering animation on observer success */
.animate-falling-stationery .falling-item {
  animation: fall-gravity 1.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Delay staggered effects */
.animate-falling-stationery .falling-item.item-bag { animation-delay: 0.05s; }
.animate-falling-stationery .falling-item.item-pencil { animation-delay: 0.25s; }
.animate-falling-stationery .falling-item.item-book { animation-delay: 0.1s; }
.animate-falling-stationery .falling-item.item-laptop { animation-delay: 0.45s; }
.animate-falling-stationery .falling-item.item-ruler { animation-delay: 0.15s; }
.animate-falling-stationery .falling-item.item-cap { animation-delay: 0.35s; }
.animate-falling-stationery .falling-item.item-palette { animation-delay: 0.2s; }
.animate-falling-stationery .falling-item.item-microscope { animation-delay: 0.5s; }
.animate-falling-stationery .falling-item.item-globe { animation-delay: 0.3s; }
.animate-falling-stationery .falling-item.item-calculator { animation-delay: 0.4s; }
.animate-falling-stationery .falling-item.item-clock { animation-delay: 0.18s; }
.animate-falling-stationery .falling-item.item-bell { animation-delay: 0.55s; }

@keyframes fall-gravity {
  0% {
    transform: translateY(-800px) rotate(-140deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  65% {
    transform: translateY(0) rotate(5deg);
  }
  75% {
    transform: translateY(-50px) rotate(-8deg);
  }
  85% {
    transform: translateY(0) rotate(3deg);
  }
  92% {
    transform: translateY(-15px) rotate(-3deg);
  }
  100% {
    transform: translateY(0) rotate(var(--land-rotation, 0deg));
    opacity: 1;
  }
}

/* Responsive adjustments for mobile/tablets */
@media (max-width: 991px) {
  .falling-item {
    width: 45px;
    height: 45px;
    bottom: 15px;
  }
  
  /* Hide minor elements on tablets to prevent visual clutter */
  .falling-item.item-ruler,
  .falling-item.item-palette,
  .falling-item.item-microscope,
  .falling-item.item-clock {
    display: none !important;
  }
  
  /* Spacing for remaining 8 items on tablet */
  .falling-item.item-bag { left: 5%; }
  .falling-item.item-pencil { left: 18%; }
  .falling-item.item-book { left: 31%; }
  .falling-item.item-laptop { left: 44%; }
  .falling-item.item-cap { left: 57%; }
  .falling-item.item-globe { left: 70%; }
  .falling-item.item-calculator { left: 83%; }
  .falling-item.item-bell { left: 94%; }
}

@media (max-width: 767px) {
  .falling-item {
    width: 38px;
    height: 38px;
    bottom: 10px;
  }

  /* Hide minor elements on mobile to prevent overlapping */
  .falling-item.item-ruler,
  .falling-item.item-palette,
  .falling-item.item-microscope,
  .falling-item.item-clock,
  .falling-item.item-globe,
  .falling-item.item-calculator {
    display: none !important;
  }
  
  /* Spacing for remaining 6 items on mobile */
  .falling-item.item-bag { left: 4%; }
  .falling-item.item-pencil { left: 22%; }
  .falling-item.item-book { left: 40%; }
  .falling-item.item-laptop { left: 58%; }
  .falling-item.item-cap { left: 76%; }
  .falling-item.item-bell { left: 92%; }
}

/*--------------------------------------------------------------
# Event Card Hover Effects (Jelly, Sheen, Contrast & Glow)
--------------------------------------------------------------*/
/* Target only the event section's cards */
.rs-event-area .rs-event-item {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: visible; /* to allow the glow to extend outwards */
}

/* 1. CSS Jello Wobble Animation on hover */
.rs-event-area .rs-event-item:hover {
  animation: jelly-wobble-card 0.9s ease-in-out;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* 2. Image Contrast & Saturation on hover */
.rs-event-area .rs-event-item .rs-event-thumb img {
  transition: filter 0.4s ease, transform 0.4s ease !important;
}

.rs-event-area .rs-event-item:hover .rs-event-thumb img {
  filter: contrast(1.2) brightness(1.1) saturate(1.1) !important;
}

/* 3. Drop Shadow/Glow on hover */
.rs-event-area .rs-event-item .rs-event-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* Matches layout */
  transition: box-shadow 0.4s ease !important;
}

.rs-event-area .rs-event-item:hover .rs-event-thumb {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(220, 174, 29, 0.6) !important;
}

/* 4. Diagonal Sheen sweep animation (smooth diagonal sweep) */
.rs-event-area .rs-event-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-25deg);
  z-index: 3;
  pointer-events: none;
}

.rs-event-area .rs-event-item:hover .rs-event-thumb::before {
  left: 150%;
  transition: left 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes jelly-wobble-card {
  0% { transform: scale3d(1, 1, 1); }
  15% { transform: scale3d(1.06, 0.94, 1) rotate(-1.5deg); }
  30% { transform: scale3d(0.94, 1.06, 1) rotate(1.5deg); }
  45% { transform: scale3d(1.03, 0.97, 1) rotate(-1deg); }
  60% { transform: scale3d(0.98, 1.02, 1) rotate(0.5deg); }
  75% { transform: scale3d(1.01, 0.99, 1) rotate(-0.2deg); }
  100% { transform: scale3d(1, 1, 1); }
}

/*--------------------------------------------------------------
# Campus Life Section Custom Styling
--------------------------------------------------------------*/
.rs-campus-life-area.rs-campus-life-two {
  position: relative !important;
  height: 35vh !important;
  min-height: 250px !important;
  width: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Full Width and height backgrounds */
.rs-campus-life-area.rs-campus-life-two .rs-campus-life-wrapper,
.rs-campus-life-area.rs-campus-life-two .rs-campus-life-thumb-large,
.rs-campus-life-area.rs-campus-life-two .swiper,
.rs-campus-life-area.rs-campus-life-two .swiper-wrapper,
.rs-campus-life-area.rs-campus-life-two .swiper-slide,
.rs-campus-life-area.rs-campus-life-two .rs-campus-life-bg-thumb {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rs-campus-life-area.rs-campus-life-two .rs-campus-life-bg-thumb {
  background-size: cover !important;
  background-position: center !important;
}

/* Light Yellow Overlay Layer */
.rs-campus-life-area.rs-campus-life-two::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(255, 235, 59, 0.45) !important; /* light yellow overlay */
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Hide small nav thumbnail images */
.rs-campus-life-area.rs-campus-life-two .rs-campus-life-thumb-small {
  display: none !important;
}

/* Container & center wrapper positioning */
.rs-campus-life-area.rs-campus-life-two .container {
  position: relative !important;
  z-index: 3 !important;
  pointer-events: none !important;
  max-width: 90% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rs-campus-life-area.rs-campus-life-two .rs-campus-life-sec-wrapper {
  text-align: center !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Crumbled Text styling */
.crumbled-text {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem) !important;
  font-weight: 900 !important;
  color: #00303F !important; /* Premium dark color for contrast */
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(255, 255, 255, 0.7) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px 18px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.crumb-word {
  display: inline-block !important;
  will-change: transform, opacity !important;
}

/*--------------------------------------------------------------
# Testimonial Card Glassmorphism, Lift, and Snake Border Hover Animation
--------------------------------------------------------------*/
.rs-testimonial-area .rs-testimonial-item {
  position: relative !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.45) !important; /* Glassmorphic background */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important; /* Subtle white border */
  border-radius: 16px !important;
  padding: 30px !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease, box-shadow 0.4s ease !important;
  z-index: 1;
}

/* On Hover: Lift up, increase contrast & brightness, and add glowing box-shadow */
.rs-testimonial-area .rs-testimonial-item:hover {
  transform: translateY(-12px) !important; /* Lifts the card upwards */
  filter: contrast(1.15) brightness(1.05) !important; /* Increases contrast on hover */
  box-shadow: 0 20px 40px rgba(0, 46, 61, 0.25), 0 0 15px rgba(0, 46, 61, 0.15) !important;
}

/* Snake line container styles */
.rs-testimonial-area .rs-testimonial-item .snake-line {
  position: absolute !important;
  display: block !important;
  z-index: 5 !important;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.3s ease !important;
}

.rs-testimonial-area .rs-testimonial-item:hover .snake-line {
  opacity: 1 !important;
}

/* Snake Line 1: Top edge moving left to right */
.rs-testimonial-area .rs-testimonial-item .snake-line:nth-child(1) {
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent, #002e3d) !important;
}

.rs-testimonial-area .rs-testimonial-item:hover .snake-line:nth-child(1) {
  animation: snake-top-glow 1.8s linear infinite !important;
}

@keyframes snake-top-glow {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Snake Line 2: Right edge moving top to bottom */
.rs-testimonial-area .rs-testimonial-item .snake-line:nth-child(2) {
  top: -100% !important;
  right: 0 !important;
  width: 3px !important;
  height: 100% !important;
  background: linear-gradient(180deg, transparent, #002e3d) !important;
}

.rs-testimonial-area .rs-testimonial-item:hover .snake-line:nth-child(2) {
  animation: snake-right-glow 1.8s linear infinite !important;
  animation-delay: 0.45s !important;
}

@keyframes snake-right-glow {
  0% { top: -100%; }
  50%, 100% { top: 100%; }
}

/* Snake Line 3: Bottom edge moving right to left */
.rs-testimonial-area .rs-testimonial-item .snake-line:nth-child(3) {
  bottom: 0 !important;
  right: -100% !important;
  width: 100% !important;
  height: 3px !important;
  background: linear-gradient(270deg, transparent, #002e3d) !important;
}

.rs-testimonial-area .rs-testimonial-item:hover .snake-line:nth-child(3) {
  animation: snake-bottom-glow 1.8s linear infinite !important;
  animation-delay: 0.9s !important;
}

@keyframes snake-bottom-glow {
  0% { right: -100%; }
  50%, 100% { right: 100%; }
}

/* Snake Line 4: Left edge moving bottom to top */
.rs-testimonial-area .rs-testimonial-item .snake-line:nth-child(4) {
  bottom: -100% !important;
  left: 0 !important;
  width: 3px !important;
  height: 100% !important;
  background: linear-gradient(360deg, transparent, #002e3d) !important;
}

.rs-testimonial-area .rs-testimonial-item:hover .snake-line:nth-child(4) {
  animation: snake-left-glow 1.8s linear infinite !important;
  animation-delay: 1.35s !important;
}

@keyframes snake-left-glow {
  0% { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}

/*--------------------------------------------------------------
# Blog / Latest News Card Hover Animations (Glassy, Lift & Contrast)
--------------------------------------------------------------*/
.rs-blog-area .rs-blog-item {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease !important;
  will-change: transform, background, box-shadow, filter;
  position: relative !important;
}

.rs-blog-area .rs-blog-item:hover {
  transform: translateY(-10px) scale(1.03) !important; /* Animates/moves card towards the user */
  background: rgba(255, 255, 255, 0.75) !important; /* White glassy background */
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  filter: contrast(1.15) brightness(1.05) !important; /* Boosts contrast on hover */
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.45), 0 0 20px rgba(255, 255, 255, 0.3) !important; /* Glowy shadow */
  z-index: 5 !important;
}

/*--------------------------------------------------------------
# Continuous Marquee Scrolling for Discover Campus Life Background
--------------------------------------------------------------*/
.rs-gallery-area {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rs-gallery-wrapper {
  overflow: hidden !important;
  white-space: nowrap !important;
  position: relative !important;
}

.rs-gallery-item-wrapper.marquee-gallery {
  display: flex !important;
  width: max-content !important;
  animation: scroll-marquee 25s linear infinite !important;
  will-change: transform;
}

/* Pause the scrolling gently on hover */
.rs-gallery-item-wrapper.marquee-gallery:hover {
  animation-play-state: paused !important;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  /* The wrapper contains two exact sets of 6 images, so translating -50% loops it perfectly */
  100% { transform: translateX(-50%); }
}

.rs-gallery-item-wrapper.marquee-gallery .rs-gallery-item {
  flex-shrink: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.rs-gallery-item-wrapper.marquee-gallery .rs-gallery-item img {
  height: 35vh !important; /* Constrain image height to 35% */
  width: auto !important; /* Maintain aspect ratio horizontally */
  object-fit: cover !important;
}

/*--------------------------------------------------------------
# Contact Area GSAP Parchment Unroll & Owl Float
--------------------------------------------------------------*/
@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.unroll-parchment {
  background-color: #fffaf0 !important; /* Parchment-like warm paper color */
  border: 1px solid #e2d2b3 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(220, 174, 29, 0.1) !important;
  border-radius: 8px !important;
  padding: 40px !important;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  /* GSAP handles the starting state */
}

/* To enhance the paper look, add a subtle top rolling shadow/gradient */
.unroll-parchment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), transparent);
  pointer-events: none;
}

/*--------------------------------------------------------------
# Footer Overrides
--------------------------------------------------------------*/
.rs-footer-area.rs-footer-one {
  background: #002e3c !important; /* Exact solid background color requested */
}
.rs-footer-area.rs-footer-one::before {
  display: none !important; /* Remove any existing gradients/overlays */
}

/* Fix Contact Info Alignment (Stack vertically for clean reading) */
.rs-footer-widget-contact-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin-top: 25px !important;
}

.rs-footer-content-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

.rs-footer-content-item span {
  min-width: 60px !important;
  margin-bottom: 0 !important;
  font-weight: 600 !important;
}

/* Ensure no weird text wrapping on phone numbers */
.rs-footer-content-item a {
  white-space: nowrap !important;
  word-break: keep-all !important;
}

/* Fix Social Link Alignment */
.rs-footer-widget-social {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 30px !important;
}

.rs-footer-widget-social .rs-footer-social-title {
  margin-bottom: 0 !important;
  min-width: 80px !important;
}

.rs-footer-social {
  display: flex !important;
  gap: 8px !important;
}

/* Global font size override for all content (excluding headings) */
body, 
p, 
.section-desc, 
.rs-testimonial-desc, 
.rs-program-desc, 
.rs-blog-desc, 
.rs-team-designation, 
.rs-testimonial-avater-designation,
ul li,
.rs-footer-widget-content,
.rs-footer-widget-link a,
.rs-contact-input input,
.rs-contact-input textarea,
.btn-text-wrap {
  font-size: 15px !important;
}

/*--------------------------------------------------------------
# Global Responsive Fixes (Mobile & Tablet)
--------------------------------------------------------------*/
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

/* Tablet Adjustments */
@media (max-width: 991px) {
  .rs-contact-form-wrapper {
    padding: 35px 25px !important;
  }
  .rs-about-two .rs-about-thumb-wrapper {
    margin-top: 40px !important;
  }
  .rs-gallery-item-wrapper.marquee-gallery .rs-gallery-item img {
    height: 250px !important;
    width: auto !important;
  }
  .rs-event-area .rs-event-item .rs-event-thumb img {
    height: 200px !important;
  }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .rs-contact-form-wrapper {
    padding: 25px 15px !important;
  }
  .crumbled-text {
    font-size: 2rem !important;
  }
  .rs-gallery-item-wrapper.marquee-gallery .rs-gallery-item img {
    height: 200px !important;
    width: auto !important;
  }
  .rs-testimonial-area .rs-testimonial-item {
    padding: 20px 15px !important;
  }
  .section-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }
  .rs-event-area .rs-event-item .rs-event-thumb img {
    height: 180px !important;
  }
  /* Ensure header logos scale correctly */
  .header-logo img[src="img/logo.jpeg"],
  .rs-footer-widget-logo img[src="img/logo.jpeg"] {
    max-height: 50px !important;
  }
  /* Fix slider arrows overlapping on small screens */
  .swiper-button-next, .swiper-button-prev {
    transform: scale(0.7) !important;
  }

  /* Header Top Bar Mobile Fixes */
  .rs-header-top-one {
    padding: 8px 10px !important;
    gap: 10px !important;
  }
  .header-top-left {
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
  .header-top-contact {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .header-top-contact .shine-sep {
    display: none !important; /* Hide pipes on mobile to prevent awkward wrapping */
  }
  .header-top-buttons {
    gap: 6px !important;
  }
  .header-top-buttons .btn {
    font-size: 11px !important;
    padding: 4px 6px !important;
    margin-bottom: 2px !important;
  }
}

/* Hide Theme Settings Gear */
.rs-theme-settings-area, .rs-theme-settings-gear, .rs-settings-wrapper {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hide Theme Settings Gear */
.rs-theme-settings-area, .rs-theme-settings-gear, .rs-settings-wrapper {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}