/* Custom Color Overrides - Primary Color: #2f73c6 */

:root {
  --primary-color: #2f73c6;
  --primary-dark: #1e5ba8;
  --primary-light: #4a8ed8;
}

/* Header Background */
.ultra-header .header-nav {
  background: #2f73c6 !important;
}

/* Header Text - Make White */
.ultra-header .header-nav .nav-brand h1,
.ultra-header .header-nav .nav-brand p,
.ultra-header .header-nav .brand-text h1,
.ultra-header .header-nav .brand-text p {
  color: white !important;
}

/* Navigation Links - White Color */
.ultra-header .header-nav .nav-menu a {
  color: white !important;
}

/* Navigation Active & Hover States */
.ultra-header .header-nav .nav-menu a:hover,
.ultra-header .header-nav .nav-menu a.active {
  color: #ffd700 !important; /* Gold color for visibility */
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 5px;
}

/* Apply Button */
.ultra-header .apply-btn {
  background: white !important;
  color: #2f73c6 !important;
  border: 2px solid white !important;
}

.ultra-header .apply-btn:hover {
  background: #ffd700 !important;
  color: #2f73c6 !important;
  border-color: #ffd700 !important;
}

/* Buttons and Links */
.btn-modern.btn-gradient,
.apply-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.btn-modern.btn-gradient:hover,
.apply-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
}

/* Top Header Bar */
.ultra-header .header-top {
  background: #1e5ba8 !important; /* Darker blue */
}

.ultra-header .header-top .contact-item,
.ultra-header .header-top .contact-item span,
.ultra-header .header-top .contact-item i {
  color: white !important;
}

/* Dropdown Menu Text */
.ultra-header .dropdown-menu {
  background: white !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.ultra-header .dropdown-menu a {
  color: #2c3e50 !important;
  font-weight: 500 !important;
}

.ultra-header .dropdown-menu a:hover {
  color: #2f73c6 !important;
  background: rgba(47, 115, 198, 0.1) !important;
}

.ultra-header .dropdown-menu h5 {
  color: #2f73c6 !important;
  font-weight: 700 !important;
}

/* Dropdown Section Links - Ensure visibility */
.ultra-header .dropdown-section a {
  color: #2c3e50 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 0.75rem !important;
  margin-bottom: 0.5rem !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

.ultra-header .dropdown-section a:hover {
  color: #422774 !important;
  background: linear-gradient(135deg, rgba(66,39,116,0.15), rgba(106,76,147,0.15)) !important;
  padding-left: 1rem !important;
}

.ultra-header .dropdown-section a i {
  color: #6a4c93 !important;
  font-size: 1.1rem !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

/* Ensure text nodes are visible */
.ultra-header .dropdown-section a * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Force text content visibility - Critical Fix */
.ultra-header .mega-dropdown .dropdown-section a {
  color: #2c3e50 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}

.ultra-header .mega-dropdown .dropdown-section a:link,
.ultra-header .mega-dropdown .dropdown-section a:visited,
.ultra-header .mega-dropdown .dropdown-section a:active {
  color: #2c3e50 !important;
}

/* Hero Title Layout - Ensure proper line breaks */
.hero-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0.75rem !important;
}

.hero-title .hero-welcome {
  display: block !important;
  width: 100% !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  text-transform: capitalize !important;
}

.hero-title .text-gradient-animate {
  display: block !important;
  width: 100% !important;
  font-size: clamp(2rem, 5vw, 4rem) !important;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
  max-width: 100% !important;
}

/* Responsive hero title for tablets */
@media (max-width: 992px) {
  .hero-title {
    gap: 0.5rem !important;
  }

  .hero-title .hero-welcome {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
  }

  .hero-title .text-gradient-animate {
    font-size: clamp(1.75rem, 5.5vw, 3rem) !important;
    line-height: 1.3 !important;
  }
}

/* Responsive hero title for mobile devices */
@media (max-width: 768px) {
  .hero-title {
    gap: 0.5rem !important;
  }

  .hero-title .hero-welcome {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }

  .hero-title .text-gradient-animate {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem) !important;
    line-height: 1.3 !important;
  }
}

/* Responsive hero title for small mobile */
@media (max-width: 576px) {
  .hero-title {
    gap: 0.5rem !important;
  }

  .hero-title .hero-welcome {
    font-size: clamp(1.5rem, 8vw, 2rem) !important;
  }

  .hero-title .text-gradient-animate {
    font-size: clamp(1.3rem, 7.5vw, 1.75rem) !important;
    line-height: 1.4 !important;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .hero-title .hero-welcome {
    font-size: 1.5rem !important;
  }

  .hero-title .text-gradient-animate {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
  }
}

/* Brand Text Visibility */
.ultra-header .brand-text {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.ultra-header .brand-text h1 {
  color: #1a1a2e !important;
  background: linear-gradient(135deg, #422774, #6a4c93) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.ultra-header .brand-text p {
  color: #666 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile Menu */
.ultra-header .mobile-toggle span {
  background: white !important;
}

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

/* Cards and Hover Effects */
.modern-card:hover {
  border-color: var(--primary-color) !important;
}

.card-link {
  color: var(--primary-color) !important;
}

/* Section Badges */
.section-badge {
  background: rgba(47, 115, 198, 0.1) !important;
  color: var(--primary-color) !important;
}

/* Highlights */
.highlight {
  color: var(--primary-color) !important;
}

/* Icons and Features */
.feature-number {
  color: var(--primary-color) !important;
}

/* Footer Links */
.footer-col a:hover {
  color: var(--primary-color) !important;
}

/* Back to Top Button */
.back-to-top {
  background: var(--primary-color) !important;
}

.back-to-top:hover {
  background: var(--primary-dark) !important;
}

/* Hero Gradient Override */
.modern-hero {
  background: linear-gradient(135deg, rgba(47, 115, 198, 0.95), rgba(74, 142, 216, 0.95)), url('../img/homeslider/slide1.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Social Links */
.social-link:hover,
.footer-social-media a:hover {
  background: var(--primary-color) !important;
}

/* Header Top Bar */
.header-top {
  background: var(--primary-dark) !important;
}

/* Button Outlines */
.btn-modern.btn-outline-modern {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.btn-modern.btn-outline-modern:hover {
  background: var(--primary-color) !important;
  color: white !important;
}
