/* ===================================================================
   Global Recruitment — Frontend Design System (redesign.css)
   Inspired by modern immigration services websites
   =================================================================== */

/* ── CSS Custom Properties ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 72px);
}

:root {
  --primary: #1B6BD9;
  --primary-dark: #0F4C99;
  --primary-light: #E8F1FD;
  --primary-lighter: #F0F7FF;
  --primary-rgb: 27, 107, 217;
  --secondary: #0D1B3E;
  --secondary-rgb: 13, 27, 62;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --bg-light: #F5F8FC;
  --bg-white: #FFFFFF;
  --bg-soft: #F0F4F8;
  --text-primary: #1A202C;
  --text-secondary: #475569;
  --text-light: #64748B;
  --border-color: #E2E8F0;
  --success: #10B981;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 72px;
  color-scheme: light;
}

/* ── Dark Mode Variable Overrides ── */
[data-theme="dark"] {
  --bg-light: #0d1117;
  --bg-white: #161b22;
  --bg-soft: #21262d;
  --text-primary: #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-light: #8b949e;
  --secondary: #f0f6fc;
  --secondary-rgb: 240, 246, 252;
  --border-color: rgba(255, 255, 255, 0.1);
  --primary-light: #1f6feb;
  --primary-lighter: #0d1117;
  --accent-light: #3e2b01;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ── Theme Transition (smooth color changes) ── */
*,
*::before,
*::after {
  transition: background-color 0.25s ease, color 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Disable theme transition during initial load to prevent flash */
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
  transition: none !important;
}

/* ── Dark Mode Component Overrides ── */

/* Header */
[data-theme="dark"] .gr-header {
  background: #0d1117;
  border-bottom: none;
  /* Cleaner look */
}

[data-theme="dark"] .gr-top-bar {
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .gr-top-bar a,
[data-theme="dark"] .gr-brand-text,
[data-theme="dark"] .gr-sister-text,
[data-theme="dark"] .gr-separator {
  color: #c9d1d9 !important;
}

[data-theme="dark"] .gr-top-bar a:hover {
  color: var(--primary) !important;
}

/* Dropdowns & Mega Menu */
[data-theme="dark"] .gr-dropdown,
[data-theme="dark"] .gr-mega-menu {
  background: #1e2433;
  border-color: #2D3748;
}

[data-theme="dark"] .gr-dropdown a:hover,
[data-theme="dark"] .gr-mega-column a:hover {
  background: rgba(27, 107, 217, 0.15);
}

/* Logo visibility for dark mode */
[data-theme="dark"] .gr-logo img {
  filter: none !important;
  mix-blend-mode: normal !important;
}

[data-theme="dark"] .gr-footer-logo {
  filter: invert(1) brightness(2) contrast(1.2) !important;
  mix-blend-mode: plus-lighter !important;
}

[data-theme="dark"] .gr-logo,
[data-theme="dark"] .gr-footer-logo-wrap {
  background: transparent !important;
}

[data-theme="dark"] .gr-brand-text,
[data-theme="dark"] .gr-sister-text,
[data-theme="dark"] .gr-top-bar a,
[data-theme="dark"] .gr-nav-link {
  color: #fff !important;
}

[data-theme="dark"] .gr-nav-link:hover,
[data-theme="dark"] .gr-nav-link.active {
  background: var(--primary) !important;
  color: #fff !important;
}

[data-theme="dark"] .gr-top-bar {
  background-color: #0d1117 !important;
}

/* Cards & Surfaces */
[data-theme="dark"] .gr-service-card,
[data-theme="dark"] .gr-testimonial-card,
[data-theme="dark"] .gr-faq-item,
[data-theme="dark"] .gr-sidebar-card,
[data-theme="dark"] .gr-contact-card,
[data-theme="dark"] .gr-blog-card,
[data-theme="dark"] .gr-pricing-card,
[data-theme="dark"] .gr-calculator,
[data-theme="dark"] .gr-service-cat-card,
[data-theme="dark"] .gr-principle-card {
  background: #1e2433;
  border-color: #2D3748;
}

[data-theme="dark"] .gr-team-info {
  background: #1e2433 !important;
}

[data-theme="dark"] .gr-team-info.alt {
  background: #222839 !important;
}

/* Blog card content text */
[data-theme="dark"] .gr-blog-card h4,
[data-theme="dark"] .gr-service-card h4 {
  color: var(--text-primary);
}

/* Hero section */
[data-theme="dark"] .gr-hero {
  background: linear-gradient(135deg, #0f1219 0%, #111827 100%);
}

/* Tool cards — keep bright gradients */

/* Stats section — already dark, just darken further */
[data-theme="dark"] .gr-stats {
  background: #0a0e18;
}

[data-theme="dark"] .gr-stat-item h3 {
  color: #fff !important;
}

[data-theme="dark"] .gr-stat-item p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* CTA banner — keep gradient */

/* Sections with bg-light/bg-white */
[data-theme="dark"] .gr-clients {
  background: var(--bg-light);
}

[data-theme="dark"] .gr-principles {
  background: #111827;
}

/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .gr-sidebar-form .form-control,
[data-theme="dark"] .calc-select,
[data-theme="dark"] .calc-counter input,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #141824 !important;
  color: var(--text-primary) !important;
  border-color: #2D3748 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(27, 107, 217, 0.2) !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #4A5568 !important;
}

/* Calculator */
[data-theme="dark"] .gr-calc-wrapper {
  background: #0d1117 !important;
}

[data-theme="dark"] .afc-card,
[data-theme="dark"] .ilr-calc-card,
[data-theme="dark"] .afc-summary-card,
[data-theme="dark"] .afc-breakdown-card,
[data-theme="dark"] .ilr-cta-card,
[data-theme="dark"] .ilr-result-box {
  background: #1e2433 !important;
  border-color: #30363d !important;
  color: #fff !important;
}

[data-theme="dark"] .afc-main-title,
[data-theme="dark"] .afc-section-hdr,
[data-theme="dark"] .ilr-hero-text h2,
[data-theme="dark"] .ilr-route-header h4 {
  color: #fff !important;
}

/* "Reverse" color for inputs & labels in calculators as requested */
[data-theme="dark"] .afc-select,
[data-theme="dark"] .ilr-date-input,
[data-theme="dark"] .afc-group select,
[data-theme="dark"] .ilr-input-group input {
  background-color: #f8fafc !important;
  /* Light background for input */
  color: #111827 !important;
  /* Dark text for input */
  border-color: #cbd5e1 !important;
}

[data-theme="dark"] .afc-group label,
[data-theme="dark"] .ilr-input-group label,
[data-theme="dark"] .ilr-requirements li {
  color: #fff !important;
  /* White labels/text on dark card */
}

[data-theme="dark"] .ilr-route-icon,
[data-theme="dark"] .ilr-result-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #60a5fa;
}

[data-theme="dark"] .afc-sum-total {
  color: #60a5fa !important;
}

[data-theme="dark"] .ilr-result-box {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* ILR Calculator Banner & Disclaimer Fix */
[data-theme="dark"] .ilr-hero-banner {
  background: linear-gradient(135deg, #0d1117 0%, #1a202c 100%) !important;
}

[data-theme="dark"] .ilr-disclaimer-box {
  background: #fef3c7 !important;
  /* Brighter yellow for dark mode contrast */
  border-color: #f59e0b !important;
  color: #78350f !important;
  /* Dark brown text for legibility */
}

[data-theme="dark"] .ilr-disclaimer-box p,
[data-theme="dark"] .ilr-disclaimer-box i {
  color: #78350f !important;
}

[data-theme="dark"] .calc-toggle-group button.active {
  background: #1e2433;
  color: var(--primary);
}

[data-theme="dark"] .calc-counter button {
  background: #141824;
  color: var(--text-primary);
}

[data-theme="dark"] .journey-card {
  background: #1e2433;
  border-color: #2D3748;
}

/* Tables */
[data-theme="dark"] .gr-calc-table {
  background: #1e2433;
  border-color: #2D3748;
}

[data-theme="dark"] .gr-calc-table th {
  background: #141824;
  color: var(--text-primary);
}

[data-theme="dark"] .gr-calc-table td {
  border-bottom-color: #2D3748;
}

[data-theme="dark"] .gr-calc-table tr:nth-child(even) td {
  background: #1a1f2e;
}

/* Bootstrap overrides */
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content {
  background: #1e2433;
  border-color: #2D3748;
  color: var(--text-primary);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: #2D3748;
}

[data-theme="dark"] .table {
  color: var(--text-primary);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
  border-color: #2D3748;
}

[data-theme="dark"] .accordion-button {
  background: #1e2433;
  color: var(--text-primary);
}

[data-theme="dark"] .accordion-body {
  background: #141824;
  color: var(--text-secondary);
}

/* Inner page banner — already dark overlay, no change */

/* Search overlay — already dark, no change */

/* Mobile nav in dark mode */
[data-theme="dark"] .gr-nav.mobile-open {
  background: #141824;
}

[data-theme="dark"] .gr-nav.mobile-open .gr-nav-link {
  border-bottom-color: #2D3748;
}

[data-theme="dark"] .gr-mobile-nav-close {
  border-color: #4A5568;
  color: var(--text-primary);
}

[data-theme="dark"] .gr-mobile-nav-close:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Compliance sidebar */
[data-theme="dark"] .gr-compliance-sidebar .card {
  background: #1e2433 !important;
}

/* Lead capture sidebar */
[data-theme="dark"] .gr-lead-capture {
  background: #1e2433;
  border-color: #2D3748;
}

/* Back to top / callback buttons */
[data-theme="dark"] #myBtn {
  background: #2D3748;
}

/* Legacy page wrappers (from style.css) */
[data-theme="dark"] .section-full,
[data-theme="dark"] .content-inner-2,
[data-theme="dark"] .wrapper-content-area,
[data-theme="dark"] .inner-pages {
  background-color: var(--bg-light) !important;
  background-image: none !important;
}

[data-theme="dark"] .inquiry-form {
  background-color: #1e2433 !important;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .abuot-box,
[data-theme="dark"] .abuot-box1 {
  background: #1e2433 !important;
}

/* Footer in dark mode */
[data-theme="dark"] .gr-footer {
  background: #010409 !important;
}

[data-theme="dark"] .gr-footer-social {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .gr-footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* Service page & General content text consistency */
[data-theme="dark"] .gr-page-content p,
[data-theme="dark"] .gr-page-content li,
[data-theme="dark"] p,
[data-theme="dark"] li {
  color: #c9d1d9 !important;
}

[data-theme="dark"] .gr-page-content h1,
[data-theme="dark"] .gr-page-content h2,
[data-theme="dark"] .gr-page-content h3,
[data-theme="dark"] .gr-page-content h4,
[data-theme="dark"] .gr-page-content h5,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
  color: #f0f6fc !important;
}

/* Teams page specific fixes */
[data-theme="dark"] .gr-diversity {
  background: #0d1117;
}

[data-theme="dark"] .gr-diversity p {
  color: #c9d1d9 !important;
}

[data-theme="dark"] .gr-team-info h4 {
  color: #fff !important;
}

[data-theme="dark"] .gr-team-info span,
[data-theme="dark"] .gr-team-info p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* FAQ consistency and readability */
[data-theme="dark"] .gr-faq-item .faq-question {
  color: #f0f6fc !important;
}

[data-theme="dark"] .gr-faq-item .faq-answer {
  color: #c9d1d9 !important;
}

[data-theme="dark"] .gr-faq-item .faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown Consistency */
[data-theme="dark"] .gr-dropdown,
[data-theme="dark"] .gr-mega-menu {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .gr-dropdown a,
[data-theme="dark"] .gr-mega-column a {
  color: #c9d1d9 !important;
}

[data-theme="dark"] .gr-dropdown a:hover,
[data-theme="dark"] .gr-mega-column a:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

[data-theme="dark"] .gr-mega-column h6 {
  color: var(--primary) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* CTA outline button border in dark mode */
[data-theme="dark"] .gr-header-cta-outline {
  border-color: #30363d;
  color: #f0f6fc !important;
}

[data-theme="dark"] .gr-header-cta-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff !important;
}

/* Request callback floating button */
[data-theme="dark"] .request-callback-btn,
[data-theme="dark"] .callback-btn-float {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Robust Overrides for Inline Styles in Dark Mode */
[data-theme="dark"] [style*="background"],
[data-theme="dark"] [style*="background-color"] {
  background-color: #0d1117 !important;
  background-image: none !important;
}

/* Ensure white text on dark backgrounds */
[data-theme="dark"] [style*="color"] {
  color: #c9d1d9 !important;
}

/* Headers and important text should be brighter */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] [style*="font-weight: 700"],
[data-theme="dark"] [style*="font-weight:700"] {
  color: #fff !important;
}

/* Re-allow primary colors for buttons and highlights */
[data-theme="dark"] .btn-gr-primary,
[data-theme="dark"] .gr-header-cta-primary,
[data-theme="dark"] [style*="background: var(--primary)"],
[data-theme="dark"] [style*="background:var(--primary)"] {
  background-color: var(--primary) !important;
  color: #fff !important;
}

/* FAQ Accordion Fixes */
[data-theme="dark"] .gr-faq-item,
[data-theme="dark"] .card {
  background-color: #161b22 !important;
  border-color: #30363d !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .btn-link {
  background-color: #161b22 !important;
  color: #fff !important;
}

[data-theme="dark"] .card-body {
  background-color: #0d1117 !important;
  color: #c9d1d9 !important;
}

/* Footer accreditation - keep white for clarity */
[data-theme="dark"] .gr-footer [style*="background: white"],
[data-theme="dark"] .gr-footer [style*="background:white"] {
  background-color: #fff !important;
}

/* Elfsight Widgets — Alignment & Theme Mapping */
/* ONLY the Chat widget should be fixed/floating */
.elfsight-app-dea61f7d-143b-43bf-8c36-4d0c01ec6dab {
  position: fixed !important;
  bottom: 50px !important;
  /* Raised to clear Cookie Policy bar */
  right: 32px !important;
  /* More space from edge */
  z-index: 10000 !important;
  /* On top of everything */
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Ensure inner elements follow the fixed container and aren't clipped */
.elfsight-app-dea61f7d-143b-43bf-8c36-4d0c01ec6dab>div {
  position: static !important;
  overflow: visible !important;
}



/* Dark mode mapping for ALL Elfsight apps (including reviews) */
[data-theme="dark"] [class*="elfsight-app"] {
  filter: invert(0.9) hue-rotate(180deg) brightness(1.2);
}


[data-theme="dark"] [class*="elfsight-app"] iframe {
  background: transparent !important;
}





/* Theme Toggle (Top Bar Specific) */
.gr-top-right .gr-theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  margin-left: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 50% !important;
  overflow: hidden;
}

[data-theme="dark"] .gr-top-right .gr-theme-toggle {
  border-color: #30363d;
  background: #21262d;
}

[data-theme="dark"] .gr-top-right .gr-theme-toggle:hover {
  background: #30363d;
  border-color: #8b949e;
}

.gr-top-right {
  display: flex;
  align-items: center;
}

/* Service Menu consistency with other dropdowns */
.gr-mega-menu {
  padding: 30px !important;
  border-radius: var(--radius-lg) !important;
}

[data-theme="dark"] .gr-mega-inner {
  background: transparent !important;
}

[data-theme="dark"] .gr-mega-column h6 {
  color: var(--primary) !important;
}

/* Team page mid content fix */
[data-theme="dark"] .gr-team-checkerboard-wrap {
  background: #0d1117;
}

/* Form invalid state in dark mode */
[data-theme="dark"] .form-control.is-invalid {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--danger) !important;
}

/* Blog advisor sidebar */
[data-theme="dark"] .blog-advisor-card,
[data-theme="dark"] .blog-advisor-card>div {
  background: #1e2433 !important;
  border-color: #2D3748 !important;
}


/* ── Theme Toggle Button ── */
.gr-theme-toggle {
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.gr-theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Icon toggling */
.gr-theme-toggle .theme-icon-light,
.gr-theme-toggle .theme-icon-dark {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light mode: show moon (click to go dark) */
.gr-theme-toggle .theme-icon-dark {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.gr-theme-toggle .theme-icon-light {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* Dark mode: show sun (click to go light) */
[data-theme="dark"] .gr-theme-toggle .theme-icon-light {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

[data-theme="dark"] .gr-theme-toggle .theme-icon-dark {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

[data-theme="dark"] .gr-theme-toggle {
  border-color: #4A5568;
  color: #F59E0B;
}

/* ── Base Reset & Typography ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  color: var(--secondary);
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.375rem;
}

h5 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none !important;
}

.wrapper,
.gr-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn-gr-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff !important;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gr-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff !important;
}

.btn-gr-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gr-outline:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gr-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--secondary) !important;
  border: 2px solid var(--accent);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gr-accent:hover {
  background: #D97706;
  border-color: #D97706;
  transform: translateY(-2px);
}

/* ── Section Spacing ── */
.gr-section {
  padding: 80px 0;
}

.gr-section-sm {
  padding: 48px 0;
}

.gr-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.gr-section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.gr-section-title h2 span {
  color: var(--primary);
}

.gr-section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ════════════════════════════════════════════════════════════════════ */
/* ── Top Bar ── */
.gr-top-bar {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gr-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gr-top-bar a {
  color: #fff;
  transition: var(--transition);
}

.gr-top-bar a:hover {
  color: var(--primary);
}

.gr-brand-text {
  font-weight: 700;
  color: #fff;
}

.gr-separator {
  margin: 0 10px;
  opacity: 0.3;
}

.gr-top-right i {
  margin-right: 4px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .gr-top-bar {
    padding: 6px 0;
    font-size: 0.75rem;
  }

  .gr-top-bar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .gr-brand-text {
    display: block;
    font-weight: 800;
    margin-bottom: 2px;
  }

  .gr-separator {
    display: none;
  }

  .gr-top-right {
    margin-top: 2px;
  }
}

.gr-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

/* Offset body content below the fixed header */
body {
  padding-top: calc(var(--header-height) + 36px);
  /* header-height + top-bar height */
}

.gr-header.scrolled {
  box-shadow: var(--shadow-md);
}

.gr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gr-logo img {
  height: 48px;
  width: auto;
  border-radius: 13%;
}

.gr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gr-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.gr-nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gr-nav-link:hover,
.gr-nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.gr-nav-link .chevron {
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

/* Dropdown */
.gr-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.gr-nav-item:hover>.gr-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gr-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-primary) !important;
  transition: var(--transition);
  text-decoration: none;
}

.gr-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
}

/* Mega Menu */
.gr-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  max-width: var(--max-width);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 32px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 100;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (min-width: 1025px) {
  .gr-mega-menu {
    position: fixed;
    top: calc(var(--header-height) + 36px);
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: 95vw;
    max-width: var(--max-width);
  }
}

.gr-nav-item:hover>.gr-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1025px) {
  .gr-nav-item:hover>.gr-mega-menu {
    transform: translateX(-50%) translateY(0);
  }
}

.gr-mega-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.gr-mega-column h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.gr-mega-column a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
  transition: var(--transition);
  text-decoration: none;
}

.gr-mega-column a:hover {
  color: var(--primary) !important;
  padding-left: 6px;
}

/* Header CTA Buttons */
.gr-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gr-mobile-cta {
  display: none;
}

.gr-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 24px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  /* Single line by default */
}

.gr-header-cta-primary {
  background: var(--primary);
  color: #fff !important;
  border: 2px solid var(--primary);
}

.gr-header-cta-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff !important;
}

.gr-header-cta-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.gr-header-cta-outline:hover {
  background: var(--primary);
  color: #fff !important;
}

/* ── Header Responsiveness for Laptops (1200px - 1550px) ── */
@media (max-width: 1550px) {
  .gr-nav-link {
    padding: 8px 8px;
    font-size: 0.825rem;
  }

  .gr-header-actions {
    gap: 6px;
  }

  .gr-header-cta {
    padding: 8px 16px;
    min-height: 40px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 1300px) {
  .gr-nav-link {
    padding: 6px 6px;
    font-size: 0.8rem;
  }

  .gr-header-cta {
    padding: 8px 12px;
    max-width: none;
    /* Do not force wrapping */
    font-size: 0.75rem;
  }

  .gr-header-actions {
    gap: 4px;
  }
}

/* ── Carousel Overflow Protection ── */
.gr-testimonials,
.gr-clienttele,
.owl-carousel {
  overflow: hidden;
  width: 100%;
}

/* Search icon */
.gr-search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.gr-search-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Search Overlay ── */
.gr-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 27, 62, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gr-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gr-search-overlay-close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gr-search-overlay-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.gr-search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
  transform: translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gr-search-overlay.active .gr-search-overlay-inner {
  transform: translateY(0);
}

.gr-search-overlay-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.gr-search-form {
  width: 100%;
}

.gr-search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.gr-search-input-wrap:focus-within {
  box-shadow: 0 8px 32px rgba(27, 107, 217, 0.35);
}

.gr-search-input-wrap>i {
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.gr-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}

.gr-search-input::placeholder {
  color: var(--text-light);
}

.gr-search-submit {
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.gr-search-submit:hover {
  background: var(--primary-dark);
}

.gr-search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.gr-search-suggestions span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.gr-search-suggestions a {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.gr-search-suggestions a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}

/* Mobile Menu Toggle */
.gr-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Nav Close Button - hidden by default */
.gr-mobile-nav-close {
  display: none;
}

/* ════════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════════ */
.gr-hero {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-lighter) 100%);
  padding: 125px 0 60px;
  text-align: center;
}

.gr-hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 16px;
  color: var(--secondary);
}

.gr-hero h1 span {
  color: var(--primary);
  display: block;
}

.gr-hero p {
  font-size: 1.125rem;
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gr-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════
   TOOLS SECTION (4-card row on gradient)
   ════════════════════════════════════════════════════════════════════ */
.gr-tools {
  padding: 60px 0;
}

.gr-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gr-tool-card {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  color: #fff;
  text-decoration: none;
  display: block;
}

.gr-tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  color: #fff;
}

.gr-tool-card .tool-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.gr-tool-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.gr-tool-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

.gr-tool-card .tool-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ════════════════════════════════════════════════════════════════════
   SERVICES OVERVIEW CARDS
   ════════════════════════════════════════════════════════════════════ */
.gr-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gr-service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.gr-service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gr-service-card .service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.gr-service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.gr-service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.gr-service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ════════════════════════════════════════════════════════════════════
   STATISTICS COUNTER
   ════════════════════════════════════════════════════════════════════ */
.gr-stats {
  background: var(--secondary);
  padding: 60px 0;
}

.gr-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.gr-stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.gr-stat-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
   BLOG CARDS
   ════════════════════════════════════════════════════════════════════ */
.gr-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gr-blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.gr-blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gr-blog-card .blog-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gr-blog-card .blog-content {
  padding: 20px;
}

.gr-blog-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gr-sra-box {
  margin-bottom: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.gr-blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.gr-blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════════════ */
.gr-testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.gr-testimonial-card .stars {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.gr-testimonial-card .quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.gr-testimonial-card .author {
  font-weight: 600;
  color: var(--secondary);
}

/* ════════════════════════════════════════════════════════════════════
   CLIENT LOGOS
   ════════════════════════════════════════════════════════════════════ */
.gr-clients {
  padding: 48px 0;
  background: var(--bg-white);
}

.gr-client-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
  height: 120px;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  display: inline-block !important;
}

.gr-client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════════════════════════════ */
.gr-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
}

.gr-cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.gr-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.gr-cta .btn-gr-primary,
.gr-sidebar-card .btn-gr-primary {
  background: #fff;
  color: var(--primary) !important;
  border-color: #fff;
}

.gr-cta .btn-gr-primary:hover,
.gr-sidebar-card .btn-gr-primary:hover {
  background: var(--accent);
  color: var(--secondary) !important;
  border-color: var(--accent);
}

[data-theme="dark"] .gr-cta .btn-gr-primary,
[data-theme="dark"] .gr-sidebar-card .btn-gr-primary {
  background: #fff !important;
  color: #0d1117 !important;
  border-color: #fff !important;
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */
.gr-footer {
  background: var(--secondary);
  color: #fff;
}

.gr-footer-social {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.gr-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  margin: 0 6px;
  transition: var(--transition);
  font-size: 1.1rem;
}

.gr-footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.gr-footer-main {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr 1.5fr;
  gap: 32px;
}

.gr-footer-col h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.gr-footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.gr-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gr-footer-col ul li {
  margin-bottom: 8px;
}

.gr-footer-col ul li a {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

.gr-footer-col ul li a:hover {
  color: var(--primary) !important;
  padding-left: 4px;
}

.gr-footer-logo {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.gr-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.gr-footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin: 4px 0;
}

/* Newsletter */
.gr-newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

.gr-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.gr-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.gr-newsletter-form button {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.gr-newsletter-form button:hover {
  background: var(--primary-dark);
}

/* ════════════════════════════════════════════════════════════════════
   INNER PAGE BANNER
   ════════════════════════════════════════════════════════════════════ */
.gr-inner-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a3460 100%);
  padding: 48px 0;
  text-align: center;
}

.gr-inner-banner h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.gr-inner-banner .breadcrumb-gr {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gr-inner-banner .breadcrumb-gr a {
  color: rgba(255, 255, 255, 0.6) !important;
}

.gr-inner-banner .breadcrumb-gr a:hover {
  color: #fff !important;
}

.gr-inner-banner .breadcrumb-gr .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ════════════════════════════════════════════════════════════════════
   SERVICE / INNER PAGE LAYOUT
   ════════════════════════════════════════════════════════════════════ */
.gr-page-content {
  padding: 60px 0;
}

.gr-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.gr-page-main {
  min-width: 0;
}

.gr-page-main h2 {
  font-size: 1.75rem;
  margin-top: 24px;
}

.gr-page-main h3 {
  font-size: 1.375rem;
  margin-top: 20px;
}

.gr-page-main p {
  line-height: 1.75;
}

.gr-page-main ul,
.gr-page-main ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.gr-page-main ul li,
.gr-page-main ol li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.gr-page-main img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Sidebar */
.gr-sidebar {}

.gr-sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.gr-sidebar-card h5 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.gr-sidebar-form .form-group {
  margin-bottom: 14px;
}

.gr-sidebar-form .form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.9rem;
  width: 100%;
  height: 44px;
  line-height: normal;
  transition: var(--transition);
}

.gr-sidebar-form select.form-control {
  padding-top: 0;
  padding-bottom: 0;
}

.gr-sidebar-form textarea.form-control {
  height: auto;
  min-height: 120px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.gr-sidebar-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 217, 0.1);
  outline: none;
}

.gr-sidebar-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gr-sidebar-links ul li {
  border-bottom: 1px solid var(--border-color);
}

.gr-sidebar-links ul li:last-child {
  border: none;
}

.gr-sidebar-links ul li a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  transition: var(--transition);
}

.gr-sidebar-links ul li a:hover,
.gr-sidebar-links ul li a.active-link {
  color: var(--primary) !important;
  padding-left: 8px;
}

/* Contact page */
.gr-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.gr-contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
  margin-bottom: 14px;
}

.gr-contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.gr-contact-card .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.gr-contact-card .icon i {
  color: #fff !important;
}

/* Team cards */
.gr-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gr-team-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.gr-team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gr-team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gr-team-card .team-info {
  padding: 20px;
}

.gr-team-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.gr-team-card p {
  font-size: 0.85rem;
  color: var(--primary);
  margin: 0;
}

/* FAQ Accordion */
.gr-faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.gr-faq-item .faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.gr-faq-item .faq-question:hover {
  background: var(--primary-light);
}

.gr-faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════
   FLOATING CALLBACK BUTTON
   ════════════════════════════════════════════════════════════════════ */
.gr-callback-btn {
  position: fixed;
  bottom: 110px;
  /* Raised to clear Chat bubble */
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.gr-callback-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: #fff !important;
}

.gr-callback-btn i {
  font-size: 1.1rem;
}

/* Back to top */
#myBtn,
.gr-back-top {
  position: fixed;
  bottom: 170px;
  /* Raised above Callback */
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 998;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#myBtn:hover {
  background: var(--primary);
}




/* ════════════════════════════════════════════════════════════════════
   CALCULATOR PAGES
   ════════════════════════════════════════════════════════════════════ */
.gr-calculator {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.gr-calculator .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.gr-calculator label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* --- Gallery Layout fixes --- */
.gal-inr {
  margin: 0 auto;
}

.gal-inr .gal {
  padding: 0 12px;
  margin-bottom: 24px;
}

.gal-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-soft);
}

