/* Google Fonts Import - MUST BE FIRST */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ================================================================
   DWRKO TECHNOLOGIES - DARK THEME
   Exact match to React theme at /home/sabir/Music/dwrko.com-theme-main
   ================================================================ */

/* ----------------------------- 
   CSS Variables (Tailwind config match)
   ----------------------------- */
:root {
  --background: #171717;
  --surface: #262626;
  --border: #2f2f2f;
  --text: #FFFFFF;
  --text-secondary: #a3a3a3;
  --primary: #9E7FFF;
  --secondary: #38bdf8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ----------------------------- 
   Base Styles
   ----------------------------- */
html {
  scroll-behavior: smooth;
}

body,
.web-page,
.page-container,
.main-section,
main {
  background-color: var(--background) !important;
  color: var(--text) !important;
  font-family: var(--font-sans) !important;
  font-size: 16px;
  line-height: 1.6;
}

/* Headings - Serif font */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
  font-family: var(--font-serif) !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Text utilities */
.text-muted {
  color: var(--text-secondary) !important;
}

/* ----------------------------- 
   Hero Section - EXACT MATCH
   ----------------------------- */
.hero-section,
.web-section.hero-section,
section.web-section.hero-section {
  position: relative !important;
  min-height: auto !important;
  display: block !important;
  overflow: hidden !important;
  padding: 100px 24px 32px 24px !important;
  background: var(--background) !important;
}

/* Background glow effect */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(158, 127, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Hero Title - "Building AI-Powered" should be WHITE */
.hero-section h1,
.hero-section .display-2 {
  font-size: 4.5rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 2rem !important;
  color: #FFFFFF !important;
  font-family: var(--font-serif) !important;
}

@media (max-width: 992px) {

  .hero-section h1,
  .hero-section .display-2 {
    font-size: 3.5rem !important;
  }
}

@media (max-width: 576px) {

  .hero-section h1,
  .hero-section .display-2 {
    font-size: 2.5rem !important;
  }
}

/* Gradient text - Purple to Cyan */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ----------------------------- 
   Badge Component - EXACT MATCH (Override ALL default styles)
   ----------------------------- */
.badge,
.badge-primary,
span.badge,
span.badge-primary,
.hero-section .badge,
.main-section .badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  background: rgba(158, 127, 255, 0.1) !important;
  background-color: rgba(158, 127, 255, 0.1) !important;
  color: #9E7FFF !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(158, 127, 255, 0.3) !important;
  margin-bottom: 1.5rem !important;
  font-family: var(--font-sans) !important;
}

/* ----------------------------- 
   Button Components - EXACT MATCH
   ----------------------------- */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 28px !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  font-family: var(--font-sans) !important;
  cursor: pointer;
}

/* Primary Button - WHITE with BLACK text */
.btn-primary,
a.btn-primary,
button.btn-primary {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25) !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: #f0f0f0 !important;
  background-color: #f0f0f0 !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.35) !important;
}

/* Secondary Button - Surface with border */
.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--border) !important;
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  border-color: rgba(158, 127, 255, 0.5) !important;
  color: var(--primary) !important;
  background: var(--surface) !important;
}

.btn-lg {
  padding: 16px 32px !important;
  font-size: 15px !important;
  min-height: 52px !important;
}

/* ----------------------------- 
   Cards - EXACT MATCH
   ----------------------------- */
.card,
div.card {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  transition: all 0.3s ease !important;
}

.card:hover,
div.card:hover {
  border-color: rgba(158, 127, 255, 0.3) !important;
  box-shadow: 0 0 40px rgba(158, 127, 255, 0.1) !important;
  transform: translateY(-5px);
}

.card h5,
.card .fw-bold,
.card h3,
.card h4,
.card h6 {
  color: var(--text) !important;
  font-weight: 700 !important;
  font-family: var(--font-serif) !important;
  margin-bottom: 0.75rem !important;
}

