/* Custom CSS for University Course Page */

/* ========== Global Styles ========== */
:root {
  --primary: #0d2b45;
  --primary-light: #17436a;
  --secondary: #f8bc45;
  --secondary-light: #ffd280;
  --accent: #e63946;
  --success: #2e933c;
  --warning: #e67e22;
  --error: #d90429;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #ced4da;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #212529;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

/* ========== Navigation ========== */
#mainNav {
  transition: all 0.35s;
  background-color: rgba(13, 43, 69, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNav .navbar-brand {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

#mainNav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 0;
  margin: 0 0.75rem;
  position: relative;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

#mainNav .nav-link:hover::after {
  width: 100%;
}

.apply-btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0d2b45 0%, #17436a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/267885/pexels-photo-267885.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 43, 69, 0.9) 0%, rgba(23, 67, 106, 0.85) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
}

.bg-accent {
  background-color: var(--accent);
}

.stats-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stats-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========== Quick Facts ========== */
.fact-card {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.fact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.counter {
  font-size: 2.5rem;
  color: var(--primary);
}

/* ========== Program Overview ========== */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

/* ========== Curriculum Section ========== */
.curriculum-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.curriculum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-list {
  list-style: none;
  padding-left: 0;
}

.course-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.course-list li:last-child {
  border-bottom: none;
}

/* ========== Faculty Section ========== */
.faculty-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faculty-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.faculty-card:hover .faculty-img {
  transform: scale(1.05);
}

.faculty-social a {
  color: var(--gray);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.faculty-social a:hover {
  color: var(--primary);
}

/* ========== Testimonials Section ========== */
.testimonial-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========== Admission Requirements ========== */
.requirement-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-container {
  position: relative;
  padding-left: 50px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background-color: var(--primary);
  height: calc(100% - 100px);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-number {
  position: absolute;
  left: -50px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 1;
}

.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ========== Apply Now Section ========== */
#apply {
  background: linear-gradient(135deg, #0d2b45 0%, #17436a 100%);
  position: relative;
  overflow: hidden;
}

#apply::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

#apply .container {
  position: relative;
  z-index: 1;
}

/* ========== FAQ Section ========== */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background-color: white;
  font-weight: 600;
  padding: 1.25rem;
  color: var(--dark);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(13, 43, 69, 0.05);
}

.accordion-button::after {
  background-size: 1.25rem;
  transition: all 0.2s ease;
}

/* ========== Contact Section ========== */
.contact-form-card {
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 43, 69, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Footer ========== */
.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

/* ========== Responsive Styles ========== */
@media (max-width: 991.98px) {
  #mainNav .navbar-nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  #mainNav .nav-link {
    padding: 0.5rem 0;
  }
  
  .apply-btn {
    margin-top: 0.5rem;
    display: inline-block;
  }
  
  .hero-section {
    padding-top: 100px;
    text-align: center;
  }
  
  .timeline-container::before {
    left: 22px;
  }
  
  .timeline-item {
    padding-left: 10px;
  }
  
  .timeline-number {
    left: -38px;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding: 140px 0 60px;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
  
  .counter {
    font-size: 2rem;
  }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.section-heading {
  position: relative;
}

.section-heading span {
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* Responsive Background fix */
@media (max-width: 991.98px) {
  .hero-section, #apply {
    background-attachment: scroll;
  }
}