/* Custom CSS for MuSigmas Website */

/* =================================================================
   QUARTO LAYOUT OVERRIDES
   ================================================================= */

/* Override Quarto's default container system */
.quarto-container-fluid {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override Quarto's grid system */
.grid {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override Quarto's body container */
#quarto-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override Quarto's main content area */
.quarto-title-block {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
}

.quarto-title {
  display: none !important;
}

.quarto-title-block-title {
  display: none !important;
}

/* Fix favicon stretching - ensure it maintains aspect ratio */
img[src*="favicon"],
img[alt*="favicon"],
.favicon,
link[rel="icon"] img {
  width: auto !important;
  height: auto !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
}

/* Override Quarto's default page margins */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Override Quarto's page layout container */
.quarto-container.page-layout-custom {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure main content area doesn't interfere */
main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =================================================================
   CSS Variables
   ================================================================= */

:root {
  --primary-blue: #003366;
  --accent-blue: #0066CC;
  --accent-maroon: #8B2E3E;
  --black: #000000;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #F8F9FA;
  --white: #FFFFFF;
  
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  --container-max-width: 1200px;
  --transition-normal: 0.3s ease;
  
  /* Spacing System */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;
  --spacing-xxxxl: 80px;
  
  /* Section Spacing */
  --section-padding: var(--spacing-xxxxl) var(--spacing-xl);
  --section-padding-tablet: 60px 20px;
  --section-padding-mobile: 50px 16px;
  --section-padding-small: 40px 12px;
  
  /* Element Spacing */
  --element-margin-sm: var(--spacing-sm);
  --element-margin-md: var(--spacing-md);
  --element-margin-lg: var(--spacing-lg);
  --element-margin-xl: var(--spacing-xl);
  --element-margin-xxl: var(--spacing-xxl);
  
  /* Grid Spacing */
  --grid-gap-sm: var(--spacing-sm);
  --grid-gap-md: var(--spacing-md);
  --grid-gap-lg: var(--spacing-lg);
  --grid-gap-xl: var(--spacing-xl);
}

/* =================================================================
   STANDARDIZED LAYOUT SYSTEM
   ================================================================= */

/* Standard Section Layout - Applied to all sections */
.standard-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--section-padding);
  box-sizing: border-box;
  position: relative;
  display: block;
}

/* Standard Container Layout - Applied to all inner containers */
.standard-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: block;
}

/* Standard Section Title - Applied to all section titles */
.standard-section-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #023E8A;
  text-align: left;
  margin: 0 0 40px 0;
  line-height: 1.2;
}

/* Standard Section Subtitle - Applied to all section subtitles */
.standard-section-subtitle {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 20px;
  color: #000000;
  line-height: 1.5;
  text-align: left;
  max-width: 960px;
  margin: 0 0 48px 0;
}

/* Standard Grid Layout - Applied to all grid containers */
.standard-grid {
  display: grid;
  gap: 24px;
  width: 100%;
}

/* Standard Card Layout - Applied to all cards */
.standard-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  padding: 24px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.standard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
}

/* Standard Button Layout - Applied to all buttons */
.standard-button {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: left;
}

.standard-button-primary {
  background: #7B1A2D;
  color: #FFFFFF;
}

.standard-button-primary:hover {
  background: #5B0A19;
  color: #FFFFFF !important;
}

.standard-button-secondary {
  background: transparent;
  color: #7B1A2D;
  border: 1px solid #7B1A2D;
}

.standard-button-secondary:hover {
  background: #7B1A2D;
  color: #FFFFFF !important;
}

/* =================================================================
   RESPONSIVE DESIGN FOR STANDARDIZED LAYOUT
   ================================================================= */

/* Tablet Styles (max-width: 1279px) */
@media (max-width: 1279px) {
  .standard-section {
    padding: var(--section-padding-tablet);
  }
  
  .standard-container {
    max-width: 1200px;
  }
  
  .standard-section-title {
    font-size: 42px;
  }
  
  .standard-section-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }
  
  .standard-grid {
    gap: 20px;
  }
  
  .standard-card {
    padding: 20px;
  }
  
  .standard-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  .standard-section {
    padding: var(--section-padding-mobile);
  }
  
  .standard-section-title {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .standard-section-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  .standard-grid {
    gap: 16px;
  }
  
  .standard-card {
    padding: 16px;
  }
  
  .standard-button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
  .standard-section {
    padding: var(--section-padding-small);
  }
  
  .standard-section-title {
    font-size: 32px;
    margin-bottom: 25px;
  }
  
  .standard-section-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .standard-grid {
    gap: 12px;
  }
  
  .standard-card {
    padding: 12px;
  }
  
  .standard-button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Universal box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Basic typography */
body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-feature-settings: normal;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--dark-gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  margin: 0 0 1rem 0;
  color: var(--black);
  text-align: left;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--accent-maroon);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
  text-align: left;        /* Center text inside */

}

/* =================================================================
   HEADER STYLES
   ================================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: 70px;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transition: none !important;
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

/* Logo Section */
.header-logo {
  max-width: 200px;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  max-width: 100%;
}

.header-logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  transition: opacity var(--transition-normal);
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

.header-logo a:hover img {
  opacity: 0.8;
}

/* Navigation Menu */
.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: visible;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 35px;
}

.nav-menu li a {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  color: var(--dark-gray);
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
}

.nav-menu li a:hover {
  color: var(--accent-maroon);
  text-decoration: underline;
}

/* -----------------------------------------------------------------
   Header Search (between News and Contact Us)
   ----------------------------------------------------------------- */
.header-search {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.header-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header-search-input {
  min-width: 200px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  font-size: 14px;
  font-family: var(--font-family-base);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input:focus {
  border-color: #023E8A;
  box-shadow: 0 0 0 2px rgba(2, 62, 138, 0.15);
}

.header-search-input::placeholder {
  color: #999999;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  overflow: visible;
}

.dropdown-toggle {
  position: relative;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

/* Create invisible hover bridge between toggle and menu */
.dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 20px;
  z-index: 999;
  pointer-events: auto;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 10px 0 8px 0;
  min-width: 350px;
  width: auto;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 1001;
  display: block;
  pointer-events: none;
  overflow: visible;
  max-height: none;
}

/* Specific width for Expertise & Services dropdown to accommodate longer menu items */
.nav-menu > li:nth-child(3).dropdown .dropdown-menu {
  min-width: 450px;
}

/* Desktop hover - dropdown opens automatically on hover */
@media (min-width: 1280px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
    pointer-events: auto;
  }
  
  /* Keep dropdown open when hovering over the bridge area */
  .dropdown:hover::before {
    pointer-events: auto;
  }
  
  /* Ensure smooth hover transition - menu stays open when moving from toggle to menu */
  .dropdown:hover {
    padding-bottom: 0;
  }
}

/* Active state for click-based dropdowns (mobile/tablet) */
.dropdown.active .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--dark-gray);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  background: #F8FCFF;
  color: var(--accent-maroon);
  text-decoration: none;
}

/* Contact Button */
.contact-btn {
  background: var(--accent-maroon);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 4px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
}

