/* =========================================
   Reset & Base Typography
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ubuntu Font Faces */
@font-face {
  font-family: 'Ubuntu';
  src: url('/assets/fonts/ubuntu/ubuntu-regular.woff2') format('woff2'),
       url('/assets/fonts/ubuntu/ubuntu-regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/assets/fonts/ubuntu/ubuntu-bold.woff2') format('woff2'),
       url('/assets/fonts/ubuntu/ubuntu-bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/assets/fonts/ubuntu/ubuntu-light-italic.woff2') format('woff2'),
       url('/assets/fonts/ubuntu/ubuntu-light-italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: optional;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/assets/fonts/ubuntu/ubuntu-bold-italic.woff2') format('woff2'),
       url('/assets/fonts/ubuntu/ubuntu-bold-italic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: optional;
}

/* Base Styles */
body {
  font-family: 'Ubuntu', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.7;
  font-size: 17px;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 56px; /* Reduced size for desktop */
  font-weight: 700;
}

@media (max-width: 992px) {
  h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px; /* More manageable on mobile */
  }
}

h2 {
  font-size: 36px;
  font-weight: bold;
}

h3 {
  font-size: 21px;
}

h4 {
  font-size: 16px;
  font-weight: 400;
}

p {
  line-height: 1.8;
  margin-bottom: 1em;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #3A5DD0;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3A5DD0;
}

/* Utility */
.lead {
  font-size: 18px;
  font-weight: 100;
}

/* =========================================
   Containers & Layout
========================================= */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* =========================================
   Navigation
========================================= */
nav li a {
  display: inline-block;
}

/* (Additional dropdown and navigation styles can be added here) */

/* =========================================
   Hero Section
========================================= */
.header-wrapper {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/ITF_main_image.webp') no-repeat center center;
  background-size: cover;
  /* Using aspect-ratio reserves space before the image loads */
  aspect-ratio: 16 / 9;
}
@media (max-width: 768px) {
	.header-wrapper {
	  background: url('/images/ITF_main_image-mobile.webp') no-repeat center center;
	  background-size: cover;
	  position: relative;
	  width: 100%;
	  min-height: 75vh;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  aspect-ratio:  16 / 9;
	}
}

.color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.header-wrapper-inner {
  min-height: 220px;
  position: relative;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Fallback to Arial if Ubuntu fails to load */
  font-family: 'Ubuntu', Arial, sans-serif;
}

.main-logo {
  max-width: 300px;
}

#about {
  min-height: 500px;
  width: 100%;
}

/* =========================================
   Section Headings & Layout
========================================= */
.section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section-heading {
  text-align: center;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: calc(2rem + 1vw);
  font-weight: bold;
  color: #3A5DD0;
  text-transform: uppercase;
  padding: 15px 20px;
  margin: 0 auto 15px;
  display: inline-block;
  border-bottom: 3px solid #3A5DD0;
}

.section-heading p {
  color: #666;
  font-size: 1.1rem;
  text-align: center;
}

/* =========================================
   Buttons
========================================= */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  text-align: center;
}

.section-btn {
  background-color: #3A5DD0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.section-btn:hover {
  background-color: #3A5DD0;
  color: #fff;
}

/* =========================================
   Services & Cards
========================================= */
.service-card {
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 30px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.service-card .card-header {
  background-color: #011B3C;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card .card-header i {
  font-size: 2.1rem;
  margin-right: 10px;
  color: #3A5DD0;
  transition: color 0.3s ease;
}

.service-card:hover .card-header {
  background-color: #3A5DD0;
}

.service-card:hover .card-header i {
  color: #fff;
}

/* Card Body */
.service-card .card-body {
  background-color: #fff;
  color: #555;
  padding: 20px;
  border-radius: 0 0 8px 8px;
}

.service-card .card-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* =========================================
   Testimonials
========================================= */
.testimonial {
  background: linear-gradient(135deg, rgba(58,93,208,0.15), rgba(0,160,227,0.15));
  border: 2px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(45deg, #3A5DD0, #00A0E3);
  border-radius: 15px;
  padding: 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;charset=UTF-8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.5)"/></svg>') repeat;
  opacity: 0.2;
  pointer-events: none;
  transform: scale(1.5);
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
  z-index: 1;
}

.testimonial footer {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
}

.testimonial:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Ensure Equal Height Testimonials */
#testimonials .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

#testimonials .col-md-3,
#testimonials .col-sm-6 {
  display: flex;
  flex-direction: column;
}

#testimonials .testimonial {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================
   Carousel (Clients)
========================================= */
/* (Add carousel-specific styles here if needed) */

/* =========================================
   Certificates / Accreditations
========================================= */
/* (Add certificate/accreditation styles here if needed) */

/* =========================================
   Footer
========================================= */
footer {
  background-color: #003366;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* =========================================
   Forms and Validation
========================================= */
/* (Include any form-specific styles here if needed) */

/* =========================================
   Iframes
========================================= */
/* (Include iframe-specific styles here if needed) */

/* =========================================
   Floating Button & Modal Enhancements
========================================= */
.modal-header {
  background: linear-gradient(135deg, #011B3C, #3A5DD0);
  color: #ffffff;
  padding: 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 3px solid #3A5DD0;
}

.modal-header h5 {
  font-size: 1.9rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
  color: #ffffff;
}

.modal-header .btn-close {
  color: #3A5DD0;
  background-color: transparent;
  font-size: 1.5rem;
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.modal-header .btn-close:hover {
  color: #3A5DD0;
  background-color: rgba(0, 158, 227, 0.2);
  opacity: 1;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
}

.modal-body {
  padding: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-body ul li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-body ul li:hover {
  background-color: #f0f8ff;
  border-radius: 8px;
}

.modal-body ul li h6 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #011B3C;
  margin-bottom: 10px;
}

.modal-body ul li h6 i {
  color: #3A5DD0;
  margin-right: 8px;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.modal-body ul li:hover h6 i {
  transform: scale(1.2);
  color: #3A5DD0;
}

.modal-body ul li p {
  font-size: 1rem;
  color: #555;
}

/* =========================================
   Force FontAwesome Icons to Use Logo Blue (#3A5DD0)
========================================= */
.fas,
.fa-solid,
.fa-brands,
.fa-regular {
  color: #3A5DD0;
  transition: color 0.3s ease;
}

.modal-body ul li h6 i,
.service-card .card-header i {
  color: #3A5DD0;
}

.service-card:hover .card-header i {
  color: #fff;
}

/* =========================================
   Old Site Contact / Form Styles (Adapted)
========================================= */

/* =========================================
   Parallax Background for Contact Section
========================================= */
.parallax-bg {
  background: url('/images/ITF_main_image.webp') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.parallax-bg .form-control {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid #ccc;
}

/* =========================================
   Canadian Maple Leaf Icon
========================================= */
.fab.fa-canadian-maple-leaf {
  color: #3A5DD0 !important;
}
