
/*-------------------------------------------------
General
--------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Open+Sans:wght@300;400;600&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html{
  scroll-behavior: smooth;/*added for smooth transition when clicked on navelements*/
}

body {
  font-weight: 500;
  color: rgb(0, 0, 0);
  background: #f8fafa ;
  font-family: 'Montserrat', sans-serif;
  background-color: #f1f1f5;
 
}
/*-------------------------------------------------
Navbar
--------------------------------------------------------*/
.navbar {
  justify-content: space-between;
}
.logo img {
  max-height: 50px; /* Adjust size as needed */
}
.navbar-nav {
  gap: 15px;
}
.nav-link{
  font-weight: bold; 
  font-size: 17px; 
  color: #000; 
  text-transform: uppercase;
}
/* Make navbar background white when expanded in mobile mode */
@media (max-width: 991px) { /* Applies to screens smaller than 992px */
  .navbar-collapse {
      background: #f1f1f5;
      padding: 10px;
      border-radius: 5px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 5;
  }
}
/*---------------------------------------------------
welcome section
-------------------------------------------------------------*/
.hero-section-bg {
  position: relative;
  height: 100vh;
  background: url('../img/gradpic-welcome.png') center/cover no-repeat;
  display: flex;
  align-items: flex-start; /* Push content to the top */
  justify-content: center; /* Center horizontally */
  padding-top: 3rem; /* Adjust as needed */
  color: white;
  z-index: 1;
}

.hero-section-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Keeps your overlay */
  z-index: -1;
}

.hero-content {
  text-align: center;
  margin-top: 50px; 
}

.hero-section-bg .hero-content h2 {
  font-weight: bold;
  color: #fff;
  font-size: 45px;
  text-align: center;
}


@media (max-width: 991px) { /* Extra Small Screens */
  .heading-txt {
    position: static; /* Keeps it in normal flow */
    text-align: center;
    padding: 30px 20px; /* Reduce excess space */
    margin-bottom: 5px; /* Adds space below */
  }

  .heading-txt h1 {
    font-size: 28px; /* Adjust for mobile */
  }

  .heading-txt h3 {
    font-size: 20px;
  }

    /* Centering the Dual Button */
  .heading-txt .dual-button {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    flex-wrap: wrap; /* Ensures buttons stack if needed */
    width: 80%; /* Make sure it spans full width */
    max-width: 300px; /* Prevents it from stretching too wide */
    margin: 15px auto 0; /* Centers the whole container */
  }
  

  /* Fixes White Space & Overlapping */
  .stats-section {
   margin:0px; /* Push it lower to prevent overlap */
  }
  .filler-section{
    display:none;
    margin:0px;
  }
}

/*-------------------------------------------------
vid section
--------------------------------------------------------*/
.vid-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  background-color: #4d1316;
}

.vid-section .vid-content {
  flex: 1;
  text-align: left;
}

.vid-section .vid-title {
  font-size: 35;
  font-weight: bold;
  color: #f1f1f5;
  margin-bottom: 15px;
  
}

.vid-section .vid-description {
  font-size: 1.1rem;
  color: #f1f1f5;
  margin-bottom: 20px;
  max-width: 500px;
}

.vid-section .vid-learn-more:hover {
  text-decoration: underline;
}

.vid-section .vid-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;

}

.vid-section .vid-media {
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .vid-section {
    flex-direction: column; /* Stack video and content vertically */
    padding: 20px; /* Reduce padding for smaller screens */
  }

  .vid-container {
    order: 1; /* Video comes first */
    margin-bottom: 20px; /* Space between video and content */
  }

  .vid-content {
    order: 2; /* Content comes second */
    text-align: center; /* Center content text */
  }

  .vid-title {
    text-align: center; 
    font-size: 1.8rem; /* Adjust title size for smaller screens */
  }

  .vid-description {
    font-size: 1rem; /* Adjust description size for smaller screens */
    text-align:justify; 
  }
}

/*---------------------------------------------------
courses section
-------------------------------------------------------------*/
.course-section {
  padding: 40px;
  background-color: #f1f1f5;
  text-align: center;
}

