* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

/*------*/

/*hero*/
.header {
  min-height: 150vh; /* full screen */
  width: 100%;
  position: relative;
  overflow: hidden; /* keep slides clipped */
  /* remove background-image line here */
  aspect-ratio: 12 / 6;
}
/* fills the header area */
.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0; /* behind nav + text */
}

/* gradient darken overlay so white text pops */
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(4, 9, 30, 0.7), rgba(62, 67, 85, 0.7));
  pointer-events: none;
}

/* sliding track with 4 slides */
.hero-track {
  display: flex;
  width: 100%; /* 4 images */
  height: 75%;
  min-height: 150vh;
  animation: heroSlide 20s infinite; /* auto-play */
}

/* each slide */
.hero-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the space, crops excess */
  object-position: center; /* keeps center visible */
  user-select: none;
  pointer-events: none;
}

/* keep your nav/text above the slides */
.header nav,
.header .text-box {
  position: relative;
  z-index: 2;
}

/* keyframes (stop a moment on each slide) */
@keyframes heroSlide {
  0% {
    transform: translateX(0%);
  }
  16% {
    transform: translateX(0%);
  }
  20% {
    transform: translateX(-100%);
  }
  36% {
    transform: translateX(-100%);
  }
  40% {
    transform: translateX(-200%);
  }
  56% {
    transform: translateX(-200%);
  }
  60% {
    transform: translateX(-300%);
  }
  76% {
    transform: translateX(-300%);
  }
  80% {
    transform: translateX(-400%);
  }
  96% {
    transform: translateX(-400%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* optional: shorter hero on small screens */
@media (max-width: 700px) {
  .header {
    min-height: 70vh;
  }
}
/*end*/

nav {
  display: flex;
  padding: 2% 4%;
  justify-content: space-between;
  align-items: center;
}
nav img {
  width: 135px;
}
.nav-links {
  flex: 1;
  text-align: right;
}
.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}
.nav-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.nav-links ul li::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #f44336;
  display: block;
  margin: auto;
  transition: 0.5s;
}
.nav-links ul li:hover::after {
  width: 100%;
}
nav .fa {
  display: none;
}

.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.text-box h1 {
  font-size: 62px;
}
.text-box p {
  margin: 20px 0 40px;
  font-size: 14px;
  color: #fff;
}
.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: 1s;
}

.hero-btn:hover {
  border: 1px solid #f44336;
  background: #f44336;
}

@media (max-width: 700px) {
  .nav-links ul li {
    display: block;
  }
  .nav-links {
    position: fixed;
    background: #6a0012;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    transition: 0.5s;
  }
  .nav-links ul {
    padding: 30px;
  }
  nav .fa {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }
  .text-box h1 {
    font-size: 20px;
  }
}

/*---------- course --------*/

.course {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}
h1 {
  font-size: 36px;
  font-weight: 600;
}
p {
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}
.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.course-col {
  flex-basis: 31%;
  background: #fff3f3;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  transition: 0.5s;
}
h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}
.course-col:hover {
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }
}

/* ===== Academics Layout ===== */
.academics {
  background: #f5f7fb;
  padding: 60px 0 80px;
  font-family: "Poppins", sans-serif;
}

.academics .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 28px;
}

@media (max-width: 980px) {
  .academics .container {
    grid-template-columns: 1fr;
  }
}

.academics .intro {
  margin: 0 0 18px;
  color: #4a5568;
}

/* Program (accordion) */
.program {
  background: #fff;
  border-radius: 14px;
  margin: 12px 0;
  box-shadow: 0 8px 26px rgba(6, 24, 44, 0.08);
  overflow: hidden;
}

.program > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1a2b4b;
}

.program > summary::-webkit-details-marker {
  display: none;
}

.program > summary span em {
  font-style: normal;
  font-weight: 500;
  color: #4361ee;
  margin-left: 8px;
}

.program[open] > summary {
  border-bottom: 1px solid #eef2f7;
}

