/* === style.css for Academic Mentor Website === */

/* Reset some basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Top WhatsApp button */
.top-contact {
  background: #e0ffe0;
  padding: 0.5rem 1rem;
  text-align: right;
}

.whatsapp-button {
  background-color: #25D366;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
}

/* Header and Navigation */
.header {
  background-color: #2e7d32;
  padding: 1rem 0;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #c8facc;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  margin-bottom: 4px;
  border-radius: 5px;
}

/* Banner Title */
.banner-title h1 {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 2.2rem;
  color: #2e7d32;
}

/* Slider Section */
.slider {
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
}

.glider img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Description */
.description {
  padding: 2rem 0;
  background-color: #ffffff;
}

.description p {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
}

/* Footer */
.footer {
  background-color: #2e7d32;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

.footer .social-icons a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer .social-icons a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #2e7d32;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
.slide {
  position: relative;
}

.slide img {
  width: 100%;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}
/* Grid Layout: 2 per row on desktop, 1 per row on mobile */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Reduce card padding and image size slightly */
.service-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card h1 {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #334155;
}

.service-card p {
  font-size: 0.95rem;
  padding: 0 1rem 1.5rem;
  color: #475569;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #1e293b;
}
/* Base style (mostly for mobile) */
.title-box {
  background-color: #f0f9ff;
  border-left: 4px solid #3b82f6;  /* soft blue stripe */
  padding: 1rem;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.2rem; /* from mobile version */
  text-align: center;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}
/* ========== Credentials PDF Page Fixes ========== */

/* General styling for the PDF container */
.pdf-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Always show this embed (PDF preview) on all devices */
.desktop-embed {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  margin-bottom: 1rem;
}

/* Mobile-only container (used for link or message) */
.mobile-only {
  display: block;
}

/* Hide the mobile-only content on larger screens */
@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

/* Add vertical spacing between sections */
.content-section {
  margin-bottom: 3rem; /* Adjust this to increase or decrease spacing */
}

.video-card {
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}