/* ================================
   Global Styles
   ================================ */
:root {
  --bg: #ffffff;
  --surface: #091e3e;
  --card: #091e3e;
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --secondary: #d0aa4b; /* Gold */
  --bg-light: #f7f0d9;
  --accent: #22c55e;
  --muted: #747576;
  --text: #313131;
  --heading: #f8fafc;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.149);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
 font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a {
  color: #f7f0d9;
  text-decoration: none;
}
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Sections */
.section { padding: 5rem 0; }
.section h2 { color: var(--heading); font-size: 2rem; margin-bottom: 1.5rem; text-align: center; color:#d0aa4b; }
.section h5 { color: var(--surface); font-size: 1rem; margin-bottom: 1.5rem; text-align: start; }
.section p { color: var(--muted); max-width: 700px; margin: 0 auto 2rem; text-align: center; }

/* Cards grid */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:.6rem; padding:.7rem 1.2rem; border-radius:999px; font-weight:600; border:1px solid transparent; cursor:pointer; transition:.2s ease; }
.btn-primary { background: #d0aa4b; color:#000; box-shadow: var(--shadow); }
.btn-primary { background: #d0aa4b; color:#000; box-shadow: var(--shadow); }
.btn-primary:hover { filter:brightness(1.05); transform:translateY(-1px); }
.btn-secondary { background: #091e3e; color:#fff; box-shadow: var(--shadow); }
.btn-secondary:hover { filter:brightness(1.05); transform:translateY(-1px); }
.btn-ghost { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); color:var(--secondary); }

.chip { 
  display:inline-flex; 
  align-items:center;
  gap:.4rem; padding:.35rem .6rem;
  border-radius:999px; 
  background:rgba(241,191,112,.1); 
  border:1px solid rgba(241,191,112,.2); 
  color:var(--secondary); font-size:.85rem;
 }

.card { 
  background: var(--bg-light);
  border:1px solid rgba(255,255,255,.08); 
  border-radius:var(--radius); 
  box-shadow:var(--shadow); 
  padding:1.5rem;
}

/* ================================
   Header / Navbar
   ================================ */
header { position:sticky; top:0; z-index:100; padding: .5rem 0; }
.nav { display:flex; align-items:center; justify-content:space-between; padding:.8rem 1rem; background: #0f172a; border-radius:50px; border:1px solid rgba(255,255,255,.08); }
.brand { display:flex; align-items:center; font-weight:800; color:var(--secondary); }
.brand .logo { width:36px; height:36px; border-radius:10px; background: conic-gradient(from 140deg, var(--primary), var(--secondary)); display:grid; place-items:center; box-shadow:var(--shadow); }
.menu { display:flex; align-items:center; gap:1rem; }
.menu a { padding:.6rem .8rem; border-radius:10px; color:var(--muted); font-weight:500; }
.menu a:hover { background:rgba(241,191,112,.15); color:var(--secondary); }

/* Hamburger */
.menu-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; }
.menu-toggle span { width:24px; height:3px; background:var(--secondary); border-radius:2px; transition:.3s; }

/* ================================
   Nested dropdown (desktop hover)
   ================================ */
.dropdown-submenu > .dropdown-menu {
  display: none;             /* hidden by default */
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -0.4rem;
  min-width: 220px;
  z-index: 1060;
  /* subtle default look for nested menu (overrides later on desktop) */
  background-color: rgba(30,35,45,0.96);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* show nested when hovering parent (desktop) */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* ============================
   Nav layout & CTA alignment
   ============================ */
.nav {
  position: relative; /* anchor for absolute CTA */
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  background: rgb(15, 23, 42);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.08);
}

/* hamburger hidden by default (desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: .3s;
}

/* base dropdown item appearance */
.dropdown-item {
  color: var(--text);
  font-weight: 500;
  padding: .55rem 1rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(241,191,112,0.12);
  color: var(--secondary);
}

/* -------------------------
   DESKTOP (>= 992px)
   ------------------------- */
@media (min-width: 992px) {
  /* center the links and allow .menu to grow */
  .menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -150px;/* you had margin-left hack earlier; keep layout natural unless needed */
  }

  .menu .navbar-nav {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  /* link look on desktop */
  .menu .nav-link,
  .menu a {
    color: var(--muted);
    padding: .55rem .9rem;
    border-radius: 10px;
    transition: background .18s, color .18s, transform .12s;
  }
  .menu .nav-link:hover,
  .menu a:hover {
    background: rgba(241,191,112,0.12);
    color: var(--secondary);
  }

  /* Pin 'Login' to right edge of .nav */
  .nav .btn-ghost {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2200;
    margin: 0;
  }

  /* If the CTA is inside UL, pull it out of flow */
  .menu .navbar-nav .btn-ghost {
    display: inline-flex;
    position: absolute;
  }

  /* Desktop nested menu style differentiation */
  .dropdown-menu {
    background-color: var(--card);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
  }

  /* Submenu container */
  .dropdown-submenu {
    position: relative;
  }

  .dropdown-submenu > .dropdown-menu {
    background-color: rgba(30,35,45,0.96);
    border: 1px solid rgba(241,191,112,0.12);
  }

  /* SUBMENU INDENTATION (desktop) */
  /* Indent only those items that are inside a .dropdown-submenu */
  .dropdown-submenu .dropdown-item {
    padding-left: 1.5rem;   /* visual indent for nested links */
    font-size: 0.95rem;
  }

  /* deeper nesting (level 3) */
  .dropdown-submenu .dropdown-submenu .dropdown-item {
    padding-left: 2.4rem;
  }
}

/* -------------------------
   MOBILE (<= 991px)
   ------------------------- */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
    z-index: 2100;
  }

  /* mobile curtain menu */
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;                 /* expands as it grows */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.8rem 1.25rem;
    gap: 0.5rem;
    transform: translateY(-110%);
    transition: transform 0.35s ease-in-out;
    border-radius: 0 0 18px 18px;
    z-index: 2000;

    overflow: visible; /* allow menu to grow - no internal scroller */
    height: auto;
  }
  .menu.show { transform: translateY(0); }

  /* stack nav items */
  .menu .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    width: 100%;
    padding-left: 0;
    margin: 0;
  }

  /* remove permanent per-link background on mobile; keep hover */
  .menu .nav-link,
  .menu a {
    background: transparent;
    color: var(--bg-light);
    padding: .9rem 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: left;
  }
  .menu .nav-link:hover,
  .menu a:hover {
    background: rgba(241,191,112,0.12);
    color: var(--secondary);
  }

  /* Mobile dropdowns should expand inline (static positioning) */
  .menu .dropdown-menu {
    position: static;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 0;
    margin-top: 0;
    display: none;   /* hidden by default */
  }
  .menu .dropdown-menu.show {
    display: block;  /* toggled by JS */
  }

  /* ensure direct dropdown toggles are full width */
  .menu .dropdown-toggle {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
  }

    /* Desktop nested menu style differentiation */
  .dropdown-menu {
    background-color: var(--card);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
  }
  
  .dropdown-submenu > .dropdown-menu {
    background-color: rgba(30,35,45,0.96);
    border: 1px solid rgba(241,191,112,0.12);
  }

  /* SUBMENU INDENTATION (mobile) */
  /* indent nested items inside the curtain menu */
  .menu .dropdown-submenu .dropdown-item {
    padding-left: 1.75rem;
    font-size: 0.96rem;
  }
  .menu .dropdown-submenu .dropdown-submenu .dropdown-item {
    padding-left: 2.6rem;
  }

  /* Make CTA part of the flow on mobile with spacing */
  .nav .btn-ghost,
  .menu .btn-ghost {
    position: static;
    align-self: stretch;
    margin-top: 1rem;
    display: inline-flex;
    justify-content: center;
  }
}