.program .program-body {
  padding: 18px 20px 22px;
  color: #2d3748;
  line-height: 1.65;
}

.program .program-body h4 {
  margin: 6px 0 10px;
  color: #102a43;
}

.program .program-body h5 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: #22304a;
}

.program .program-body ul {
  padding-left: 18px;
}
.program .program-body li {
  margin: 6px 0;
}

/* Right side cards */
.side-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 26px rgba(6, 24, 44, 0.08);
}

.side-card h4 {
  margin: 2px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a2b4b;
}

.side-card.stack h4 {
  margin-bottom: 10px;
}

.stream-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stream-list li {
  padding: 10px 8px;
  border-top: 1px solid #eef2f7;
  font-size: 14px;
  color: #374151;
}
.stream-list li:first-child {
  border-top: 0;
}

/* Chevron icon rotation for summary */
.program > summary .fa {
  transition: transform 0.2s ease;
}
.program[open] > summary .fa {
  transform: rotate(180deg);
}

/*---------------- campus ----------------*/

.campus {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}
.campus-col {
  flex-basis: 32%;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.campus-col img {
  width: 100%;
}

.layer {
  background: transparent;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  position: absolute;
  transition: 0.5s;
}
.layer:hover {
  background: rgba(226, 0, 0, 0.7);
}
.layer h3 {
  width: 100%;
  font-weight: 500;
  color: #fff;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
}
.layer:hover h3 {
  bottom: 49%;
  opacity: 1;
}

/*-------------- Facilities ----------------*/

.facility {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}
.facility-col {
  flex-basis: 31%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
}
.facility-col img {
  width: 100%;
  border-radius: 10px;
}
.facility-col p {
  padding: 0;
}
.facility-col h3 {
  margin-top: 16px;
  margin-bottom: 15px;
  text-align: left;
}

/*---------------- testimonials ------------------*/

.testimonials {
  width: 80%;
  margin: auto;
  padding-top: 100px;
  text-align: center;
}

.testimonial-col {
  flex-basis: 44%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
  background: #fff3f3;
  padding: 25px;
  cursor: pointer;
  display: flex;
}
.testimonial-col img {
  height: 40px;
  margin-left: 5px;
  margin-right: 30px;
  border-radius: 50%;
}
.testimonial-col p {
  padding: 0;
}
.testimonial-col h3 {
  margin-top: 15px;
  text-align: left;
}
.testimonial-col .fa {
  color: #f44336;
}

@media (max-width: 700px) {
  .testimonial-col img {
    margin-left: 0px;
    margin-right: 15px;
  }
}

/*--------Stats-------------*/

.stats-section {
  background: linear-gradient(rgba(0, 18, 40, 0.8), rgba(0, 18, 40, 0.8)),
    url("images/your-background.jpg") center/cover no-repeat;
  padding: 50px 0;
  text-align: center;
  color: white;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
}

.stat-box h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #1e73be; /* Blue color like your screenshot */
}

.stat-box p {
  font-size: 1rem;
  margin-top: 5px;
}

/*-------- Call To Action ----------*/