.course-section .course-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000;
}
.course-section .course-title::after {
  content: "";
  display: block;
  width: 200px; /* Adjust width as needed */
  height: 5px;
  background: linear-gradient(135deg, #330000, #800000); /* Black to Maroon Gradient */
  margin: 5px auto 0; /* Centers it below the title */
}

.course-section .category{
  font-size: 23px; 
  font-weight: bold; 
  color: #fff; 
  background: linear-gradient(135deg, #330000, #800000); /* Black to Maroon Gradient */ 
  padding: 5px 10px; 
  border-radius: 15px;
  width: 15%; 
  margin: 15px; 
  margin-left:40px; 
}
.course-section .course-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  margin-bottom:50px; 

}
.course-sectoin .tesda{
  margin-bottom: 0px; 
}

.course-section .course-card {
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease-in-out;
}

.course-section .course-card:hover {
  transform: translateY(-5px);
}

.course-section .course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-section .course-content {
  padding: 15px;
}

.course-section .course-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

.course-section .course-description {
  font-size: 1rem;
  color: #000;
  opacity: 0.9;
  text-align:justify; 
}
@media (max-width: 768px) {
  /* Adjust course section */
  .course-section {
    padding: 20px; /* Reduce padding for smaller screens */
  }

  /* Title */
  .course-title {
    font-size: 1.8rem; /* Adjust font size for smaller screens */
  }

  /* Category */
  .course-section .category {
    font-size: 1.5rem; /* Adjust font size */
    width: 90%; /* Remove fixed width */
    margin: 10px auto; /* Center category */
    padding: 8px 20px; /* Adjust padding */
  }

  /* Course container */
  .course-section .course-container {
    grid-template-columns: repeat(1, 1fr); /* Stack courses in one column */
    margin-bottom: 30px; /* Add space at the bottom */
  }

  /* Course cards */
  .course-section .course-card {
    padding: 10px; /* Reduce padding */
    margin: 10px 0; /* Add space between cards */
  }

  /* Image */
  .course-section .course-image {
    height: 150px; /* Adjust image height */
  }

  /* Course name */
  .course-section .course-name {
    font-size: 1.1rem; /* Adjust font size */
  }

  /* Description */
  .course-section .course-description {
    font-size: 0.9rem; /* Adjust font size */
  }
}

/*-------------------------------------------------
welcome section
--------------------------------------------------------*/
.tdfi-welcome-section {
  padding: 1rem 0;
}

.tdfi-welcome-section .tdfi-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.tdfi-welcome-section .tdfi-content h2::after{
  content: "";
  display: block;
  width: 200px;
  height: 5px;
  background: linear-gradient(135deg, #330000, #800000);
  margin: 5px auto 0;
}

.tdfi-welcome-section .tdfi-content p {
  font-size: 1rem;
  color: #555;
}

.tdfi-welcome-section .tdfi-welcome-pic {
  background-color: #f1f1f5;
}

.tdfi-welcome-section .tdfi-welcome-pic img {
  width: 100%;
  background-color: #f1f1f5;
  transition: transform 0.3s ease;
}

.tdfi-welcome-section button {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #800000;
  color: white;
  border: none;
  cursor: pointer;
}

.tdfi-welcome-section button:hover {
  background-color: #660000;
}

.tdfi-welcome-section .tdfi-requirements-container {
  width: 100%;
  padding: 10px;
  background-color: #f1f1f5;
  border-radius: 12px;
  color: #000;
}
.tdfi-welcome-section .tdfi-requirements-container h4 {
  font-size: 25px; 
  color: #000;
  text-align: center;
}

.tdfi-welcome-section .tdfi-requirements-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tdfi-welcome-section .tdfi-requirements-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tdfi-welcome-section .tdfi-requirement {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  color: #000;
  padding: 10px 15px 10px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Gradient bar on the left */
.tdfi-welcome-section .tdfi-requirement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(135deg, #330000, #800000);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.tdfi-welcome-section .tdfi-requirement-date {
  margin-right: 15px;
  font-weight: bold;
  color: #330000;
  font-size: 1.2rem;
}

.tdfi-welcome-section .tdfi-requirement-title {
  margin: 0;
  font-size: 1rem;
  color: #000;
}
.tdfi-welcome-section .grade12-req-container .tdfi-requirements-column{
  margin: 20px; 
}
/* Mobile version adjustments */
@media (max-width: 767px) {
  /* Centering the h2 for mobile */
  .tdfi-welcome-section .tdfi-content h2 {
    text-align: center; /* Center the title on mobile */
  }

  /* Switch the order of the image and swiper */
  .tdfi-welcome-section .col-lg-6 {
    width: 100%;
  }

  .tdfi-welcome-section .tdfi-content {
    order: 1; /* Ensure content stays on top */
  }

  .tdfi-welcome-section .tdfi-welcome-pic {
    order: 2; /* Move the image to the bottom */
    margin-top: 20px; /* Add some space between content and image */
  }
  
  /* Adjust swiper container width on mobile */
  .swiper {
    width: 100%; /* Make the swiper take full width on mobile */
  }
}
/*---------------------
  Application Process Section
-------------------------*/
.application-process {
  padding: 40px 20px;
  background-color: #f1f1f5;
}

.application-process .section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  
  position: relative;
}

.application-process .section-title::after {
  content: "";
  display: block;
  width: 200px; /* Adjust width as needed */
  height: 5px;
  background: linear-gradient(135deg, #330000, #800000); /* Black to Maroon Gradient */
  margin: 5px auto 0; /* Centers it below the title */
}
.application-process .disclaimer {
  color: #000;
  padding: 10px 15px;
  text-align: center; /* Center the entire paragraph */
  font-size: 0.95rem;
  max-width: 85%;
  margin: 0 auto 25px auto;
  line-height: 1.5;
}

/* Grid Layout */
.application-process .process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
}

/* Individual Step Card */
/* Individual Step Card */
.application-process .process-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  position: relative; /* Ensures that the pseudo-element is positioned relative to this card */
}

/* Left border with gradient */
.application-process .process-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px; /* Width of the left border */
  height: 100%; /* Full height of the card */
  background: linear-gradient(135deg, #330000, #800000); /* Gradient color for the border */
  border-top-left-radius: 8px; /* Rounded corners at the top */
  border-bottom-left-radius: 8px; /* Rounded corners at the bottom */
}


.application-process .process-card:hover {
  transform: translateY(-5px);
}

/* Header: Number + Title */
.application-process .step-header {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between number and title */
  margin-bottom: 5px;
}

/* Step Number - Now inline with title */
.application-process .step-number {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
  background: linear-gradient(135deg, #330000, #800000); /* Black to Maroon Gradient */
  color: white;
  flex-shrink: 0; /* Prevent shrinking */
}

/* Step Title */
.application-process h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0; /* Remove extra margin */
}

/* Step Description */
.application-process p {
  font-size: 1rem;
  color: #555;
  margin: 0;
  padding-left: 45px; /* Align text with title */
  text-align: justify;
}

.applicaton-process .disclaimer i {
  color: #800000;
  font-size: 1.2rem;
}


/* Responsive for smaller screens */
@media (max-width: 992px) {
  .application-process .process-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }
}

