* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary: #005091;
  --secondary: #00b4f0;
  --text-gray: #666;
  --nav-gray: #606060;
  --bg-gray: #f6f6f4;
    --primary-blue: #005091;
    --secondary-blue: #00b4f0;
    --hover-blue: #003d6a;
    --light-blue: rgba(0, 80, 145, 0.1);
}



html {
  font-family: UniformPro, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

body {
  overflow-x: hidden;
}

/* Top utility bar */
.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  height: 60px;
  display: flex;
  align-items: center;
}

.top-bar-content {
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.top-bar-item:hover {
  color: var(--secondary);
}

.top-bar-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Main navigation */
#navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 60px;
  flex: 1;
}

.nav-item {
  color: var(--nav-gray);
  text-decoration: none;
  font-size: 1.125rem;
  font-family: UniformPro, Helvetica, Arial, sans-serif;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  position: relative;
  padding: 30px 0;
  transition: color 0.2s;
  letter-spacing: -0.03em;
}

.nav-item:hover,
.nav-item.active {
  color: var(--secondary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
}

.search-input {
  padding: 10px 40px 10px 16px;
  background-color: var(--bg-gray);
  border: none;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
  color: #333;
  width: 15rem;
  max-width: 15rem;
  transition: width 0.3s;
}

.search-input:focus {
  width: 15rem;
}

.search-input::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.search-icon svg {
  fill: var(--text-gray);
}

/* Sidebar styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 2000;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 30vw;
  height: 100vh;
  background-color: var(--bg-gray);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 2001;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  color: var(--primary);
  font-size: 20px;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-gray);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.sidebar-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox scrollbar */
.sidebar-content {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) #f1f1f1;
}

.sidebar-menu-item {
  display: block;
  padding: 12px 0;
  color: var(--primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}

.sidebar-menu-item:hover {
  color: var(--secondary);
}

/* Footer styles */
.footer {
  background-color: var(--primary);
  color: #fff;
  padding: 60px 0 40px;
  margin-top: 100px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-nav {
  display: flex;
  gap: 60px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--secondary);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.social-links {
  text-align: right;
}

.social-links p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 40px 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Main content */
main {
  min-height: 50vh;
  padding-right: 40px;
  padding-left: 40px;
}

/* Utility classes */
ul {
  list-style: none;
}


.container {
    margin: auto !important;
}

.banner-container {
    margin: 5px !important;
}

.btn-primary-custom {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-primary-custom:hover {
    background: var(--hover-blue);
    border-color: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 80, 145, 0.3);
}


/* ========================================
   RESPONSIVE FIXES FOR HOME PAGE
   ======================================== */

/* Mobile First Approach - Base styles for mobile */

/* Hero Banner Mobile Adjustments */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px;
        padding: 20px;
    }

    .banner-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-title .h1-home {
        font-size: 1.75rem !important;
    }

    .hero-title .h1-subtitle {
        font-size: 1.25rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    .btn-hero {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
        width: 100%;
        max-width: 250px;
    }
}

/* DU Section Mobile */
@media (max-width: 768px) {
    .du-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
        padding: 0 15px;
    }

    .section-subtitle {
        font-size: 1rem !important;
        padding: 0 15px;
    }

    .du-buttons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 0 15px;
    }

    .du-card {
        height: 350px;
    }

    .du-card-title {
        font-size: 0.8rem !important;
    }

    .du-card-subtitle {
        font-size: 0.7rem !important;
    }

    .hover-icon {
        width: 30px !important;
        height: 30px !important;
        margin-bottom: 150px;
    }
}

/* Formations Grid Mobile */
@media (max-width: 768px) {
    .formations-section {
        padding: 40px 0;
    }

    .formations-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px;
    }

    .formation-card {
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }

    .card-title {
        font-size: 1.1rem !important;
    }

    .card-category {
        font-size: 0.75rem !important;
    }

    .info-item {
        font-size: 0.8rem !important;
    }
}

/* Trust Section Mobile */
@media (max-width: 768px) {
    .trust-section {
        padding: 40px 0;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 0 15px;
    }

    .trust-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .trust-icon .icon {
        width: 30px !important;
        height: 30px !important;
    }

    .trust-text {
        font-size: 0.9rem !important;
    }
}

/* Featured Slider Mobile */
@media (max-width: 768px) {
    .featured-section {
        padding: 40px 0;
    }

    .featured-card {
        flex-direction: column;
        padding: 20px;
    }

    .featured-image {
        flex: none;
        width: 100%;
        height: 180px;
        margin-bottom: 20px;
    }

    .featured-title {
        font-size: 1.3rem !important;
    }

    .featured-description {
        font-size: 0.95rem !important;
    }

    .featured-info {
        flex-direction: column;
        gap: 10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Sponsors Mobile */
@media (max-width: 768px) {
    .sponsors-section {
        padding: 40px 0;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 0 15px;
    }

    .sponsor-item img {
        max-height: 60px !important;
    }
}

/* ========================================
   CONTACT FORM RESPONSIVE FIXES
   ======================================== */

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .modern-contact-form {
        padding: 0 15px;
    }

    .form-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Stack form elements properly on mobile */
    .form-group {
        margin-bottom: 20px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Checkbox grid mobile */
    .checkbox-grid {
        grid-template-columns: 1fr !important;
        max-height: 200px;
        padding-right: 5px;
    }

    .checkbox-label {
        font-size: 13px !important;
    }

    /* Submit button full width on mobile */
    .btn-submit {
        width: 100%;
        padding: 14px 24px !important;
        font-size: 15px !important;
    }
}

/* Small Mobile Devices (less than 375px) */
@media (max-width: 374px) {
    .container {
        padding: 0 10px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-title .h1-home {
        font-size: 1.5rem !important;
    }

    .hero-title .h1-subtitle {
        font-size: 1.1rem !important;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .du-buttons-grid {
        grid-template-columns: 1fr !important;
    }

    .du-card {
        height: 300px;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .du-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-card {
        padding: 25px;
    }

    .featured-image {
        flex: 0 0 45%;
    }
}

/* Large Screens (ensure content doesn't stretch too wide) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .section-header {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .formations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   UTILITY CLASSES FOR RESPONSIVE
   ======================================== */

/* Hide/Show Elements Based on Screen Size */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }

    .show-desktop {
        display: block !important;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .formation-card,
    .du-card {
        /* Remove hover effects on touch devices */
        transition: none;
    }

    .formation-card:hover,
    .du-card:hover {
        transform: none;
    }

    /* Make form inputs easier to tap */
    .form-input,
    .form-textarea,
    .form-select {
        min-height: 44px;
    }

    .custom-checkbox label,
    .custom-radio label {
        padding: 12px;
    }
}

/* ========================================
   ORIENTATION SPECIFIC STYLES
   ======================================== */

@media (orientation: landscape) and (max-height: 500px) {
    .hero-banner {
        min-height: 300px;
    }

    .section {
        padding: 40px 0;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .footer,
    .whatsapp-button,
    .to-top-button,
    .btn {
        display: none !important;
    }

    .hero-banner {
        background: none !important;
        color: black !important;
    }

    .formation-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
