body {
  font-family: "Poppins";
  margin: 0;
  padding: 0;
}

/* Top-hedaer of icons */
.top-header {
  background-color: white;
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  font-size: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
}

.contact-info span {
  margin-right: 25px;
  display: inline-flex;
  align-items: center;
  color: black;
}

.contact-info i {
  margin-right: 8px;
  color: red;
}

.social-icons a {
  color: red;
  margin-left: 15px;
  font-size: 16px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: black;
}

/* Main container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-around !important;
  background: white;
  padding: 10px 0;
}

/* Logo section */
.logo-section {
  flex-shrink: 0;
  padding: 0 20px;
}

.logo-section img {
  height: 100px;
  width: auto;
}


/* Nav Header */
/* Reset and base */
.navbar, .navbar ul, .navbar li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar {
  display: flex;
  align-items: center;
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  position: relative;
}

.logo-section img {
  height: 70px;
  width: auto;
}

/* Desktop menu */
.menu {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  gap: 10px;
}

.menu > li {
  position: relative;
}

.menu-link,
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: background 0.3s ease;
}

/* Color-coded backgrounds for each item */
.menu > li:nth-child(1) > .menu-link { background: #e74c3c; }
.menu > li:nth-child(2) > .dropdown-toggle { background: #e67e22; }
.menu > li:nth-child(3) > .menu-link { background: #f1c40f; color: rgb(255, 255, 255); }
.menu > li:nth-child(4) > .dropdown-toggle { background: #1abc9c; }
.menu > li:nth-child(5) > .menu-link { background: #3498db; }
.menu > li:nth-child(6) > .menu-link { background: #9b59b6; }
.menu > li:nth-child(7) > .menu-link { background: #34495e; }
.menu > li:nth-child(8) > .menu-link { background: #95a5a6; color: rgb(255, 255, 255); }

.menu-link:hover, 
.dropdown-toggle:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .menu-link,
  .dropdown-toggle {
    background: transparent !important;
    color: #333 !important; /* or your desired mobile color */
    opacity: 1 !important;
  }
}
/* Hide close menu button above 768px wide (desktop) */
@media (min-width: 769px) {
  .close-menu {
    display: none !important;
  }
}


/* Dropdown menus hidden by default */
.dropdown-menu,
.submenu {
  position: absolute;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  margin-top: 5px;
  z-index: 1000;
  min-width: 200px;
  padding: 5px 0;
}

/* Show dropdown on hover - desktop only */
@media (min-width: 769px) {
  .dropdown:hover > .dropdown-menu,
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .dropdown-menu,
  .submenu {
    display: none;
  }
  .dropdown-menu.open,
  .submenu.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: static !important;
    box-shadow: none !important;
    background: white !important;
  }
}



/* Dropdown items */
.dropdown-menu li a,
.submenu li a {
  padding: 10px 20px;
  display: block;
  color: #333 !important;
  
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-menu li a:hover,
.submenu li a:hover {
  background-color: orangered;
  color: rgb(255, 255, 255) !important;
}

/* Responsive for mobile */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
  display: none;
  color: #333;
  margin-left: auto;     /* reset */
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 30px;
    color: #333;
    margin-left: auto;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70vw;
    background: white;
    flex-direction: column;
    padding-top: 80px;
    gap: 0;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 3000;
  }

  .menu.active {
    right: 0;
  }

  .menu > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .menu-link,
  .dropdown-toggle {
    color: #333; /* fixed corrupted color */
    text-align: left;
    padding: 15px 30px;
    width: 100%;
    background: transparent;
    border-radius: 10px;
    margin: 5px;
  }


  /* Dropdown/submenu styles */
  .dropdown-menu,
  .submenu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .dropdown-menu.open,
  .submenu.open {
    display: block !important;
  }

  /* Submenu hierarchy */
  .dropdown-submenu > .dropdown-toggle {
    padding-left: 40px;
    font-weight: 500;
    font-size: 15px;
    background: #f5f5f5;
    border: none;
    color: #333;
    width: 100%;
    text-align: left;
    border-radius: 0;
    margin-top: 5px;
  }

  .dropdown-submenu > .dropdown-menu {
    background: #fafafa;
    border-left: 2px solid #e67e22;
    margin-left: 20px;
    box-shadow: none;
    border-radius: 0;
    padding-left: 10px;
  }

  .dropdown-submenu .dropdown-menu li a {
    padding: 12px 20px 12px 36px;
    color: #505050 !important;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    background: none;
    transition: background 0.2s;
  }

  .dropdown-submenu .dropdown-menu li a:hover {
    background: #ffe5d0;
    color: #e67e22 !important;
  }
}


  

/* new */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70vw;
    background: white;
    flex-direction: column;
    padding-top: 80px;
    gap: 0;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 3000;
  }
  .menu.active { right: 0; }
  .menu > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .menu-link, .dropdown-toggle {
    color: rgb(255, 255, 255); /* or white depending on design */
    text-align: left;
    padding: 15px 30px;
    width: 100%;
    background: transparent;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 5px;
    margin-right: 5px;
  }
  .dropdown-toggle::after { content: ''; float: right; }
}

/* Style dropdown-submenu for mobile */
@media (max-width: 768px) {
  .dropdown-submenu > .dropdown-toggle {
    padding-left: 40px; /* indent to show hierarchy */
    font-weight: 500;
    font-size: 15px;
    background: #f5f5f5;
    border: none;
    color: #333;
    width: 100%;
    text-align: left;
    border-radius: 0;
    margin-top: 5px;
    margin-bottom: 0;
  }
  .dropdown-submenu > .dropdown-menu {
    background: #fafafa;
    border-left: 2px solid #e67e22; /* accent for nesting */
    margin-left: 20px;
    box-shadow: none;
    border-radius: 0;
    padding-left: 10px;
  }
  .dropdown-submenu .dropdown-menu li a {
    padding: 12px 20px 12px 36px;
    color: #505050 !important;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    background: none;
    transition: background 0.2s;
  }
  .dropdown-submenu .dropdown-menu li a:hover {
    background: #ffe5d0;
    color: #e67e22 !important;
  }
}


/* menu close button */
.close-menu {
  z-index: 9999;
}



/* Banner Container */
.banner {
  background: url("https://mis.edu.in/images/home-bg.jpg") no-repeat center center/cover;
  position: relative;
  color: #fff;
  /* padding: 60px 20px 40px; */
  text-align: center;
}

/* Overlay to darken background slightly */
.banner-overlay {
  background: rgba(0, 0, 0, 0.4);
  min-height: 550px;
  padding: 40px 20px;
  margin-bottom: 0; /* ensure no gap below */
}

/* Heading */
.banner-heading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 40px;
}

/* Grid Layout for Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  column-gap: 20px; /* Decreased gap */
  justify-content: center; /* Center the cards as a group */
  padding: 20px 0;
}

/* Individual Cards */
.feature-card {
  background: white;
  color: black;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 250px; /* Decreased width */
  height: 350px; /* Increased height */
  margin: 0 auto; /* Center align cards horizontally */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content at top */
}

.feature-card img{
  width: 100%;
  aspect-ratio: 16 / 9;   /* 4/3 or 1/1 (square) also works */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
}
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: bolder;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* animation classes */
.left-card {
  animation: slideInLeft 2s ease-out forwards;
}

.center-card {
  animation: slideInTop 2s ease-out forwards;
}

.right-card {
  animation: slideInRight 2s ease-out forwards;
}
.left-card,
.center-card,
.right-card {
  opacity: 0;
}

/* Medium screens (tablet) */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, auto); /* 2 cards in a row */
    column-gap: 20px;
    row-gap: 20px;
  }
}

