/* Complete rewrite with proper CSS (no @apply) for CDN compatibility */

/* Font Configuration */
/* Updated to only Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Updated color variables to blue theme */
  --primary-blue: #2f6fed;
  --primary-blue-dark: #1f4ebd;
  --primary-blue-light: #5b8ef5;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

body {
  /* Updated font-family to only Inter */
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  scroll-behavior: smooth;
  overflow-x: hidden;
  line-height: 1.6;
  color: var(--slate-900);
  /* Removed padding-top since top header is now in normal flow */
}

/* Updated top header to be in normal document flow, not fixed */
.top-header {
  background: #1e293b;
  color: white;
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.top-header-link:hover {
  color: var(--primary-blue);
}

.top-header-social {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.top-header-social:hover {
  color: white;
  background: var(--primary-blue);
}

/* Updated main navigation to be sticky only when scrolling */
.main-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 50;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Enhanced shadow when scrolled past top header */
.main-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatDelayed {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatDelayed 8s ease-in-out infinite;
}

/* Navigation Styles */
.nav-link {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  /* Updated gradient to blue theme */
  background: linear-gradient(to right, var(--primary-blue), var(--primary-blue-dark));
  transition: width 0.3s ease;
}

.nav-link:hover {
  /* Updated hover color to blue theme */
  color: var(--primary-blue);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--slate-700);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  /* Updated hover background to blue theme */
  background-color: #eff6ff;
  color: var(--primary-blue);
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  /* Updated gradient to blue theme */
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  /* Updated shadow to blue theme */
  box-shadow: 0 4px 15px rgba(47, 111, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  /* Updated shadow to blue theme */
  box-shadow: 0 8px 25px rgba(47, 111, 237, 0.4);
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  /* Updated gradient to blue theme */
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  /* Updated shadow to blue theme */
  box-shadow: 0 6px 20px rgba(47, 111, 237, 0.35);
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  /* Updated shadow to blue theme */
  box-shadow: 0 10px 30px rgba(47, 111, 237, 0.45);
}

.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary-large:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Search Card */
.search-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--slate-50);
  border-radius: 12px;
  border: 2px solid var(--slate-200);
  transition: all 0.3s ease;
}

.input-group:focus-within {
  /* Updated focus border color to blue theme */
  border-color: var(--primary-blue);
  background: white;
  /* Updated focus shadow to blue theme */
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.input-group i {
  font-size: 18px;
  /* Updated icon color to blue theme */
  color: var(--primary-blue);
}

.input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--slate-900);
  font-size: 15px;
  font-weight: 500;
}

.input-field::placeholder {
  color: var(--slate-400);
}

/* Section Styles */
.section-title {
  /* Updated font-family to Inter */
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--slate-600);
  line-height: 1.7;
}

/* Tab Buttons */
.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  border: 2px solid var(--slate-200);
  background: white;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
}

.tab-btn.active {
  /* Updated active state to blue theme */
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  background: #eff6ff;
}

/* Package Cards */
.package-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card:hover .package-image img {
  transform: scale(1.1);
}

.package-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  /* Updated gradient to blue theme */
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  /* Updated shadow to blue theme */
  box-shadow: 0 4px 15px rgba(47, 111, 237, 0.4);
}

.package-content {
  padding: 24px;
}

.package-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.package-card:hover .package-title {
  /* Updated hover color to blue theme */
  color: var(--primary-blue);
}

.package-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--slate-500);
  margin-top: 4px;
}

.package-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #fffbeb;
  color: #f59e0b;
  font-weight: 700;
  border-radius: 10px;
  font-size: 14px;
}

.package-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
}

.package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
  margin-top: 16px;
}