/* ==============================
   General submenu indentation fallback (extra specificity)
   ============================== */
/* This selector targets any .dropdown-item that is descendant of .dropdown-submenu
   and ensures indentation even if other rules are more specific elsewhere. */
.nav .dropdown-submenu .dropdown-item {
  padding-left: 1.5rem;
}

/* deeper fallback */
.nav .dropdown-submenu .dropdown-submenu .dropdown-item {
  padding-left: 2.4rem;
}

/* Accessibility / touch highlight fix */
.menu .nav-link,
.menu a,
.dropdown-item {
  -webkit-tap-highlight-color: transparent;
}

/* ================================
   Hero Carousel (Bootstrap override)
   ================================ */

.logo-img {
  height: 40px;     /* adjust as needed */
  width: auto;      /* keep aspect ratio */
  display: inline-block;
}

.hero {
  position: relative;
  overflow: hidden;
  height: 100vh; /* full viewport height */
  width: 100%;   /* full width */
  padding: 0;
}

.hero-bg-video {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures full coverage */
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.55); /* dark overlay for readability */
  z-index: 1;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  position: relative;
  z-index: 2; /* content above video */
  height: 100%; /* make carousel fill viewport */
}

.hero .carousel-item > .container {
  height: 100%; /* container spans full height */
  display: flex;
  align-items: center; /* vertically center content */
  margin-top: -30px;
}