.gal-img-wrapper img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gal-img-wrapper:hover img {
  transform: scale(1.05);
}

.gal-img-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--primary-rgb), 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.gal-img-wrapper:hover .overlay {
  opacity: 1;
  pointer-events: auto;
}

.gal-img-wrapper .overlay .icon {
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.25);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.gal-img-wrapper .overlay .icon:hover {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.1);
}

/* --- lightGallery z-index & mobile close button fix --- */
/* Ensure lightGallery sits above the fixed header (z-index 2000) */
.lg-backdrop {
  z-index: 2100 !important;
}

.lg-outer {
  z-index: 2200 !important;
}

.lg-outer .lg-toolbar {
  z-index: 2300 !important;
}

/* Make the close button always visible and prominent on mobile */
@media (max-width: 768px) {
  .lg-outer .lg-toolbar {
    background-color: rgba(0, 0, 0, 0.6) !important;
    padding: 4px 0;
  }

  .lg-outer .lg-toolbar .lg-close {
    position: fixed !important;
    top: 12px;
    right: 12px;
    z-index: 2400 !important;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
  }

  .lg-outer .lg-toolbar .lg-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
  }

  /* Keep prev/next arrows visible */
  .lg-actions .lg-next,
  .lg-actions .lg-prev {
    z-index: 2250 !important;
  }

  /* Prevent the toolbar from auto-hiding on touch */
  .lg-toolbar,
  .lg-prev,
  .lg-next {
    opacity: 1 !important;
    transform: none !important;
  }

  .lg-hide-items .lg-toolbar {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Service Category Cards --- */
.gr-service-cat-card {
  background: var(--bg-white, #fff);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gr-service-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.gr-service-cat-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 20px;
}

.gr-service-cat-card .cat-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.gr-service-cat-card .cat-icon {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: #f0f7ff;
  color: var(--primary);
  font-size: 2.2rem;
}

.gr-service-cat-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.gr-service-cat-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.gr-service-cat-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  opacity: 0.9;
}

.gr-service-cat-card ul li a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: inline-block;
  line-height: 1.4;
}