/* Ensure header is always visible on desktop - no transitions during navigation */
@media (min-width: 1280px) {
  .header {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
  
  .header-container {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
  
  .header-nav {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    transform: none !important;
    display: flex !important;
  }
  
  .header-logo {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
  
  .header-logo img {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Hide contact button in header on mobile/tablet - it will show in mobile menu */
@media (max-width: 1279px) {
  .header-container .contact-btn {
    display: none !important;
  }
}

.contact-btn:hover {
  background: #6B1A2E;
  color: white;
  transform: translateY(-1px);
}

/* Responsive Design for Header */
@media (max-width: 1199px) {
  .header {
    height: 70px;
    padding: 0 30px;
  }
  
  .header-nav {
    gap: 25px;
  }
  
  .nav-menu {
    gap: 25px;
  }
  
  .nav-menu li a {
    font-size: 0.95rem;
  }
  
  .contact-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .header {
    height: 60px;
    padding: 0 16px;
  }
  
  .header-nav {
    gap: 20px;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .nav-menu li a {
    font-size: 0.9rem;
  }
  
  .contact-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .header-logo img {
    height: 40px;
    max-width: 200px;
    max-height: 40px;
    width: auto;
  }
  
  .dropdown-menu {
    min-width: 160px;
  }
  
  .dropdown-menu li a {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 12px;
  }
  
  .nav-menu {
    gap: 15px;
  }
  
  .nav-menu li a {
    font-size: 0.85rem;
  }
  
  .contact-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .header-logo img {
    height: 35px;
    max-width: 200px;
    max-height: 35px;
    width: auto;
  }
  
  .dropdown-menu {
    min-width: 140px;
  }
  
  .dropdown-menu li a {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

/* =================================================================
   FOOTER STYLES
   ================================================================= */

.footer {
  background: #01295C;
  color: var(--white);
  width: 100%;
  padding: 60px;
  box-sizing: border-box;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Main Footer Content */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  margin-top: 40px;
}

/* Footer Columns */
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column-1 {
  flex: 1;
  max-width: 400px;
}

.footer-column-2,
.footer-column-3 {
  flex: 0 0 auto;
  min-width: 150px;
}

.footer-heading {
  font-family: var(--font-family-base);
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  line-height: 1.3;
  margin: 0;
  border-bottom: none !important;
}

/* Section Titles (Company, Resources) */
.footer-section-title {
  font-family: var(--font-family-base);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin: 0 0 15px 0;
  border-bottom: none !important;
}

/* Navigation Links */
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav li a {
  font-family: var(--font-family-base);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 2;
  transition: var(--transition-normal);
}

.footer-nav li a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Footer Logo */
.footer-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: var(--transition-normal);
}

.footer-logo img:hover {
  opacity: 1;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Copyright */
.footer-copyright {
  font-family: var(--font-family-base);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Legal Links */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  font-family: var(--font-family-base);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-normal);
}

.footer-legal a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-legal .separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  gap: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Responsive Design for Footer */
@media (max-width: 1199px) {
  .footer {
    padding: 50px 40px;
  }
  
  .footer-main {
    gap: 30px;
  }
  
  .footer-heading {
    font-size: 2.5rem;
  }
  
  .footer-column-1 {
    max-width: 350px;
  }
}

/* Tablet view (1024px) - Ensure footer has top margin and proper padding */
@media (max-width: 1024px) {
  .footer {
    padding: 50px 40px !important;
  }
  
  .footer-main {
    margin-top: 40px !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 20px;
  }
  
  .footer-main {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-column {
    width: 100%;
    align-items: flex-start;
  }
  
  .footer-column-1 {
    max-width: 100%;
  }
  
  .footer-heading {
    font-size: 2rem;
  }
  
  .footer-section-title {
    margin-bottom: 12px;
  }
  
  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-nav li a {
    font-size: 0.95rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  
  .footer-social {
    gap: 15px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 16px;
  }
  
  .footer-main {
    gap: 25px;
  }
  
  .footer-heading {
    font-size: 1.75rem;
  }
  
  .footer-section-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-nav li a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    gap: 15px;
  }
  
  .footer-social {
    gap: 12px;
  }
  
  .social-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* =================================================================
   HERO SECTION STYLES
   ================================================================= */

#quarto-document-content {
  margin: 0 auto;
  min-height: calc(100vh - 140px); /* Account for header height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  min-width: 1000px;
  padding: 0 20px;
  margin-top: 120px;   /* adjust value as needed */
}
  
  .hero-section {
    max-width: 1200px !important;
    width: 100% !important;
    margin: var(--spacing-xl) auto 0 auto !important;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xxxxl) var(--spacing-xl) !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
    min-height: 600px !important;
    border-radius: 20px;
    overflow: hidden;
  }
  
  /* Hero image as HTML element */
  .hero-image {
    position: absolute;
    top: 20px;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: calc(100% - 20px);
    object-fit: cover;   /* behaves like background-size: cover */
    border-radius: 20px 20px 20px 20px;
    z-index: 0;          /* sits behind content */
    display: block;      /* ensures proper rendering */
    margin-top: 60px;    /* adds top margin to the image */
  }
  
  /* Hero content sits above image */
  .hero-container {
    position: relative !important;
    z-index: 1;
    height: 100%;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* align content to the top */
    align-items: flex-start !important; /* align content to the left */
    color: #fff;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
   .hero-content {
     text-align: left !important;
     width: auto;
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     margin: 0 !important;
     padding: 60px 0 0 0 !important;
     position: relative;
     top: 0;
     left: 0;
   }

   .quarto-title-block {
     text-align: left !important;
     display: flex;
     flex-direction: column;
     align-items: flex-start !important;
   }
  
   .hero-section .hero-container .hero-content .hero-headline,
   .hero-headline {
     font-size: 64px;
     font-family: 'Inter', sans-serif;
     margin-bottom: 20px;
     margin-top: 0 !important;
     text-align: left !important;
     color: white !important;
     align-self: flex-start;
     justify-self: flex-start;
     margin-left: 0 !important;
     margin-right: auto !important;
     display: block;
     width: auto;
   }
  
  .hero-subheading {
    font-size: 20px;
    max-width: 60%;
    margin-bottom: 30px;
  }
  
  .hero-cta-btn {
    background: #7B1A2D;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
  }
   .hero-cta-btn:hover {
     background: #5E1421; /* darker shade */
     color: #fff !important; /* keep text white on hover */
   }

/* =================================================================
   ABOUT / DESCRIPTION SECTION STYLES
   ================================================================= */

.about-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: var(--section-padding) !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
}

.about-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: block !important;
}



/* About Heading */
.about-heading {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #023E8A;
  text-align: left;
  margin: 0 0 var(--element-margin-xl) 0;
  line-height: 1.3;
}

/* About Paragraph */
.about-paragraph {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 20px;
  color: #000000;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

/* Responsive Design for About Section */
@media (max-width: 1279px) {
  .about-section {
    padding: var(--section-padding-tablet);
  }
  
  .about-heading {
    font-size: 42px;
  }
  
  .about-paragraph {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: var(--section-padding-mobile);
  }
  
  .about-heading {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .about-paragraph {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: var(--section-padding-small);
  }
  
  .about-heading {
    font-size: 32px;
    margin-bottom: 25px;
  }
  
  .about-paragraph {
    font-size: 15px;
  }
}

/* =================================================================
   OUR SERVICES SECTION STYLES
   ================================================================= */

.services-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: var(--section-padding) !important;
  box-sizing: border-box !important;
  background: #fff;
  position: relative !important;
  display: block !important;
}

.services-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Section Title */
.services-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #023E8A;
  text-align: left;
  margin: 0 0 var(--element-margin-xl) 0;
}

/* Services Text Grid - 2 Column Layout */
.services-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-xl);
  align-items: start;
  margin-bottom: var(--element-margin-xl);
}

.services-text-column {
  display: flex;
  flex-direction: column;
}

.services-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  margin: 0;
}

@media (max-width: 1024px) {
  .services-text-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .services-description {
    font-size: 15px;
  }
  
  .cta-text-large {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .services-text-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-description {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .cta-text {
    font-size: 18px;
  }
  
  .cta-text-large {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .cta-button {
    font-size: 14px;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
  }
  
  .cta-box {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .services-text-grid {
    gap: 16px;
  }
  
  .services-description {
    font-size: 13px;
  }
  
  .cta-text-large {
    font-size: 18px;
  }
  
  .cta-button {
    font-size: 13px;
    padding: 8px 16px;
  }
  
  .cta-box {
    padding: 16px;
  }
}

.services-cta-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Services Grid Row */
.services-grid-row {
  width: 100%;
}

/* Services Grid Container */
.services-grid-container {
  width: 100%;
}

/* Services Grid */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Services Grid Rows */
.services-grid-row-1,
.services-grid-row-2,
.services-grid-row-3,
.services-grid-row-4,
.services-grid-row-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

/* Service Cards in Grid */
.services-grid .service-card-wrapper {
  margin: 0;
  display: flex;
  height: 100%;
}

.services-grid .service-card-wrapper.empty-card {
  visibility: hidden;
}

/* Services Slider Row - OLD (keeping for reference) */
.services-slider-row {
  width: 100%;
}

/* Services Slider Container */
.services-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Services Slider */
.services-slider {
  position: relative;
  width: 100%;
}

/* Services Slides */
.services-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Service Cards in Slider */
.services-slider .service-card-wrapper {
  flex: 0 0 calc(33.333% - 6px);
  margin-right: 6px;
}

.services-slider .service-card-wrapper:first-child {
  margin-left: 0;
}

.services-slider .service-card-wrapper:last-child {
  margin-right: 0;
}

.services-slider .service-card {
  flex: 0 0 calc(33.333% - 6px);
  margin-right: 6px;
}

.services-slider .service-card:last-child {
  margin-right: 0;
}

/* Services Navigation */
.services-nav {
  position: absolute;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #023E8A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.services-nav:hover {
  background: #023E8A;
}

.services-nav:hover svg {
  fill: #FFFFFF;
}

.services-prev {
  right: 70px;
}

.services-next {
  right: 20px;
}

.services-nav svg {
  transition: fill 0.3s ease;
}

/* Services Pagination */
.services-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.services-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E0E0E0;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.services-dot.active {
  background: #023E8A;
}

.services-dot:hover {
  background: #7B1A2D;
}

/* Intro + CTA Card (Row 1, Column 1) */
.intro-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-paragraph {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* CTA Box */
.cta-box {
  background-color: #023E8A;
  padding: 24px;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.cta-text {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 12px;
  color: #FFFFFF;
  text-align: left;
  margin: 0 0 20px 0;
}

.cta-text-large {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  color: #FFFFFF;
  text-align: left;
  margin: 0 0 20px 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: #023E8A;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 12px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #f2f2f2;
  color: #7B1A2D !important;
}

.cta-arrow {
  font-size: 12px;
}

/* Service Cards */
.service-card {
  width: 100%;
  min-height: 400px;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Service card in grid - stretch to match row height */
.services-grid .service-card {
  height: 100%;
  min-height: 0;
}

/* Service card wrapper */
.service-card-wrapper {
  flex: 0 0 calc(33.333% - 6px);
  margin-right: 6px;
  display: flex;
}

/* Service card wrapper in grid */
.services-grid .service-card-wrapper {
  display: flex;
  height: 100%;
}

.service-card-wrapper:last-child {
  margin-right: 0;
}

/* Fix for Quarto wrapping service cards in p tags */
p .service-card {
  display: none !important; /* Hide duplicate empty cards created by Quarto */
}

/* Hide empty service cards */
a.service-card:empty {
  display: none !important;
}

/* Hide paragraph wrappers that contain empty service cards */
.services-slider p {
  margin: 0;
  padding: 0;
}

/* Ensure proper display for valid service cards */
.services-slider .service-card-wrapper .service-card {
  display: flex !important;
}

/* Hide empty service card anchors */
.services-slider a.service-card:empty {
  display: none !important;
}

/* Hide paragraphs that only contain empty anchors */
.services-slider p:only-child {
  display: none !important;
}

/* More aggressive hiding of duplicate anchors */
.services-slider p a.service-card {
  display: none !important;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 12px 24px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
  border-color: #023E8A;
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.service-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: visible;
}

/* Fix for service card content when wrapped in p tags */
p .service-card-content {
  padding: 20px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.service-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  color: #023E8A;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.service-description {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  overflow: visible;
  text-overflow: clip;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive Design for Services Section */
@media (max-width: 1279px) {
  .services-section {
    padding: var(--section-padding-tablet);
  }
  
  .services-container {
    max-width: 1200px;
  }
  
  .services-title {
    font-size: 42px;
  }
  
  .services-text-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .services-nav {
    width: 35px;
    height: 35px;
  }
  
  .services-prev {
    right: 65px;
  }
  
  .services-next {
    right: 15px;
  }
  
  .service-card {
    width: 100%;
    max-width: 350px;
    min-height: 380px;
    height: auto;
  }
  
  .service-image {
    width: 100%;
    height: 160px;
  }
  
  .casestudy-image {
    height: 160px;
  }
  
  .service-card-content {
    padding: 16px;
  }
  
  .service-title {
    font-size: 18px;
  }
  
  .service-description {
    font-size: 13px;
  }
  
  .cta-text {
    font-size: 32px;
  }
  
  .cta-text-large {
    font-size: 36px;
  }
}

@media (max-width: 1024px) {
  .services-section {
    padding: var(--section-padding-tablet);
  }
  
  .services-title {
    font-size: 38px;
  }
  
  .services-text-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
  }
  
  .services-text-column {
    display: flex;
    flex-direction: column;
  }
  
  .services-cta-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Services Grid Tablet - 3 cards per row */
  .services-grid-row-1,
  .services-grid-row-2,
  .services-grid-row-3,
  .services-grid-row-4,
  .services-grid-row-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .service-card {
    min-height: 370px;
  }
  
  .service-image {
    height: 150px;
  }
  
  .cta-text-large {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: var(--section-padding-mobile);
  }
  
  .services-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
  
  .services-text-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-slider .service-card {
    flex: 0 0 calc(50% - 3px);
  }
  
  .services-nav {
    width: 30px;
    height: 30px;
  }
  
  .services-prev {
    right: 70px;
  }
  
  .services-next {
    right: 20px;
  }
  
  /* Services Grid Mobile - 1 column */
  .services-grid-row-1,
  .services-grid-row-2,
  .services-grid-row-3,
  .services-grid-row-4,
  .services-grid-row-5 {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
  }
  
  .service-card {
    width: 100%;
    max-width: 100%;
    min-height: 340px;
    height: 100%;
  }
  
  .services-grid .service-card {
    height: 100%;
    min-height: 0;
  }
  
  .service-image {
    width: 100%;
    height: 140px;
  }
  
  .casestudy-image {
    height: 140px;
  }
  
  .service-card-content {
    padding: 14px;
  }
  
  .service-title {
    font-size: 16px;
  }
  
  .service-description {
    font-size: 12px;
  }
  
  .intro-paragraph {
    font-size: 15px;
  }
  
  .cta-text {
    font-size: 24px;
  }
  
  .cta-text-large {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  .cta-button {
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
  }
  
  .cta-box {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: var(--section-padding-small);
  }
  
  .services-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .services-text-grid {
    gap: 16px;
  }
  
  .service-card {
    min-height: 320px;
  }
  
  .service-image {
    height: 130px;
  }
  
  .service-title {
    font-size: 15px;
  }
  
  .service-description {
    font-size: 11px;
  }
  
  .intro-paragraph {
    font-size: 14px;
  }
  
  .cta-text {
    font-size: 20px;
  }
  
  .cta-text-large {
    font-size: 18px;
    margin-bottom: 14px;
  }
  
  .cta-button {
    font-size: 13px;
    padding: 8px 14px;
  }
  
  .cta-box {
    padding: 16px;
  }
}

/* =================================================================
   TECH CAPABILITIES SECTION STYLES
   ================================================================= */

.tech-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-top: var(--spacing-xxxxl) !important;
  padding-bottom: 160px !important;
  padding-left: var(--spacing-xl) !important;
  padding-right: var(--spacing-xl) !important;
  box-sizing: border-box !important;
  background: #fff;
  position: relative !important;
  display: block !important;
}

.tech-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Section Title */
.tech-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #023E8A;
  text-align: left;
  margin: 0 0 var(--element-margin-xl) 0;
}

/* Intro Paragraph */
.tech-intro {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 20px;
  color: #000000;
  line-height: 1.5;
  text-align: left;
  max-width: 960px;
  margin: 0 0 48px 0;
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  max-width: 100%;
  align-items: center;
}

.tech-row {
  display: contents;
}

.tech-row-1 {
  display: contents;
}

.tech-row-2 {
  display: contents;
}

/* Tech Cards */
.tech-card {
  width: 130px;
  height: 130px;
  background: #ededed;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

/* Tech Icon */
.tech-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Design for Tech Capabilities Section */
@media (max-width: 1279px) {
  .tech-section {
    padding: var(--section-padding-tablet);
  }
  
  .tech-container {
    max-width: 1200px;
  }
  
  .tech-title {
    font-size: 42px;
  }
  
  .tech-intro {
    font-size: 18px;
  }
  
  .tech-row {
    gap: 20px;
  }
  
  .tech-card {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 1024px) {
  .tech-section {
    padding: var(--section-padding-tablet);
  }
  
  .tech-title {
    font-size: 38px;
  }
  
  .tech-intro {
    font-size: 17px;
  }
  
  /* Tech Grid Tablet - 5 cards per row */
  .tech-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    justify-items: center;
  }
  
  .tech-card {
    width: 100%;
    max-width: 140px;
    height: 140px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .tech-section {
    padding: var(--section-padding-mobile);
  }
  
  .tech-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
  
  .tech-intro {
    font-size: 15px;
    margin-bottom: 32px;
  }
  
  /* Tech Grid Mobile - 4 cards per row, 3 rows */
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  
  .tech-card {
    width: 100%;
    max-width: 100%;
    height: 100px;
    justify-self: center;
    background: #ededed;
    border: 1px solid #E0E0E0;
  }
  
  .tech-icon {
    background: transparent;
  }
}

@media (max-width: 480px) {
  .tech-section {
    padding: var(--section-padding-small);
  }
  
  .tech-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .tech-intro {
    font-size: 14px;
    margin-bottom: 28px;
  }
  
  /* Tech Grid Small Mobile - 4 cards per row, 3 rows */
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .tech-card {
    width: 100%;
    max-width: 100%;
    height: 90px;
    justify-self: center;
  }
}

/* =================================================================
   WHY US SECTION STYLES
   ================================================================= */

.whyus-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: var(--section-padding) !important;
  box-sizing: border-box !important;
  background-image: url('styles/Images/Homepage/Why-Us-section.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative !important;
  display: block !important;
  border-radius: 16px;
  overflow: hidden;
}

.whyus-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #023E8A;
  z-index: 1;
  border-radius: 16px;
}

.whyus-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Title + Paragraph Row */
/*.whyus-header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}*/

.whyus-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.whyus-header .whyus-card-title {
  margin: 0;
  position: relative;
  top: -20px;
  font-size: 40px; /* Adjust this value */
}

.whyus-title-column {
  flex: 0 0 auto;
}

.whyus-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #ffffff;
  margin: 0;
  margin-right: 40px;
}

.whyus-paragraph-column {
  flex: 1;
  max-width: 720px;
}

.whyus-paragraph {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 20px;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
}

/* Cards Row */
.whyus-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

/* Card Properties */
.whyus-card {
  width: 360px;
  min-height: 360px;
  background-color: #E4E4E4;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Icon */
.whyus-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Material Icon Circle - matching About Us page style */
.material-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #7B1A2D;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.material-icon-circle .material-symbols-outlined {
  font-size: 36px;
  color: white;
  line-height: 1;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  display: block;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.whyus-card:hover .material-icon-circle {
  background-color: #023E8A;
  transform: scale(1.1);
}

.whyus-card:hover .material-icon-circle .material-symbols-outlined {
  transform: translate(-50%, -50%);
}

.whyus-card:hover .whyus-card-title {
  color: #7B1A2D;
}

/* Card Title */
.whyus-card-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  color: #023E8A;
  margin: 0 0 12px 0;
}

/* Card Description */
.whyus-card-description {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.whyus-card-description:last-child {
  margin-bottom: 0;
}

/* Value Proposition Card - Full Width */
.whyus-value-proposition-card {
  width: 100%;
  max-width: 1128px; /* 360px * 3 + 24px * 2 (gaps) */
  margin: 24px auto 0 auto;
  min-height: 240px;
  background-color: #E4E4E4;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.whyus-value-proposition-card:hover .material-icon-circle {
  background-color: #023E8A;
  transform: scale(1.1);
}

.whyus-value-proposition-card:hover .material-icon-circle .material-symbols-outlined {
  transform: translate(-50%, -50%);
}

.whyus-value-proposition-card:hover .whyus-card-title {
  color: #7B1A2D;
}

/* Responsive Design for Why Us Section */
@media (max-width: 1279px) {
  .whyus-section {
    padding: var(--section-padding-tablet);
  }
  
  .whyus-header {
    gap: 30px;
  }
  
  .whyus-title {
    font-size: 42px;
    margin-right: 30px;
  }
  
  .whyus-paragraph {
    font-size: 18px;
  }
  
  .whyus-cards {
    gap: 20px;
  }
  
  .whyus-card {
    width: 320px;
    padding: 20px;
  }
  
  .whyus-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 48px;
  }
  
  .material-icon-circle {
    width: 64px;
    height: 64px;
  }
  
  .material-icon-circle .material-symbols-outlined {
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 32px;
  }
  
  .whyus-card-title {
    font-size: 22px;
  }
  
  .whyus-card-description {
    font-size: 16px;
  }
  
  .whyus-value-proposition-card {
    max-width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .whyus-section {
    padding: var(--section-padding-mobile);
  }
  
  .whyus-header {
    flex-direction: column;
    gap: 24px;
  }
  
  .whyus-title {
    font-size: 36px;
    margin-right: 0;
  }
  
  .whyus-paragraph {
    font-size: 16px;
  }
  
  .whyus-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .whyus-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
  }
  
  .whyus-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 40px;
  }
  
  .material-icon-circle {
    width: 60px;
    height: 60px;
  }
  
  .material-icon-circle .material-symbols-outlined {
    font-size: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
  }
  
  .whyus-card-title {
    font-size: 20px;
  }
  
  .whyus-card-description {
    font-size: 15px;
  }
  
  .whyus-value-proposition-card {
    margin-top: 20px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .whyus-section {
    padding: var(--section-padding-small);
  }
  
  .whyus-title {
    font-size: 32px;
  }
  
  .whyus-paragraph {
    font-size: 15px;
  }
  
  .whyus-card {
    padding: 16px;
  }
  
  .whyus-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 36px;
  }
  
  .material-icon-circle {
    width: 56px;
    height: 56px;
  }
  
  .material-icon-circle .material-symbols-outlined {
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
  }
  
  .whyus-card-title {
    font-size: 18px;
  }
  
  .whyus-card-description {
    font-size: 14px;
  }
  
  .whyus-value-proposition-card {
    margin-top: 20px;
    padding: 16px;
    min-height: auto;
  }
}

/* =================================================================
   CASE STUDY SECTION STYLES
   ================================================================= */

.casestudy-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-top: 160px !important;
  padding-bottom: 160px !important;
  padding-left: var(--spacing-xl) !important;
  padding-right: var(--spacing-xl) !important;
  box-sizing: border-box !important;
  background: #fff;
  position: relative !important;
  display: block !important;
}

.casestudy-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Section Title */
.casestudy-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #023E8A;
  text-align: left;
  margin: 0 0 60px 0;
}

/* Case Study Cards Grid */
.casestudy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

/* Case Study Card Properties */
.casestudy-card {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Case Study Image */
.casestudy-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.casestudy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Individual Card Background Images - Remove these as we're using img tags now */
/* .casestudy-card-1, .casestudy-card-2, .casestudy-card-3 background images removed */

/* Card Content */
.casestudy-content {
  padding: 24px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Category Label */
.casestudy-category {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  color: #7B1A2D;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Card Title */
.casestudy-card-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  color: #023E8A;
  margin: 0 0 12px 0;
}

/* Card Description */
.casestudy-description {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  margin: 0 0 20px 0;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Button */
.casestudy-button {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 12px;
  color: #5B0A19;
  background: #ffffff;
  border: 1px solid #5B0A19;
  border-radius: 4px;
  padding: 6px 12px;
  text-decoration: none;
  display: inline-block;
  align-self: flex-end;
  transition: all 0.3s ease;
}

.casestudy-button:hover {
  background: #5B0A19;
  color: #FFFFFF !important;
}

/* Responsive Design for Case Study Section */
@media (max-width: 1279px) {
  .casestudy-section {
    padding: var(--section-padding-tablet);
  }
  
  .casestudy-title {
    font-size: 42px;
    margin-bottom: 50px;
  }
  
  .casestudy-grid {
    gap: 10px;
  }
  
  .casestudy-card {
    width: 320px;
    height: 420px;
  }
  
  .casestudy-content {
    padding: 20px;
  }
  
  .casestudy-card-title {
    font-size: 22px;
  }
  
  .casestudy-description {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .casestudy-section {
    padding: var(--section-padding-tablet);
  }
  
  .casestudy-title {
    font-size: 38px;
    margin-bottom: 45px;
  }
  
  .casestudy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .casestudy-card {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .casestudy-section {
    padding: var(--section-padding-mobile);
  }
  
  .casestudy-title {
    font-size: 32px;
    margin-bottom: 32px;
  }
  
  .casestudy-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .casestudy-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 380px;
    justify-self: center;
  }
  
  .casestudy-content {
    padding: 20px;
  }
  
  .casestudy-card-title {
    font-size: 20px;
  }
  
  .casestudy-description {
    font-size: 14px;
  }
  
  .casestudy-button {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .casestudy-section {
    padding: var(--section-padding-small);
  }
  
  .casestudy-title {
    font-size: 32px;
    margin-bottom: 35px;
  }
  
  .casestudy-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .casestudy-card {
    width: 100%;
    max-width: 100%;
    height: 380px;
  }
  
  .casestudy-content {
    padding: 16px;
  }
  
  .casestudy-card-title {
    font-size: 18px;
  }
  
  .casestudy-description {
    font-size: 13px;
  }
  
  .casestudy-button {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* =================================================================
   TESTIMONIAL SECTION STYLES
   ================================================================= */

.testimonial-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: var(--section-padding) !important;
  box-sizing: border-box !important;
  background: #fff;
  position: relative !important;
  display: block !important;
}

.testimonial-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Section Title */
.testimonial-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #023E8A;
  text-align: left;
  margin: 0 0 60px 0;
}

/* Testimonial Slider */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.testimonial-wrapper {
  position: relative;
  min-height: auto;
  height: auto;
}

/* Testimonial Slide */
.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  visibility: hidden;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Testimonial Card */
.testimonial-card {
  padding: 40px 80px 40px 80px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
  justify-content: space-between;
}

/* Quote Marks */
.quote-marks {
  margin-bottom: 20px;
}

.quote-open {
  margin-bottom: 10px;
}

.quote-close {
  margin-top: 10px;
}

/* Testimonial Quote */
.testimonial-quote {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 28px;
  color: #023E8A;
  line-height: 1.5;
  margin: 0 0 30px 0;
  font-style: italic;
}

.testimonial-quote strong {
  font-weight: var(--font-weight-bold);
}

/* Testimonial Author */
.testimonial-author {
  text-align: right !important;
  margin-top: auto;
  padding-top: 20px;
  align-self: flex-end;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.author-name {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  color: #7B1A2D;
}

/* Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #023E8A;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: #023E8A;
}

.slider-nav:hover svg {
  fill: #fff;
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Pagination Dots */
.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #E0E0E0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot.active {
  background: #023E8A;
}

.pagination-dot:hover {
  background: #023E8A;
  opacity: 0.7;
}

/* Responsive Design for Testimonial Section */
@media (max-width: 1279px) {
  .testimonial-section {
    padding: var(--section-padding-tablet);
  }
  
  .testimonial-title {
    font-size: 42px;
    margin-bottom: 50px;
  }
  
  .testimonial-quote {
    font-size: 24px;
  }
  
  .slider-nav {
    width: 45px;
    height: 45px;
  }
  
  .slider-prev {
    left: 15px;
  }
  
  .slider-next {
    right: 15px;
  }
}

@media (max-width: 768px) {
  .testimonial-section {
    padding: var(--section-padding-mobile);
  }
  
  .testimonial-title {
    font-size: 36px;
    margin-bottom: 40px;
  }
  
  .testimonial-card {
    padding: 30px 60px 30px 60px;
    min-height: auto;
  }
  
  .testimonial-quote {
    font-size: 22px;
  }
  
  .testimonial-author {
    text-align: right !important;
    display: flex;
    justify-content: flex-end;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
  }
  
  .slider-prev {
    left: 10px;
  }
  
  .slider-next {
    right: 10px;
  }
  
  .quote-marks svg {
    width: 40px;
    height: 40px;
  }
}


@media (max-width: 480px) {
  .testimonial-section {
    padding: var(--section-padding-small);
  }
  
  .testimonial-title {
    font-size: 32px;
    margin-bottom: 35px;
  }
  
  .testimonial-card {
    padding: 25px 50px 25px 50px;
    min-height: auto;
  }
  
  .testimonial-quote {
    font-size: 18px;
  }
  
  .author-name {
    font-size: 14px;
  }
  
  .slider-nav {
    width: 35px;
    height: 35px;
  }
  
  .slider-prev {
    left: 5px;
  }
  
  .slider-next {
    right: 5px;
  }
  
  .quote-marks svg {
    width: 36px;
    height: 36px;
  }
  
  .pagination-dot {
    width: 10px;
    height: 10px;
  }
}

/* =================================================================
   BLOG SECTION STYLES
   ================================================================= */

.blog-section {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  padding-left: var(--spacing-xl) !important;
  padding-right: var(--spacing-xl) !important;
  box-sizing: border-box !important;
  background: #fff;
  position: relative !important;
  display: block !important;
}

.blog-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Section Title */
.blog-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 48px;
  color: #023E8A;
  text-align: left;
  margin: 0 0 60px 0;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

/* Blog Card Properties */
.blog-card {
  width: 100%;
  height: 480px;
  border-radius: 8px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Blog Image */
.blog-image {
  width: 100%;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Individual Card Background Images - Remove these as we're using img tags now */
/* .blog-card-1, .blog-card-2, .blog-card-3 background images removed */

/* Card Content */
.blog-content {
  padding: 24px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Category Label */
.blog-category {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  color: #7B1A2D;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Card Title */
.blog-card-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  color: #023E8A;
  margin: 0 0 12px 0;
}

/* Card Description */
.blog-description {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  margin: 0 0 20px 0;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Button */
.blog-button {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  font-size: 12px;
  color: #5B0A19;
  background: #ffffff;
  border: 1px solid #5B0A19;
  border-radius: 4px;
  padding: 6px 12px;
  text-decoration: none;
  display: inline-block;
  align-self: flex-end;
  transition: all 0.3s ease;
}

.blog-button:hover {
  background: #5B0A19;
  color: #FFFFFF !important;
}

/* Responsive Design for Blog Section */
@media (max-width: 1279px) {
  .blog-section {
    padding: var(--section-padding-tablet);
  }
  
  .blog-title {
    font-size: 42px;
    margin-bottom: 50px;
  }
  
  .blog-grid {
    gap: 10px;
  }
  
  .blog-card {
    width: 320px;
    height: 420px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-card-title {
    font-size: 22px;
  }
  
  .blog-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: var(--section-padding-mobile);
  }
  
  .blog-title {
    font-size: 36px;
    margin-bottom: 40px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .blog-card {
    width: 100%;
    max-width: 400px;
    height: 400px;
    justify-self: center;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-card-title {
    font-size: 20px;
  }
  
  .blog-description {
    font-size: 14px;
  }
  
  .blog-button {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .blog-section {
    padding: var(--section-padding-small);
  }
  
  .blog-title {
    font-size: 32px;
    margin-bottom: 35px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .blog-card {
    width: 100%;
    max-width: 100%;
    height: 380px;
  }
  
  .blog-content {
    padding: 16px;
  }
  
  .blog-card-title {
    font-size: 18px;
  }
  
  .blog-description {
    font-size: 13px;
  }
  
  .blog-button {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* Responsive Design for Hero Section */
@media (max-width: 1279px) {
  .hero-section {
    padding: calc(var(--spacing-xxxxl) + var(--spacing-xl)) var(--spacing-sm) var(--spacing-xxxxl) var(--spacing-sm);
    min-height: 550px;
  }
  
  .hero-container {
    padding-top: 0;
  }
  
  .hero-headline {
    font-size: 56px;
  }
  
  .hero-subheading {
    font-size: 18px;
    max-width: 80%;
  }
  
  .hero-image {
    margin-top: 50px;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 500px;
    padding: calc(var(--spacing-xxxl) + var(--spacing-lg)) 40px var(--spacing-xxxl) 40px;
    border-radius: 20px;
    overflow: hidden;
  }
  
  .hero-container {
    padding-left: 40px;
    padding-right: 40px;
  }
  
  .hero-content {
    padding-left: 0;
    padding-right: 0;
    margin-top: 40px !important;
    margin-left: 40px !important;
  }
  
  .hero-headline {
    font-size: 48px;
  }
  
  .hero-subheading {
    font-size: 17px;
    max-width: 85%;
  }
  
  .hero-image {
    margin-top: 40px;
    left: 40px;
    right: 40px;
    bottom: 0;
    width: calc(100% - 80px);
    height: auto;
    min-height: calc(100% - 80px);
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 450px;
    padding: var(--spacing-xxxl) 24px var(--spacing-xl) 24px;
    border-radius: 20px;
    overflow: hidden;
  }
  
  .hero-container {
    padding-top: 0;
    padding-left: 24px;
    padding-right: 24px;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  .hero-content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0 !important;
    padding-top: 16px !important;
  }
  
  .hero-headline {
    font-size: 38px;
    margin-bottom: 16px;
  }
  
  .hero-subheading {
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 100%;
    line-height: 1.5;
  }
  
  .hero-cta-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  .hero-image {
    margin-top: 30px;
    border-radius: 20px;
    left: 24px;
    right: 24px;
    bottom: 0;
    width: calc(100% - 48px);
    height: auto;
    min-height: calc(100% - 54px);
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 400px;
    padding: var(--spacing-xxl) 16px var(--spacing-lg) 16px;
    border-radius: 20px;
    overflow: hidden;
  }
  
  .hero-container {
    padding-top: 0;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  .hero-content {
    padding-left: 0;
    padding-right: 0;
    margin-top: 0 !important;
    padding-top: 12px !important;
  }
  
  .hero-headline {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .hero-subheading {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
  }
  
  .hero-cta-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
  
  .hero-image {
    margin-top: 20px;
    border-radius: 20px;
    left: 16px;
    right: 16px;
    bottom: 0;
    width: calc(100% - 32px);
    height: auto;
    min-height: calc(100% - 36px);
  }
  
  .services-slider .service-card {
    flex: 0 0 100%;
  }
  
  .services-nav {
    display: none;
  }
  
  /* Services Grid Responsive */
  .services-grid-row-1,
  .services-grid-row-2,
  .services-grid-row-3,
  .services-grid-row-4,
  .services-grid-row-5 {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
  }
}

/* ================================================================= CTA SECTION STYLES ================================================================= */

/* CTA Section Container */
.cta-section {
  width: 100% !important;
  margin: 0 !important;
  padding: var(--section-padding) !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
  background: linear-gradient(135deg, #023E8A 0%, #0077B6 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* CTA Container */
.cta-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
  padding: 0 !important;
}

/* CTA Content */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  gap: 28px;
  text-align: left !important;
}

/* CTA Title */
.cta-title {
  font-family: var(--font-family-base);
  font-size: 52px;
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  margin: 0 0 20px 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  line-height: 1.2;
  letter-spacing: -0.5px;
  width: 100%;
}

/* CTA Description */
.cta-description {
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: var(--font-weight-regular);
  color: #FFFFFF;
  margin: 0 0 36px 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 750px;
  width: 100%;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 24px !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  margin-top: 4px;
}

/* CTA Primary Button - Red button like hero section (Discover How button) */
.cta-btn-primary {
  background: #7B1A2D;
  color: #fff !important;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
  box-sizing: border-box;
  margin-right: 24px;
}

.cta-btn-primary:hover {
  background: #5E1421;
  color: #fff !important;
}

/* CTA Secondary Button - White background, black text, light gray on hover */
.cta-btn-secondary {
  background: #FFFFFF;
  color: #000000;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 160px;
  text-align: center;
  box-sizing: border-box;
}

.cta-btn-secondary:hover {
  background: #E0E0E0;
  color: #000000 !important;
}

/* CTA Responsive Design */
@media (max-width: 1279px) {
  .cta-section {
    padding: var(--section-padding-tablet) !important;
  }
  
  .cta-title {
    font-size: 44px;
  }
  
  .cta-description {
    font-size: 18px;
  }
  
  .cta-btn-primary {
    padding: 12px 24px;
    min-width: 160px;
  }
  
  .cta-btn-secondary {
    padding: 12px 24px;
    min-width: 160px;
  }
}

@media (max-width: 1024px) {
  .cta-buttons {
    gap: 32px;
  }
  
  .cta-btn-primary {
    padding: 12px 24px;
    min-width: 160px;
  }
  
  .cta-btn-secondary {
    padding: 12px 24px;
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: var(--section-padding-mobile) !important;
  }
  
  .cta-content {
    max-width: 100%;
  }
  
  .cta-title {
    font-size: 36px;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
  }
  
  .cta-description {
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.6;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px !important;
    width: 100%;
  }
  
  .cta-btn-primary {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 12px 24px;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
  }
  
  .cta-btn-secondary {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 12px 24px;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: var(--section-padding-small) !important;
  }
  
  .cta-title {
    font-size: 30px;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
  }
  
  .cta-description {
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.6;
  }
  
  .cta-buttons {
    flex-direction: row;
    gap: 24px;
    width: 100%;
  }
  
  .cta-btn-primary {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 8px);
    padding: 12px 20px;
  }
  
  .cta-btn-secondary {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 8px);
    padding: 12px 20px;
  }
}

/* =================================================================
   GDPR COOKIE CONSENT POPUP
   ================================================================= */

/* GDPR Cookie Consent Popup Styles */
.gdpr-cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 3px solid #023E8A;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  font-family: var(--font-family-base);
  display: none; /* Initially hidden, shown by JavaScript after 5 seconds */
}

.gdpr-cookie-popup.show {
  transform: translateY(0);
}

.gdpr-cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gdpr-cookie-content {
  flex: 1;
}

.gdpr-cookie-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #023E8A;
  margin: 0 0 8px 0;
}

.gdpr-cookie-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.gdpr-cookie-text a {
  color: #023E8A;
  text-decoration: underline;
}

.gdpr-cookie-text a:hover {
  color: #1a4d8a;
}

.gdpr-cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.gdpr-cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.gdpr-cookie-btn-accept {
  background: #023E8A;
  color: white;
}

.gdpr-cookie-btn-accept:hover {
  background: #1a4d8a;
  color: white;
}

.gdpr-cookie-btn-decline {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
}

.gdpr-cookie-btn-decline:hover {
  background: #e9ecef;
  color: #495057;
}

.gdpr-cookie-btn-settings {
  background: transparent;
  color: #023E8A;
  border: 1px solid #023E8A;
}

.gdpr-cookie-btn-settings:hover {
  background: #023E8A;
  color: white;
}

/* Cookie Settings Modal */
.gdpr-cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gdpr-cookie-modal.show {
  display: flex;
}

.gdpr-cookie-modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.gdpr-cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gdpr-cookie-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #023E8A;
  margin: 0;
}

.gdpr-cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.gdpr-cookie-modal-close:hover {
  color: #333;
}

.gdpr-cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.gdpr-cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gdpr-cookie-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.gdpr-cookie-toggle {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gdpr-cookie-toggle.active {
  background: #023E8A;
}

.gdpr-cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.gdpr-cookie-toggle.active .gdpr-cookie-toggle-slider {
  transform: translateX(26px);
}

.gdpr-cookie-category-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.gdpr-cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

/* GDPR Responsive Design */
@media (max-width: 768px) {
  .gdpr-cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .gdpr-cookie-buttons {
    justify-content: center;
  }
  
  .gdpr-cookie-btn {
    flex: 1;
    min-width: 100px;
  }
  
  .gdpr-cookie-modal-content {
    padding: 20px;
    margin: 10px;
  }
  
  .gdpr-cookie-modal-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .gdpr-cookie-popup {
    padding: 15px;
  }
  
  .gdpr-cookie-title {
    font-size: 1rem;
  }
  
  .gdpr-cookie-text {
    font-size: 0.85rem;
  }
  
  .gdpr-cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .gdpr-cookie-btn {
    padding: 12px 20px;
  }
}

/* =================================================================
   COMPREHENSIVE RESPONSIVE DESIGN IMPROVEMENTS
   ================================================================= */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .standard-container,
  .hero-container,
  .about-container,
  .services-container,
  .tech-container,
  .whyus-container,
  .casestudy-container,
  .cta-container {
    max-width: 1400px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .tech-grid {
    gap: 25px;
  }
  
  .hero-headline {
    font-size: 4rem;
  }
  
  .hero-subheading {
    font-size: 1.3rem;
  }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .standard-section {
    padding: 80px 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .tech-grid {
    gap: 20px;
  }
  
  .hero-headline {
    font-size: 3.5rem;
  }
  
  .hero-subheading {
    font-size: 1.2rem;
  }
}

/* Large Tablet (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .standard-section {
    padding: 70px 30px;
  }
  
  .standard-title {
    font-size: 2.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .tech-grid {
    gap: 18px;
  }
  
  .tech-row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .whyus-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .hero-headline {
    font-size: 3rem;
  }
  
  .hero-subheading {
    font-size: 1.1rem;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .standard-section {
    padding: 60px 20px;
  }
  
  .standard-container {
    padding: 0 20px;
  }
  
  .standard-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }
  
  .standard-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .standard-paragraph {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .tech-grid {
    gap: 15px;
  }
  
  .tech-row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .whyus-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .casestudy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .hero-subheading {
    font-size: 1rem;
  }
  
  .hero-cta-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .standard-section {
    padding: 50px 16px;
  }
  
  .standard-container {
    padding: 0 16px;
  }
  
  .standard-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .standard-subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .standard-paragraph {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .tech-grid {
    gap: 12px;
  }
  
  .tech-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .whyus-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .casestudy-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .hero-headline {
    font-size: 2.2rem;
  }
  
  .hero-subheading {
    font-size: 0.95rem;
  }
  
  .hero-cta-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* Mobile (max-width: 575px) */
@media (max-width: 575px) {
  .standard-section {
    padding: 40px 12px;
  }
  
  .standard-container {
    padding: 0 12px;
  }
  
  .standard-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }
  
  .standard-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .standard-paragraph {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .tech-grid {
    gap: 10px;
  }
  
  .tech-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .whyus-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .casestudy-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .hero-headline {
    font-size: 1.8rem;
  }
  
  .hero-subheading {
    font-size: 0.9rem;
  }
  
  .hero-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}



/* =================================================================
   ENHANCED SERVICES GRID RESPONSIVE DESIGN
   ================================================================= */

/* Large Desktop Services */
@media (min-width: 1400px) {
  .services-grid-row-1,
  .services-grid-row-2,
  .services-grid-row-3,
  .services-grid-row-4,
  .services-grid-row-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
  }
  
  .service-card {
    padding: 25px;
  }
  
  .service-title {
    font-size: 1.2rem;
  }
  
  .service-description {
    font-size: 0.95rem;
  }
}

/* Desktop Services */
@media (min-width: 1200px) and (max-width: 1399px) {
  .services-grid-row-1,
  .services-grid-row-2,
  .services-grid-row-3,
  .services-grid-row-4,
  .services-grid-row-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
  }
  
  .service-card {
    padding: 20px;
  }
}

/* Tablet Services */
@media (min-width: 768px) and (max-width: 1199px) {
  .services-grid-row-1,
  .services-grid-row-2,
  .services-grid-row-3,
  .services-grid-row-4,
  .services-grid-row-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  
  .service-card {
    padding: 18px;
  }
  
  .service-title {
    font-size: 1.1rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
}

/* Mobile Services */
@media (max-width: 767px) {
  .services-grid-row-1,
  .services-grid-row-2,
  .services-grid-row-3,
  .services-grid-row-4,
  .services-grid-row-5 {
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: stretch;
  }
  
  .service-card {
    padding: 15px;
  }
  
  .service-title {
    font-size: 1rem;
  }
  
  .service-description {
    font-size: 0.85rem;
  }
}


/* =================================================================
   MOBILE MENU IMPLEMENTATION
   ================================================================= */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #023E8A;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Styles (mobile + tablet) */
@media (max-width: 1279px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Ensure logo is always visible on mobile */
  .header-logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1002;
    position: relative;
    max-width: 200px !important;
    overflow: hidden !important;
  }
  
  .header-logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 200px !important;
    max-height: 50px !important;
    width: auto !important;
    height: 50px !important;
  }
  
  /* Hide header-nav by default on mobile */
  .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 1000;
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex !important;
    width: 100%;
    pointer-events: none;
  }
  
  /* Show header-nav when active - smooth slide in */
  .header-nav.active {
    transform: translateX(0);
    opacity: 1;
    display: flex !important;
    pointer-events: auto;
  }
  
  /* Ensure nav-menu is visible and shows all items */
  .nav-menu {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    order: 1;
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-menu li {
    width: 100%;
    display: block !important;
  }
  
  .nav-menu li a {
    display: block !important;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
  }
  
  /* Dropdown toggle styling in mobile */
  .dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
  }
  
  .dropdown-toggle::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #023E8A;
    margin-left: auto;
    transition: transform 0.3s ease;
  }
  
  .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  /* Ensure dropdown menus are visible when active - smooth accordion animation */
  .dropdown-menu {
    position: static !important;
    background: #f8f9fa;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 10px;
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease, padding 0.3s ease, margin-top 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 1000px !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
  
  .dropdown-menu li {
    margin: 0;
    display: block !important;
    width: 100%;
  }
  
  .dropdown-menu li a {
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #e0e0e0;
    display: block !important;
    width: 100%;
    color: #023E8A !important;
    text-decoration: none;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
  }
  
  .dropdown-menu li:last-child a {
    border-bottom: none;
  }
  
  .dropdown-menu li a:hover {
    background: #e9ecef;
    color: #7B1A2D !important;
  }
  
  /* Contact button stacked below menu - show in mobile menu */
  .header-nav .contact-btn {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    order: 2;
    padding: 12px 20px;
    display: block !important;
    background: var(--accent-maroon);
    color: var(--white);
    border-radius: 4px;
  }

  /* Search box full-width inside mobile menu, above Contact button */
  .header-search {
    width: 100%;
    margin: 10px 0 0 0;
    order: 2;
  }

  .header-search-input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .header-nav {
    top: 60px;
    max-height: calc(100vh - 60px);
    display: flex !important;
    transform: translateX(-100%);
    opacity: 0;
  }
  
  .header-nav.active {
    display: flex !important;
    transform: translateX(0);
    opacity: 1;
  }
  
  .nav-menu li a {
    font-size: 15px;
    display: block !important;
  }
  
  .dropdown-menu li a {
    font-size: 13px;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
  }
  
  /* Ensure logo is visible on smaller mobile */
  .header-logo {
    display: flex !important;
    max-width: 200px !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1002;
    position: relative;
  }
  
  .header-logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 200px !important;
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
  }
}

/* =================================================================
   SMOOTH SCROLLING AND PAGE TRANSITIONS
   ================================================================= */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Ensure smooth scrolling works even if JavaScript is disabled */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Page fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page fade-out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Apply fade-in to main content on page load */
body {
  animation: fadeIn 0.4s ease-in-out;
  opacity: 1;
}

/* Class for fade-out transition */
body.fade-out {
  animation: fadeOut 0.3s ease-in-out forwards;
  pointer-events: none; /* Prevent interactions during fade-out */
}

/* Fade-in for main content area */
#quarto-content,
main,
.quarto-container {
  animation: fadeIn 0.5s ease-in-out;
  opacity: 1;
}

/* Staggered fade-in for sections (optional enhancement) - only if motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  section {
    animation: fadeIn 0.6s ease-in-out;
    animation-fill-mode: both;
  }

  /* Delay sections slightly for staggered effect */
  section:nth-child(1) {
    animation-delay: 0.1s;
  }

  section:nth-child(2) {
    animation-delay: 0.2s;
  }

  section:nth-child(3) {
    animation-delay: 0.3s;
  }

  section:nth-child(4) {
    animation-delay: 0.4s;
  }
}

/* Smooth scroll offset for fixed headers */
:target {
  scroll-margin-top: 100px;
}

/* Smooth transitions for all internal anchor links */
a[href^="#"] {
  transition: color 0.2s ease;
}

/* Enhanced smooth scrolling for better UX */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}