/* Small screens (mobile) */
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    row-gap: 20px;
  }

  .feature-card {
    width: 90%; /* Responsive width */
    margin: 0 auto; /* Center cards */
  }
}

/* Scrolling Banner */
.scroll-banner {
  background-color: #f44336;
  color: white;
  padding: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0; /* Remove margin */
  line-height: 3; /* Keep height tight */
}

/* about us */
.about-section-mis {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

/* About content */
.about-title-mis {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.about-title-mis span {
  color: #e74c3c;
}

.about-description-mis {
  font-size: 1rem;
  max-width: 750px;
  margin-bottom: 20px;
}

.about-button-mis {
  background-color: #162447;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

/* Highlights - Flex */
.about-highlights-mis {
  display: flex;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.highlight-card-mis {
  flex: 1 1 250px;
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 8px;
  min-width: 250px;
}

.highlight-card-mis h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Goals - Grid */
.about-goals-mis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.goal-card-mis {
  padding: 20px;
  color: white;
  border-radius: 8px;
}

.goal-red {
  background-color: #f44336;
}
.goal-orange {
  background-color: #f39c12;
}
.goal-blue {
  background-color: #2980b9;
}

.goal-card-mis h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .about-title-mis {
    font-size: 2rem;
  }

  .about-description-mis {
    font-size: 0.95rem;
  }

  .highlight-card-mis,
  .goal-card-mis {
    padding: 16px;
  }

  .about-button-mis {
    width: 100%;
  }
}

.custom-card {
  height: 400px;
  position: relative;
}

.custom-card:hover .custom-card-overlay {
  background-color: rgba(0, 0, 0, 0.3); /* Make image brighter on hover */
}

.custom-card-img {
  transition: all 0.5s ease-in-out;
  filter: brightness(60%);
}

.custom-card:hover .custom-card-img {
  filter: brightness(100%);
}

/* animation for banner three cards */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInTop {
  from {
    transform: translateY(-50%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* testimonial swiper */

.swiper-button-next,
.swiper-button-prev {
  width: 40px;
  height: 40px;
  color: white;
  font-weight: bold;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 22px !important;
  font-weight: 900;
  color: white;
}

/* small testimonial */

.splide__slide {
  transition: transform 0.3s ease-in-out;
}

.splide__slide:hover {
  transform: scale(1.02);
}
.splide__pagination__page {
  background-color: #94a3b8; /* default dot color (slate-400) */
  opacity: 1;
}

.splide__pagination__page.is-active {
  background-color: #1d4ed8; /* active dot color (blue-700) */
  transform: scale(1.2);
}

/* massinory */

.masonry-container {
  column-count: 1; /* 4 columns */
  column-gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

.masonry-card {
  display: inline-block;
  background: #d22f2f;
  color: white;
  border-radius: 5px;

  margin-bottom: 20px;
  width: 100%;
  border: 1px solid red;
  padding: 3px;
  box-sizing: border-box;
  break-inside: avoid; /* prevent cards from breaking mid-content */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.masonry-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* margin-bottom: 10px; */
}

.masonry-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.masonry-card p {
  font-size: 15px;
  margin: 4px 0;
}
.masonry-card a {
  text-decoration: none;
  font-size: medium;
  color: white;
  font-size: 15px;
}
.masonary-text-container {
  margin: 20px;
}

@media (min-width: 768px) {
  .masonry-container {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-container {
    column-count: 4;
  }
}

/* Reusable CSS Classes (inside <style> or external stylesheet)  */

.download-btn {
  @apply flex items-center justify-start gap-3 bg-red-700 hover:bg-black transition-all duration-300 px-4 py-2 rounded shadow w-full sm:w-[90%] max-w-3xl;
}

.icon {
  @apply w-6 h-6;
}
/* Overview Hero */
.overview-hero {
  text-align: center;
  padding: 60px 20px;

}

.overview-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.overview-hero p {
  font-size: 20px;
  color: #ffffff;
}

/* Overview Section */
.overview-container {
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
}

.overview-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.overview-left {
  flex: 1 1 55%;
  color: #222;
}
/* Left Content: h3 should be bold (enforced) */
.overview-left h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700; /* Force bold */
}
/* Center align left content vertically */
.overview-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
  align-items: center; /* This centers both left and right vertically */
}
.overview-block {
  margin-bottom: 40px;
}

.overview-block h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.highlight-red {
  color: #D22F2F;
}

.overview-icons {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icon-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.3s;
}

.icon-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.icon-card i {
  font-size: 26px;
  color: #D22F2F;
}

.icon-card h4 {
  font-size: 16px;
  margin: 0;
}
.icon-card:hover h4 {
  color: #D22F2F;
}


/* Counter Section */
.counter-section {
  background: #e74c3c;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.counter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

.counter-box {
  flex: 1 1 200px;
}

.counter-box i {
  font-size: 32px;
  margin-bottom: 10px;
}

.counter-box h3 {
  font-size: 28px;
  margin: 5px 0;
}
/* Vision & Mission */
.vision-mission-container {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.vision-mission-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
  justify-content: center;
}

.vm-card {
  background-color: white;
  flex: 1 1 400px;
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.vm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.vm-icon {
  font-size: 40px;
  color: white;
  background: red;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.vm-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.vm-card p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

.red-card .vm-icon {
  background-color: #e74c3c;
}

.blue-card .vm-icon {
  background-color: #2980b9;
}
.vision-mission-images {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.vm-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.vm-row.reverse {
  flex-direction: row-reverse;
}

.vm-img {
  flex: 1 1 45%;
}

.vm-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.vm-text {
  flex: 1 1 50%;
}

.vm-text h3 {
  font-size: 28px;
  color: #d22f2f;
  margin-bottom: 20px;
  font-weight: 700; /* BOLD */
}

.vm-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}
/* Values Section */
.values-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: #c62828; /* same red tone as mission/vision */
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.value-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #2e7d32; /* green tone for values */
}

.value-card p {
  font-size: 15px;
  color: #555;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .vm-row,
  .vm-row.reverse {
    flex-direction: column;
  }
}
 
  
/* Principal and Founder*/
.principal-section {
  display: flex;
  align-items: center;
  min-height: 00vh; /* full height */
}

/* Left side: image */
.principal-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.principal-left img {
  object-fit: cover;
  margin-left: 0; /* touches left screen edge */
}

/* Right side: message */
.principal-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 80px; /* space from right side */
}

.principal-right h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

.principal-right p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

/* Mobile view */
@media (max-width: 900px) {
  .principal-section {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .principal-left img {
    margin: 0 auto;
  }

  .principal-right {
    padding: 20px;
  }
}


/* Comprehensive Info Page */
.ci-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.ci-container {
  max-width: 1200px;
  margin: auto;
}

.ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.ci-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #ddd;
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ci-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: #d22f2f;
}

.ci-card i {
  font-size: 30px;
  color: #d22f2f;
  margin-bottom: 15px;
}

.ci-card h4 {
  font-size: 16px;
  font-weight: 600;
}

/* Load More Button */
.ci-load-btn {
  text-align: center;
  margin-top: 30px;
}

.ci-load-btn button {
  background-color: #d22f2f;
  color: white;
  padding: 12px 30px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.ci-load-btn button:hover {
  background-color: #b12020;
}

/* Initially hidden cards */
.ci-hidden {
  display: none;
}
/* Circulars */
/* Circulars Section */
.circulars-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  font-family: 'Poppins', sans-serif;
}

.circulars-container {
  max-width: 1000px;
  margin: auto;
}

.circular-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid #ddd;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.circular-card:hover {
  box-shadow: 0 5px 15px rgba(151, 5, 5, 0.1);
}

.circular-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px;
  color: #222;
}

.circular-info .circular-date {
  font-size: 14px;
  color: #888;
}

.circular-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d22f2f;
  color: white;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.circular-link:hover {
  background: #b92020;
  color: white;
}

.circular-link i {
  font-size: 16px;
}
@media (max-width: 600px) {
  .circular-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .circular-link {
    align-self: flex-end;
  }
}
/* Comprehensive Info Gallery */
/* Responsive grid: 3 per row */
.ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Load More Button */
.ci-load-more {
  text-align: center;
  margin-top: 30px;
}

#loadMoreBtn {
  background: #d22f2f;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#loadMoreBtn:hover {
  background: #a61f1f;
}

/* Hidden class */
.hidden {
  display: none;
}
.ci-grid .ci-card:nth-child(-n+3) {
  margin-top: 100px;
}
@media (max-width: 900px) {
  .ci-grid .ci-card:nth-child(-n+2) {
    margin-top: 100px;
  }
}
@media (max-width: 600px) {
  .ci-grid .ci-card:nth-child(1) {
    margin-top: 100px;
  }
}
/* Card Image Styling */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  padding: 5px;
  border-radius: 10px;
}

/* Card Title Styling */
.card-title {
  font-weight: 700;
  font-size: 18px;
  margin: 15px 0 10px;
}
.ci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

@media (max-width: 1024px) {
  .ci-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ci-grid {
    grid-template-columns: 1fr;
  }
}
/* Masonry container */
.masonry-container {
  column-count: 3;
  column-gap: 30px;
  padding: 40px 20px;
  max-width: 1300px;
  margin: auto;
}

@media (max-width: 992px) {
  .masonry-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-container {
    column-count: 1;
  }
}

/* Masonry card */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: auto;
  box-sizing: border-box;
}

.masonry-card {
  background-color: rgb(213, 8, 8);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

.masonry-card img {
  width: 100%;
  height: auto;
  padding: 5px;
  border-radius: 15px;
  box-sizing: border-box;
}

.masonry-card .title {
  font-weight: bold;
  font-size: 18px;
  padding: 10px 15px 0;
}

.masonry-card .desc {
  padding: 5px 15px 15px;
  font-size: 14px;
  color: #444;
}


/* Hero Section */
.facilities-hero {
  background: rgba(230, 126, 34, 0.8);
  position: relative;
  text-align: center;
  color: white;
}

.facilities-overlay {
  background: rgba(0,0,0,0.4);
  padding: 100px 20px;
}

.facilities-overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.facilities-overlay p {
  font-size: 1.3rem;
  color: #f0f0f0;
}

/* Facilities Grid Layout */
.facilities-grid {
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.facility-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.facility-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.facility-card h3 {
  font-size: 1.3rem;
  margin: 15px;
  color: #d22f2f;
  font-weight: 600;
}

.facility-card p {
  font-size: 1rem;
  margin: 0 15px 20px;
  color: #444;
  line-height: 1.5;
}

/* Hover Animation */
.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* footer logo */
/* Ensure footer logo matches header style */
footer .logo-section {
  flex-shrink: 0;
  padding: 0 20px;
}

footer .logo-section img {
  height: 100px;
  width: auto;
}


/* testimonials */
/* General Reset (inherits from style.css) */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: #fff;
}

/* Hero Section (Matches Overview/Vision style) */
.overview-hero {
  text-align: center;
  padding: 100px 20px;
  color: white;
  position: relative;
}
.overview-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #E67E22; 
}
.overview-hero p{
  color: white;
}
.overview-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

/* Carousel Container */
.carousel {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Review Card */
.review-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Reviewer Header */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}
.review-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e74c3c; /* Matches site accent */
}
.reviewer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}
.stars {
  font-size: 1rem;
  color: #f1c40f; /* Gold stars */
}