@media (max-width: 768px) {
  .application-process .process-grid {
      grid-template-columns: 1fr; /* 1 column for mobile */
  }
  
  .application-process .disclaimer{
    text-align: justify; 
  }
  .application-process .disclaimer i{
    color: #800000; 
  }
}

/*---------------------------------------------------
slides gallery section
-------------------------------------------------------------*/
.slides-section {
  width: 100%;
  height: 400px; /* Adjust as needed */
  overflow: hidden;
}

.slides-section .swiper {
  width: 100%;
  height: 100%;
}

.slides-section .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .slides-section{
    display:none; 
  }
}
/*---------------------------------------------------
footer section
-------------------------------------------------------------*/
footer {
  background-color: #181818;
  position: relative;
  color: white;
  padding: 50px 10%;
  font-family: 'Arial', sans-serif;
  min-height: 300px;
}

/* Dark Blue Overlay */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  /* Dark Blue with Transparency */
  z-index: 1;
}

/* Footer Content */
.footer-container {
  display: flex;
  justify-content: space-between; /* Adds space between logo and links */
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Left Section (Logo + Contact Links) */
.left-section {
  display: flex;
  align-items: center;
  gap: 20px; /* Space between logo and contact links */
}

/* Logo Section */
.footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centers the logo */
  min-width: 250px;
}

.footer-logo-txt h1{
  font-family:'Georgia', serif;
  font-size: 25px;
  font-weight: bold;

}
.footer-logo img {
  max-width: 150px;
  margin-bottom: 10px;
}

/* Contact Links */
.contact-links {
  font-size: 14px;
  line-height: 1.5;
}

.contact-links a {
  color: #FFD700; /* Gold Color for Links */
  text-decoration: none;
  font-weight: bold;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* Right Section for Footer Links and Other Links */
.right-section {
  margin-left: auto; /* Pushes this section to the right */
  display: flex;
  justify-content: space-between; /* Distributes the links evenly */
  gap: 30px; /* Adjust space between the link sections */
}

/* Footer Links */
.footer-links,
.other-links {
  display: block;
}

.footer-links ul,
.other-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.other-links ul li {
  margin: 8px 0;
}

.footer-links ul li a,
.other-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-links ul li a:hover,
.other-links ul li a:hover {
  text-decoration: underline;
}

#small-line{
  margin-bottom:10px;
  margin-top: 10px;
  width: 25px;
  height:0.2px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between; /* Aligns left and right */
  align-items: center;
  padding-top: 20px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.5); /* More visible separator */
  margin-top: 40px;
  color: white; /* Ensures readability */
  position: relative;
  z-index: 2; /* Keeps text above overlay */
}

/* Left copyright text */
.footer-bottom p {
  margin: 0;
}

/* Right-aligned "Website by" */
.footer-bottom p:last-child {
  text-align: right;
}

/* Links */
.footer-bottom a {
  color: #FFD700; /* Gold color for visibility */
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-bottom {
      flex-direction: column;
      text-align: center;
  }

  .footer-bottom p {
      margin-bottom: 5px;
  }

  .footer-bottom p:last-child {
      text-align: center;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .footer-bottom {
      flex-direction: column;
      text-align: center;
  }

  .footer-bottom p {
      margin-bottom: 5px;
  }

  .footer-bottom p:last-child {
      text-align: center;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      text-align: center;
  }

  .footer-links {
      flex-direction: column;
      gap: 20px;
  }
  .footer-logo-txt .tdfi-email{
    font-size: 12px;
  }
  .footer-logo-txt .tdfi-phone{
    display: none;
  }
}

  /*---------------------------------------------/ THE END /
  

