/* Base Styles from User Snippet */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #424242;
  background: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  transition: max-width 0.3s ease, padding 0.3s ease;
}

/* Material Header - Custom Reverse (White BG, Blue Text) */
.app-bar {
  background: white;
  color: #1976d2;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-height: 64px;
}

/* Desktop: Bigger logo + bigger text + same line */
.toolbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px; /* Increase text */
  font-weight: 700;
  white-space: nowrap; /* Prevent breaking into two lines */
  margin-right: 20px; /* Increase/decrease as needed */
}

.logo-img {
  width: 100px; /* Larger logo */
  height: auto;
}

.nav-tabs {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-tabs a {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  color: #757575;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1.25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-tabs a:hover,
.nav-tabs a.active {
  color: #1976d2;
  background: rgba(25, 118, 210, 0.05);
}

.nav-tabs a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1976d2;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-tabs a:hover::after,
.nav-tabs a.active::after {
  transform: scaleX(1);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #ff5722;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(255, 87, 34, 0.5);
}

/* Hero Section with Integrated Vision/Mission */
.hero {
  padding: 100px 0 64px;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  transition: grid-template-columns 0.3s ease;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: font-size 0.3s ease;
}

.hero-description {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-raised {
  background: #ffeb3b;
  color: #1976d2;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-raised:hover {
  background: #fff176;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outlined {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outlined:hover {
  background: white;
  color: #1976d2;
}

/* Vision/Mission Cards in Hero */
.hero-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-vm-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-vm-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.15);
}

.vm-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffeb3b;
}

.card-icon-small {
  font-size: 24px;
}

.vm-text {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.95;
  color: white;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.metric {
  text-align: center;
}

.metric-number {
  font-size: 36px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Chips */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.chip {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip-icon {
  font-size: 16px;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
  scroll-margin-top: 64px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 40px;
  font-weight: 400;
  color: #212121;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  transition: font-size 0.3s ease;
}

.section-subtitle {
  font-size: 18px;
  color: #757575;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* New About Section Styles */
.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-text-card,
.commandments-card,
.expansion-card {
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #1976d2;
}

.about-text-card h3,
.commandments-card h3,
.expansion-card h3 {
  font-size: 24px;
  color: #1976d2;
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text-card p,
.expansion-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #616161;
  margin-bottom: 16px;
  text-align: justify;
}

.welcome-text {
  font-size: 18px !important;
  color: #424242 !important;
}

.achievements-box {
  background: #e3f2fd;
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
  border-left: 4px solid #ffeb3b;
}

.achievements-box h4 {
  color: #0d47a1;
  margin-bottom: 12px;
  font-size: 18px;
}

.achievements-box p {
  margin-bottom: 0;
  color: #1565c0;
}

.commandments-intro {
  margin-bottom: 24px;
  color: #616161;
}

.commandments-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  list-style: none;
}

.commandments-list li {
  background: #fafafa;
  padding: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commandments-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: white;
}

.cmd-icon {
  font-size: 24px;
  min-width: 32px;
  text-align: center;
}

/* Material Cards (General) */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  transition: grid-template-columns 0.3s ease;
}

.material-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.material-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.card-header {
  background: #1976d2;
  color: white;
  padding: 24px;
  position: relative;
}

.card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffeb3b, #ffc107);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.card-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 16px;
  opacity: 0.8;
}

.card-content {
  padding: 24px;
  flex-grow: 1;
}

.card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #616161;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #424242;
}

.feature-list .check {
  width: 20px;
  height: 20px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.card-actions {
  padding: 8px 16px 16px;
  display: flex;
  justify-content: flex-end;
}

.btn-text {
  background: none;
  border: none;
  color: #1976d2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-text:hover {
  background: rgba(25, 118, 210, 0.1);
}

/* Gallery */
.gallery-section {
  background: #f5f5f5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 250px;
}

.gallery-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.gallery-image {
  height: 100%;
  width: 100%;
}

.gallery-image img {
  color: white;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.form-info h2 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.2;
}

.form-info p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.6;
}

.info-cards {
  display: grid;
  gap: 16px;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: #ffeb3b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1976d2;
  font-size: 20px;
  flex-shrink: 0;
  /* Prevent icon shrinking */
}