.gr-service-cat-card ul li:hover::before {
  background-color: var(--primary);
  opacity: 1;
}

.gr-service-cat-card ul li a:hover {
  color: var(--primary);
}

.gr-calculator select,
.gr-calculator input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.gr-calculator select:focus,
.gr-calculator input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 217, 0.1);
  outline: none;
}

.gr-calc-result {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}

.gr-calc-result h3 {
  color: var(--primary);
  font-size: 2rem;
}

/* ════════════════════════════════════════════════════════════════════
   PRICING TABLE
   ════════════════════════════════════════════════════════════════════ */
.gr-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gr-pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.gr-pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.gr-pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* ════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gr-mega-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .gr-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gr-footer-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  body {
    padding-top: calc(var(--header-height) + 64px);
    /* header-height + top-bar height on mobile */
  }

  .gr-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
  }

  .gr-header-inner {
    height: var(--header-height);
    padding: 0 16px;
  }

  .gr-logo img {
    height: 36px !important;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .gr-hero {
    padding: 48px 0 40px;
  }

  .gr-hero h1 {
    font-size: 2rem;
  }

  .gr-section {
    padding: 48px 0;
  }

  .gr-page-grid {
    grid-template-columns: 1fr;
  }

  .gr-contact-grid {
    grid-template-columns: 1fr;
  }

  .gr-pricing-grid {
    grid-template-columns: 1fr;
  }

  .gr-pricing-card.featured {
    transform: none;
  }

  .gr-mega-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gr-footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gr-calculator .form-row {
    grid-template-columns: 1fr;
  }

  /* Mobile navigation */
  .gr-nav,
  .gr-header-actions {
    display: none;
  }

  .gr-mobile-toggle {
    display: block;
  }

  .gr-search-btn {
    display: flex;
  }

  .gr-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    padding: 70px 24px 24px;
    z-index: 3000;
    overflow-y: auto;
    align-items: stretch;
    gap: 0;
  }

  /* Close button inside mobile nav */
  .gr-mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3001;
    transition: var(--transition);
  }

  .gr-mobile-nav-close:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
  }

  .gr-nav.mobile-open .gr-mobile-nav-close {
    display: flex;
  }

  .gr-nav.mobile-open .gr-nav-item {
    flex-direction: column;
    align-items: stretch;
  }

  .gr-nav.mobile-open .gr-nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
  }

  .gr-nav.mobile-open .gr-dropdown,
  .gr-nav.mobile-open .gr-mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
    background: transparent;
    max-height: unset;
  }

  .gr-nav.mobile-open .gr-nav-item.open>.gr-dropdown,
  .gr-nav.mobile-open .gr-nav-item.open>.gr-mega-menu {
    display: block;
  }

  .gr-nav.mobile-open .gr-mega-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gr-nav.mobile-open .gr-header-actions.gr-mobile-cta {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
  }

  /* Search overlay mobile */
  .gr-search-overlay {
    padding-top: 10vh;
  }

  .gr-search-overlay-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .gr-search-overlay-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .gr-search-input-wrap {
    padding: 4px 4px 4px 16px;
  }

  .gr-search-input {
    font-size: 0.95rem;
    padding: 12px 12px;
  }

  .gr-search-submit {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .gr-tools-grid {
    grid-template-columns: 1fr;
  }

  .gr-services-grid {
    grid-template-columns: 1fr;
  }

  .gr-stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gr-blog-grid {
    grid-template-columns: 1fr;
  }

  .gr-stats-grid {
    grid-template-columns: 1fr;
  }

  .gr-team-grid {
    grid-template-columns: 1fr;
  }

  .gr-footer-main {
    grid-template-columns: 1fr;
  }

  .gr-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .gr-search-suggestions a {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

/* ───────── Global Page Banners (Hero Sections) ───────── */
.gr-inner-banner,
.gr-about-hero,
.gr-thank-you,
.breadcrumb-area {
  padding: 100px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../../uploads/page_banner/thank_you_bg.png');
  /* Default background */
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Dark overlay for readability */
.gr-about-hero::before,
.gr-thank-you::before,
.gr-inner-banner::before,
.breadcrumb-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 62, 0.65);
  /* Rich dark navy overlay */
  z-index: 1;
}

/* Ensure content stays above overlay for maximum clarity */
.gr-inner-banner .gr-container,
.gr-inner-banner .container,
.gr-about-hero .gr-container,
.gr-thank-you .gr-container,
.breadcrumb-area .container,
.gr-inner-banner>*,
.gr-about-hero>*,
.gr-thank-you>* {
  position: relative;
  z-index: 5;
  /* Higher z-index to stay above overlay */
}

/* Force white text for readability in banner areas */
.gr-about-hero h1,
.gr-about-hero p,
.gr-thank-you h1,
.gr-thank-you p,
.gr-inner-banner h1,
.gr-inner-banner p,
.breadcrumb-area h1,
.breadcrumb-area p,
.gr-about-hero .text-white {
  color: #ffffff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gr-about-hero h1,
.gr-thank-you h1,
.gr-inner-banner h1 {
  font-size: 3.75rem;
  margin-bottom: 24px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* force word wrap*/
.fwrap {
  white-space: pre-wrap;
  /* css-3 */
  white-space: -moz-pre-wrap;
  /* Mozilla, since 1999 */
  white-space: -pre-wrap;
  /* Opera 4-6 */
  white-space: -o-pre-wrap;
  /* Opera 7 */
  word-wrap: break-word;
  /* Internet Explorer 5.5+ */
}

/* ───────── Thank You Page ───────── */
.gr-thank-you {
  padding: 100px 0;
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.gr-thank-you::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 62, 0.6);
  /* Overlay to make text readable */
  z-index: 1;
}

.gr-success-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  max-width: 700px;
  width: 95%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

.gr-success-icon {
  width: 90px;
  height: 90px;
  background: var(--success);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto 32px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.gr-success-card h1 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.gr-success-card p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.gr-success-card .btn-gr-primary {
  min-width: 220px;
}

/* ───────── About Page Components ───────── */
.gr-about-intro {
  padding: 80px 0;
  background: var(--bg-white);
}

.gr-intro-grid {
  display: block;
  clear: both;
}

/* Simplified Float-based Article Wrap */
.gr-intro-image {
  float: left;
  width: 45%;
  max-width: 500px;
  margin-right: 35px;
  margin-bottom: 25px;
  position: relative;
  z-index: 5;
}

/* Ensure image behaves well */
.gr-intro-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: block;
}

.gr-intro-content {
  display: block;
  /* Allows content to flow around floats */
}

/* Remove any column-style constraints */
.gr-intro-content h2,
.gr-intro-content p,
.gr-intro-content span {
  display: block;
  clear: none;
  /* Allow them to wrap */
}

.gr-intro-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Core Principles Grid (Offset Masonry) */
.gr-principles {
  padding: 100px 0;
  background: var(--primary-lighter);
}

.gr-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.gr-principle-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.gr-principle-card:nth-child(even) {
  transform: translateY(40px);
}

.gr-principle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.gr-principle-card .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.gr-principle-card h4 {
  margin-bottom: 16px;
  color: var(--secondary);
}

/* ───────── Team Page Components ───────── */
.gr-diversity {
  padding: 80px 0;
  text-align: center;
  background: var(--secondary);
  color: #fff;
}

.gr-diversity h2 {
  color: #fff;
}

.gr-diversity p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto 32px;
}

.gr-flags {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 2rem;
}

.gr-team-checkerboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gr-team-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.gr-team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gr-team-item:hover .gr-team-img img {
  transform: scale(1.1);
}

.gr-team-info {
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border: 1px solid var(--border-color);
}

.gr-team-item:nth-child(8n+2),
.gr-team-item:nth-child(8n+4),
.gr-team-item:nth-child(8n+5),
.gr-team-item:nth-child(8n+7) {
  /* This creates the checkerboard pattern depending on row */
}

/* Adjust colors for alternating blocks */
.gr-team-info.alt {
  background: var(--primary-lighter);
}

.gr-team-info h4 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.gr-team-info span {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}



/* ───────── Team Page Checkerboard & Hovers ───────── */
.gr-team-checkerboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 0;
}