.hero .carousel-item > .container {
  height: 100%; 
  display: flex;
  align-items: center; 
}


.hero-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 .6rem;
  color: var(--heading);
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

/* Add to resources/css/style.css */
.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

/* Bootstrap carousel control overrides */
#heroCarousel {
  position: relative;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 100; /* Higher z-index to ensure controls are on top */
  width: 8%; /* Wider control area */
  opacity: 0.8;
  color: var(--secondary);
}

.carousel-control-prev {
  left: -2%; /* Extend further to the left edge */
}

.carousel-control-next {
  right: -2%; /* Extend further to the right edge */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(80%) sepia(60%) saturate(400%) hue-rotate(15deg);
  width: 3rem; /* Larger icons */
  height: 3rem; /* Larger icons */
}

/* Ensure carousel indicators are also on top */
.carousel-indicators {
  z-index: 99;
}
.hero .carousel-item > .container {
  height: 100%; /* container spans full height */
  display: flex;
  align-items: center; /* vertically center content */
}

/* ================================
   About Us
   ================================ */

/* Dynamic mesh + curved-lines background for hero */
.about-hero {
  height: 60vh;
  position: relative;
  margin-top: -85px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #091e3e; /* fallback color */
}

/* Animated gradient blobs (mesh) */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(241,191,112,0.36), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(56,189,248,0.22), transparent 55%),
    radial-gradient(circle at 52% 78%, rgba(139,92,246,0.20), transparent 55%),
    radial-gradient(circle at 92% 70%, rgba(15,23,42,0.85), transparent 78%),
    #0f172a; /* base fallback */
  mix-blend-mode: screen;
  animation: meshShift 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Curved lines overlay — SVG embedded as base64 to avoid encoding issues */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* base64-encoded SVG (curved lines). This avoids browser parsing problems. */
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNDQwIDYwMCcgcHJlc2VydmVBc3BlY3RSYXRpbz0neE1pZEd5TWlkIHNsaWNlJz4gPHBhdGggZD0nTTAsMzIwIEM0ODAsNDAwIDk2MCwyNDAgMTQ0MCwzMjAnIGZpbGw9J25vbmUnIHN0cm9rZT0ncmdiYSgyNDEsMTkxLDExMiwwLjI1KScgc3Ryb2tlLXdpZHRoPScyJy8+IDxwYXRoIGQ9J00wLDQwMCBDNDgwLDQ4MCA5NjAsMzIwIDE0NDAsNDAwJyBmaWxsPSdub25lJyBzdHJva2U9J3JnYmEoNTYsMTg5LDI0OCwwLjIpJyBzdHJva2Utd2lkdGg9JzEuNScvPiA8cGF0aCBkPSdNMCw1MDAgQzQ4MCw1ODAgOTYwLDQyMCAxNDQwLDUwMCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdyZ2JhKDEzOSw5MiwyNDYsMC4yKScgc3Ryb2tlLXdpZHRoPScxLjUnLz4gPC9zdmc+");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  z-index: 1;
  pointer-events: none;
}

/* make sure text sits above effects */
.about-hero .container {
  position: relative;
  z-index: 2;
}

/* animate gradient blob positions for subtle motion */
@keyframes meshShift {
  0% {
    background-position: 18% 28%, 80% 20%, 52% 78%, 92% 70%;
  }
  100% {
    background-position: 22% 34%, 76% 24%, 56% 74%, 86% 66%;
  }
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* overlay for readability */
  z-index: 1;
}

.about-hero .container {
  position: relative;
  z-index: 2; /* ensures text appears above overlay */
  color: #fff;
}

.contact-cta-inner {
  background: rgba(0, 0, 0, 0.427); /* blackish transparent */
  border: 1px solid rgba(241, 191, 112, 0.4); /* subtle secondary color border */
  backdrop-filter: blur(6px); /* glassy effect */
}

/* Contact Info Enhancements */
.contact-info {
  flex-wrap: wrap;
}

.info-box {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(241, 191, 112, 0.3); /* subtle secondary border */
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); /* soft glassy look */
  transition: transform 0.2s, background 0.2s;
}

