/* Responsive CSS for JNV Alumni Website — targets live template classes */

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
}

.image-container {
  width: 100% !important;
  height: auto !important;
  min-height: 200px;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Utility: center text on mobile, left on larger screens */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

/* Tablet and below */
@media (max-width: 768px) {
  #hero {
    padding: 100px 15px 48px !important;
    overflow: visible !important;
    min-height: auto !important;
  }

  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.25;
    word-wrap: break-word;
  }

  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 24px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .section-title h2 {
    font-size: 1.75rem !important;
  }

  .section-title p {
    font-size: 1rem !important;
  }

  .service-icon {
    font-size: 2.25rem !important;
  }

  .stat-number {
    font-size: 2.25rem !important;
  }

  .search-container,
  .form-container {
    margin-top: 0 !important;
    padding: 24px 20px !important;
  }

  .connect-hero,
  .add-alumni-hero {
    padding: 100px 15px 48px !important;
  }

  .connect-hero .display-4,
  .add-alumni-hero .display-4 {
    font-size: 2rem !important;
    line-height: 1.25;
  }

  .connect-hero .lead,
  .add-alumni-hero .lead {
    font-size: 1rem !important;
  }

  .service-card,
  .team-card,
  .alumni-card,
  .stat-card {
    margin-bottom: 20px;
  }

  .team-img {
    height: 220px !important;
  }

  .contact-section {
    padding: 48px 0 !important;
  }

  .contact-info {
    margin-bottom: 24px;
  }

  #footer h3 {
    font-size: 1.5rem;
  }

  #footer .social-links a {
    margin: 0 5px 10px 0;
  }

  .btn-get-started,
  .btn-whatsapp-join {
    padding: 10px 22px;
    font-size: 14px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Phone */
@media (max-width: 576px) {
  #header .logo h1 {
    font-size: 20px;
  }

  #hero {
    padding: 96px 12px 40px !important;
  }

  .hero-content h1 {
    font-size: 1.75rem !important;
  }

  .hero-content p {
    font-size: 0.95rem !important;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-title h2 {
    font-size: 1.5rem !important;
  }

  .service-card {
    padding: 24px 18px;
  }

  .service-icon {
    font-size: 2rem !important;
  }

  .stat-number {
    font-size: 2rem !important;
  }

  .search-container,
  .form-container {
    padding: 20px 16px !important;
    border-radius: 12px;
  }

  .connect-hero,
  .add-alumni-hero {
    padding: 96px 12px 40px !important;
  }

  .connect-hero .display-4,
  .add-alumni-hero .display-4 {
    font-size: 1.75rem !important;
  }

  .team-img {
    height: 200px !important;
  }

  .btn-get-started,
  .btn-whatsapp-join,
  .btn-learn-more {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Mobile navigation */
@media (max-width: 991px) {
  .navbar-mobile ul {
    top: 70px;
  }

  .navbar-mobile a {
    font-size: 16px;
    padding: 15px 20px;
  }
}

/* Testimonials / portfolio leftovers (safe if unused) */
.testimonials .testimonial-item {
  min-height: auto;
  padding: 20px;
  margin: 15px 10px;
}

@media (max-width: 768px) {
  .testimonials .testimonial-item {
    margin: 15px 5px;
  }

  .portfolio .portfolio-item {
    margin-bottom: 20px;
  }

  .contact .php-email-form .form-group {
    margin-bottom: 15px;
  }
}