.gr-team-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
}

.gr-team-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.gr-team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gr-team-overlay {
  position: absolute;
  inset: 0;
  background: #aecce6;
  /* Exact light blue from reference */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  padding: 30px;
  text-align: center;
  color: var(--secondary);
  z-index: 10;
}

.gr-team-item:hover .gr-team-overlay {
  opacity: 1;
}

.gr-team-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.gr-team-overlay p {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Dark Mode Contrast Fix for Team Overlay */
[data-theme="dark"] .gr-team-overlay {
  color: #0D1B3E !important;
}

[data-theme="dark"] .gr-team-overlay h4,
[data-theme="dark"] .gr-team-overlay p {
  color: #0D1B3E !important;
}

/* High Contrast Team Overlays (Always Dark Icons) */
.gr-team-overlay .gr-team-socials a {
  background: rgba(13, 27, 62, 0.08) !important;
  color: #0D1B3E !important;
  border-color: rgba(13, 27, 62, 0.15) !important;
}

.gr-team-overlay .gr-team-socials a:hover {
  background: #0D1B3E !important;
  color: #fff !important;
}

/* Dark Mode Static Blocks (Light Icons) */
[data-theme="dark"] .gr-team-text .gr-team-socials a {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f0f6fc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .gr-team-text .gr-team-socials a:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.gr-team-socials a.linkedin:hover {
  background: #0077b5 !important;
  border-color: #0077b5 !important;
  color: #fff !important;
}

.gr-team-socials a.facebook:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #fff !important;
}

.gr-team-socials a.twitter:hover {
  background: #1da1f2 !important;
  border-color: #1da1f2 !important;
  color: #fff !important;
}

.gr-team-socials a.tiktok:hover {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #fff !important;
}

.gr-team-socials a.instagram:hover {
  background: #e4405f !important;
  border-color: #e4405f !important;
  color: #fff !important;
}

/* --- Community Stats Section --- */
.gr-social-stats {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.community-title {
  color: var(--secondary);
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 700;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gr-social-stats .stat-box {
  display: block;
  text-decoration: none;
  padding: 20px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gr-social-stats .stat-box .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.gr-social-stats .stat-box h3 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.gr-social-stats .stat-box p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

/* Individual Brand Styles */
.stat-box.facebook .icon-box {
  background: rgba(24, 119, 242, 0.1);
  color: #1877F2;
}

.stat-box.tiktok .icon-box {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

[data-theme="dark"] .stat-box.tiktok .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.stat-box.instagram .icon-box {
  background: rgba(228, 64, 95, 0.1);
  color: #E4405F;
}

.stat-box.reach .icon-box {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

/* Brand Hover Highlights */
.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-box.facebook:hover {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
}

.stat-box.tiktok:hover {
  background: #000 !important;
  border-color: #000 !important;
}

.stat-box.instagram:hover {
  background: #E4405F !important;
  border-color: #E4405F !important;
}

.stat-box.reach:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.stat-box:hover h3,
.stat-box:hover p,
.stat-box:hover .icon-box {
  color: #fff !important;
}

.stat-box:hover .icon-box {
  background: rgba(255, 255, 255, 0.2) !important;
}

.community-banner {
  background: linear-gradient(135deg, #1B6BD9 0%, #0d214a 100%);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
  margin-top: 20px;
}

.community-banner h4 {
  color: white;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.community-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.banner-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-socials a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.banner-socials a:hover {
  transform: translateY(-3px);
  color: #fff;
}

.banner-socials a.facebook:hover {
  background: #1877F2;
}

.banner-socials a.instagram:hover {
  background: #E4405F;
}

.banner-socials a.youtube:hover {
  background: #FF0000;
}

.banner-socials a.linkedin:hover {
  background: #0077B5;
}

.banner-socials a.whatsapp:hover {
  background: #25D366;
}

.community-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.banner-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
}

.banner-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .gr-social-stats {
  background: #161b22;
}

[data-theme="dark"] .gr-social-stats .stat-box {
  background: #0d1117;
}

.gr-team-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.gr-team-socials.dark a {
  background: rgba(var(--secondary-rgb), 0.05);
  border-color: rgba(var(--secondary-rgb), 0.1);
}

.gr-team-socials.dark a:hover {
  background: var(--secondary);
  color: #fff;
}

.gr-team-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

.gr-team-socials a svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  transition: all 0.3s ease;
}

.gr-team-socials a:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gr-team-socials a:hover svg {
  fill: #fff;
}

.gr-team-btn {
  padding: 10px 28px;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-full);
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  background: transparent;
}


.gr-team-info {
  width: 100%;
  height: 100%;
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border: none;
  text-align: center;
}

.gr-team-info.alt {
  background: #ffffff !important;
}

/* ───────── Responsive Overrides ───────── */
@media (max-width: 1024px) {
  .gr-team-checkerboard {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .gr-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-principle-card:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 768px) {
  .gr-team-checkerboard {
    grid-template-columns: 1fr !important;
  }

  .gr-principles-grid {
    grid-template-columns: 1fr;
  }

  .gr-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ───────── HR Compliance Page ───────── */
.gr-btn-profile:hover {
  background: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.gr-advisor-socials a {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f4f8;
}

.gr-advisor-socials a:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .gr-compliance-sidebar {
    width: 100% !important;
  }

  .gr-compliance-main {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .gr-compliance-main h1 {
    font-size: 2rem !important;
  }
}

/* ───────── Self-Sponsorship (Journey/Flow) ───────── */
.gr-journey-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
  padding: 40px 0;
}

.gr-journey-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(to bottom,
      #ddd,
      #ddd 8px,
      transparent 8px,
      transparent 16px);
  transform: translateX(-50%);
  z-index: 1;
}

.gr-journey-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 20px;
  /* Reduced bottom margin */
  z-index: 2;
}

/* Staggering: Offset items significantly to overlap with the midpoint of the previous card */
.gr-journey-item+.gr-journey-item {
  margin-top: -360px;
  /* Significant overlap to pull next step up to previous content midpoint */
}

.gr-journey-item.left {
  left: 0;
  text-align: right;
}

.gr-journey-item.right {
  left: 50%;
  text-align: left;
}

.journey-node {
  position: absolute;
  top: 40px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
  z-index: 3;
}

.gr-journey-item.left .journey-node {
  right: -8px;
}

.gr-journey-item.right .journey-node {
  left: -8px;
}

.step-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.journey-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.journey-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.05);
}

.journey-content {
  padding: 30px;
}

.journey-content h4 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 600;
}

.journey-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

.journey-media {
  height: 180px;
  width: 100%;
}

.journey-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .gr-journey-line {
    left: 20px;
  }

  .gr-journey-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-top: 0 !important;
    /* Reset overlap on mobile */
  }

  .gr-journey-item .journey-node {
    left: 12px !important;
    right: auto !important;
  }
}

