/* Preloader Styles */
/* Preloader base style */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  /* or match your design */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Loader animation */
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hide preloader smoothly */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Body Fade-in */
body {
  font-family: "Inter", sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

body.page-loaded {
  opacity: 1;
}

body.mobile-menu-open {
  overflow: hidden;
}

a.logo {
  text-decoration: none;
}

.logo img:hover {
  cursor: pointer;
}

.footer__area {
  background: #1f2020;
}

.footer__top {
  padding: 100px 0 60px;
}

@media (max-width: 767.98px) {
  .footer__top {
    padding: 80px 0 40px;
  }
}

.footer__widget {
  margin-bottom: 35px;
}

.footer__widget-title {
  margin-bottom: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.footer__widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: #f7c948;
}

.footer__link .list-wrap li {
  margin-bottom: 10px;
}

.footer__link .list-wrap li:last-child {
  margin-bottom: 0;
}

.footer__link .list-wrap li a {
  color: #bbbbbb;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.footer__link .list-wrap li a:hover {
  color: #f7c948;
  text-decoration: underline;
}

.footer__content p {
  margin-bottom: 6px;
  color: #bbbbbb;
  width: 100%;
}

.footer__content .list-wrap li {
  color: #bbbbbb;
  font-weight: 500;
  margin-bottom: 7px;
}

.footer__content .list-wrap li:last-child {
  margin-bottom: 0;
}

.list-wrap {
  margin: 0px;
  padding: 0px;
}

.list-wrap li {
  list-style: none;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
}

.footer__social li a {
  color: #bbbbbb;
}

.footer__social li a:hover {
  color: #fff;
}

.footer__contact-content p {
  margin-bottom: 10px;
  color: #bbbbbb;
}

/* Header */
.site-header {
  background-color: #f9fbfd;
  border-bottom: 1px solid #d9e2ec;
  transition: box-shadow 0.3s ease;
}

.sticky-top {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.logo .brand-text {
  font-size: 20px;
  color: #444;
  line-height: 1.1;
  margin-left: 10px;
  text-transform: uppercase;
}

.nav-link {
  font-weight: 600;
  color: #14133b;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #3a7bd5;
}

@media (max-width: 1199px) {
  .main-nav {
    display: none !important;
  }
}

/* New Mobile Menu Styles */
.tgmobile__menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 35, 0.98);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tgmobile__menu.toggled {
  opacity: 1;
  visibility: visible;
}

.tgmobile__menu .mobile-nav-close {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #fff;
  font-size: 2rem;
}

.tgmobile__menu .mobile-nav-links {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.tgmobile__menu .mobile-nav-links li {
  margin-bottom: 20px;
}

.tgmobile__menu .mobile-nav-links a {
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tgmobile__menu .mobile-nav-links a:hover,
.tgmobile__menu .mobile-nav-links a.active {
  color: #3a7bd5;
}

/* Hero Carousel */
.hero-carousel .carousel-item {
  height: 85vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-carousel .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-carousel .carousel-caption {
  bottom: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
}

.hero-carousel .carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.hero-carousel .carousel-caption p {
  font-size: 1.25rem;
}

/* Feature Section */
.feature-icon {
  font-size: 3rem;
  color: #3a7bd5;
}

/* Popular Programs Section */
.program-card-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
}

.program-card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.program-card-container .program-image {
  display: block;
  width: 100%;
  height: 360px;
  transition: transform 0.3s ease;
}

.program-card-container:hover .program-image {
  transform: scale(1.05);
}

.program-card-container .program-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.program-card-container:hover .program-title-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f7c948;
  color: white;
  text-align: center;
  line-height: 50px;
  font-size: 1.5rem;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#scrollTopBtn:hover {
  background-color: #14133b;
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

.p-color-span {
  color: #f7c948;
  margin-right: 8px;
}

/* Contact Page Specific */
.page-header {
  background: #0b1c2c;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* UPDATED: Changed stroke color to white and increased background size */
  background-size: 300px;
  opacity: 0.8;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1,
.page-header p {
  color: #ccc;
  font-weight: 700;
}

.page-header p {
  font-weight: 500;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: #f7c948;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: #fff8e1;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-section {
  padding: 80px 0;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Countries Section */
.countries-section {
  padding: 80px 0;
}

.country-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.country-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.country-card .card-img-container {
  height: 460px;
  overflow: hidden;
}

.country-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-card .card-body {
  position: relative;
  text-align: center;
  /* Space for the flag */
  flex-grow: 1;
}

.country-card .card-title {
  font-weight: 700;
  color: #14133b;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-section .lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: #555;
}

/* Mission/Vision Section */
.mission-vision-section {
  padding: 80px 0;
}

.mv-card {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 40px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  height: 100%;
}

.mv-card .icon {
  font-size: 3rem;
  color: #f7c948;
  margin-bottom: 1.5rem;
}

.mv-card h3 {
  color: #14133b;
  font-weight: 700;
}

/* About Us Campus & Facilities */
.campus-facilities-section {
  padding: 80px 0;
}

.details-section {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
}

.details-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  min-height: 300px;
}

/* Team Section */
.team-section {
  padding: 80px 0;
}

.team-member-card {
  text-align: center;
}

.team-member-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 5px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-member-card h5 {
  font-weight: 600;
  color: #14133b;
}

.team-member-card p {
  color: #6c757d;
  font-weight: 500;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f7c948;
  color: white;
  text-align: center;
  line-height: 50px;
  font-size: 1.5rem;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#scrollTopBtn:hover {
  background-color: #14133b;
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem !important;
  margin-bottom: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.accordion-header {
  border-radius: 0.5rem 0.5rem 0 0;
}

.accordion-button {
  font-weight: 600;
  color: #14133b;
  background-color: #fff;
  border-radius: 0.5rem !important;
}

.accordion-button:not(.collapsed) {
  color: #14133b;
  background-color: #fef9e7;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(247, 201, 72, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2314133b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  color: #555;
}

/* Popular Programs Section */
.popular-programs-section {
  padding-bottom: 80px;
}

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

.section-title {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #14133b;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #f7c948;
  border-radius: 2px;
}

.program-image-link {
  display: block;
  border-radius: 0.75rem;
  height: 350px;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-image-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

/* Latest News Section */
.latest-news-section {
  padding-bottom: 80px;
}

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

.section-title {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #14133b;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #f7c948;
  border-radius: 2px;
}

.news-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.news-card img {
  border-radius: 0.75rem 0.75rem 0 0;
}

.news-card .card-body {
  padding: 1.5rem;
}

.news-card .card-title {
  font-weight: 600;
  color: #14133b;
}

.news-card .card-text {
  color: #6c757d;
}

.news-card .post-date {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Course Page Specific Styles */
.course-banner {
  height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.course-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.course-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.section-padding {
  padding: 80px 0;
}

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

.section-title {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #14133b;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #f7c948;
  border-radius: 2px;
}

.program-tabs-container {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 2.5rem;
}

.program-tabs {
  border-bottom: none;
}

.program-tabs .nav-link {
  color: #6c757d;
  font-weight: 600;
  background-color: transparent;
  border: none;
  border-bottom: 4px solid transparent;
  padding: 1rem 1.5rem;
  margin: 0 10px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.program-tabs .nav-link:hover {
  color: #14133b;
}

.program-tabs .nav-link.active {
  color: #14133b;
  border-bottom-color: #f7c948;
  background-color: transparent;
}

.tab-content {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

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

.info-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

/* UPDATED Icon Styles */
.info-list i {
  color: #002146;
  margin-right: 12px;
  width: 24px;
  font-size: 1.2rem;
  text-align: center;
}

.why-choose-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #002146;
}

.gallery-img {
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

/* UPDATED Button Styles */
.btn-read-more {
  background-color: #002146;
  border-color: #002146;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-read-more:hover {
  background-color: #003366;
  border-color: #003366;
  color: #fff;
}

/* University List Section */
.university-list-section {
  padding: 80px 0;
}

.university-card-link {
  display: block;
  text-decoration: none;
  height: 100%;
}

.university-card {
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.university-card-link:hover .university-card {
  transform: translateY(-8px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.university-card .card-img-top {
  border-radius: 0.75rem 0.75rem 0 0;
  height: 220px;
  object-fit: cover;
}

.university-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.university-card .university-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: -55px;
  margin-bottom: 1rem;
  background-color: #fff;
}

.university-card .card-title {
  font-weight: 700;
  color: #14133b;
}

.university-card .card-text {
  color: #6c757d;
  flex-grow: 1;
  margin-bottom: 0;
}

/* New Sections */
.section-padding {
  padding: 80px 0;
}

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

.section-title {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #14133b;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #f7c948;
  border-radius: 2px;
}

.guide-card {
  text-align: center;
}

.guide-card .icon {
  font-size: 3rem;
  color: #002146;
  margin-bottom: 1rem;
}

.guide-card h5 {
  font-weight: 600;
  color: #14133b;
}

.help-card {
  background-color: #002146;
  color: white;
  border-radius: 0.75rem;
  padding: 2.5rem;
}

.help-card h4 {
  font-weight: 700;
}

.btn-primary-yellow {
  color: #14133b;
  background-color: #f7c948;
  border-color: #f7c948;
  font-weight: 600;
}

.btn-primary-yellow:hover {
  color: #14133b;
  background-color: #eabf3e;
  border-color: #eabf3e;
}

/* Partnership Page Styles */

.partnership-text p {
  line-height: 1.8;
  color: #555;
}

.partnership-image {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* Course Detail Page Styles */
.page-banner {
  padding: 60px 0;
  background-color: #002146;
  color: white;
}

.section-padding {
  padding: 80px 0;
}

.course-details h2,
.course-details h3 {
  font-weight: 700;
  color: #14133b;
  margin-bottom: 1.5rem;
}

.course-details .lead {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 2rem;
}

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

.course-details ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.course-details ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #f7c948;
  position: absolute;
  left: 0;
}

.course-sidebar {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.course-sidebar .info-list li {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.course-sidebar .info-list i {
  color: #002146;
  margin-right: 15px;
  width: 25px;
  font-size: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.course-sidebar .info-list strong {
  display: block;
  color: #6c757d;
  font-weight: 500;
}

.course-sidebar .info-list span {
  color: #14133b;
  font-weight: 600;
}

.btn-register {
  background-color: #002146;
  border-color: #002146;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-register:hover {
  background-color: #003366;
  border-color: #003366;
  color: #fff;
}

.curriculum-accordion .accordion-item {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem !important;
  margin-bottom: 1rem;
}

.curriculum-accordion .accordion-button {
  font-weight: 600;
}

.curriculum-accordion .accordion-button:not(.collapsed) {
  color: #14133b;
  background-color: #fef9e7;
}

.card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  /* Ensure cards in the same row have the same height */
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-weight: 700;
  color: #333;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Allows the card body to fill available space */
}

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

.details-list li {
  margin-bottom: 0.25rem;
  color: #555;
}

.details-list .bi {
  margin-right: 0.75rem;
  color: #002145;
  /* Custom primary color */
  font-size: 1.2rem;
}

.card-img-top {
  width: 100%;
  height: 200px;
  /* Standard height for all card images */
  object-fit: cover;
  /* Ensures the image covers the area without distortion */
}

.btn-custom {
  background-color: #002145;
  border-color: #002145;
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
}

.btn-custom:hover {
  background-color: #001a36;
  /* A slightly darker shade for hover */
  border-color: #001a36;
  color: #fff;
}

/* This is the container for the row of partners */
.partners-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.partners-section-row {
  margin: 100px auto 140px auto !important;
}

.partners-section-row h6 {
  font-size: 26px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 150px;
}

/* This creates the colored circle */
.partner-logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* This makes it a perfect circle */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px;
  /* Adds space so the logo doesn't touch the edges */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.partner-logo-circle:hover {
  transform: scale(1.05);
  cursor: pointer;
  /* Slightly enlarges the circle on hover */
}

/* This styles the logo image inside the circle */
.partner-logo-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Ensures the whole logo is visible */
}

/* Partner Name */
.partner-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #444;
}

.partner-list {
  display: grid;
  gap: 25px;
  /* Space between the cards */
}

/* The main horizontal card for each partner */
.partner-card {
  display: flex;
  /* This is key for the side-by-side layout */
  align-items: center;
  /* Vertically aligns the logo and text */
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  gap: 25px;
  /* Space between the logo and the text */
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* The square container for the logo */
.partner-logo-square {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  /* Prevents the square from shrinking */
  background-color: #f5f5f5;
  /* Light background for the logo area */
  border-radius: 8px;
  /* Slightly rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.partner-logo-square img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* The container for the text content */
.partner-text-content {
  text-align: left;
}

.partner-text-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #333;
}

.partner-text-content p {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 600px) {
  .partner-card {
    flex-direction: column;
    /* Stacks the logo on top of the text */
    text-align: center;
  }

  .partner-text-content {
    text-align: center;
    /* Center the text on mobile */
  }
}
