/* ============================================================
   GLOBAL FONT SYSTEM (INTER ONLY — PROFESSIONAL + CLEAN)
=========================================================== */

html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
  margin: 0;
  padding: 0;
}

/* Apply Inter globally EXCEPT icons - FIXED SELECTOR */
*:not(i):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class*="fa-"]):not(.material-symbols-rounded):not(svg) {
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* Font Awesome fix (prevents broken icons) - IMPROVED */
.fa, .fas, .far, .fal, .fab, [class^="fa-"], [class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Specifically for brand icons */
.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Google Material Icons */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Paragraph defaults */
p {
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}

/* ============================================================
   NAVIGATION STYLING
=========================================================== */

.nav-item {
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #1f2937;
  transition: all 0.2s ease;
}
.nav-item:hover {
  color: #2563eb;
}

/* Dropdown animations */
.dropdown-menu {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  will-change: opacity, transform;
}
.dropdown-parent:hover .dropdown-menu,
.dropdown-parent.active .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Underline hover animation */
.nav-item-underline {
  position: relative;
}
.nav-item-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #2563eb;
  transition: width 0.3s ease;
}
.nav-item-underline:hover::after {
  width: 100%;
}

/* Chevron rotation */
.dropdown-parent.active .dropdown-chevron {
  transform: rotate(180deg);
}
.dropdown-chevron {
  transition: transform 0.2s ease;
}

/* Dropdown card */
.dropdown-content {
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  padding: 0.25rem 0;
}

/* Dropdown items */
.dropdown-item {
  transition: background-color 0.2s, color 0.2s, font-weight 0.2s;
}
.dropdown-item:hover {
  background: #f0f9ff;
  color: #2563eb;
  font-weight: 600;
}

/* ============================================================
   MOBILE NAV
=========================================================== */

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 1000px;
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.mobile-dropdown.open {
  max-height: 500px;
}

.mobile-nav-item,
.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #1f2937;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.mobile-nav-item:hover,
.mobile-dropdown-toggle:hover {
  background: #f0f9ff;
  color: #2563eb;
}

.mobile-dropdown-item {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
}
.mobile-dropdown-item:hover {
  background: #f9fafb;
  color: #2563eb;
}

/* ============================================================
   HOME PAGE & UTILITIES
=========================================================== */

.custom-scrollbar-hidden::-webkit-scrollbar {
  display: none;
}
.custom-scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.link-icon-wrapper:hover i {
  background: #e0e7ff !important;
  color: #4f46e5 !important;
}

.event-card:hover .link-icon-wrapper i {
  background: #e0e7ff !important;
  color: #4f46e5 !important;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* ============================================================
   CHECKOUT PAGE SPECIFIC FIXES
=========================================================== */

/* Ensure Purchase Now button text shows */
#buy-now-btn span,
#payBtnText {
  font-family: 'Inter', sans-serif !important;
}

/* Ensure Font Awesome icons in buttons show properly */
#buy-now-btn .fa,
#payBtn .fa {
  font-family: "Font Awesome 6 Free" !important;
}

/* Specifically for Google Drive brand icon */
#buy-now-btn .fab.fa-google-drive {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}