/* Joy University Site Styles */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* Hero Section */
.hero-section {
  position: relative;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-btn {
  background-color: #b22222;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero-btn:hover {
  background-color: #8b1a1a;
}

/* Quick Links Section */
.quick-links {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.quick-link-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.quick-link-card:hover {
  transform: translateY(-5px);
}

.quick-link-card i {
  font-size: 3rem;
  color: #b22222;
  margin-bottom: 1rem;
}

.quick-link-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.quick-link-card p {
  color: #666;
}

/* News & Events Section */
.news-events {
  padding: 60px 0;
  background-color: white;
}

.news-carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 0 10px;
}

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

.news-card-content {
  padding: 20px;
}

.news-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.news-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Academics Section */
.academics-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.school-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.school-card:hover {
  transform: translateY(-5px);
}

.school-card i {
  font-size: 3rem;
  color: #b22222;
  margin-bottom: 1rem;
}

.school-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.school-card p {
  color: #666;
}

/* Campus Life Section */
.campus-life {
  padding: 60px 0;
  background-color: white;
}

.campus-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.campus-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.campus-image:hover {
  transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  margin: 0 20px;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #333;
}

.testimonial-card h5 {
  font-size: 1rem;
  color: #b22222;
  margin-bottom: 0.5rem;
}

.testimonial-card span {
  color: #666;
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #b22222, #8b1a1a);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-btn {
  background-color: white;
  color: #b22222;
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #f8f9fa;
}

/* Sub Banner */
.sub-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.sub-banner .img-area {
  height: 100%;
}

.sub-banner .img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* School Section */
.school-sec {
  padding: 60px 0;
  background: #fff;
}

.custom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sub-title {
  text-align: center;
  margin-bottom: 40px;
}

.sub-title h2 {
  font-size: 2.5rem;
  color: #b22222;
  font-weight: 700;
  margin: 0;
}

.school-inner {
  margin-top: 40px;
}

.scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.scroll-button {
  background: #b22222;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 10;
  transition: background 0.3s;
}

.scroll-button:hover {
  background: #8b1a1a;
}

.scroll-button.left {
  margin-right: 10px;
}

.scroll-button.right {
  margin-left: 10px;
}

.nav-container {
  flex: 1;
  overflow: hidden;
}

.nav-pills-custom {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-pills-custom::-webkit-scrollbar {
  display: none;
}

.nav-pills-custom .nav-item {
  flex-shrink: 0;
}

.nav-pills-custom .nav-link {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 10px 20px;
  margin-right: 5px;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-pills-custom .nav-link.active {
  background: #b22222;
  color: white;
  border-color: #b22222;
}

.nav-pills-custom .nav-link:hover {
  background: #b22222;
  color: white;
}

.tab-content {
  margin-top: 30px;
}

.tab-inner {
  padding: 20px 0;
}

.tab-inner h3 {
  font-size: 1.8rem;
  color: #b22222;
  margin-bottom: 20px;
  font-weight: 600;
}

.over-img {
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
}

.over-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vert-flex {
  display: flex;
  align-items: center;
}

.over-text h5 {
  font-size: 1.5rem;
  color: #b22222;
  margin-bottom: 15px;
  font-weight: 600;
}

.over-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.school-video {
  margin-top: 30px;
}

.school-video iframe {
  border-radius: 10px;
}

.accordion-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
}

.accordion-item-header {
  background: #f8f9fa;
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
}

.accordion-item-header-title {
  font-weight: 600;
  color: #b22222;
}

.accordion-item-header-icon {
  transition: transform 0.3s;
}

.accordion-item.open .accordion-item-header-icon {
  transform: rotate(180deg);
}

.accordion-item-description-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-item-description-wrapper {
  max-height: 1000px;
}

.accordion-item-description {
  padding: 15px;
  background: #fff;
}

.accordion-item-description ul {
  margin: 0;
  padding-left: 20px;
}

.apply-now-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #b22222;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.apply-now-button:hover {
  background: #8b1a1a;
}

.eligib {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

.eligib table {
  width: 100%;
  border-collapse: collapse;
}

.eligib th,
.eligib td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.eligib th {
  background: #b22222;
  color: white;
}

.outcomes ul {
  list-style: disc;
  padding-left: 20px;
}

.outcomes li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.sch-gallery {
  margin-bottom: 20px;
}

.sch-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.tabtablwrap {
  padding: 20px 0;
}

.programleft h2 {
  font-size: 1.8rem;
  color: #b22222;
  margin-bottom: 20px;
}

.programleft table {
  width: 100%;
  border-collapse: collapse;
}

.programleft th,
.programleft td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.programleft th {
  background: #b22222;
  color: white;
}

/* Hide dropdown content on small screens to prevent conflicts with side-menu */
@media (max-width: 1023px) {
  .dropdown-content {
    display: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .quick-links-grid,
  .schools-grid,
  .campus-gallery {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 20px;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

  .sub-title h2 {
    font-size: 2rem;
  }

  .tab-inner h3 {
    font-size: 1.5rem;
  }

  .over-text h5 {
    font-size: 1.2rem;
  }

  .scroll-container {
    flex-wrap: wrap;
  }

  .nav-pills-custom {
    flex-wrap: wrap;
  }

  .nav-pills-custom .nav-link {
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-btn,
  .cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .sub-title h2 {
    font-size: 1.8rem;
  }

  .tab-inner h3 {
    font-size: 1.3rem;
  }

  .over-img {
    height: 200px;
  }

  .school-video iframe {
    height: 200px;
  }
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.carousel-indicator.active {
  background: white;
}

/* Admissions Page Styles */
.admissions-page {
  background: #fff;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  padding: 0;
}

.admissions-page .container {
  padding: 40px 0;
}

.admissions-page .section-box {
  background: #b71c1c;
  border-radius: 30px;
  margin: 0 auto 30px auto;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.admissions-page .section-content {
  background: #fff;
  border-radius: 30px;
  padding: 20px;
  margin: 0 auto;
}

.admissions-page .flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.admissions-page .image-box {
  flex: 1;
  min-width: 250px;
  max-width: 500px;
  background: #b71c1c;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admissions-page .image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.admissions-page .content-box {
  flex: 1;
  min-width: 250px;
}

.admissions-page .info-box {
  flex: 2 1 400px;
  min-width: 250px;
}

.admissions-page h2,
.admissions-page h3 {
  color: #b71c1c;
  margin-top: 0;
}

.admissions-page .schools-list,
.admissions-page .admission-list {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}

.admissions-page .schools-list li,
.admissions-page .admission-list li {
  margin-bottom: 6px;
  font-size: 1.05em;
}

.admissions-page .schools-list a,
.admissions-page .admission-list a {
  color: #b71c1c;
  text-decoration: underline;
}

.admissions-page .scholarship-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admissions-page .scholarship-buttons button {
  background-color: #b22222;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 0;
  margin-bottom: 12px;
  font-size: 1em;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  flex: 1;
  min-width: 150px;
}

.admissions-page .scholarship-buttons button:hover {
  background: #a31515;
}

/* Admissions Sections */
.admissions-section {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: #fff;
  border: 2px solid #a22537;
  border-radius: 26px;
  margin-bottom: 35px;
  padding: 38px 40px;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.admissions-image-left,
.admissions-image-right {
  width: 40%;
  max-width: 350px;
  min-width: 210px;
  padding: 16px 8px 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admissions-image-right {
  order: 2;
  padding: 16px 0 16px 8px;
}

.admissions-image-left img,
.admissions-image-right img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.admissions-content-left,
.admissions-content-right {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admissions-content-left h2,
.admissions-content-right h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #a22537;
  font-size: 1.5em;
  margin: 0 0 8px 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.admissions-content-left p,
.admissions-content-right p {
  font-family: 'Georgia', serif;
  font-size: 1.09em;
  color: #262627;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-item {
  margin-bottom: 10px;
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.program-header:hover {
  background: #f9f9f9;
}

.program-details {
  display: none;
  padding: 10px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 5px 5px;
  background: #fff;
}

.program-details ul {
  margin: 0;
  padding-left: 20px;
}

.apply-now {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background: #a22537;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}

.apply-now:hover {
  background: #8a1e30;
}

/* Responsive for Admissions */
@media (max-width: 900px) {
  .admissions-page .flex-row {
    flex-direction: column;
    gap: 20px;
  }
  .admissions-page .image-box,
  .admissions-page .info-box {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .admissions-page .container {
    padding: 10px 0;
  }
  .admissions-page .section-box,
  .admissions-page .section-content {
    padding: 10px;
    border-radius: 15px;
  }
  .admissions-page h2,
  .admissions-page h3 {
    font-size: 1.2em;
  }
  .admissions-page .scholarship-buttons button {
    padding: 10px 0;
    font-size: 0.95em;
  }
}

@media (max-width: 1070px) {
  .admissions-section {
    flex-direction: column;
    align-items: center;
    padding: 30px 2vw;
  }
  .admissions-image-left,
  .admissions-image-right,
  .admissions-content-left,
  .admissions-content-right {
    width: 98vw;
    max-width: 100%;
    min-width: unset;
    padding: 0;
  }
  .admissions-image-left,
  .admissions-image-right {
    order: -1;
  }
  .admissions-content-left,
  .admissions-content-right {
    margin-top: 1em;
  }
}

/* Hero Overlay Styles */
.hero-overlay {
  position: relative;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 15px 20px;
  max-width: 100%;
  border-radius: 8px;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}

.hero-text .hero-subtitle {
  color: #b22222;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}

.hero-text h2 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.hero-text .hero-description {
  font-weight: 600;
  font-size: 9px;
  margin-bottom: 15px;
}

.btn-programmes {
  background-color: #b22222;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
}