/* ───────── Application Fee Calculator ───────── */
.calculator-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.calc-inputs-card {
  flex: 1;
  background: var(--secondary);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.calc-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.calc-header p {
  color: #ddd;
  font-size: 0.95rem;
}

.calc-form {
  margin-top: 30px;
}

.calc-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.calc-field {
  flex: 1;
}

.calc-field.full-width {
  flex: 0 0 100%;
}

.calc-field label {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.calc-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.3s;
}

.calc-select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

/* Toggle Group */
.calc-toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 8px;
}

.calc-toggle-group button {
  flex: 1;
  border: none;
  background: none;
  padding: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.calc-toggle-group button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Counter */
.calc-counter {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  max-width: 150px;
}

.calc-counter button {
  width: 40px;
  height: 40px;
  border: none;
  background: #f9f9f9;
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
}

.calc-counter button:hover {
  background: #eee;
}

.calc-counter input {
  flex: 1;
  border: none;
  text-align: center;
  font-weight: 600;
  outline: none;
  background: #fff;
}

.calc-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.calc-checkbox-item input {
  width: 18px;
  height: 18px;
}

.calc-checkbox-item span {
  font-size: 0.95rem;
  color: #444;
}

/* Summary Panel */
.calc-summary-panel {
  width: 380px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid var(--primary);
  padding: 30px;
  position: sticky;
  top: 100px;
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.1);
}

