/* ================= ROOT VARIABLES ================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e5e7eb;
}

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= CONTAINER ================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER & NAV ================= */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo img {
  width: 36px;
  height: auto;
}

nav a {
  margin: 0 12px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

nav a.active,
nav a:hover {
  color: var(--primary);
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 700px;
  margin: auto;
  color: var(--text-muted);
  font-size: 18px;
}

/* ================= BUTTONS ================= */
.btn {
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-light {
  background: #ffffff;
  color: var(--primary);
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 0;
}

.section.light {
  background: var(--bg-light);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ================= GRIDS ================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ================= CARDS ================= */
/*.card,
//.course-card {
 // background: #ffffff;
//  border-radius: 12px;
//  padding: 25px;
//  border: 1px solid var(--border-light);
//  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
//  transition: transform 0.3s ease, box-shadow 0.3s ease;
//}

.card:hover,
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}*/


.card,
.course-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);

  /* animation + hover smoothness */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

/* HOVER EFFECT */
.card:hover,
.course-card:hover {
  background-color: #f0fdf4;            /* soft blue tint #f1f5ff    #f8fafc   #f0fdf4  */
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.10);
}

/* ================= DIRECTOR AVATAR ================= */
.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: auto;
  margin-bottom: 15px;
}

/* ================= CONTACT FORM ================= */
.contact-form {
  max-width: 800px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 14px;
  font-size: 15px;
  margin-bottom: 15px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ================= CTA ================= */
.cta {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

/* ================= FOOTER ================= */
.footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer h4 {
  color: #ffffff;
}

.footer a {
  color: #cbd5f5;
  display: block;
  margin: 6px 0;
}

.footer a:hover {
  color: #ffffff;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
}


/* ================= NEW ================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-text {
  text-align: left;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
}




/* .fade-in {
//  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= ICON HOVER ANIMATION ================= */
.card h3,
.course-card h3 {
  transition: color 0.3s ease;
}

.card:hover h3,
.course-card:hover h3 {
  color: var(--primary);
}


/* ================= BUTTON RIPPLE ================= */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: 50%;
  left: 50%;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}


/* ================= PROFILE / ABOUT CARD TIGHT SPACING ================= */

/* ================= PROFILE CARD CENTERED & COMPACT ================= */

.profile-card {
  max-width: 75%;           /* 🔴 smaller than page width */
  margin: 40px auto;        /* center horizontally */
  text-align: center;       /* center all text */
  padding: 40px 30px;       /* balanced spacing */
}

/* Avatar (NS circle) */
.profile-card .avatar,
.profile-card .avatar-circle {
  margin: 0 auto 18px;
}

/* Name */
.profile-card h2 {
  margin-bottom: 6px;
  line-height: 1.25;
}

/* Director */
.profile-card .designation {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--primary);
}

/* Qualification */
.profile-card .qualification {
  font-size: 14px;
  margin-bottom: 18px;
  color: var(--text-muted);
}

/* Description */
.profile-card p {
  line-height: 1.55;
  margin: 0 auto;
  max-width: 720px;
}


@media (max-width: 768px) {
  .profile-card {
    max-width: 92%;
    padding: 30px 20px;
  }
}




/* =====================================================
   GLOBAL MOBILE RESPONSIVE SYSTEM
===================================================== */
@media (max-width: 768px) {

  /* ---------- CONTAINER ---------- */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ---------- HEADER / NAV ---------- */
  .header {
    padding: 12px 0;
    font-size: 30px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  nav {
    width: 100%;
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 8px 10px;
    font-size: 14px;
  }

  .btn-primary {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* ---------- HERO SECTION ---------- */
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 15px;
    margin-top: 10px;
  }

  .hero .btn {
    margin-top: 16px;
  }

  /* ---------- SECTIONS ---------- */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14.5px;
    margin-bottom: 30px;
  }

  /* ---------- GRID FIX ---------- */
  .grid-2,
  .grid-3,
  .grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ---------- CARDS ---------- */
  .card,
  .course-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .card h3,
  .course-card h3 {
    font-size: 17px;
  }

  .card p {
    font-size: 14.5px;
    line-height: 1.6;
  }

  /* ---------- PROFILE / ABOUT CARD ---------- */
  .profile-card {
    max-width: 95%;
    padding: 28px 18px;
    text-align: center;
  }

  .profile-card h2 {
    font-size: 22px;
  }

  .profile-card .designation {
    font-size: 14px;
  }

  .profile-card .qualification {
    font-size: 13px;
  }

  /* ---------- FORMS ---------- */
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 12px;
  }

  .contact-form button {
    width: 100%;
    padding: 12px;
  }

  /* ---------- CTA SECTION ---------- */
  .cta {
    padding: 50px 16px;
    text-align: center;
  }

  .cta h2 {
    font-size: 22px;
  }

  .cta p {
    font-size: 14.5px;
  }

  /* ---------- FOOTER ---------- */
  .footer {
    padding: 40px 16px;
    text-align: center;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer a {
    display: block;
    margin: 6px 0;
  }
}


/* ================= MOBILE HEADER MENU ================= */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
}

/* Hide mobile nav by default */
.mobile-nav {
  display: none;
  flex-direction: column;
  text-align: center;
  padding: 16px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

/* Mobile-only rules */
@media (max-width: 768px) {

  /* Bigger brand text */
  .logo span {
    font-size: 30px;
    font-weight: 700;
  }

  /* Hide desktop nav */
  .desktop-nav {
    display: none;
  }

  /* Show hamburger */
  .menu-toggle {
    display: block;
  }

  /* Enroll button spacing */
  .mobile-nav .btn {
    margin: 12px auto 0;
    width: 80%;
  }
}
/* ================= FIX DUPLICATE ENROLL BUTTON ================= */
@media (max-width: 768px) {
  .enroll-btn {
    display: none;
  }
}


/* ================= MOBILE HEADER PROFESSIONAL ALIGNMENT ================= */
@media (max-width: 768px) {

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo img {
    width: 40px;
    height: auto;
  }

  .logo span {
    font-size: 30px;
    font-weight: 700;
  }

  .menu-toggle {
    font-size: 28px;
    padding: 6px 10px;
  }

  /* Mobile menu full width */
  .mobile-nav {
    width: 100%;
  }

  .mobile-nav a {
    font-size: 16px;
    padding: 14px 0;
  }

  .mobile-nav .btn {
    width: 90%;
    margin: 14px auto 0;
  }
}
/* Hide hamburger toggle on non-home pages */
/* Show hamburger on all pages (mobile only) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* ================= MOBILE POPUP MENU ================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 9999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.menu-btn {
  margin-top: 10px;
  width: 80%;
  text-align: center;
}

/* Close button */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
}

/* Mobile-only */
@media (min-width: 769px) {
  .mobile-menu,
  .menu-toggle {
    display: none !important;
  }
}