.card p,
.card .small,
.card .text-muted {
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Feature Icon */
.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(158, 127, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* ----------------------------- 
   Sections
   ----------------------------- */
.web-section,
section.web-section {
  padding: 40px 0 !important;
  background: var(--background);
}

@media (min-width: 768px) {

  .web-section,
  section.web-section {
    padding: 60px 0 !important;
  }
}

.section-surface,
section.section-surface {
  background: rgba(38, 38, 38, 0.3) !important;
  border-top: 1px solid rgba(47, 47, 47, 0.5);
}

/* Section headings */
.web-section h2,
section h2 {
  font-size: 2.75rem !important;
  margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {

  .web-section h2,
  section h2 {
    font-size: 2rem !important;
  }
}

/* Force row alignment at top for proper sidebar/content alignment */
.web-section .row,
section .row,
.row {
  align-items: flex-start !important;
}

/* Remove top margin from first heading in columns */
.web-section .row>div:first-child h2:first-child,
.web-section .col-lg-9 h2:first-of-type,
.web-section .col-lg-3 h5:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ----------------------------- 
   Navbar - Match React Theme EXACTLY
   ----------------------------- */
.navbar,
.web-header,
header,
nav.navbar {
  background: rgba(23, 23, 23, 0.80) !important;
  background-color: rgba(23, 23, 23, 0.80) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border) !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0 !important;
}

.navbar .container,
.navbar>.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Center the navbar-collapse with menu items */
.navbar .navbar-collapse {
  flex: 1 !important;
  justify-content: center !important;
}

.navbar .navbar-nav.mr-auto {
  margin: 0 auto !important;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Navbar Brand - Use original logo image */
.navbar-brand,
.app-logo {
  font-weight: 700 !important;
  color: var(--text) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

.navbar-brand img,
.app-logo img {
  max-height: 40px !important;
  display: block !important;
  content: url('/assets/dwrko_custom/images/dwrko-logo-light.png') !important;
}

/* Nav Links */
.navbar .nav-link,
.web-header a,
nav a {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 8px 16px !important;
}

.navbar .nav-link:hover,
.web-header a:hover,
nav a:hover {
  color: var(--primary) !important;
}

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  min-width: 220px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.navbar .dropdown-item {
  color: var(--text) !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  transition: background 0.2s;
}

.navbar .dropdown-item:hover {
  background: rgba(158, 127, 255, 0.1) !important;
  color: var(--primary) !important;
}

.navbar .dropdown-item strong {
  color: var(--text) !important;
  display: block;
}

.navbar .dropdown-item small {
  color: var(--text-secondary) !important;
  font-size: 0.75rem;
}

.navbar .dropdown-divider {
  border-color: var(--border) !important;
  margin: 4px 0 !important;
}

.navbar .dropdown-toggle::after {
  margin-left: 6px;
}

/* Login Button - Border style like React theme */
.navbar .btn-login-area,
.navbar a[href="/login"],
.nav-link.btn-login-area {
  background: var(--surface) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 9999px !important;
  border: 1px solid var(--border) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.navbar .btn-login-area:hover,
.navbar a[href="/login"]:hover {
  border-color: rgba(158, 127, 255, 0.5) !important;
  color: var(--primary) !important;
  background: var(--surface) !important;
}

/* Hide search box and extra items in navbar */
.navbar .frappe-control,
.navbar .awesomplete,
.navbar .search-bar {
  display: none !important;
}

/* Navbar items */
.navbar-nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* ----------------------------- 
   CSS Grid for 2-column layout on row.g-4 (Blog cards)
   BUT NOT for footer
   ----------------------------- */
.web-section .row.g-4,
.row.g-4 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
}

/* Exclude footer from CSS grid - let Bootstrap handle it */
.web-footer .row.g-4,
footer .row.g-4,
.dwrko-footer .row.g-4 {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: unset !important;
}

.web-footer .row.g-4>[class*="col-"],
footer .row.g-4>[class*="col-"],
.dwrko-footer .row.g-4>[class*="col-"] {
  width: 50% !important;
  flex: 0 0 50% !important;
  max-width: 50% !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
}

.web-section .row.g-4>[class*="col-"],
.row.g-4>[class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  flex: none !important;
}

/* 1 column on small screens for content sections */
@media (max-width: 767.98px) {

  .web-section .row.g-4,
  .row.g-4 {
    grid-template-columns: 1fr !important;
  }

  /* Footer mobile - 2 columns layout */
  .web-footer .row.g-4>[class*="col-"],
  footer .row.g-4>[class*="col-"],
  .dwrko-footer .row.g-4>[class*="col-"] {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 8px !important;
  }
}

/* ----------------------------- 
   Featured Section Spacing
   ----------------------------- */
#featuredSection {
  margin-bottom: 48px !important;
}

/* ----------------------------- 
   Feature Icon Colors - Match React Theme
   ----------------------------- */
.feature-icon {
  width: 52px !important;
  height: 52px !important;
  background: rgba(158, 127, 255, 0.1) !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
}

.feature-icon svg {
  width: 24px !important;
  height: 24px !important;
}

/* Colored icon backgrounds */
.feature-icon[style*="#38bdf8"] {
  background: rgba(56, 189, 248, 0.1) !important;
}

.feature-icon[style*="#f472b6"] {
  background: rgba(244, 114, 182, 0.1) !important;
}

.feature-icon[style*="#facc15"] {
  background: rgba(250, 204, 21, 0.1) !important;
}

.feature-icon[style*="#22c55e"] {
  background: rgba(34, 197, 94, 0.1) !important;
}

/* ----------------------------- 
   Custom Footer - Match React Theme
   ----------------------------- */
.dwrko-footer,
.web-footer {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
  padding: 40px 0 20px !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.dwrko-footer .container,
.web-footer .container {
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  background: var(--surface) !important;
  box-sizing: border-box !important;
}

/* Footer link styling */
.footer-link {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

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

/* Footer row fix */
.web-footer .row {
  margin: 0 !important;
  width: 100% !important;
}

.web-footer .row>[class*="col-"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

/* Footer bottom border */
.web-footer .border-top {
  border-top: 1px solid var(--border) !important;
  margin-top: 40px !important;
}

/* Ensure body/page doesn't have conflicting background */
body,
.page-container,
.web-page-content,
main {
  background: var(--background) !important;
}

/* Footer 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Footer Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  cursor: default;
  pointer-events: none;
}

.footer-logo-img {
  height: 45px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-sans);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.footer-icons {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
}

/* Footer Links Columns */
.footer-links-col h6 {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col li {
  margin-bottom: 6px;
}

.footer-links-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-links-col .contact-info li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--text);
}

/* Hide default Frappe footer elements */
.footer-logo-extension,
.footer-powered-by,
.footer-info,
.footer-links:not(.footer-bottom-links) {
  display: none !important;
}

/* ----------------------------- 
   Forms & Inputs
   ----------------------------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  background: var(--surface) !important;
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(158, 127, 255, 0.25) !important;
  outline: none !important;
}

::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.7;
}

/* ----------------------------- 
   Page Card (Login)
   ----------------------------- */
.page-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
}

/* ----------------------------- 
   Trust Indicators / Stats
   ----------------------------- */
.hero-section .d-flex.gap-5 {
  margin-top: 3rem;
}

.hero-section .d-flex.gap-5>div {
  opacity: 0.8;
}

.hero-section .d-flex.gap-5 svg {
  color: var(--primary) !important;
}

/* ----------------------------- 
   Bootstrap Overrides
   ----------------------------- */
.text-white {
  color: #FFFFFF !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

/* Row and columns */
.row {
  margin: 0;
}

.g-4 {
  gap: 1.5rem !important;
}

/* ----------------------------- 
   Animations
   ----------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* ----------------------------- 
   Utility classes
   ----------------------------- */
.lead {
  font-size: 1.15rem !important;
  line-height: 1.8 !important;
  color: var(--text-secondary) !important;
}

.container {
  max-width: 1280px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Description text in hero */
.hero-section .lead,
.hero-section p.lead {
  max-width: 800px;
  margin: 0 auto 2.5rem !important;
}

/* Hide default Frappe navbar items on public pages */
.page-container .navbar .frappe-control,
.page-container .navbar .awesomplete {
  display: none !important;
}

/* Main content padding for fixed navbar */
.main-section {
  padding-top: 80px !important;
}

/* ----------------------------- 
   Scrollbar styling
   ----------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

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

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

/* ----------------------------- 
   Links
   ----------------------------- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #b8a3ff;
}

/* ----------------------------- 
   Mobile responsive fixes
   ----------------------------- */

/* Mobile Navbar Hamburger Menu */
.navbar-toggler {
  display: none;
  border: 1px solid var(--border) !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: transparent !important;
  cursor: pointer !important;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Custom hamburger lines - 3 white bars */
.navbar-toggler .navbar-toggler-icon {
  display: none !important;
}

.navbar-toggler::before,
.navbar-toggler::after,
.navbar-toggler span {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text) !important;
  border-radius: 2px;
}

/* Override Bootstrap's default background-image based icon */
.navbar-toggler-icon {
  background-image: none !important;
  width: 22px;
  height: 2px;
  background: var(--text) !important;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text) !important;
  left: 0;
  border-radius: 2px;
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

/* Tablet and below - 991px */
@media (max-width: 991px) {
  .navbar-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .navbar .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 16px 24px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .navbar .navbar-collapse.show {
    display: flex !important;
  }

  .navbar .navbar-nav {
    flex-direction: column !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .navbar .nav-link {
    padding: 12px 16px !important;
    border-radius: 8px !important;
  }

  .navbar .nav-link:hover {
    background: rgba(158, 127, 255, 0.1) !important;
  }

  .navbar .dropdown-menu {
    position: static !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
  }

  .navbar .container,
  .navbar>.container-fluid {
    flex-wrap: wrap !important;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  .hero-section {
    padding: 90px 16px 40px !important;
  }

  .hero-section h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .d-flex.gap-3 {
    flex-direction: column;
    width: 100%;
  }

  .btn-lg {
    width: 100%;
    padding: 14px 24px !important;
  }

  .d-flex.gap-5 {
    flex-direction: column;
    gap: 1rem !important;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .footer-bottom-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  /* Feature cards */
  .web-section .row.g-4,
  .row.g-4 {
    grid-template-columns: 1fr !important;
  }

  /* Section spacing */
  .web-section,
  section.web-section {
    padding: 32px 0 !important;
  }

  h2,
  .web-section h2 {
    font-size: 1.75rem !important;
  }
}

/* Small mobile - 575px and below */
@media (max-width: 575px) {

  .navbar .container,
  .navbar>.container-fluid {
    padding: 0 12px !important;
  }

  .navbar-brand img,
  .app-logo img {
    max-height: 32px !important;
  }

  .hero-section {
    padding: 80px 12px 32px !important;
  }

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

  .hero-section .lead {
    font-size: 0.9rem !important;
  }

  .btn,
  .btn-primary,
  .btn-secondary {
    font-size: 0.9rem !important;
    padding: 12px 20px !important;
  }

  .footer-logo-img {
    height: 36px !important;
  }

  .footer-tagline {
    font-size: 0.8rem !important;
  }

  .footer-links-col h6 {
    font-size: 0.85rem !important;
  }

  .footer-links-col a {
    font-size: 0.8rem !important;
  }

  .footer-bottom p,
  .footer-bottom-links a {
    font-size: 0.7rem !important;
  }
}

/* ----------------------------- 
   System Message Pages (Logout, Permission, Error)
   ----------------------------- */

/* Hide Frappe logo on message pages */
.page-card .page-card-head img,
.page-card .page-card-head .website-logo,
.page-card .frappe-logo,
.page-card img[src*="frappe"],
.page-card img[src*="logo"],
.page-card-head img {
  display: none !important;
}

/* Message page container */
.page-card {
  background: linear-gradient(145deg, #1e1e1e 0%, #252525 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  max-width: 440px !important;
  margin: 60px auto !important;
  padding: 0 !important;
  overflow: hidden;
}

.page-card-head {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 32px 32px 24px !important;
  text-align: center;
}

/* Status indicator */
.page-card-head .indicator-pill,
.page-card-head .indicator {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 16px !important;
  border-radius: 30px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
}

/* Green indicator (Logged Out) */
.page-card-head .indicator-pill.green,
.page-card-head .indicator.green,
.indicator-pill.green {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.indicator-pill.green::before,
.indicator.green::before {
  content: '✓' !important;
  font-size: 12px;
}

/* Red indicator (Error/Not Permitted) */
.page-card-head .indicator-pill.red,
.page-card-head .indicator.red,
.indicator-pill.red {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.indicator-pill.red::before,
.indicator.red::before {
  content: '✕' !important;
  font-size: 12px;
}

/* Orange indicator (Warning) */
.page-card-head .indicator-pill.orange,
.page-card-head .indicator.orange,
.indicator-pill.orange {
  background: rgba(251, 146, 60, 0.15) !important;
  color: #fb923c !important;
  border: 1px solid rgba(251, 146, 60, 0.3) !important;
}

/* Page card body */
.page-card-body {
  padding: 24px 32px 32px !important;
  text-align: center;
}

.page-card-body p,
.page-card-body .lead {
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}

/* Button in message pages */
.page-card-body .btn,
.page-card .btn-primary {
  background: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.2s !important;
  display: inline-block;
  text-decoration: none !important;
  width: 100%;
  max-width: 200px;
}

.page-card-body .btn:hover,
.page-card .btn-primary:hover {
  background: #f0f0f0 !important;
  transform: translateY(-1px) !important;
}

/* Secondary button */
.page-card-body .btn-secondary,
.page-card .btn-secondary {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

.page-card-body .btn-secondary:hover,
.page-card .btn-secondary:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Remove default card styling from message pages */
.page-card .card,
.page-card .card-body {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Message title styling */
.page-card h3,
.page-card h4 {
  color: var(--text) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

/* Full page message background */
body[data-path*="logout"],
body[data-path*="message"] {
  background: var(--background) !important;
}

/* Additional cleanup for message pages */
.page-card .website-logo,
.page-card .brand-logo,
.page-card-head .brand-logo,
.page-card-head::before {
  display: none !important;
  content: none !important;
}

/* Make main content area dark */
.page-card-container,
.frappe-control {
  background: transparent !important;
}

/* Style the indicator text */
.indicator-pill span,
.indicator span {
  margin-left: 4px;
}

/* ----------------------------- 
   Edit Profile Page - Minimal Readable Styling
   ----------------------------- */

/* Make labels and text dark/visible on white background */
body[data-path*="update-profile"] label,
body[data-path*="update-profile"] .control-label,
body[data-path*="update-profile"] .form-label {
  color: #1f2937 !important;
  font-weight: 500 !important;
}

/* Make input text dark */
body[data-path*="update-profile"] input,
body[data-path*="update-profile"] textarea,
body[data-path*="update-profile"] select,
body[data-path*="update-profile"] .form-control {
  color: #000000 !important;
}

/* Make headings visible */
body[data-path*="update-profile"] h1,
body[data-path*="update-profile"] h2,
body[data-path*="update-profile"] h3,
body[data-path*="update-profile"] h4 {
  color: #111827 !important;
}

/* Make help text visible */
body[data-path*="update-profile"] .help-block,
body[data-path*="update-profile"] .form-text,
body[data-path*="update-profile"] .text-muted,
body[data-path*="update-profile"] small {
  color: #6b7280 !important;
}

/* Required asterisk visible */
body[data-path*="update-profile"] .reqd {
  color: #ef4444 !important;
}

/* ----------------------------- 
   Contact Page Styles
   ----------------------------- */

/* Contact icon boxes */
.contact-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #1e1e1e;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact form card - Match React theme */
body[data-path="contact"] .card {
  background: #1e1e1e !important;
  border: 1px solid #2f2f2f !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body[data-path="contact"] .card.p-4,
body[data-path="contact"] .card.p-md-5 {
  padding: 0 1rem 1rem 1rem !important;
}

/* Form heading - Serif font like React theme */
body[data-path="contact"] .card h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Form label styling - Match React theme */
.form-label {
  color: #a3a3a3 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: none !important;
}

/* Form control styling - Visible inputs */
body[data-path="contact"] .form-control {
  background: #333333 !important;
  border: 1px solid #4a4a4a !important;
  color: #ffffff !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease !important;
  height: auto !important;
}

body[data-path="contact"] .form-control:hover {
  border-color: #5a5a5a !important;
}

body[data-path="contact"] .form-control:focus {
  border-color: #9E7FFF !important;
  box-shadow: 0 0 0 2px rgba(158, 127, 255, 0.2) !important;
  outline: none !important;
}

body[data-path="contact"] .form-control::placeholder {
  color: #888888 !important;
  font-family: 'Inter', sans-serif !important;
  opacity: 1 !important;
}

/* Select dropdown styling */
body[data-path="contact"] select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
  background-color: #333333 !important;
}

/* Textarea */
body[data-path="contact"] textarea.form-control {
  min-height: 120px;
  resize: none;
}

/* Submit button - Premium gradient */
body[data-path="contact"] .btn-primary {
  background: linear-gradient(135deg, #9E7FFF 0%, #7c5ce0 50%, #6b4fd4 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 32px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  box-shadow:
    0 4px 15px rgba(158, 127, 255, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
  transition: all 0.3s ease !important;
}

body[data-path="contact"] .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 25px rgba(158, 127, 255, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
}

/* Contact info section - larger fonts and spacing */
body[data-path="contact"] .col-lg-5 h4 {
  font-size: 1.5rem !important;
  font-family: 'Playfair Display', serif !important;
  margin-bottom: 1.5rem !important;
}

body[data-path="contact"] .col-lg-5 h6 {
  font-size: 1.1rem !important;
  margin-bottom: 6px !important;
}

body[data-path="contact"] .col-lg-5 p,
body[data-path="contact"] .col-lg-5 a {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

/* Spacing between contact items */
body[data-path="contact"] .col-lg-5 .d-flex.gap-3 {
  margin-bottom: 1.5rem !important;
}

/* Right column alignment - align with card top */
body[data-path="contact"] .col-lg-5 {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Remove margin from Contact Information heading */
body[data-path="contact"] .col-lg-5>h4:first-child {
  margin-top: 0 !important;
}

/* Row alignment for contact section */
body[data-path="contact"] .row.g-5 {
  align-items: flex-start !important;
}

/* Process steps styling */
.process-step-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #1e1e1e;
  border: 1px solid #2f2f2f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9E7FFF;
}

/* Trust section cards */
.section-surface {
  background: rgba(26, 26, 26, 0.5) !important;
}

/* Better gap utility */
.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

/* Feature icon container */
.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(158, 127, 255, 0.1);
  border: 1px solid rgba(158, 127, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9E7FFF;
}

/* ----------------------------- 
   GLOBAL HEADING FONT OVERRIDE
   Ensures ALL headings use Playfair Display (serif)
   across all pages and components
   ----------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.fw-bold,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.web-section h1,
.web-section h2,
.web-section h3,
.web-section h4,
.web-section h5,
.web-section h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
section h1,
section h2,
section h3,
section h4,
section h5,
section h6,
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6,
[class*="col-"] h1,
[class*="col-"] h2,
[class*="col-"] h3,
[class*="col-"] h4,
[class*="col-"] h5,
[class*="col-"] h6 {
  font-family: 'Playfair Display', var(--font-serif), Georgia, serif !important;
}

/* Force 3-column grid for ecosystem service cards */
body[data-path="ecosystem"] .row.g-4 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

body[data-path="ecosystem"] .row.g-4>[class*="col-"] {
  max-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 991px) {
  body[data-path="ecosystem"] .row.g-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 575px) {
  body[data-path="ecosystem"] .row.g-4 {
    grid-template-columns: 1fr !important;
  }
}