.summary-top {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.summary-top h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 15px;
}

.summary-top h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.summary-top p {
  font-size: 0.85rem;
  color: #999;
  margin-top: 5px;
}

.summary-breakdown {
  margin-top: 25px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.breakdown-item span {
  color: #666;
}

.breakdown-item.highlight span {
  color: var(--primary);
  font-weight: 700;
}

.breakdown-item.highlight strong {
  color: var(--primary);
}

.btn-calc-cta {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 25px;
  transition: background 0.3s;
}

.btn-calc-cta:hover {
  background: var(--secondary);
  color: #fff;
}

.summary-disclaimer {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  margin-top: 20px;
  line-height: 1.4;
}

/* Table */
.gr-calc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #eee;
}

.gr-calc-table th {
  background: #f8fbff;
  color: var(--secondary);
  padding: 15px 20px;
  text-align: left;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
}

.gr-calc-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #f9f9f9;
  font-size: 0.95rem;
}

.gr-calc-table tr:nth-child(even) td {
  background: #fafafa;
}

.table-subtotal {
  background: #fff !important;
}

.table-subtotal td {
  border-top: 2px solid #eee;
  font-size: 1rem;
  color: var(--secondary);
}

@media (max-width: 1199px) {
  .calculator-layout {
    flex-direction: column;
  }

  .calc-summary-panel {
    width: 100%;
    position: static;
  }
}