.cta {
  margin: 100px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(images/banner2.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding: 100px 0;
}
.cta h1 {
  color: #fff;
  margin-bottom: 40px;
  padding: 0;
}

@media (max-width: 700px) {
  .cta h1 {
    font-size: 24px;
  }
}

/*--------------Footer---------------*/

.footer {
  width: 100%;
  text-align: center;
  padding: 30px 0;
}
.footer h4 {
  margin-bottom: 25px;
  margin-top: 20px;
  font-weight: 600;
}

.icons .fa {
  color: #f44336;
  margin: 0 13px;
  cursor: pointer;
  padding: 18px 0;
}
.fa-heart-o {
  color: #f44336;
}

/*--------------- About Us Page --------------*/

.sub-header {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/background_2.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}
.sub-header h1 {
  margin-top: 100px;
}

.about-us {
  width: 80%;
  margin: auto;
  padding-top: 80px;
  padding-bottom: 50px;
}

.about-col {
  flex-basis: 48%;
  padding: 30px 2px;
}
.about-col h1 {
  padding-top: 0;
}
.about-col p {
  padding: 15px 0 25px;
}

.hero-btn.red-btn {
  border: 1px solid #f44336;
  background: transparent;
  color: #f44336;
}
.hero-btn.red-btn:hover {
  border: 1px solid #f44336;
  background: #f44336;
  color: #fff;
}
.hero-btn.red-btn::after {
  background: #f44336;
}
.hero-btn.red-btn::before {
  background: #f44336;
}

.content-image {
  flex-basis: 50%;
}
.about-col img {
  width: 100%;
}

/* -------- NEW Banner-Style About Us Text Section -------- */
.about-us-text {
  background: #f9f9f9;
  padding: 0 20px 60px;
  line-height: 1.9;
  color: #333;
}

/* Banner heading */
.about-banner {
  background: linear-gradient(135deg, #6a0012, #8c1a26);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin: 0 -20px 40px; /* full-width effect */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-banner .section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-banner .college-title {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.95;
}

/* Text container */
.about-us-text .container {
  max-width: 1100px;
  margin: auto;
}

.about-us-text p {
  margin-bottom: 15px;
  font-size: 18px;
}

.services-list {
  margin: 15px 0 25px 20px;
  padding: 0;
}

.services-list li {
  margin-bottom: 8px;
  list-style-type: "▬ ";
  padding-left: 5px;
}

.about-us-text h3 {
  margin-top: 30px;
  font-size: 40px;
  font-weight: 800;
  color: #222;
}
.about-us-text h2 {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 600;
  color: #ffff00;
}

/*---------- Blog Page -------------*/

.blog-content {
  width: 80%;
  margin: auto;
  padding: 60px 0;
}
.blog-left {
  flex-basis: 65%;
}
.blog-right {
  flex-basis: 32%;
}
.blog-left img {
  width: 100%;
}
.blog-left h2 {
  color: #222;
  font-weight: 600;
  margin: 30px 0;
}
.blog-left p {
  color: #999;
  padding: 0;
}

.blog-right h3 {
  background: #f44336;
  color: #fff;
  padding: 7px 0;
  font-size: 16px;
  margin-bottom: 20px;
}
.blog-right div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #555;
  padding: 8px;
  box-sizing: border-box;
}

.comment-box {
  border: 1px solid #ccc;
  margin: 50px 0;
  padding: 10px 20px;
}

.comment-box h3 {
  text-align: left;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: #f0f0f0;
}
.comment-form button {
  margin: 10px 0;
}

@media (max-width: 700px) {
  .sub-header h1 {
    font-size: 24px;
  }
}

/* --- Blog Listing --- */
.section {
  padding: 60px 0;
}
.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-listing .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.post-img {
  aspect-ratio: 16/9;
  background: #f6f6f6;
  overflow: hidden;
}
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}
.post-excerpt {
  color: #555;
  font-size: 0.94rem;
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eee;
  color: #333;
  font-weight: 600;
}
.badge-academic {
  background: #efe8ff;
  color: #6a4ee6;
}
.badge-admissions {
  background: #e8f7ff;
  color: #1a87b9;
}
.badge-project {
  background: #ffeef3;
  color: #d94b7a;
}

.post-meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: #777;
}
.post-meta .read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-card:hover .read-more i {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.pagination .page {
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}
.pagination .page:hover {
  background: #f6f6f6;
}
.pagination .active {
  background: #6a0012;
  color: #fff;
  border-color: #6a0012;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-listing .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .container {
    width: 90%;
  }
  .blog-listing .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-title {
    font-size: 1rem;
  }
}

