/* ==========================================================================
   KES INDIA - KRISHNA EDUCATION SERVICE
   Pixel-Perfect Course Cards, Dropdown Menu & Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --color-primary: #004271;
  --color-primary-dark: #194377;
  --color-accent-blue: #1D8FBF;
  --color-bright-blue: #2EA3F2;
  --color-cyan: #27DAFF;
  --color-dark: #1d1e20;
  --color-gray-dark: #333333;
  --color-gray-medium: #54595F;
  --color-gray-light: #f8f9fa;
  --color-white: #ffffff;
  --color-footer-bg: #1d1e20;
  --color-footer-dark: #121315;
  --color-topbar-bg: #051426;

  --font-primary: "Roboto", sans-serif;
  --font-heading: "Helvetica", "Raleway", sans-serif;

  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 6px;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-bright-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 60px 0;
}

.bg-light {
  background-color: var(--color-gray-light);
}

.text-center {
  text-align: center;
}

/* Section Title */
.section-title {
  position: relative;
  margin-bottom: 25px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
}

.section-title .divider {
  height: 2px;
  width: 100px;
  background: #000000;
  margin: 10px 0 20px 0;
}

.section-title.center .divider {
  margin: 10px auto 20px auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: #194377;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 143, 191, 0.35);
}

.btn-orange {
  background-color: var(--color-accent-blue);
  color: #ffffff;
}

.btn-orange:hover {
  background-color: #167299;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 143, 191, 0.4);
}

/* TOP BAR */
.top-bar {
  background-color: var(--color-topbar-bg);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
}

.top-bar-contact a {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.top-bar-social {
  display: flex;
  gap: 10px;
}

.top-bar-social a {
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* MAIN HEADER */
.main-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.site-logo img {
  height: 110px;
  max-height: 110px;
  width: auto;
  object-fit: contain;
  display: block;
  background-color: #ffffff;
  mix-blend-mode: normal;
}

.site-logo:hover {
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* FIX: POSITION RELATIVE ON NAV-MENU LIST ITEMS FOR DROPDOWN ALIGNMENT */
.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  display: block;
  padding: 10px 14px;
  font-family: "Helvetica", "Roboto", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #004271;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
  color: #1D8FBF;
}

/* PERFECTED DROPDOWN MENU MATCHING SCREENSHOT */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 310px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 6px 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
  border-top: 3px solid #1D8FBF;
  padding: 0;
}

.nav-menu>li.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #f8f9fa;
  color: #1D8FBF;
  padding-left: 22px;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
}

/* HERO BANNER */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 140px 0;
  text-align: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: 0.61;
  z-index: 1;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
}

.hero-banner h2 {
  color: #ffffff;
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner p {
  color: #27DAFF;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}

/* GRID 2 COLUMNS */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.img-styled img {
  width: 100%;
  border-radius: 8px;
}

/* PERFECTED COURSE CARDS GRID */
.courses-grid-exact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 30px;
}

.course-card-exact {
  border: 1px solid #194377;
  border-radius: 6px;
  background: #ffffff;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.course-card-exact:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent-blue);
}

.course-card-exact img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.course-card-exact h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #194377;
  line-height: 1.35;
  margin-bottom: 15px;
  text-align: justify;
}

.course-card-exact p {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #54595F;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 25px;
}

.course-card-exact .btn-primary {
  background-color: #194377;
  color: #ffffff;
  padding: 10px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.course-card-exact .btn-primary:hover {
  background-color: var(--color-accent-blue);
  color: #ffffff;
}

/* FOOTER */
.site-footer {
  background-color: #1d1e20;
  color: #ffffff;
  padding-top: 40px;
  font-size: 14px;
}

.footer-grid-exact {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 14px;
}

.footer-contact-list i {
  color: #1D8FBF;
  font-size: 16px;
  margin-top: 3px;
}

.footer-contact-list a {
  color: #ffffff;
}

.footer-contact-list a:hover {
  color: #2EA3F2;
}

.footer-bottom {
  background-color: #121315;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #ffffff;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--color-primary-dark);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 960px) {
  .courses-grid-exact {
    grid-template-columns: 1fr;
  }

  .grid-2col {
    grid-template-columns: 1fr;
  }

  .footer-grid-exact {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 20px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    z-index: 1001;
  }

  .nav-menu.open {
    right: 0;
  }
}

/* ==========================================================================
   ADVANCED ANIMATIONS & SCROLL REVEAL SYSTEM
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(29, 143, 191, 0.25);
  }

  50% {
    box-shadow: 0 8px 25px rgba(29, 143, 191, 0.45);
  }
}

@keyframes dividerShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Scroll Reveal Utility Classes */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active State for Triggered Elements */
.reveal.is-visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Interactive Header Animations */
.main-header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu>li>a {
  position: relative;
}

.nav-menu>li>a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  width: 0;
  height: 2px;
  background-color: #194377;
  transition: width 0.3s ease;
}

.nav-menu>li>a:hover::after,
.nav-menu>li.active>a::after {
  width: calc(100% - 28px);
}

/* Hero Section Entrance & Animations */
.hero-banner h2 {
  animation: fadeInDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-banner p {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-banner p:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-banner p:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-banner p:nth-child(4) {
  animation-delay: 0.45s;
}

.hero-banner p:nth-child(5) {
  animation-delay: 0.6s;
}

/* Enhanced Section Title Animated Divider */
.section-title .divider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-blue) 50%, var(--color-primary) 100%);
  background-size: 200% 100%;
  animation: dividerShimmer 4s infinite linear;
}

/* Smooth Card Hover Zoom & Elevate Effects */
.img-styled {
  overflow: hidden;
  border-radius: 8px;
}

.img-styled img {
  transition: transform 0.5s ease;
}

.img-styled:hover img {
  transform: scale(1.05);
}

.course-card-exact {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.course-card-exact:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 66, 113, 0.14);
  border-color: var(--color-accent-blue);
}

.course-card-exact img {
  transition: transform 0.5s ease;
}

.course-card-exact:hover img {
  transform: scale(1.03);
}

/* Feature Boxes Hover Bounce & Shadow */
.feature-box {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.feature-box .icon i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-box:hover .icon i {
  transform: scale(1.18) rotate(4deg);
  color: var(--color-bright-blue);
}

/* Button Pulse & Smooth Hover */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-primary:hover,
.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(29, 143, 191, 0.35);
}

/* Scroll To Top Pulse Effect */
.scroll-top {
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-top:hover {
  transform: scale(1.12);
  background-color: var(--color-accent-blue);
  box-shadow: 0 6px 20px rgba(29, 143, 191, 0.4);
}