/* Review Text */
.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Footer Logo Alignment (Matches Header Logo) */
footer .logo-section img,
footer img[alt="MIS Logo"] {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto;
}
footer .grid {
  align-items: center; /* Vertically center logo + links */
}



/* admission page cirle */
/* Tablet Optimization */
@media (max-width: 1023px) and (min-width: 768px) {
  .admissions-circle-wrapper .semi-circle {
    width: 300px !important;
    height: 300px !important;
    border-width: 10px !important;
    margin-top: 2.5rem !important;
  }

  .admissions-circle-wrapper .step-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.6rem !important;
  }

  .admissions-circle-wrapper .step-label {
    font-size: 0.9rem !important;
  }

  .admissions-circle-wrapper .step-details {
    max-width: 220px !important;
    font-size: 1rem !important;
  }
}

/* Mobile Optimization (<768px) */
@media (max-width: 768px) {
  .admissions-circle-wrapper .semi-circle {
    width: 220px !important;
    height: 220px !important;
    border-width: 8px !important;
    margin-top: 2rem !important;
  }

  .admissions-circle-wrapper .step-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.3rem !important;
  }

  .admissions-circle-wrapper .step-label {
    font-size: 0.8rem !important;
  }

  .admissions-circle-wrapper .step-details {
    font-size: 0.9rem !important;
    padding: 12px !important;
    max-width: auto !important;
  }
}

