/* css/style.css - IED Institute Color Palette: Low Contrast Red, White, Light Gray */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@700&family=Bungee+Outline&display=swap');

/* ========== GLOBAL RESET & IED COLOR PALETTE ========== */
:root {
  --ied-red: #b0120d;
  --ied-red-light: #FB2C26;
  --ied-red-dark: #FB2C26;
  --ied-white: #ffffff;
  --ied-light-gray: #f5f7fa;
  --ied-gray: #e8edf2;
  --ied-dark-gray: #6c757d;
  --ied-text-dark: #2c3e50;
  --ied-text-light: #5a6e7c;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #fef8f7 100%);
  color: var(--ied-text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding-top: 75px;
}

/* ========== NAVBAR PREMIUM STYLES ========== */
.premium-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  padding: 0.6rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--ied-gray);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.navbar-brand {
  text-decoration: none;
  padding: 0;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-line {
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--ied-text-dark);
  letter-spacing: 1px;
  line-height: 1.2;
}

.brand-line:nth-child(2) {
  font-size: 0.7rem;
}

.brand-line:nth-child(3) {
  font-size: 0.7rem;
  margin-bottom: 2px;
}

.brand-underline {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ied-red), #d65c4a, var(--ied-red));
  margin: 2px 0;
  border-radius: 2px;
}

.brand-tagline {
  font-size: 0.5rem;
  color: var(--ied-red);
  font-weight: 500;
  margin-top: 1px;
  letter-spacing: 0.5px;
}

/* ========== DESKTOP NAVIGATION ========== */
@media (min-width: 992px) {
  .premium-navbar .nav-link {
    font-weight: 500;
    margin: 0 0.8rem;
    color: var(--ied-text-dark);
    position: relative;
    transition: color 0.25s;
    font-size: 0.95rem;
    padding: 0.5rem 0;
  }

  .premium-navbar .nav-link:hover,
  .premium-navbar .nav-link.active {
    color: var(--ied-red);
  }

  .premium-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ied-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
  }

  .premium-navbar .nav-link:hover::after,
  .premium-navbar .nav-link.active::after {
    width: 70%;
  }

  .btn-enquire-now {
    background: var(--ied-red);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(179, 59, 44, 0.2);
  }

  .btn-enquire-now:hover {
    background: var(--ied-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(179, 59, 44, 0.3);
    color: white;
  }
}

/* ========== MOBILE NAVBAR - CENTER LOGO ========== */
@media (max-width: 991px) {
  .premium-navbar {
    padding: 0.5rem 0;
  }

  /* Center the logo section */
  .navbar-brand {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
  }

  /* Hide the toggler since using bottom navigation */
  .navbar-toggler {
    display: none;
  }

  /* Adjust logo size for mobile */
  .navbar-logo {
    height: 42px;
  }

  .brand-line {
    font-size: 0.6rem;
  }

  .brand-line:nth-child(2),
  .brand-line:nth-child(3) {
    font-size: 0.6rem;
  }

  .brand-tagline {
    font-size: 0.45rem;
  }

  .brand-underline {
    margin: 1px 0;
  }
}

/* ========== MOBILE BOTTOM NAVIGATION ========== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid var(--ied-gray);
  z-index: 1040;
  display: none;
}

@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 70px !important;
  }
}

.mobile-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.6rem 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ied-text-light);
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
}

.mobile-nav-item i {
  font-size: 1.2rem;
}

.mobile-nav-item.active {
  color: var(--ied-red);
  background: rgba(179, 59, 44, 0.1);
}

.mobile-nav-item.enquire-btn-mobile {
  background: var(--ied-red);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(179, 59, 44, 0.3);
}

.mobile-nav-item.enquire-btn-mobile i {
  font-size: 1rem;
}

.mobile-nav-item.enquire-btn-mobile span {
  font-size: 0.65rem;
}

.mobile-nav-item.enquire-btn-mobile:hover {
  transform: translateY(-7px);
  background: var(--ied-red-dark);
}

/* ========== FOOTER PREMIUM STYLES ========== */
.premium-footer {
  background: var(--ied-text-dark);
  border-top: 1px solid var(--ied-gray);
  padding: 3rem 0 1.5rem;
  font-family: 'Inter', sans-serif;
}