.info-box:hover {
  transform: translateY(-2px);
  background: rgba(241, 191, 112, 0.08);
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(241, 191, 112, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d0aa4b;
  font-size: 1rem;
  flex-shrink: 0;
}
  
/* Glowing CTA button */
.btn-glow {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  font-weight: 600;
  color: var(--secondary); /* visible text */
  background: transparent; /* keep background see-through */
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s, background 0.3s;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(241, 191, 112, 0.7),
    transparent
  );
  background-size: 200% 200%;
  animation: glow-move 2s linear infinite;
  z-index: -1;
}

@keyframes glow-move {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.btn-glow:hover {
  background: var(--secondary);
  color: #111; /* readable text when filled */
}


@keyframes rotate-glow {
  to {
    transform: rotate(360deg);
  }
}


/* ================================
   Services / Cards
   ================================ */
 /* Services */
    .section { padding: 3.5rem 0; }
    .section h2 { 
    font-size: clamp(1.6rem, 3vw, 2.5rem); 
    color: var(--secondary); 
    margin: 0 0 .6rem; 
    font-weight: 700; /* Bold */
    letter-spacing: -0.5px; /* optional: slight tightening for elegance */
  }

    .section .lead { color: var(--surface); margin: 0 0 2rem; }
    .service { padding: 1.25rem; display:grid; gap:.7rem; }
    .service h4 { margin:0; font-size: 1.05rem; color: var(--surface); font-size: 1.5rem;}
    .service p { margin:0; color: var(--muted); font-size: .98rem; text-align: left;}

/* ================================
   Why Choose Us
   ================================ */
.checked {
  position: relative;
  background: #d5ecff; /* light blue */
  overflow: hidden;
  color: #0f172a;
}

/* Gold crossing lines background */
.checked::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(to right, rgba(241, 191, 112, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 191, 112, 0.2) 1px, transparent 1px);
  background-size: 30px 30px; /* adjust box size */
  pointer-events: none;
  z-index: 0;
}

/* Content above the grid */
.checked .container {
  position: relative;
  z-index: 1;
}

/* Feature cards */
.feature-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
}

/* Icons */
.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary); /* gold */
}

.feature-icon-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d0aa4b;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(208,170,75,0.08);
}


.process-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25); /* Blue glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
  }

  .cta-glow {
    position: relative;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    overflow: hidden;
    transition: color 0.3s ease;
  }
  .cta-glow::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: inherit;
    animation: border-glow 2s linear infinite;
  }
  @keyframes border-glow {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
  }

/* ================================
   Stats Section
   ================================ */
 /* Stats */
    .stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .stat { text-align:center; padding:1.2rem; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
    .stat .num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--secondary); }
    .stat .label { color: var(--muted); font-weight: 500; }

.stats-modern-bg {
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0 10px 30px rgba(208,170,75,0.08);
  /* Optional: subtle gradient for depth */
  /* background: linear-gradient(120deg, #fff 80%, #f7f0d9 100%); */
}

.stats-modern .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d0aa4b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(208,170,75,0.12);
}

.stats-modern .num {
  color: #091e3e;
  margin-bottom: .25rem;
}

.stats-modern .label {
  font-size: 1rem;
  color: #747576;
  margin-top: .25rem;
}

/* ================================
   Testimonials
   ================================ */
.testimonials { display:grid; gap:2rem; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); }
.testimonials .card { padding:2rem; }
.testimonials .author { margin-top:1rem; font-weight:600; color:var(--secondary); }

.testimonials-section {
  background: none;
  position: relative;
  z-index: 1;
}