.info-text h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.info-text p {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.material-form {
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #424242;
}

.form-title {
  font-size: 24px;
  font-weight: 400;
  color: #212121;
  margin-bottom: 24px;
  text-align: center;
}

.form-field {
  margin-bottom: 24px;
  position: relative;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  background: transparent;
  font-size: 16px;
  color: #424242;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: #1976d2;
}

.form-field label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #757575;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #1976d2;
  left: 0;
}

.form-field select:valid + label,
.form-field select:focus + label {
  top: -8px;
  font-size: 12px;
  color: #1976d2;
  left: 0;
}

.form-submit {
  background: #1976d2;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(25, 118, 210, 0.3);
  width: 100%;
}

.form-submit:hover {
  background: #1565c0;
  box-shadow: 0 6px 12px rgba(25, 118, 210, 0.4);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #212121;
  color: white;
  text-align: center;
  padding: 32px 0;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #1976d2;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #eee;
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 8px 0;
}

.mobile-nav a {
  display: block;
  padding: 16px 24px;
  color: #424242;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.mobile-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1976d2;
}

/* Admission Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(-30px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: #1976d2;
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.close-modal-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.close-modal-btn:hover {
  opacity: 1;
}

.modal-content {
  padding: 32px;
  text-align: center;
}

.modal-content p {
  font-size: 16px;
  color: #616161;
  margin-bottom: 32px;
  line-height: 1.6;
}

.modal-button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(255, 87, 34, 0.3);
}

.modal-button:hover {
  background: #f4511e;
  box-shadow: 0 6px 12px rgba(255, 87, 34, 0.4);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .material-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .toppers-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-container,
  .form-container,
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-actions {
    justify-content: center;
  }

  .chip-container {
    justify-content: center;
  }

  .hero-card-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-vm-card:hover {
    transform: translateY(-5px);
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .toppers-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .commandments-list {
    grid-template-columns: 1fr;
  }

  .form-info h2 {
    font-size: 28px;
  }

  .form-info p {
    font-size: 16px;
  }

  .info-cards {
    /* Force info cards to stack vertically on mobile */
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .content-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .hero {
    padding: 80px 0 48px;
    min-height: auto;
  }

  .topper-image {
    height: 240px;
  }

  .about-text-card,
  .commandments-card,
  .expansion-card {
    padding: 24px;
  }

  .card-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .material-form {
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .btn-raised,
  .btn-outlined {
    padding: 12px 24px;
    font-size: 13px;
  }

  .toppers-grid {
    grid-template-columns: 1fr;
  }

  .topper-image {
    height: 300px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    height: 200px;
  }

  .about-text-card h3,
  .commandments-card h3,
  .expansion-card h3 {
    font-size: 20px;
  }

  .about-text-card p,
  .expansion-card p {
    font-size: 14px;
  }

  .form-info h2 {
    font-size: 24px;
  }

  .form-info p {
    font-size: 14px;
  }

  .modal {
    width: 95%;
  }
  /* ADD THIS BLOCK to scale down the logo/title on very small screens */
  .toolbar-title {
    font-size: 24px;
    /* Original was 35px, 24px is better for 480px and below */
  }
  .logo-img {
    width: 20%; /* Keep logo small */
  }

  /* ... existing styles ... */
  .hero-content h1 {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .topper-image {
    height: 280px;
  }
}

/* Toppers Section - ADDED FOR FIX */
.toppers-section {
  background: white;
}

.toppers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.topper-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

/* style.css (Toppers Section - around line 800) */

.topper-image {
  position: relative;
  /* REDUCED HEIGHT to make room for contain mode */
  height: 220px; /* WAS 280px */
  background: #e0e0e0;
  overflow: hidden;
}

.topper-image img {
  width: 100%;
  height: 100%;
  /* CRITICAL CHANGE: Use 'contain' to show the entire image */
  object-fit: contain; /* CHANGED FROM COVER */
  object-position: center; /* Center the full image */
  background: #f5f5f5;
  transition: transform 0.5s ease;
}
/* REMOVE the hover scale on image, as it looks bad with object-fit: contain */
/* .topper-card:hover .topper-image img {
  transform: scale(1.05);
} */

/* Ensure the hover effect remains only on the card */
.topper-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.topper-card:hover .topper-image img {
  transform: scale(1.05);
}

.topper-rank {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff5722;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.topper-info {
  padding: 20px;
  text-align: center;
}

.topper-info h3 {
  color: #424242;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.exam-name {
  color: #1976d2;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.score {
  color: #ff5722;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.stream {
  color: #757575;
  font-size: 13px;
}

/* Contact Form Section */
.contact-form-section {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* style.css (Append new styles for Founders Section) */

/* Founders Section */
.founders-section {
  background: #f5f5f5;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.founder-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: center;
  border-top: 5px solid #ffeb3b;
}

.founder-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.founder-image {
  height: 300px;
  overflow: hidden;
  margin-bottom: 20px;
}

.founder-image img {
  width: 100%;
  /*height: 100%;
  object-fit: cover; /* CHANGED TO COVER */
  height: 250px;
  transition: transform 0.5s ease;
}

.founder-card:hover .founder-image img {
  transform: scale(1.05);
}

.founder-info {
  padding: 0 24px 24px;
}

.founder-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 4px;
}

.founder-title {
  font-size: 16px;
  font-weight: 500;
  color: #ff5722;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.founder-edu {
  font-size: 14px;
  color: #757575;
  margin-bottom: 16px;
}

.founder-message {
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: #424242;
  padding: 16px;
  border-top: 1px solid #eee;
}

/* Add Responsive Rule for Founder Section in Mobile */
@media (max-width: 900px) {
  /* ... existing styles ... */
  .hero-card-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-vm-card:hover {
    transform: translateY(-5px);
  }

  /* ADD THIS */
  .founder-image {
    height: 250px;
  }
  .founders-grid {
    grid-template-columns: 1fr;
  }
  /* END ADD */

  .section-title {
    font-size: 32px;
  }
  /* ... existing styles ... */
}

/* style.css (Append new styles for Login Button) */

.login-button {
  /* Base Button Style */
  background: #ff5722; /* Prominent orange color */
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-left: 24px; /* Space it away from the navigation tabs */
}

.login-button:hover {
  background: #f4511e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* Ensure mobile link looks like other mobile links */
.mobile-login-link {
  /* Style added to override default mobile link behavior if needed */
  font-weight: 700 !important;
  color: #ff5722 !important;
  border-top: 1px solid #eee;
}

/* Hide the desktop button on smaller screens, rely on the mobile menu link */
@media (max-width: 900px) {
  .desktop-login {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-card-wrapper {
    order: 2;
  }

  .hero-content {
    order: 1;
  }
}

@media (max-width: 480px) {
  .toolbar-title {
    font-size: 20px !important;
  }

  .logo-img {
    width: 40px !important;
    height: auto;
  }

  .toolbar {
    padding-right: 8px !important;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100% !important;
    padding: 0 12px !important;
  }
}

/* Global image fix: all images fully visible, no cropping, no stretching */
.uniform-img {
  width: 100%;
  height: 250px; /* you can change 220 / 240 / 280 based on design */
  object-fit: contain;
  object-position: center;
  background: #f5f5f5;
}

@media (max-width: 480px) {
  .toolbar-title {
    font-size: 22px !important; /* slightly smaller on mobile */
    gap: 10px;
  }

  .logo-img {
    width: 40px !important; /* fit perfectly */
  }

  .toolbar {
    gap: 10px;
  }
}

/* Fix for small laptop screens (1024px – 1280px) */
@media (max-width: 1280px) {
  .nav-tabs {
    gap: 20px; /* reduce spacing */
  }

  .nav-right {
    margin-left: 10px;
  }

  .login-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* Force mobile nav earlier on <=1100px screens */
@media (max-width: 1100px) {
  .navbar .nav-tabs {
    display: none; /* hide desktop menu */
  }

  #mobileMenuBtn {
    display: block; /* show hamburger */
  }
}

@media (max-width: 1350px) {
  .nav-tabs a {
    padding: 18px 18px; /* was 22px 24px */
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  .nav-tabs {
    display: none !important;
  }
  .mobile-menu-btn {
    display: block !important;
  }
}

@media (max-width: 1350px) {
  .toolbar-title {
    font-size: 24px !important;
    gap: 6px !important;
  }
  .logo-img {
    width: 70px !important;
  }
}
/* FIX Login Button Getting Cut on Medium Screens */
@media (max-width: 1300px) {
  .toolbar-title {
    font-size: 24px !important;
    gap: 6px !important;
  }
  .logo-img {
    width: 70px !important;
  }
  .nav-tabs a {
    padding: 14px 16px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 1100px) {
  .toolbar-title {
    font-size: 20px !important;
  }
  .logo-img {
    width: 55px !important;
  }
}