/* Logo Section - Centered */
.footer-logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-brand-container {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-text-container {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.footer-brand-line {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ied-light-gray);
  letter-spacing: 1px;
  line-height: 1.2;
}

.footer-brand-underline {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ied-red), #d65c4a, var(--ied-red));
  margin: 3px 0;
  border-radius: 2px;
}

.footer-brand-tagline {
  font-size: 0.55rem;
  color: var(--ied-red);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* Links Row */
.footer-links-row {
  margin: 2rem 0;
  text-align: center;
}

.footer-heading {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--ied-light-gray);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--ied-red), #d65c4a);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-heading:hover::after {
  width: 80px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ied-text-light);
  transition: all 0.2s;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--ied-red);
  transform: translateX(5px);
  display: inline-block;
}

/* Social Media Section - Centered */
.footer-social-section {
  text-align: center;
  margin: 2rem 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  color: var(--ied-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ied-gray);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--ied-red);
  color: white;
  transform: translateY(-4px) scale(1.1);
  border-color: var(--ied-red);
  box-shadow: 0 8px 20px rgba(179, 59, 44, 0.2);
}

/* IED SALEM Brand Section - Halftone Bold Font Effect */
.footer-brand-section {
  text-align: center;
  padding: 2rem 0 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--ied-gray);
}

.ied-salem-container {
  position: relative;
  display: inline-block;
}