@media (max-width: 767px) {
  .calc-row {
    flex-direction: column;
    gap: 15px;
  }
}

/* ───────── Footer Social Icons ───────── */
.gr-footer-social {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(var(--secondary-rgb), 0.5);
}

.gr-footer-social .gr-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gr-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-radius: 50%;
  margin-left: 10px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gr-footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #fff !important;
}

/* Brand Colors on Hover */
.gr-footer-social a[title="Facebook"]:hover {
  background-color: #1877f2 !important;
}

.gr-footer-social a[title="LinkedIn"]:hover {
  background-color: #0a66c2 !important;
}

.gr-footer-social a[title="YouTube"]:hover {
  background-color: #ff0000 !important;
}

.gr-footer-social a[title="Twitter"]:hover {
  background-color: #1da1f2 !important;
}

.gr-footer-social a[title="Instagram"]:hover {
  background-color: #e4405f !important;
}

/* Office Location Section */
.gr-location-section {
  padding: 80px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .gr-location-section {
  background: #0d1117;
  border-color: #30363d;
}

.gr-location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.gr-location-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.gr-location-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gr-location-item {
  display: flex;
  gap: 20px;
}

.gr-location-item .loc-icon {
  width: 50px;
  height: 50px;
  background: rgba(27, 107, 217, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.gr-location-item h5 {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.gr-location-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.gr-location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  height: 450px;
}

.gr-location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  .gr-location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gr-location-info {
    text-align: center;
  }

  .gr-location-item {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Trust Bar Styles */
.gr-trust-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 0.85rem;
}

[data-theme="dark"] .gr-trust-bar {
  background: #0d1117;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrolled/Sticky State for Trust Bar */
.gr-header.scrolled .gr-trust-bar {
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .gr-header.scrolled .gr-trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
}

.gr-header.scrolled .gr-trust-item img {
  height: 22px;
}

.gr-header.scrolled .gr-trust-label {
  font-size: 0.75rem;
}

.gr-header.scrolled .gr-trust-label span {
  display: none;
  /* Hide secondary text when sticky to save space */
}

.gr-trust-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.gr-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.gr-trust-item:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.gr-trust-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.gr-trust-stars {
  color: #fbaf08;
  display: flex;
  gap: 2px;
  font-size: 0.9rem;
}

.gr-trust-label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gr-trust-label span {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gr-trust-cyber {
  background: #0052cc;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 991px) {
  .gr-trust-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
  }
}

@media (max-width: 767px) {
  .gr-trust-item:nth-child(n+3) {
    display: none;
  }
}

.cc-revoke,
.cc-window {
  z-index: 10001 !important;
}

/* Accessibility & Touch Targets */
.cc-link,
.cc-btn {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 16px !important;
}

.policy {
  padding: 8px 0;
  display: inline-block;
  min-height: 44px;
}

.gr-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Elfsight Contrast Fixes (Targeting injected DOM) */
[class*="Bubble__BubbleContentText"],
[class*="ButtonBase__ButtonContainer"],
[class*="Bubble__BubbleContentTitle"] {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gr-footer-bottom p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem;
  margin: 10px 0;
  line-height: 1.6;
}