.package-price {
  font-size: 28px;
  font-weight: 800;
  /* Updated gradient to blue theme */
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature Box */
.feature-box {
  padding: 24px;
  background: var(--slate-50);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* About Image Cards */
.about-image-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.about-image-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image-card:hover img {
  transform: scale(1.05);
}

/* Contact Info Card */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Social Links */
.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  /* Updated gradient to blue theme */
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  transform: scale(1.1);
}

.social-link-footer {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-800);
  color: var(--slate-400);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link-footer:hover {
  /* Updated gradient to blue theme */
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  transform: scale(1.1);
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-900);
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.form-input:focus {
  outline: none;
  /* Updated focus border color to blue theme */
  border-color: var(--primary-blue);
  background: white;
  /* Updated focus shadow to blue theme */
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.form-input::placeholder {
  color: var(--slate-400);
}

/* Counter Controls */
.counter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.counter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  text-align: center;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--slate-50);
  border-radius: 10px;
  padding: 4px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--slate-700);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.counter-btn:hover {
  /* Updated hover background to blue theme */
  background: var(--primary-blue);
  color: white;
}

.counter-input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  outline: none;
  font-weight: 700;
  color: var(--slate-900);
  font-size: 15px;
}

/* Footer */
.footer-link {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

/* Utility Classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* Updated hover border color to blue theme */
  border-color: var(--primary-blue);
}

.quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  /* Updated background to blue theme */
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Updated color to blue theme */
  color: var(--primary-blue);
  font-size: 20px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.testimonial-card:hover .quote-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Association Logo Cards */
.association-logo-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid var(--slate-100);
}

.association-logo-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--slate-200);
}

/* Certification Cards */
.certification-card {
  background: var(--slate-50);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.certification-card:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  /* Updated hover border color to blue theme */
  border-color: var(--primary-blue);
}

/* Quick link styles for hero section */
.quick-link {
  display: inline-block;
  padding: 6px 14px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--slate-200);
}

.quick-link:hover {
  /* Updated gradient to blue theme */
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  /* Updated shadow to blue theme */
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.35);
}

/* Scroll indicator animation */
.scroll-indicator {
  width: 32px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  animation: scroll-bounce 2s infinite;
}

.scroll-indicator i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  animation: scroll-arrow 2s infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes scroll-arrow {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Added stat-card styles */
.stat-card {
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Adjusted padding for mobile */
  body {
    padding-top: 116px; /* This was meant for fixed header scenarios, now the body padding-top is removed entirely */
  }

  .search-card {
    padding: 24px;
  }

  .package-card:hover {
    transform: translateY(0);
  }

  .section-title {
    font-size: 32px;
  }

  .contact-form {
    padding: 24px;
  }

  .counter-controls {
    flex-direction: column;
    gap: 8px;
  }

  /* Added mobile styles for top header */
  .top-header-link span {
    display: none;
  }

  .top-header-social {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* Enhanced responsive breakpoints for better mobile experience */
@media (max-width: 640px) {
  .search-card {
    padding: 20px;
    border-radius: 20px;
  }

  .input-group {
    padding: 12px 14px;
  }

  .input-group i {
    font-size: 16px;
  }

  .input-field {
    font-size: 14px;
  }

  .package-card {
    margin-bottom: 16px;
  }

  .package-image {
    height: 220px;
  }

  .package-content {
    padding: 20px;
  }

  .package-title {
    font-size: 20px;
  }

  .package-price {
    font-size: 24px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .contact-form {
    padding: 20px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .counter-controls {
    padding: 3px;
  }

  .counter-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .counter-input {
    width: 36px;
    font-size: 14px;
  }
}

/* Tablet responsive adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  .section-title {
    font-size: 40px;
  }

  .package-image {
    height: 240px;
  }

  .search-card {
    padding: 28px;
  }
}

/* Added responsive styles for navigation menu to ensure single line display */
@media (min-width: 1024px) and (max-width: 1280px) {
  .nav-link {
    font-size: 14px;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 15px;
  }
}

/* Enhanced hover effects for desktop */
@media (min-width: 1025px) {
  .package-card:hover {
    transform: translateY(-12px);
  }

  .testimonial-card:hover {
    transform: translateY(-10px);
  }

  .about-image-card:hover {
    transform: translateY(-6px);
  }
}

/* Improved focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  /* Updated focus outline to blue theme */
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Better print styles */
@media print {
  nav,
  footer,
  .btn-primary,
  .btn-secondary-large,
  .social-link,
  .top-header {
    display: none;
  }

  .package-card,
  .testimonial-card {
    break-inside: avoid;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Loading States */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus Visible */
*:focus-visible {
  /* Updated focus outline to blue theme */
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}