.ied-salem-text {
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 45px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  background: linear-gradient(135deg, #2c3e50 0%, #1a2c3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.4s ease;
}

/* Halftone Pattern Effect */
.ied-salem-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-radial-gradient(
    circle at 20% 30%,
    rgba(179, 59, 44, 0.15) 0px,
    rgba(179, 59, 44, 0.15) 2px,
    transparent 2px,
    transparent 6px
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ied-salem-text:hover::before {
  opacity: 1;
}

/* Halftone dots animation */
@keyframes halftonePulse {
  0% {
    background-size: 6px 6px;
  }
  50% {
    background-size: 8px 8px;
  }
  100% {
    background-size: 6px 6px;
  }
}

.ied-salem-text {
  position: relative;
  display: inline-block;
}

/* Bold text effect with multiple layers */
.ied-salem-text {
  text-shadow: 
    2px 2px 0 rgba(179, 59, 44, 0.1),
    4px 4px 0 rgba(179, 59, 44, 0.05);
}

/* Hover Effects */
.ied-salem-text:hover {
  background: linear-gradient(135deg, var(--ied-red), #d65c4a, #ff8a6f, var(--ied-red));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 2s ease infinite;
  transform: scale(1.05);
  letter-spacing: 6px;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Halftone pattern overlay on hover */
.ied-salem-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(179, 59, 44, 0.08) 3px,
    rgba(179, 59, 44, 0.08) 6px
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 4px;
}

.ied-salem-text:hover::after {
  opacity: 1;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--ied-text-light);
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.7;
  transition: all 0.3s ease;
  margin-top: 0.8rem;
}

.brand-subtitle:hover {
  opacity: 1;
  letter-spacing: 3px;
}

/* Copyright */
.copyright {
  font-size: 0.75rem;
  border-top: 1px solid var(--ied-gray);
  padding-top: 1.5rem;
  margin-top: 1rem;
  color: var(--ied-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-brand-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-text-container {
    text-align: center;
    align-items: center;
  }
  
  .ied-salem-text {
    font-size: 2rem;
    letter-spacing: 3px;
  }
  
  .ied-salem-text:hover {
    letter-spacing: 4px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .footer-heading::after {
    width: 50px;
  }
  
  .footer-heading:hover::after {
    width: 70px;
  }
}

@media (max-width: 576px) {
  .footer-logo {
    height: 45px;
  }
  
  .footer-brand-line {
    font-size: 0.65rem;
  }
  
  .footer-brand-tagline {
    font-size: 0.45rem;
  }
  
  .ied-salem-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  
  .ied-salem-text:hover {
    letter-spacing: 3px;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
  
  .brand-subtitle {
    font-size: 0.7rem;
  }
  
  .copyright {
    font-size: 0.65rem;
  }
}
/* ========== EXTRA SMALL DEVICES (PHONES) ========== */
@media (max-width: 576px) {
  .navbar-logo {
    height: 38px;
  }

  .brand-line {
    font-size: 0.55rem;
  }

  .brand-line:nth-child(2),
  .brand-line:nth-child(3) {
    font-size: 0.55rem;
  }

  .brand-tagline {
    font-size: 0.42rem;
  }

  .brand-container {
    gap: 0.5rem;
  }

  .footer-logo {
    height: 42px;
  }

  .footer-brand-line {
    font-size: 0.6rem;
  }

  .footer-brand-tagline {
    font-size: 0.45rem;
  }

  .footer-text {
    font-size: 0.75rem;
  }

  .mobile-nav-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
  }

  .mobile-nav-item i {
    font-size: 1rem;
  }

  .mobile-nav-item.enquire-btn-mobile {
    padding: 0.25rem 0.7rem;
  }
}

/* ========== TABLET DEVICES ========== */
@media (max-width: 768px) and (min-width: 577px) {
  .navbar-logo {
    height: 45px;
  }

  .brand-line {
    font-size: 0.6rem;
  }

  .brand-tagline {
    font-size: 0.45rem;
  }

  .footer-brand-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-text-container {
    text-align: center;
    align-items: center;
  }

  .footer-text {
    text-align: center;
    font-size: 0.8rem;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .mobile-nav-container {
    padding: 0.5rem 0.8rem;
  }

  .mobile-nav-item {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }

  .mobile-nav-item i {
    font-size: 1.1rem;
  }

  .mobile-nav-item.enquire-btn-mobile {
    padding: 0.3rem 0.8rem;
  }
}

/* ========== HERO SPLIT SECTION ========== */
.hero-split {
  background: var(--ied-white);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--ied-text-dark);
  margin-bottom: 1rem;
}

.hero-content .accent-text {
  color: var(--ied-red);
  position: relative;
  display: inline-block;
}

.hero-content .accent-text::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  z-index: -1;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--ied-text-light);
  margin: 1.5rem 0;
  line-height: 1.6;
  max-width: 90%;
}

.hero-buttons .btn-primary-ied {
  background: var(--ied-red);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.25s;
  color: white;
  margin-right: 1rem;
  box-shadow: 0 4px 12px rgba(179, 59, 44, 0.2);
  text-decoration: none;
  display: inline-block;
}

.hero-buttons .btn-primary-ied:hover {
  background: var(--ied-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(179, 59, 44, 0.25);
}

.hero-buttons .btn-outline-ied {
  border: 1.5px solid var(--ied-gray);
  background: transparent;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--ied-text-dark);
  text-decoration: none;
  display: inline-block;
}

.hero-buttons .btn-outline-ied:hover {
  border-color: var(--ied-red);
  background: rgba(179, 59, 44, 0.02);
  color: var(--ied-red);
  transform: translateY(-2px);
}

.feature-list {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ied-text-light);
}

.feature-item i {
  color: var(--ied-red);
  font-size: 1rem;
}

/* Carousel styling */
.carousel-premium {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
  background: var(--ied-light-gray);
}

.carousel-premium .carousel-item img {
  object-fit: contain;
  height: 480px;
  width: 100%;
  transition: transform 0.6s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(179, 59, 44, 0.8);
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 50%;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ied-red);
  margin: 0 6px;
}

.carousel-indicators button.active {
  background-color: var(--ied-red-dark);
}

