/* General Reset */
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  color: #111827;
}

/* Header */
header {
  background: #1e3a8a;
  color: white;
  padding: 0.75rem 1.5rem;
  /* slightly smaller padding for balance */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo img {
  height: 70px;
  /* reduced for better vertical alignment */
  display: block;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
  padding: 0.25rem 0;
  /* better vertical alignment */
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #fbbf24;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Login button */
.login-btn {
  background: #fbbf24;
  color: #1e3a8a;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.login-btn:hover {
  background: #fde68a;
  color: #111827;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  /* prevent vertical misalignment */
}


/* Hero Section */
.hero {
  min-height: 50vh;
  background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.7)),
    url('https://iop.liba.edu/assets/images/liba-college.jpeg') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: white;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
}

/* Left Content */
.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Right Form (Glassmorphism) */
.hero-form {
  flex: 0.6;
  /* takes less space compared to text */
  max-width: 380px;
  /* keeps form compact */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
}

.hero-form h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero input {
  width: 92%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  transition: 0.3s ease;
}

/* Inputs */
.hero-form,
.hero-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  transition: 0.3s ease;
}

.hero-form input:focus,
.hero-form select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.5);
}

/* Checkbox */
.hero-form .agree {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.hero-form .agree input[type="checkbox"] {
  accent-color: #fbbf24;
  transform: scale(1.3);
}

/* Submit Button */
.hero-form .btn-primary {
  background: #fbbf24;
  color: #1e3a8a;
  font-weight: 700;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.hero-form .btn-primary:hover {
  background: #fde68a;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .hero-form {
    flex: none;
    width: 100%;
    max-width: 100%;
    /* form expands on small screens */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: white;
  }

  .nav-right {
    display: none;
    flex-direction: column;
    background: #1e3a8a;
    padding: 1rem;
    position: absolute;
    top: 80px;
    right: 0;
    width: 65%;
  }

  .nav-right.active {
    display: flex;
  }
}

/* Info Section */
.info-section {
  padding: 2rem 1.5rem;
  background: #f9fafb;
  color: #1e3a8a;
}

.info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

/* Left Text */
.info-text {
  flex: 1;
}

.info-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.info-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.info-text ul {
  list-style: none;
  padding: 0;
}

.info-text ul li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

/* Right Image */
.info-image {
  flex: 1;
}

.info-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
  .info-container {
    flex-direction: column;
    text-align: center;
  }

  .info-image img {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Features Section */
.features-section {
  padding: 1rem 1.5rem;
  background: #ffffff;
  color: #1e3a8a;
  text-align: center;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.features-container .subtitle {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #f59e0b;
  /* golden accent */
}

.feature-card p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.feature-card:hover h3 {
  color: #fbbf24;
}

/* Responsive */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Courses Section */
.courses-section {
  padding: 5rem 1.5rem;
  background: #f9fafb;
  color: #1e3a8a;
  text-align: center;
}

.courses-container {
  max-width: 1200px;
  margin: 0 auto;
}

.courses-container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

/* Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Course Card */
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  text-align: left;
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-content {
  padding: 1.5rem;
}

.course-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #f59e0b;
}

.course-content p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-content .duration,
.course-content .fee {
  display: block;
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

/* Hover effect */
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Base Styles (your existing CSS) */
.director-section {
  background-color: #1e3a8a;
  padding: 3% 0;
  color: #fff;
}

.director-container {
  width: 90%;
  margin: auto;
  border: 2px solid #fff;
  padding: 2rem;
  border-radius: 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.director-content {
  flex: 1 1 55%;
}

.director-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

.director-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.director-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.director-text {
  text-align: justify;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.director-sign {
  margin-top: 1rem;
  font-size: 1rem;
  font-style: italic;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .director-container {
    flex-direction: column;
    /* stack content vertically */
    padding: 1rem;
  }

  .director-content,
  .director-image {
    flex: 1 1 100%;
  }

  .director-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .director-text {
    font-size: 0.95rem;
    text-align: justify;
  }

  .director-image img {
    max-width: 100%;
    height: auto;
  }

  .director-sign {
    text-align: center;
    font-size: 0.95rem;
  }

  .hero-text h1 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 0.7rem;
    opacity: 0.95;
  }

  h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: start;
  }

  p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: start;
  }

  ul li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    text-align: start;
  }
}

.error {
  color: red;
  font-size: 0.9em;
}



/* Loader styling */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.faculty {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.faculty-container {
  max-width: 1200px;
  margin: auto;
}

.faculty h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.faculty-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2.5rem;
}

.faculty-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.faculty-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faculty-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.faculty-member h3 {
  font-size: 1.2rem;
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.faculty-member p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.8rem;
}

.faculty-member .linkedin {
  font-size: 1.5rem;
  color: #0066cc;
  transition: color 0.3s ease;
}

.faculty-member .linkedin:hover {
  color: #004080;
}

/* Admissions Section */
.admissions {
  position: relative;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e3a8a 100%);
  text-align: center;
  font-family: 'Arial', sans-serif;
  color: #fff;
  overflow: hidden;
}

/* Optional overlay to improve text readability */
.admissions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.admissions-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Heading and Intro */
.admissions h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 15px;
}

.admissions-intro {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Grid for steps */
.admissions-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Step Cards */
.admission-step {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  color: #fff;
}

.admission-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}

.admission-step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.admission-step p {
  font-size: 16px;
  line-height: 1.5;
}

/* Apply Button */
.apply-btn {
  display: inline-block;
  padding: 12px 35px;
  background-color: #ff7f50;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.apply-btn:hover {
  background-color: #e0663d;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .admissions h2 {
    font-size: 28px;
  }

  .admissions-intro {
    font-size: 16px;
  }

  .admission-step h3 {
    font-size: 18px;
  }
}

/* Testimonials Section */
.testimonials {
  padding: 60px 20px;
  color: #333;
  text-align: center;
  font-family: 'Arial', sans-serif;
  position: relative;
}

/* Container */
.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Heading and Intro */
.testimonials h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.testimonials-intro {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #555;
}

/* Grid layout for testimonial cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Individual testimonial card */
.testimonial-card {
  background-color: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.testimonial-card h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #222;
}

.testimonial-card span {
  font-size: 14px;
  color: #777;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .testimonials h2 {
    font-size: 28px;
  }

  .testimonials-intro {
    font-size: 16px;
  }

  .testimonial-card h4 {
    font-size: 16px;
  }
}

/* Footer Styles */
.site-footer {
  background-color: #1e3a8a;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  text-align: left;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 220px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #f1c232;
}

.footer-section p,
.footer-section ul {
  font-size: 14px;
  line-height: 1.6;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
}

.social-links a {
  font-size: 18px;
  color: #fff;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #f1c232;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}