/*------- Contact Us Page ------------*/
.contact-us {
  width: 80%;
  margin: auto;
}
.contact-us .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.contact-col {
  flex: 1 1 48%;
  margin-bottom: 30px;
}
.contact-col div {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.contact-col div .fa {
  font-size: 28px;
  color: #f44336;
  margin: 10px;
  margin-right: 30px;
}
.contact-col div p {
  padding: 0;
}
.contact-col div h5 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
  font-weight: 400;
}
.contact-col input,
.contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #ccc;
}

/* Campus-specific blocks */
.contact-us .campus-block {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.contact-us .campus-block i.fa-map-marker {
  font-size: 24px;
  margin-top: 4px;
  color: #f44336;
}
.contact-us .campus-block h5 {
  margin: 0 0 6px;
  font-weight: 600;
}
.contact-us .campus-block p {
  margin: 2px 0;
}

/* Footer links */
.footer-link {
  text-decoration: none;
  color: #777;
}

/* ------- New per-campus layout ------- */
.campus-section {
  width: 80%;
  margin: auto;
  padding: 60px 0;
}
.campus-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}
.campus-info {
  flex: 1 1 45%;
}
.campus-map {
  flex: 1 1 55%;
}
.campus-map iframe {
  width: 100%;
  height: 445px;
  border: 0;
  border-radius: 8px;
}

/* Alternate layout: reverse order for Campus 2 */
.campus-row.reverse {
  flex-direction: row-reverse;
}

/* ------- Optional: Single location section ------- */
.location {
  width: 80%;
  margin: auto;
  padding: 80px 0;
}
.location iframe {
  width: 100%;
  height: 445px;
  border: 0;
  border-radius: 8px;
}

/* ------- Responsive tweaks ------- */
@media (max-width: 900px) {
  .campus-row,
  .campus-row.reverse {
    flex-direction: column; /* stack info & map on mobile */
  }
  .campus-section {
    width: 95%;
    padding: 40px 0;
  }
}
@media (max-width: 768px) {
  .contact-us .row {
    flex-direction: column;
  }
  .contact-col {
    flex: 1 1 100%;
  }
  .location {
    width: 95%;
    padding: 40px 0;
  }
}

/*------- footer ------------*/

.university-footer {
  background-color: #6a0012; /* Loyola maroon */
  color: white;
  padding: 20px 0;
  font-family: "Poppins", sans-serif;
  border-top: 4px solid #ffcc00; /* gold accent line */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  gap: 24px; /* breathing room between sections */
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  color: white;
  margin-right: 15px;
  font-size: 18px;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #ffcc00; /* Loyola gold */
}

.footer-info {
  text-align: center;
}

.footer-info h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-info p {
  margin: 4px 0;
}

.footer-info a {
  color: #ffcc00;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-logo img {
  height: 60px;
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  padding: 6px 12px;
}

.footer-bottom a {
  color: #ffcc00;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Tablet and down: stack vertically */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo img {
    height: 52px;
  }
}

/* Small phones: adjust font sizes and make icons larger */
@media (max-width: 480px) {
  .footer-info h3 {
    font-size: 18px;
  }
  .footer-info p,
  .footer-bottom {
    font-size: 13px;
  }
  .footer-social a {
    font-size: 20px; /* bigger icons for thumbs */
    margin-right: 10px;
  }
}

/* Fix hero sizing */
.hero-carousel {
  height: 100%;
}
.hero-track {
  height: 100%;
  min-height: 0;
} /* remove the 150vh */

/* Mobile: give the hero a bit more height & push text down */
@media (max-width: 700px) {
  .header {
    min-height: 80vh;
  } /* more space than 70vh */
  .text-box {
    top: 100%; /* lower the text */
    width: 92%;
    transform: translate(-50%, -50%);
    padding: 20px 0px;
  }
  .text-box h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  .text-box h3,
  .text-box p {
    font-size: 14px;
    line-height: 1.35;
  }
  .hero-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}
/****ovelapping test home page****/
@media (max-width: 700px) {
  .text-box {
    top: calc(50% + 50px); /* Push down ~navbar height */
    padding: 20px 10px;
  }
}


/***** NAVVVV BARRRR NEWWW *****/