/* Extra Small Phones (<480px): Stack icons below circle */
@media (max-width: 480px) {
  .admissions-circle-wrapper .relative.max-w-\[560px\] {
    position: static !important;
    height: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 1rem !important;
  }

  .admissions-circle-wrapper .relative.max-w-\[560px\] > div {
    position: static !important;
    transform: none !important;
  }
}



/* footer */
/* Footer layout fixes */
footer .grid {
  align-items: flex-start; /* ensures all columns align at top */
}

/* Remove unwanted margin overrides */
footer .logo-section,
footer .grid ul {
  margin: 0 !important;
  padding: 0;
}

/* Quick links styling */
footer .grid h3 {
  margin-bottom: 12px;
  font-size: 1.125rem; /* same as text-lg */
  font-weight: 600;
  border-bottom: 1px solid #d1d5db; /* gray-300 */
  padding-bottom: 6px;
}

/* Space between list items */
footer .grid ul li {
  margin-bottom: 8px;
}

/* Map container */
footer iframe {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Social icons */
footer .social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease-in-out;
}
footer .social-icon:hover {
  transform: scale(1.1);
}



/* admission */
@media (max-width: 640px) {
  .semi-circle,
  .semi-circle + div,
  .semi-circle + div + div {
    display: none !important;
  }
}