/* ========== COURSES PREVIEW SECTION ========== */
.courses-preview {
  padding: 4rem 0;
  background: var(--ied-light-gray);
}

.section-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--ied-text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--ied-text-light);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.course-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--ied-gray);
  height: 100%;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(179, 59, 44, 0.2);
}

.course-icon {
  width: 70px;
  height: 70px;
  background: rgba(179, 59, 44, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.course-icon i {
  font-size: 2rem;
  color: var(--ied-red);
}

.course-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--ied-text-dark);
}

.course-card p {
  color: var(--ied-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========== RESPONSIVE HERO & COURSES ========== */
@media (max-width: 992px) {
  .hero-split {
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .carousel-premium .carousel-item img {
    height: 380px;
  }

  .hero-buttons {
    margin-bottom: 2rem;
  }

  .feature-list {
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ========== COURSES PAGE SPECIFIC STYLES ========== */
.courses-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.courses-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(179, 59, 44, 0.05), transparent);
  pointer-events: none;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ied-red);
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ied-text-light);
}

/* Search and Filter Section */
.search-filter-section {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ied-gray);
  position: sticky;
  top: 72px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ied-red);
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1px solid var(--ied-gray);
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--ied-red);
  box-shadow: 0 0 0 3px rgba(179, 59, 44, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--ied-gray);
  background: white;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ied-red);
  border-color: var(--ied-red);
  color: white;
}

/* Department Tabs */
.dept-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--ied-gray);
  padding-bottom: 0;
}

.dept-tab {
  padding: 0.8rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  color: var(--ied-text-light);
}

.dept-tab.active {
  color: var(--ied-red);
}

.dept-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ied-red);
}

.dept-tab i {
  margin-right: 0.5rem;
}

/* Course Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.course-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--ied-gray);
  cursor: pointer;
}

.course-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.course-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.course-card-modern:hover .course-image img {
  transform: scale(1.05);
}

.course-level {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-info {
  padding: 1.5rem;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ied-text-dark);
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--ied-text-light);
}

.course-meta i {
  margin-right: 0.3rem;
  color: var(--ied-red);
}

.course-description {
  font-size: 0.9rem;
  color: var(--ied-text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.course-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ied-red);
  margin-bottom: 1rem;
}

.course-actions {
  display: flex;
  gap: 1rem;
}

.btn-details {
  flex: 1;
  background: white;
  border: 1px solid var(--ied-red);
  color: var(--ied-red);
  padding: 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-details:hover {
  background: var(--ied-red);
  color: white;
}

.btn-enroll {
  flex: 1;
  background: var(--ied-red);
  border: none;
  color: white;
  padding: 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-enroll:hover {
  background: var(--ied-red-dark);
  transform: translateY(-2px);
}

.no-results {
  text-align: center;
  padding: 4rem;
  grid-column: 1 / -1;
}

/* Modal Styles */
.course-modal .modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.course-modal-header {
  background: var(--ied-red);
  color: white;
  padding: 2rem;
  position: relative;
}

.course-modal-header h3 {
  margin: 0;
  font-weight: 700;
}

.modal-syllabus {
  list-style: none;
  padding-left: 0;
}

.modal-syllabus li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ied-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-syllabus li i {
  color: var(--ied-red);
}

/* Responsive */
@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .dept-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .search-filter-section {
    top: 60px;
  }

  .courses-hero h1 {
    font-size: 2rem !important;
  }
}


/* ========== PREMIUM SPECIALIZATIONS CAROUSEL ========== */
.specializations-modern {
  padding: 5rem 0;
  background: var(--ied-light-gray);
  overflow: hidden;
}

