@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@400;700&display=swap');

:root {
    --bs-primary: #2a52be;
    --bs-primary-rgb: 42, 82, 190;
}

body {
    font-family: 'Lato', sans-serif;
    padding-top: 0; /* Remove padding since navbar is not fixed now */
    overflow-x: hidden;
}

#top-header {
    background-color: #1c3b8f; /* A slightly darker shade of blue */
}

#top-header a {
    text-decoration: none;
    transition: color 0.3s ease;
}

#top-header a:hover {
    color: #ddd;
    text-decoration: none;
}

.hero-section {
    position: relative;
    background: url('../images/banner.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-features .feature-box {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    height: 100%;
}

.hero-features .feature-box:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-features .feature-box p {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}

section {
    padding: 80px 0;
}

.card {
    border: none;
}

.courses-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #f0f4f8, #d9e2ec, #f0f4f8);
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
    z-index: 0;
}

.courses-section .container {
    position: relative;
    z-index: 1;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.courses-section .course-card {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses-section .course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

#top-header a, .footer-section a {
    text-decoration: none;
}

#top-header a:hover, .footer-section a:hover {
    text-decoration: underline;
}

.footer-section {
    background-color: #212529; /* Dark background */
}

.footer-section h5 {
    color: #0d6efd; /* Bootstrap Primary */
}

.footer-section .btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.footer-section .btn-outline-light:hover {
    background-color: #fff;
    color: #212529;
}

.footer-bottom {
    background-color: #000;
}

.footer-bottom a {
    text-decoration: none;
}

.apply-section {
    background-color: #f8f9fa; /* A light grey background to make it stand out */
}

/* Timeline container */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The vertical line */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #0d6efd;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12px;
  background-color: white;
  border: 4px solid #0d6efd;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.timeline-container.left {
  left: 0;
}

/* Place the container to the right */
.timeline-container.right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.timeline-container.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.timeline-container.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.timeline-container.right::after {
  left: -13px;
}

/* The actual content */
.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.timeline-content:hover {
    transform: scale(1.03);
}
.timeline-content .timeline-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Media queries - Responsive timeline */
@media screen and (max-width: 768px) {
  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .timeline-container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .timeline-container.left::after, .timeline-container.right::after {
    left: 19px;
  }

  /* Make all containers full-width */
  .timeline-container.left, .timeline-container.right {
    left: 0%;
  }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Vertical Apply Now Button */
.apply-now-vertical {
    position: fixed;
    top: 50%;
    right: -55px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: bottom right;
    z-index: 1030;
    padding: 10px 20px;
}

.apply-now-vertical:hover {
    left: 0px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

@media screen and (max-width: 992px) {
  .hero-section {
    padding: 80px 0;
  }
  .hero-section h1 {
    font-size: 2.8rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    background-position: right center;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
} 