/* Layout Styles - Header, Footer, Navigation, Grid */

/* Navigation */
.navbar-custom {
  background-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 50px;
  border-radius: 20%;
}

.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500;
  padding: 1rem !important;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.navbar-nav .nav-link:hover {
  color: #007bff !important;
}

.navbar-toggler {
  border-color: #007bff !important;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333333;
  font-weight: bold;
}

nav ul.nav-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

nav ul.nav-links li {
  margin-left: 20px;
}

nav ul.nav-links li a {
  text-decoration: none;
  color: #333333;
  font-weight: bold;
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid #333333;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul.nav-links li a:hover {
  background-color: #333333;
  color: #ffffff;
}

/* Header Navigation Links */
.header-nav .nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  background-color: #007bff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.header-nav .nav-link:hover,
.header-nav .nav-link:focus {
  background-color: #0056b3;
  color: #ffffff;
  text-decoration: none;
}

.header-icons .icon-link {
  color: #007bff;
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.header-icons .icon-link:hover,
.header-icons .icon-link:focus {
  color: #0056b3;
}

.header-image {
  width: 100%;
  height: auto;
}

.banner-image {
  width: 100%;
  height: auto;
  margin: 0;
  display: block;
  object-fit: cover;
}

.banner img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-primary);
  padding: 50px 50px 20px 50px;
  font-family: Inter, -apple-system, Roboto, Helvetica, sans-serif;
  margin-bottom: 0;
}

.footer .text-light,
.footer .text-white {
  color: var(--footer-text-secondary) !important;
}

.footer .text-light:hover,
.footer .text-white:hover {
  color: var(--footer-text-hover) !important;
}

.footer h5 {
  color: var(--footer-text-primary) !important;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer a {
  color: var(--footer-text-secondary) !important;
  text-decoration: none !important;
  transition: var(--footer-transition);
}

.footer a:hover,
.footer a:focus {
  color: var(--footer-text-hover) !important;
  text-decoration: none !important;
}

.footer .list-inline-item i {
  color: var(--footer-icon-color) !important;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.footer .list-inline-item i:hover {
  transform: scale(1.1);
  color: var(--footer-text-hover) !important;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent !important;
}

.footer .container:first-child {
  padding-left: 0;
}

.footer .container:last-child {
  text-align: center;
  margin: 0 auto;
  padding-bottom: 0;
}

.footer .col-md-2 {
  margin-top: 5rem;
  padding-right: 2rem;
}

.footer .col-md-4 {
  margin-top: 0;
  padding-right: 0;
  background-color: transparent !important;
}

.footer ul.list-unstyled {
  padding-left: 0;
}

.footer ul.list-unstyled li {
  margin-bottom: 0.5rem;
}

.footer .logo-container {
  width: 100%;
  margin-bottom: 6rem;
  text-align: right;
  background-color: transparent !important;
}

.footer .service {
  width: 150px;
  height: auto;
  display: inline-block;
}

.footer .Additional-links {
  width: 100%;
  text-align: right;
  background-color: transparent !important;
}

.footer .Additional-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 2rem;
}

.footer .footer-bottom {
  text-align: right;
  background-color: transparent !important;
}

.footer .list-inline {
  padding-left: 0;
  margin: 0;
}

.footer .list-inline-item {
  margin: 0 0.5rem;
}

.footer .list-inline-item:last-child {
  margin-right: 0;
}

.footer .bottom-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  flex-wrap: wrap;
}

.footer .bottom-links a {
  white-space: nowrap;
}

.footer-links-section {
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-section a {
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-links-section a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

.footer .container,
.footer .col-md-4,
.footer .Additional-links,
.footer .logo-container,
.footer .footer-bottom,
.footer .container *,
.footer .col-md-4 *,
.footer .Additional-links * {
  background-color: transparent !important;
}

/* Grid Layouts */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.course-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.course-box {
  width: 22%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.centered-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.my-custom-gutter > .col {
  padding-bottom: 2rem;
}

/* Responsive - Enhanced Mobile Breakpoints */

/* Tablet and below (991px and below) */
@media (max-width: 991px) {
  .course-box {
    width: 48%;
  }
  
  /* Navigation adjustments */
  .navbar-nav {
    text-align: center;
  }
  
  /* Grid adjustments */
  .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile landscape and below (767px and below) */
@media (max-width: 767px) {
  .course-box {
    width: 100%;
  }
  
  .discover-grid {
    grid-template-columns: 1fr;
  }
  
  /* Stack columns */
  .course-container {
    flex-direction: column;
  }
  
  /* Navigation */
  nav ul.nav-links {
    flex-direction: column;
    align-items: stretch;
  }
  
  nav ul.nav-links li {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
  
  nav ul.nav-links li a {
    display: block;
    text-align: center;
  }
}

/* Mobile portrait (768px and below) */
@media (max-width: 768px) {
  .quick-action {
    font-size: 1.2rem;
    padding: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer .col-md-3,
  .footer .col-md-2,
  .footer .col-md-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer .text-center.mt-4 a {
    display: block;
    margin: 0.5rem 0;
  }
  
  .footer .logo-container,
  .footer .Additional-links,
  .footer .footer-bottom {
    text-align: center;
  }
  
  /* Header image adjustments */
  .header-image,
  .banner-image {
    max-height: 200px;
    object-fit: cover;
  }
  
  /* Container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  main {
    padding: 1rem;
  }
}

/* Small mobile (576px and below) */
@media (max-width: 576px) {
  .footer {
    padding: 1.5rem 0.75rem 0.75rem;
  }
  
  .footer .row > div {
    margin-bottom: 1.5rem;
  }
  
  /* Search bar */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar input {
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 4px;
  }

  .search-bar button {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    border-radius: 4px;
  }
  
  /* Typography adjustments */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  
  /* Card adjustments */
  .card-body {
    padding: 0.75rem;
  }
  
  /* Button adjustments */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
  }
  
  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Form adjustments */
  .form-row {
    flex-direction: column;
  }
  
  .form-row .col,
  .form-row [class*="col-"] {
    max-width: 100%;
    margin-bottom: 0.75rem;
  }
}