.section-title-modern {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--ied-text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle-modern {
  text-align: center;
  color: var(--ied-text-light);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* Carousel Container */
.spec-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spec-carousel-scroll {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0.5rem 0;
}

.spec-carousel-scroll::-webkit-scrollbar {
  display: none;
}

.spec-carousel-track {
  display: flex;
  gap: 1.8rem;
  width: fit-content;
}

/* Modern Card Design */
.spec-card-modern {
  min-width: 280px;
  width: 280px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -12px rgba(179, 59, 44, 0.15);
  border-color: rgba(179, 59, 44, 0.2);
}

/* Thumbnail */
.spec-thumbnail {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  position: relative;
  overflow: hidden;
}

.spec-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spec-card-modern:hover .spec-thumbnail img {
  transform: scale(1.05);
}

/* Content */
.spec-content {
  padding: 1.2rem 1.2rem 1.5rem;
  text-align: left;
}

.spec-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ied-text-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.spec-name i {
  color: var(--ied-red);
  font-size: 0.9rem;
  margin-right: 0.3rem;
}

.spec-course-count {
  display: inline-block;
  background: rgba(179, 59, 44, 0.08);
  color: var(--ied-red);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.spec-description-preview {
  font-size: 0.75rem;
  color: var(--ied-text-light);
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spec-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ied-red);
  text-decoration: none;
  transition: gap 0.3s;
}

.spec-card-modern:hover .spec-explore {
  gap: 0.8rem;
}

.spec-explore i {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.spec-card-modern:hover .spec-explore i {
  transform: translateX(3px);
}

/* Navigation Buttons */
.spec-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--ied-gray);
  color: var(--ied-red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spec-nav-btn:hover {
  background: var(--ied-red);
  color: white;
  border-color: var(--ied-red);
  transform: scale(1.05);
}

.spec-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.spec-nav-btn.disabled:hover {
  background: white;
  color: var(--ied-red);
  transform: none;
}

/* View All Link */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ied-red);
  font-weight: 600;
  text-decoration: none;
  margin-top: 2rem;
  transition: gap 0.3s;
}

.view-all-link:hover {
  gap: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
  .spec-card-modern {
    min-width: 260px;
    width: 260px;
  }

  .spec-thumbnail {
    height: 150px;
  }

  .spec-carousel-container {
    gap: 0.5rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .specializations-modern {
    padding: 3rem 0;
  }

  .section-title-modern {
    font-size: 1.8rem;
  }

  .spec-card-modern {
    min-width: 240px;
    width: 240px;
  }

  .spec-thumbnail {
    height: 140px;
  }

  .spec-name {
    font-size: 1rem;
  }

  .spec-nav-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 576px) {
  .spec-card-modern {
    min-width: 220px;
    width: 220px;
  }

  .spec-thumbnail {
    height: 130px;
  }

  .spec-content {
    padding: 1rem;
  }

  .spec-nav-btn {
    width: 32px;
    height: 32px;
  }
}

/* ========== FLOATING ENQUIRE BUTTON ========== */
.floating-enquire-btn {
  position: fixed;
  display: none; /* Hidden by default, will be shown on mobile */
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  cursor: pointer;
  animation: floatPulse 2s ease-in-out infinite;
}

.floating-btn-content {
  background: linear-gradient(135deg, var(--ied-red) 0%, #d65c4a 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(179, 59, 44, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-btn-content i:first-child {
  font-size: 1rem;
}

.floating-btn-content i:last-child {
  transition: transform 0.3s ease;
}

.floating-enquire-btn:hover .floating-btn-content {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(179, 59, 44, 0.45);
}

.floating-enquire-btn:hover .floating-btn-content i:last-child {
  transform: translateX(5px);
}

@keyframes floatPulse {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive adjustments for floating button */
@media (max-width: 768px) {
  .floating-enquire-btn {
    bottom: 80px;
    right: 20px;
  }
  
  .floating-btn-content {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .floating-btn-content span {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .floating-enquire-btn {
    bottom: 75px;
    right: 15px;
  }
  
  .floating-btn-content {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .floating-btn-content span {
    display: inline-block;
  }
}

/* Hide floating button on desktop when enquire button is already in navbar */
@media (max-width: 992px) {
  .floating-enquire-btn {
    display: block;
  }
}