.testimonials-bg {
  background: linear-gradient(to bottom, #f7f0d9 0 55%, #fff 55% 100%);
  min-height: 600px;
  width: 100%;
  padding-bottom: 5rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #d0aa4b;
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(208,170,75,0.09);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 370px;
}

.testimonial-quote {
  margin-bottom: 1rem;
}

.testimonial-text {
  color: #313131;
  font-size: 1.08rem;
  margin-bottom: 2rem;
  min-height: 70px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f7f0d9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author {
  color: #313131;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.testimonial-role {
  color: #747576;
  font-size: 1rem;
  margin-bottom: 0;
}

/* ================================
   Blog Section
   ================================ */

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--secondary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  background: var(--secondary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.blog-card {
  background: #091e3e;
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(241, 191, 112, 0.4);
}

.blog-card img {
  height: 200px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.15rem;
  color: var(--heading);
  margin: 0.75rem 0;
  font-weight: 600;
}

.blog-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.read-more:hover {
  color: #fff;
}


/* ================================
   Call to Action
   ================================ */
.cta { text-align:center; padding:4rem 2rem; background: linear-gradient(135deg, var(--secondary), var(--primary)); border-radius:var(--radius-lg); box-shadow:var(--shadow); }
.cta h2 { color:#000; margin-bottom:1rem; }
.cta p { color:#111; margin-bottom:2rem; }

/* Team Section */
.team-section {
  background: #f9fafb;
}

.team-card img {
  height: 250px;
  object-fit: cover;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: rgba(241, 191, 112, 0.15); /* goldish background */
  color: var(--secondary); /* gold theme */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.satisfaction-card {
  width: 180px;
  border-radius: 12px;
  background: #fff;
}

.breadcrumb {
  background: transparent; /* no box background */
  margin-top: 1rem;
}

.breadcrumb-item a {
  color: #f5c542; 
}

.breadcrumb-item.active {
  color: #fff;
}

.uae-services {
  background-color: #f8fbff;
}

.uae-services h4 {
  color: var(--secondary);
}

.uae-services .card-title {
  color: #0d1b2a;
}

.uae-services ul li {
  margin-bottom: .6rem;
  color: #333;
  font-size: 0.95rem;
}

  .form-wrapper {
    max-width: 700px;
    background: rgba(32, 58, 129, 0.564); /* bluish transparent */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  }

  .form-control, .form-select {
    border-radius: 8px;
    border: 1px solid rgba(241,191,112,0.7); /* gold border */
  }

  .form-control:focus, .form-select:focus {
    border-color: #d0aa4b;
    box-shadow: 0 0 8px rgba(241,191,112,0.8);
  }

  .cta-glow {
    position: relative;
    border: 2px solid #d0aa4b;
    color: #d0aa4b;
    background: transparent;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .cta-glow:hover {
    background: #d0aa4b;
    color: #1e3a8a;
  }

  .cta-glow::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: 100%;
    border: 2px solid #d0aa4b;
    border-radius: inherit;
    animation: border-glow 2s linear infinite;
  }

  @keyframes border-glow {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
  }


  .entity-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .entity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
  .entity-card ul {
    padding-left: 1.2rem;
  }

  .doc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  }
  .doc-card ul {
    padding-left: 1.2rem;
  }
  .check-list li::before {
    content: "✔️";
    margin-right: 8px;
    color: #d0aa4b;
  }

  .doc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  }
  .doc-list {
    padding-left: 1.2rem;
    list-style: none;
  }
  .doc-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
  }
  .doc-list li::before {
    content: "\f15c"; /* Font Awesome file icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #d0aa4b;
  }

  .cost-card {
    background: #091e3e;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .cost-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  }

  .cost-card i {
  font-size: 2.3rem;
  color: #fff !important;
  background: #d0aa4b;
  border-radius: 50%;
  padding: 0.6rem;
  margin-right: 0.7rem;
  box-shadow: 0 2px 8px rgba(208,170,75,0.12);
  vertical-align: middle;
}

  .services-list {
    list-style: none;
    padding-left: 1.2rem;
  }
  .services-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: #444;
  }
  .services-list li::before {
    content: "\f00c"; /* check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #efb557;
  }


/* ================================
   Footer
   ================================ */
footer { background: var(--surface); padding:3rem 1rem; margin-top:4rem; }
footer .footer-grid { display:grid; gap:2rem; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }
footer h4 { color:var(--heading); margin-bottom:1rem; }
footer p, footer a { color:var(--muted); font-size:.95rem; }
footer a:hover { color:var(--secondary); }
footer .brand { font-size:1.2rem; font-weight:700; }

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin-right: 1rem;
  font-size: 1.4rem;   /* icon size */
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px); /* subtle lift effect */
}


/* Responsive */
@media (max-width: 980px){
  .hero-inner { grid-template-columns:1fr; }
  .menu { display:none; position:absolute; top:60px; right:20px; background:var(--card); flex-direction:column; padding:1rem; border-radius:var(--radius); box-shadow:var(--shadow); }
  .menu.show { display:flex; animation:fadeIn .3s ease; }
  .menu-toggle { display:flex; }
}

@keyframes fadeIn { from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:translateY(0);} }

  .post-header {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.post-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.author-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.social-share {
    margin: 2rem 0;
}

.social-share .btn {
    margin-right: 0.5rem;
}

.related-posts {
    margin-top: 3rem;
}

.related-post-card {
    transition: transform 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

/* Back to top button */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
}

.back-to-top {
    background: #d0aa4b;
    color: #0f172a;
    display: none; /* Hidden by default */
}

.back-to-top:hover {
    background: #e5b465;
    color: #0f172a;
}

/* Show back-to-top button when needed */
.back-to-top.show {
    display: flex;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-meta i {
    margin-right: 0.3rem;
}

.author-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #495057;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.category-list a:hover {
    background-color: rgba(241, 191, 112, 0.1);
    color: var(--primary-color);
}

.category-count {
    background: var(--primary-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.pagination .page-link {
    color: var(--dark-color);
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

.pagination .page-link:hover {
    background-color: rgba(241, 191, 112, 0.2);
    border-color: #dee2e6;
}

.search-form .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.subscribe-form .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Service Icon Styles */
.service-icon {
  margin-bottom: 1rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d0aa4b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 2.5rem;
  color: #fff; /* Light icon */
}

.btn-outline-primary {
  border-color: #d0aa4b;
  color: #d0aa4b;
}

.btn-outline-primary:hover {
  background-color: #d0aa4b;
  border-color: #d0aa4b;
  color: #0f172a;
}

.btn-primary {
  background-color: #d0aa4b;
  border-color: #d0aa4b;
  color: #0f172a;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #e5b465;
  border-color: #e5b465;
  color: #0f172a;
}

.why-choose-us .feature-modern {
  position: relative;
  background: var(--bg-light);
  padding: 2rem 2rem 2rem 2.7rem;
  border-left: 8px solid #d0aa4b;
  border-radius: 25px;
  box-shadow: 0 4px 24px rgba(208,170,75,0.09);
}

.feature-modern {
  position: relative;
  background: var(--bg-light);
  padding: 2rem 2rem 2rem 2.7rem;
  border-left: 8px solid #d0aa4b;
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
  box-shadow: 0 4px 24px rgba(208,170,75,0.09);
}

/* Remove the previous ::after divider */
.why-choose-us .feature-modern:not(:last-child)::after {
  display: none;
}

        .cta-section {
  background: #fff;
}

.bg-cta-gold {
  background: #d0aa4b;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.cta-info {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.cta-input {
  background: #f7f0d9 !important;
  border: none;
  border-radius: 8px;
  color: #091e3e;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.cta-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #d0aa4b33;
  border: 1px solid #d0aa4b;
}

.btn-dark {
  background: #091e3e !important;
  color: #fff !important;
  border-radius: 8px;
  font-size: 1.1rem;
  border: none;
}

@media (max-width: 991px) {
  .cta-info, .bg-cta-gold {
    border-radius: 0 !important;
    padding: 2rem !important;
  }
}

.entity-card i,
.doc-card i {
  font-size: 2.3rem;
  color: #fff !important;
  background: #d0aa4b;
  border-radius: 50%;
  padding: 0.6rem;
  margin-right: 0.7rem;
  box-shadow: 0 2px 8px rgba(208,170,75,0.12);
  vertical-align: middle;
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Container for card content — forces consistent centering */
.control-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;      /* horizontal centering */
  justify-content: center;  /* vertical centering inside card */
  text-align: center;
  gap: .5rem;
  min-height: 220px;        /* ensures vertical centering look — tweak if you want taller cards */
  padding: 1.75rem;
}

/* Circular icon style (uses your site gold; falls back to hex if --secondary missing) */
.control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary, #f1bf70);
  color: #081126;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Force the <i> inside to be white/dark-appropriate */
.control-icon i {
  color: var(--bg-light); /* dark icon on gold background for legibility */
  font-size: 1.2rem;
}

/* Heading spacing */
.control-card-body h5 {
  margin: .25rem 0 0.5rem;
  line-height: 1.15;
}

/* Keep paragraph muted, slightly smaller */
.control-card-body p.text-muted {
  margin: 0;
  font-size: .95rem;
  color: #6b7280; /* a muted gray similar to your theme */
}

/* Small responsive tweak: reduce min-height on narrow screens */
@media (max-width: 575px) {
  .control-card-body { min-height: 180px; padding: 1.25rem; }
  .control-icon { width:52px; height:52px; }
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;   /* reduced from 60px */
  height: 46px;  /* reduced from 60px */
  border-radius: 50%;
  background: #d0aa4b; /* gold */
  color: #0b1224;
  font-size: 1.1rem;  /* reduced from 1.5rem */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-icon i {
  font-size: 1rem;  /* reduced from 1.3rem */
}


/* ================================
   Profile Viewer Styles
   ================================ */
.profile-viewer-section {
  background-color: #f8f9fa;
}

.profile-viewer-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 20px;
}

.viewer-controls {
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.profile-viewer-wrapper {
  position: relative;
  height: 70vh;
  overflow: hidden;
  margin: 20px 0;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-book {
  position: relative;
  width: 80%;
  height: 90%;
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-page {
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateX(100%) rotateY(10deg);
  backface-visibility: hidden;
}

.profile-page.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
  z-index: 1;
}

.profile-page.prev {
  opacity: 0.7;
  transform: translateX(-100%) rotateY(-10deg);
  z-index: 0;
}

.page-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.thumbnail-navigation {
  border-top: 1px solid #e9ecef;
  padding-top: 15px;
}

.thumbnails-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

.thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 100px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.thumbnail.active {
  border-color: #0d6efd;
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-book {
    width: 95%;
  }
  
  .viewer-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .viewer-actions, .page-navigation {
    width: 100%;
    justify-content: center;
  }
}

/* Fullscreen styles */
:fullscreen .profile-viewer-container {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 20px;
}

:-webkit-full-screen .profile-viewer-container {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 20px;
}

:-moz-full-screen .profile-viewer-container {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 20px;
}


/* ================================
   omni Chat Widget
   ================================ */

.omni-floating-btn {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 64px;
    height: 64px;
    background:var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.omni-floating-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 40px rgba(235, 219, 37, 0.438);
}

.omni-avatar {
    width: 40px;
    height: 40px;
    color: var(--text);
}

.omni-pulse {
    position: absolute;
    width: 72px;
    height: 72px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.6;
    animation: omni-pulse 2s infinite;
}

@keyframes omni-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

.omni-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 600px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(235, 143, 37, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    overflow: hidden;
}

.omni-hidden {
    display: none;
}

.omni-header {
    background: var(--card);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.omni-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.omni-avatar-sm {
    width: 36px;
    height: 36px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.omni-header-text {
    display: flex;
    flex-direction: column;
}

.omni-title {
    color: var(--secondary);
    font-weight: 600;
    margin: 0;
    font-size: 14px;
}

.omni-status {
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
}

.omni-close-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.omni-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.omni-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg);
}

.omni-welcome-message {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.omni-welcome-avatar {
    flex-shrink: 0;
}

.omni-welcome-text h4 {
    color: var(--secondary);
    margin: 0 0 8px 0;
    font-size: 16px;
}

.omni-welcome-text p {
    color: var(--text);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.omni-message {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.omni-message-user {
    flex-direction: row-reverse;
}

.omni-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
}

.omni-message-bot .omni-message-avatar {
    background: #0d274d;
    color: var(--text);
}

.omni-message-user .omni-message-avatar {
    background: var(--secondary);
    color: var(--bg);
}

.omni-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.omni-message-bot .omni-message-content {
    background: var(--card);
    color: #ffffff;
    border-bottom-left-radius: 6px;
}

.omni-message-user .omni-message-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
    color: white;
    border-bottom-right-radius: 6px;
}

.omni-typing {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.omni-typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--card);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
}

.omni-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--muted);
    border-radius: 50%;
    animation: omni-typing 1.4s infinite;
}

.omni-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.omni-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes omni-typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.omni-prompts {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card);
}

.omni-prompts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.omni-prompts-title {
    color: var(--heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.omni-refresh-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.omni-refresh-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

.omni-prompts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.omni-prompt-btn {
    background: rgba(255, 231, 164, 0.1);
    border: 1px solid rgba(255, 172, 29, 0.1);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    line-height: 1.4;
}

.omni-prompt-btn:hover {
    background: rgba(255, 219, 102, 0.123);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.omni-prompt-used {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.omni-prompt-used:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.omni-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--surface);
}

.omni-input-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.omni-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid rgba(206, 158, 0, 0.164);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: all 0.2s;
    min-height: 44px;
    max-height: 120px;
    /* Hide scrollbar for all browsers */
    overflow: hidden !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.omni-input::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.omni-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(235, 182, 37, 0.2);
}

.omni-input::placeholder {
    color: var(--muted);
}

.omni-send-btn {
    background: linear-gradient(135deg, #0d274d, #081126);
    border: solid 1px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color:var(--secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.omni-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(113, 37, 235, 0.4);
}

.omni-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.omni-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.omni-char-count {
    color: var(--muted);
    font-size: 11px;
}

.omni-powered-by {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

/* Scrollbar Styling */
.omni-messages::-webkit-scrollbar {
    width: 6px;
}

.omni-messages::-webkit-scrollbar-track {
    background: transparent;
}

.omni-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.omni-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Message Styles */
.omni-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.omni-message-bot .omni-message-content {
    background: linear-gradient(135deg, #0d274d, #081126);
    color: #ffffff;
    border-bottom-left-radius: 6px;
    text-align: left;
}

.omni-message-user .omni-message-content {
    background: linear-gradient(135deg, #ffd260, #d0aa4b);
    color: white;
    border-bottom-right-radius: 6px;
}

/* Enhanced Text Formatting */
.omni-message-content h3,
.omni-message-content h4 {
    color: var(--heading);
    margin: 8px 0 4px 0;
    font-weight: 600;
}

.omni-message-content h3 {
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.omni-message-content h4 {
    font-size: 14px;
}

.omni-message-content strong {
    color: var(--heading);
    font-weight: 600;
}

.omni-message-content em {
    font-style: italic;
    color: var(--muted);
}

.omni-message-content ul.omni-list {
    margin: 8px 0;
    padding-left: 20px;
    list-style: none;
}

.omni-message-content ul.omni-list li {
    position: relative;
    margin: 4px 0;
    padding-left: 16px;
}

.omni-message-content ul.omni-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.omni-message-content code.omni-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--secondary);
}

.omni-message-content .omni-fraction {
    font-weight: 600;
    color: var(--primary);
}

/* Thinking Indicator Styles */
.omni-thinking {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.omni-thinking-content {
    background: var(--card);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    padding: 12px 16px;
    min-width: 120px;
}

.omni-thinking-dots {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.omni-thinking-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: omni-thinking-pulse 1.4s infinite;
}

.omni-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.omni-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

.omni-thinking-text {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

@keyframes omni-thinking-pulse {
    0%, 60%, 100% { 
        opacity: 0.4;
        transform: scale(0.8);
    }
    30% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Typing Animation */
.omni-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary);
    margin-left: 2px;
    animation: omni-cursor-blink 1s infinite;
}

@keyframes omni-cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Status Animation */
.omni-status {
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Enhanced Scrollbar */
.omni-messages::-webkit-scrollbar {
    width: 8px;
}

.omni-messages::-webkit-scrollbar-track {
    background: transparent;
}

.omni-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
    border-radius: 4px;
}

.omni-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary));
}

/* Message Animation */
.omni-message {
    animation: omni-message-slide 0.3s ease-out;
}

@keyframes omni-message-slide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .omni-chat-widget {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .omni-message-content {
        max-width: 85%;
        font-size: 13px;
    }
}

/* Enhanced Prompts Section with Collapse */
.omni-prompts {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card);
    transition: all 0.3s ease;
}

.omni-prompts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.omni-prompts-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.omni-toggle-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.omni-toggle-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

.omni-toggle-btn.collapsed {
    transform: rotate(-90deg);
}

.omni-prompts-title {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.omni-prompts-actions {
    display: flex;
    gap: 4px;
}

.omni-prompts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.omni-prompts-container.omni-prompts-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.omni-prompts-container.omni-prompts-expanded {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
    pointer-events: all;
}

/* Smooth expansion animation */
.omni-prompts-container {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s ease,
                margin-top 0.3s ease;
}

/* Compact mode when collapsed */
.omni-prompts.omni-compact {
    padding: 8px 20px;
}

.omni-prompts.omni-compact .omni-prompts-header {
    margin-bottom: 0;
}

/* Enhanced prompt buttons */
.omni-prompt-btn {
    background: rgba(255, 201, 115, 0.129);
    border: 1px solid rgba(206, 158, 0, 0.164);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
    opacity: 1;
    transform: translateY(0);
}

.omni-prompts-collapsed .omni-prompt-btn {
    opacity: 0;
    transform: translateY(-10px);
}

.omni-prompt-btn:hover {
    background: rgba(255, 168, 37, 0.208);
    border-color: var(--secondary);
    transform: translateY(-1px);
}

.omni-prompt-used {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.omni-prompt-used:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none !important;
}

/* Save space in messages when prompts are collapsed */
.omni-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg);
    transition: padding-bottom 0.3s ease;
}

.omni-prompts-collapsed ~ .omni-input-area ~ .omni-messages {
    padding-bottom: 10px;
}

/* Collapse indicator */
.omni-collapse-indicator {
    font-size: 10px;
    color: var(--muted);
    margin-left: 4px;
    transition: opacity 0.3s ease;
}