/* ============================================================
   SUJATA INSTITUTE - Premium Education ERP Styles
   Bootstrap 5.3 Compatible
   ============================================================ */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #198754;
  --accent: #fd7e14;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  --gradient-success: linear-gradient(135deg, #198754 0%, #20c997 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--accent); }
.top-bar .social-icons a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.1);
  margin-left: 6px;
}
.top-bar .social-icons a:hover { background: var(--primary); }

.navbar {
  background: #fff !important;
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.4rem 0;
}
.navbar-brand img { height: 55px; width: auto; }
.navbar-brand span {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  margin-left: 8px;
}
.nav-link {
  font-weight: 500;
  color: #333 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 0.5rem;
}
.dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.dropdown-item:hover {
  background: rgba(13,110,253,0.08);
  color: var(--primary);
}
.btn-enquiry {
  background: var(--gradient-primary);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(13,110,253,0.35);
}
.btn-enquiry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,110,253,0.45);
  color: #fff !important;
}

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d6efd 100%);
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero-content h1 span {
  background: linear-gradient(90deg, #20c997, #0dcaf0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-btns .btn {
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  margin-right: 12px;
  margin-bottom: 10px;
}
.btn-hero-primary {
  background: #fff;
  color: var(--primary);
  border: none;
}
.btn-hero-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.stats-section { margin-top: -60px; position: relative; z-index: 10; }
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.stat-card .stat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: #fff;
}
.stat-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.stat-card p {
  color: #6c757d;
  font-weight: 500;
  margin: 0;
  font-size: 0.9rem;
}

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .badge-label {
  display: inline-block;
  background: rgba(13,110,253,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.8rem;
}
.section-title p {
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card .icon-box {
  width: 70px; height: 70px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: #fff;
  background: var(--gradient-primary);
}
.feature-card h5 { font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { color: #6c757d; font-size: 0.92rem; margin: 0; }

.course-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.course-card .course-img {
  height: 180px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.course-card .course-img i {
  font-size: 3.5rem;
  color: rgba(255,255,255,0.9);
}
.course-card .course-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}
.course-card .card-body { padding: 1.4rem; }
.course-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.course-card .course-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: #6c757d;
  margin-bottom: 1rem;
}
.course-card .course-meta i { color: var(--primary); margin-right: 4px; }
.course-card .price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-md);
}
.about-badge h4 {
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.about-badge p {
  margin: 0;
  font-size: 0.85rem;
  color: #6c757d;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card .stars { color: #ffc107; margin-bottom: 1rem; }
.testimonial-card .review {
  font-style: italic;
  color: #555;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .author-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-card .author-info h6 { margin: 0; font-weight: 700; }
.testimonial-card .author-info small { color: #6c757d; }

.cta-section {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { font-weight: 800; margin-bottom: 1rem; }
.cta-section p {
  opacity: 0.9;
  max-width: 550px;
  margin: 0 auto 1.5rem;
}
.cta-section .btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  background: #fff;
  color: var(--primary);
  border: none;
}
.cta-section .btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.8);
  padding-top: 4rem;
}
.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.footer a {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}
.footer a:hover { color: #fff; padding-left: 4px; }
.footer .contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}
.footer .contact-item i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.75);
}
.footer-bottom p {
  margin: 0;
  line-height: 1.6;
  white-space: normal;
}
.footer-bottom a.ft-siit {
  color: #4dabf7;
  text-decoration: underline;
  font-weight: 600;
  display: inline;
  margin: 0;
  padding: 0;
}
.footer-bottom a.ft-siit:hover {
  color: #74c0fc;
  padding-left: 0;
}
.footer-bottom a.ft-kdrt {
  color: #ff922b;
  text-decoration: underline;
  font-weight: 600;
  display: inline;
  margin: 0;
  padding: 0;
}
.footer-bottom a.ft-kdrt:hover {
  color: #ffa94d;
  padding-left: 0;
}
.footer .brand-info {
  text-align: center;
}
.footer .brand-info img {
  height: 110px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 1.1rem auto;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.footer .brand-info p {
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}
@media (max-width: 991.98px) {
  .footer .brand-info img {
    height: 90px;
    max-width: 220px;
  }
}

.page-header {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
  padding: 5rem 0 3.5rem;
  color: #fff;
  text-align: center;
  position: relative;
}
.page-header h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.page-header .breadcrumb {
  justify-content: center;
  background: transparent;
  margin: 0;
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 10px;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e0e0e0;
  font-size: 0.95rem;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}
.contact-info-card {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: #fff;
  height: 100%;
}
.contact-info-card .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
}
.contact-info-card .info-item .icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-card .info-item h6 { margin: 0 0 0.2rem; font-weight: 600; }
.contact-info-card .info-item p { margin: 0; opacity: 0.9; font-size: 0.9rem; }

.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: #0d1b2a;
  color: #fff;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1000;
  transition: var(--transition);
}
.admin-sidebar .sidebar-brand {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar .sidebar-brand img { height: 40px; }
.admin-sidebar .sidebar-brand span { font-weight: 700; font-size: 0.95rem; }
.admin-sidebar a.sidebar-brand {
  color: #fff;
  cursor: pointer;
}
.admin-sidebar a.sidebar-brand:hover {
  background: rgba(255,255,255,0.04);
}

.admin-sidebar .nav-section { padding: 1rem 0.8rem; }
.admin-sidebar .nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.3rem;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.7) !important;
  border-radius: 8px;
  padding: 0.55rem 0.9rem !important;
  margin-bottom: 2px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(13,110,253,0.2);
  color: #fff !important;
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; font-size: 1rem; }
.admin-content {
  margin-left: 260px;
  flex: 1;
  background: #f0f2f5;
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  padding: 0.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-main { padding: 1.5rem; }
.dashboard-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}
.dashboard-card:hover { box-shadow: var(--shadow-md); }
.dashboard-card .card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}
.dashboard-card h3 {
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0.5rem 0 0.1rem;
}
.dashboard-card p { color: #6c757d; margin: 0; font-size: 0.85rem; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d6efd 100%);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-card .logo-wrap { text-align: center; margin-bottom: 1.5rem; }
.login-card .logo-wrap img { height: 70px; }
.login-card h4 { text-align: center; font-weight: 700; margin-bottom: 0.3rem; }
.login-card .subtitle {
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.bg-soft-primary { background: rgba(13,110,253,0.1); }
.bg-soft-success { background: rgba(25,135,84,0.1); }
.bg-soft-warning { background: rgba(255,193,7,0.15); }
.bg-soft-danger { background: rgba(220,53,69,0.1); }
.bg-soft-info { background: rgba(13,202,240,0.1); }

@media (max-width: 991.98px) {
  .hero-content h1 { font-size: 2.2rem; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .stats-section { margin-top: -30px; }
}
@media (max-width: 575.98px) {
  .hero-content h1 { font-size: 1.8rem; }
  .section-title h2 { font-size: 1.6rem; }
  .navbar-brand span { display: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== FIXES: Navbar visibility & layout ===== */
.navbar.sticky-top {
  z-index: 1030 !important;
  background: #fff !important;
}
.navbar .navbar-nav .nav-link {
  white-space: nowrap;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem !important;
}
.navbar-brand img { height: 48px; }
.navbar-brand span { font-size: 1rem; }
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
  }
  .nav-link::after { display: none; }
}
.page-header {
  padding: 3rem 0;
  background: var(--gradient-primary);
  color: #fff;
  margin-bottom: 0;
}
.page-header h1 { font-weight: 700; margin-bottom: 0.5rem; }
.partner-logo-box {
  height: 100px;
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  border: 1px solid #eee;
  transition: var(--transition);
}
.partner-logo-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.partner-logo {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: var(--transition);
}
.partner-logo-box:hover .partner-logo { filter: none; }
.founder-img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.course-card {
  transition: var(--transition);
  border: 1px solid #eee !important;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
  border-color: transparent !important;
}
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .badge-label {
  display: inline-block;
  background: rgba(13,110,253,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.section-title h2 { font-weight: 700; color: var(--dark); }
.mou-grid img {
  height: 80px;
  width: 100%;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* ===== Admin form responsiveness ===== */
.modal-dialog-scrollable .modal-body {
  max-height: min(65vh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-footer { flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 575.98px) {
  .modal-dialog { margin: 0.5rem; max-width: calc(100% - 1rem); }
  .modal-body .row.g-3 > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .admin-topbar { flex-wrap: wrap; gap: 0.5rem; }
  .dashboard-card .d-flex.flex-wrap { gap: 0.5rem !important; }
  .dashboard-card .form-control-sm { min-width: 100% !important; width: 100%; }
  .table-responsive { font-size: 0.85rem; }
  .btn-sm { padding: 0.25rem 0.5rem; }
}

/* ============================================================
   RESPONSIVE FIXES — All devices (mobile / tablet / desktop)
   ============================================================ */

/* Ensure images and media never overflow */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll on small screens */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Navbar brand logo size across breakpoints */
.navbar-brand img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Hero logo / side image */
.hero-section img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
}

/* Footer logo */
.footer .brand-info img,
.footer img[alt*="Logo"],
.footer img[alt*="SIIT"] {
  height: 70px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Enquire button in navbar — keep visible on collapse */
@media (max-width: 991.98px) {
  .navbar .btn-enquiry {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .navbar-brand img {
    height: 42px;
  }
  .hero-section {
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }
  .hero-section .row {
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .hero-btns .btn {
    margin-right: 0;
  }
  .hero-section img {
    max-height: 200px;
    margin-top: 1.5rem;
  }
  .stat-card {
    padding: 1.25rem 0.75rem;
  }
  .stat-card h3 {
    font-size: 1.5rem;
  }
  .stat-card p {
    font-size: 0.8rem;
  }
  .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .page-header h1 {
    font-size: 1.85rem;
  }
  .contact-form-card,
  .contact-info-card {
    padding: 1.5rem;
  }
  .placed-card {
    width: 240px !important;
  }
}

@media (max-width: 767.98px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 6px 0;
  }
  .hero-content h1 {
    font-size: 1.75rem !important;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .stats-section {
    margin-top: -20px;
  }
  .section-title h2 {
    font-size: 1.45rem;
  }
  .founder-img {
    max-width: 240px;
  }
  .partner-logo-box {
    height: 80px;
    max-width: 130px;
    padding: 8px 10px;
  }
  .partner-logo {
    max-height: 48px;
  }
  .mou-grid img {
    height: 64px;
    max-width: 130px;
  }
  .footer {
    text-align: center;
  }
  .footer .col-lg-3,
  .footer .col-md-6 {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 36px;
    max-width: 120px;
  }
  .hero-section {
    padding: 2.5rem 0 3rem;
  }
  .hero-content h1 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  .hero-section img {
    max-height: 140px;
  }
  .stat-card h3 {
    font-size: 1.25rem;
  }
  .stat-card p {
    font-size: 0.72rem;
  }
  .btn-enquiry {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
  }
  .page-header {
    padding: 2.5rem 0 2rem;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
  /* Stack hero buttons full width on very small phones */
  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Tablet landscape / small laptop tweaks */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .navbar-brand img {
    height: 46px;
  }
}

/* Large screens — keep content readable */
@media (min-width: 1400px) {
  .hero-content h1 {
    font-size: 3.4rem;
  }
}

/* Tables on mobile */
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* Gallery / grid images */
.gallery-item img,
.blog-card img,
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
