/* Hunza International Investment Corporation - Custom Styles */

/* Color Variables - Light Theme */
:root {
  --hunza-black: #0A0A0A;
  --hunza-deep-blue: #033649;
  --hunza-strong-blue: #0E4D92;
  --hunza-gold: #C9A86A;
  --hunza-white: #FFFFFF;
  
  /* Light Theme Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #f8f9fa;
  --bg-card: #FFFFFF;
  --text-primary: #444444;
  --text-secondary: #666666;
  --text-heading: #033649;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark Theme Colors */
[data-theme="dark"],
html[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #0f0f0f;
  --bg-card: #252525;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-heading: #f0f0f0;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --hunza-deep-blue: #4a9bc4;
  --hunza-strong-blue: #6bb3e0;
}

/* Override header transition from style.css to prevent flash */
.header {
  transition: none !important;
}

/* Apply dark theme header immediately - no transition */
html[data-theme="dark"] .header,
[data-theme="dark"] .header {
  background: var(--bg-card) !important;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid var(--border-color);
  transition: none !important;
}

/* Override header-scrolled for dark theme */
html[data-theme="dark"] .header.header-scrolled,
[data-theme="dark"] .header.header-scrolled {
  background: var(--bg-card) !important;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5) !important;
  transition: none !important;
}

/* Typography */
body {
  font-family: 'Inter', sans-serif !important;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
  color: var(--text-heading);
  transition: color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 2px solid var(--hunza-gold);
  color: var(--hunza-gold);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: fixed;
  bottom: 65px; /* Position above back-to-top button (15px bottom + 40px height + 10px gap) */
  right: 15px; /* Align with back-to-top button */
  z-index: 99998; /* Just below back-to-top (99999) */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
  background: var(--hunza-gold);
  color: var(--hunza-white);
  transform: scale(1.1);
}

.theme-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle-btn {
  border-color: var(--hunza-gold);
  color: var(--hunza-gold);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: var(--hunza-gold);
  color: var(--hunza-white);
}

/* Responsive adjustments for theme toggle button */
@media (max-width: 1199px) {
  .theme-toggle-btn {
    bottom: 65px;
    right: 15px;
    width: 42px;
    height: 42px;
  }
  
  .theme-icon {
    font-size: 1.1rem;
  }
}

@media (max-width: 991px) {
  .theme-toggle-btn {
    bottom: 65px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  
  .theme-icon {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    bottom: 65px; /* 15px (back-to-top bottom) + 40px (back-to-top height) + 10px (gap) */
    right: 15px;
    width: 40px;
    height: 40px;
  }
  
  .theme-icon {
    font-size: 1rem;
  }
  
  /* Ensure back-to-top button stays at same position on mobile */
  .back-to-top {
    right: 15px !important;
    bottom: 15px !important;
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 576px) {
  .theme-toggle-btn {
    bottom: 63px; /* Adjusted for smaller button: 15px + 38px + 10px gap */
    right: 15px;
    width: 38px;
    height: 38px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .theme-icon {
    font-size: 0.95rem;
  }
  
  /* Ensure back-to-top button stays at same position on small mobile */
  .back-to-top {
    right: 15px !important;
    bottom: 15px !important;
    width: 38px !important;
    height: 38px !important;
  }
}

@media (max-width: 400px) {
  .theme-toggle-btn {
    bottom: 61px; /* Adjusted for smaller button: 15px + 36px + 10px gap */
    right: 12px; /* Slightly adjust for very small screens */
    width: 36px;
    height: 36px;
  }
  
  .theme-icon {
    font-size: 0.9rem;
  }
  
  /* Ensure back-to-top button stays at same position on extra small mobile */
  .back-to-top {
    right: 12px !important;
    bottom: 15px !important;
    width: 36px !important;
    height: 36px !important;
  }
}

/* Override inline styles for dark theme */
[data-theme="dark"] h3[style*="color: #033649"],
[data-theme="dark"] h4[style*="color: #033649"],
[data-theme="dark"] h3[style*="color:#033649"],
[data-theme="dark"] h4[style*="color:#033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] p[style*="color: #666"],
[data-theme="dark"] p[style*="color:#666"],
[data-theme="dark"] strong[style*="color: #0E4D92"],
[data-theme="dark"] strong[style*="color:#0E4D92"] {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .content p,
[data-theme="dark"] .content.card p {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .content.card h3 {
  color: var(--text-heading) !important;
}

[data-theme="dark"] section[style*="background: #f8f9fa"] {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .hunza-card h3[style*="color: #033649"],
[data-theme="dark"] .hunza-card h4[style*="color: #033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .hunza-card p[style*="color: #666"] {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .global-presence h3[style*="color: #033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .global-presence p[style*="color: #666"] {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .about h3[style*="color: #033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .about p[style*="color: #666"] {
  color: var(--text-secondary) !important;
}

/* Press & News Dark Theme */
[data-theme="dark"] .press-card {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .press-card h3[style*="color: #033649"],
[data-theme="dark"] .press-card h4[style*="color: #033649"],
[data-theme="dark"] .press-card h5[style*="color: #C9A86A"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .press-card h5[style*="color: #C9A86A"] {
  color: var(--hunza-gold) !important;
}

[data-theme="dark"] .press-card p[style*="color: #666"],
[data-theme="dark"] .press-card div[style*="color: #666"],
[data-theme="dark"] .press-card ul[style*="color: #666"],
[data-theme="dark"] .press-card li[style*="color: #666"] {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .press-card p[style*="color: #033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .press-card strong {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .press-card .date {
  color: var(--hunza-gold) !important;
}

/* Dubai Page Dark Theme */
[data-theme="dark"] .dubai .hunza-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .dubai .hunza-card h3[style*="color: #033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .dubai .hunza-card p[style*="color: #666"] {
  color: var(--text-secondary) !important;
}

/* Footer Headings Dark Theme */
[data-theme="dark"] .footer .footer-top .footer-links h4,
[data-theme="dark"] .footer .footer-top .footer-contact h4 {
  color: var(--hunza-gold) !important;
}

/* Leadership Page Dark Theme */
[data-theme="dark"] .leadership-card h5[style*="color: #033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .leadership-card p[style*="color: #666"] {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .leadership-card strong {
  color: var(--text-primary) !important;
}

/* Content Section Dark Theme */
[data-theme="dark"] .content h3[style*="color: #033649"],
[data-theme="dark"] .content h3[style*="color:#033649"],
[data-theme="dark"] .about .content h3[style*="color: #033649"],
[data-theme="dark"] .about .content h3[style*="color:#033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .content p,
[data-theme="dark"] .about .content p {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .about .content {
  color: var(--text-primary) !important;
  background: transparent !important;
}

[data-theme="dark"] .about section {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .about .container {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .about .content h3 {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .about .content p {
  color: var(--text-secondary) !important;
}

/* Ensure About Us page content is visible */
[data-theme="dark"] #about {
  background: var(--bg-primary) !important;
}

[data-theme="dark"] #about .content {
  background: transparent !important;
}

[data-theme="dark"] #about .content * {
  color: inherit !important;
}

[data-theme="dark"] #about .content h3 {
  color: var(--text-heading) !important;
}

[data-theme="dark"] #about .content p {
  color: var(--text-secondary) !important;
}

/* Contact Section Dark Theme */
[data-theme="dark"] #contact {
  background: var(--bg-primary) !important;
}

[data-theme="dark"] #contact .hunza-card h4[style*="color: #033649"],
[data-theme="dark"] #contact .hunza-card h4[style*="color:#033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] #contact .hunza-card p[style*="color: #666"],
[data-theme="dark"] #contact .hunza-card p[style*="color:#666"] {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] #contact .section-header h2 {
  color: var(--text-heading) !important;
}

[data-theme="dark"] #contact .section-header p {
  color: var(--text-primary) !important;
}

/* Hero Section Styling */
.hero {
  background: linear-gradient(135deg, var(--hunza-black) 0%, var(--hunza-deep-blue) 50%, var(--hunza-strong-blue) 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23C9A86A" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn-hunza-primary {
  background: var(--hunza-gold);
  color: var(--hunza-white);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-hunza-primary:hover {
  background: #B8965A;
  color: var(--hunza-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 106, 0.4);
}

.btn-hunza-outline {
  background: transparent;
  border: 2px solid var(--hunza-gold);
  color: var(--hunza-gold);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-hunza-outline:hover {
  background: var(--hunza-gold);
  color: var(--hunza-white);
  transform: translateY(-2px);
}

/* Section Headers */
.section-header h2 {
  color: var(--hunza-gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.section-header p {
  color: var(--text-heading);
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s ease;
}

[data-theme="dark"] .section-header p {
  color: var(--text-primary);
}

/* Cards */
.hunza-card {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  will-change: transform;
}

.hunza-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 10px 25px var(--shadow-color);
}

[data-theme="dark"] .hunza-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

/* Leadership Cards */
.leadership-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow-color);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  will-change: transform;
}

.leadership-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 15px 35px var(--shadow-color);
}

[data-theme="dark"] .leadership-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.leadership-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  will-change: transform;
}

.leadership-card:hover img {
  transform: scale3d(1.05, 1.05, 1);
}

.leadership-card-body {
  padding: 2rem;
}

.leadership-card h3 {
  color: var(--hunza-deep-blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.leadership-card .title {
  color: var(--hunza-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Location Cards */
.location-card {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  will-change: transform;
}

.location-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.location-card h4 {
  color: var(--hunza-deep-blue);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

.location-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.service-badge {
  background: var(--hunza-gold);
  color: var(--hunza-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.location-card .btn-hunza-outline {
  margin-top: 1.5rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

/* Division Cards */
.division-card {
  background: var(--bg-card);
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 2px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  position: relative;
  will-change: transform;
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hunza-gold), var(--hunza-deep-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.division-card:hover::before {
  transform: scaleX(1);
}

.division-card .division-image-wrapper {
  border-radius: 15px 15px 0 0;
}

.division-card:hover {
  transform: translate3d(0, -10px, 0) scale3d(1.02, 1.02, 1);
  box-shadow: 0 15px 40px rgba(201, 168, 106, 0.25);
  border-color: var(--hunza-gold);
}

.division-icon {
  font-size: 3rem;
  color: var(--hunza-gold);
  margin-bottom: 1rem;
}

/* Division Images */
.division-image-wrapper {
  width: 100%;
  height: 50%;
  min-height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
}

.division-card:hover .division-image-wrapper {
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.05) 0%, rgba(3, 54, 73, 0.05) 100%);
}

[data-theme="dark"] .division-card:hover .division-image-wrapper {
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.1) 0%, rgba(74, 155, 196, 0.1) 100%);
}

.division-image-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.division-card:hover .division-image-wrapper::after {
  width: 300px;
  height: 300px;
}

.division-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  will-change: transform;
}

.division-card:hover .division-image {
  transform: scale3d(1.05, 1.05, 1);
}

/* Division content area */
.division-card > h4,
.division-card > p {
  padding: 2rem;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.division-card h4 {
  color: var(--text-heading);
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.division-card:hover h4 {
  color: var(--hunza-gold);
  transform: translate3d(0, -2px, 0);
}

.division-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  margin: 0;
}

.division-card:hover p {
  color: var(--text-primary);
}

/* Add content wrapper effect on hover */
.division-card:hover > h4,
.division-card:hover > p {
  background: linear-gradient(to bottom, transparent 0%, rgba(201, 168, 106, 0.02) 100%);
}

/* Hunza cards with division images (for about page) */
.hunza-card .division-image-wrapper {
  width: 100%;
  height: 50%;
  min-height: 180px;
  overflow: hidden;
  background: var(--hunza-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--hunza-gold);
  flex-shrink: 0;
  will-change: transform, border-color;
}

.hunza-card .division-image-wrapper ~ h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding: 0 1.5rem;
}

/* Replace :has() selector with class-based approach for better compatibility */
.hunza-card.has-division-image {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.hunza-card .division-image-wrapper {
  border-radius: 10px 10px 0 0;
}

/* Fix nested transform issue - use translate3d on card and scale on image wrapper separately */
.hunza-card.has-division-image:hover {
  transform: translate3d(0, -5px, 0);
}

.hunza-card.has-division-image:hover .division-image-wrapper {
  border-bottom-color: var(--hunza-deep-blue);
  transform: scale3d(1.02, 1.02, 1);
}

.division-card h4 {
  color: var(--hunza-deep-blue);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

/* Gallery image hover effect - replaces inline onmouseover/onmouseout */
.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  will-change: transform;
}

.gallery-image:hover {
  transform: scale3d(1.05, 1.05, 1);
}

/* Responsive Division Images */
@media (max-width: 768px) {
  .division-image-wrapper,
  .hunza-card .division-image-wrapper {
    min-height: 150px;
    padding: 0;
  }
  
  .division-card h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
  }
  
  .division-card p {
    padding: 0 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .division-image-wrapper,
  .hunza-card .division-image-wrapper {
    min-height: 120px;
    padding: 0;
  }
  
  .division-card h4 {
    margin-top: 0.8rem;
    font-size: 1rem;
  }
  
  .division-card p {
    padding: 0 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    font-size: 0.85rem;
  }
}

/* Statistics Counter */
.stats-counter {
  text-align: center;
  padding: 2rem;
}

.stats-counter .number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--hunza-gold);
  font-family: 'Montserrat', sans-serif;
  display: block;
}

.stats-counter .label {
  color: var(--hunza-deep-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

[data-theme="dark"] .stats-counter .label {
  color: var(--text-primary) !important;
}

/* Contact Cards */
.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-card h4 {
  color: var(--hunza-deep-blue);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
}

.contact-card .role {
  color: var(--hunza-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-card .email {
  color: var(--hunza-strong-blue);
  text-decoration: none;
  font-weight: 500;
}

.contact-card .email:hover {
  text-decoration: underline;
}

/* Dark Theme for Contact Cards */
[data-theme="dark"] .contact-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .contact-card:hover {
  box-shadow: 0 10px 25px var(--shadow-color);
}

[data-theme="dark"] .contact-card h4 {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .contact-card .role {
  color: var(--hunza-gold) !important;
}

[data-theme="dark"] .contact-card .email {
  color: var(--hunza-strong-blue) !important;
}

[data-theme="dark"] .contact-card .btn-outline-secondary {
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-card .btn-outline-secondary:hover {
  background: var(--hunza-gold) !important;
  border-color: var(--hunza-gold) !important;
  color: var(--hunza-white) !important;
}

/* Contact Form Styling */
.contact-form .contact-input {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  color: var(--hunza-deep-blue);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  background: #fff;
}

.contact-form .contact-input:focus {
  outline: none;
  border-color: var(--hunza-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.1);
}

.contact-form .contact-input::placeholder {
  color: #999;
}

/* Dark Theme for Contact Form */
[data-theme="dark"] .contact-form .contact-input {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-form .contact-input:focus {
  border-color: var(--hunza-gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.2) !important;
}

[data-theme="dark"] .contact-form .contact-input::placeholder {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .contact-form h3[style*="color: #033649"],
[data-theme="dark"] .contact-form h3[style*="color:#033649"] {
  color: var(--text-heading) !important;
}

.contact-form textarea.contact-input {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-hunza-primary {
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-form .loading {
  color: var(--hunza-gold);
  font-weight: 500;
}

.contact-form .error-message {
  color: #dc3545;
  font-weight: 500;
  padding: 10px;
  background: #f8d7da;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.contact-form .sent-message {
  color: #28a745;
  font-weight: 500;
  padding: 10px;
  background: #d4edda;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* Header - Make it prominent with white background */
/* Dark Theme for Sections */
[data-theme="dark"] section {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] section[style*="background"] {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .content.card {
  background: var(--bg-card) !important;
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .content {
  color: var(--text-primary);
}

[data-theme="dark"] .breadcrumbs {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .breadcrumbs h2 {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .copyright {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .copyright strong {
  color: var(--text-primary) !important;
}

/* Fix navbar dropdown in dark theme */
[data-theme="dark"] .navbar .dropdown ul {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar .dropdown ul li a {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar .dropdown ul li a:hover {
  color: var(--hunza-gold) !important;
  background: rgba(201, 168, 106, 0.1);
}

[data-theme="dark"] .breadcrumbs {
  background: var(--bg-secondary) !important;
  color: var(--text-primary);
}

[data-theme="dark"] .breadcrumbs h2 {
  color: var(--text-heading);
}

.header {
  background: var(--bg-primary) !important;
  box-shadow: 0px 2px 20px var(--shadow-color) !important;
  padding: 15px 0 !important;
  transition: none !important;
}

[data-theme="dark"] .header {
  background: var(--bg-card) !important;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid var(--border-color);
}

/* Prevent header flash - apply dark theme immediately */
html[data-theme="dark"] .header {
  background: var(--bg-card) !important;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid var(--border-color);
}

.header .logo span {
  color: var(--hunza-strong-blue) !important;
  font-weight: 700;
}

/* Navigation */
.navbar a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--hunza-strong-blue) !important;
  transition: color 0.3s ease;
}

.navbar a:hover, .navbar .active, .navbar li:hover > a {
  color: var(--hunza-gold) !important;
}

[data-theme="dark"] .navbar a {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar a:hover, 
[data-theme="dark"] .navbar .active, 
[data-theme="dark"] .navbar li:hover > a {
  color: var(--hunza-gold) !important;
}

.navbar .getstarted {
  background: var(--hunza-gold);
  color: var(--hunza-white) !important;
  border-radius: 5px;
  padding: 8px 20px;
}

.navbar .getstarted:hover {
  background: #B8965A;
  color: var(--hunza-white) !important;
}

[data-theme="dark"] .navbar .getstarted {
  color: var(--hunza-white) !important;
}

[data-theme="dark"] .navbar .getstarted:hover {
  background: #B8965A !important;
  color: var(--hunza-white) !important;
}

/* Footer - Light mode (default) */
footer {
  background: #f6f9ff !important;
  color: var(--hunza-strong-blue);
  padding: 2rem 0 0.85rem !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

footer .footer-top {
  background: #ffffff !important;
  border-top: 1px solid #e1ecff !important;
  border-bottom: 1px solid #e1ecff !important;
  padding: 2.25rem 0 1.5rem !important;
}

/* Footer logo — proportional to page (avoids oversized footer) */
.footer-brand-logo {
  height: auto !important;
  max-height: 112px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
}

.footer .footer-top .footer-info > .mb-3 {
  margin-bottom: 0.85rem !important;
}

.footer .copyright {
  padding-top: 1.25rem !important;
  margin-top: 1rem !important;
  font-size: 0.875rem !important;
}

/* Footer - Dark mode */
[data-theme="dark"] footer {
  background: var(--bg-secondary) !important;
  color: var(--text-primary);
}

[data-theme="dark"] footer .footer-top {
  background: var(--bg-secondary) !important;
}

footer h4 {
  color: var(--hunza-gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer a {
  color: var(--hunza-strong-blue);
  transition: color 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: var(--hunza-gold);
}

[data-theme="dark"] footer {
  background: var(--bg-secondary) !important;
  color: var(--text-primary);
}

[data-theme="dark"] footer a {
  color: var(--hunza-strong-blue);
}

/* Light mode footer text */
footer p {
  color: var(--hunza-strong-blue);
}

[data-theme="dark"] footer p {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer .footer-top .footer-links ul a {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer .footer-top .footer-links ul a:hover {
  color: var(--hunza-gold);
}

[data-theme="dark"] .footer .footer-top .footer-contact p {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer .footer-top .footer-contact strong {
  color: var(--text-primary);
}

/* Footer Links Alignment and Styling */
.footer .footer-top .footer-links {
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.footer .footer-top .footer-links:first-of-type {
  padding-left: 0;
  padding-right: 1.5rem;
}

.footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-top .footer-links ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  line-height: 1.6;
}

.footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-top .footer-links ul i {
  padding-right: 8px;
  color: var(--hunza-gold);
  font-size: 12px;
  line-height: 0;
  margin-right: 5px;
}

.footer .footer-top .footer-links ul a {
  color: var(--hunza-strong-blue);
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 1.55;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer .footer-top .footer-links ul a:hover {
  color: var(--hunza-gold);
  padding-left: 5px;
}

/* Footer Info Section */
.footer .footer-top .footer-info {
  margin-bottom: 1.25rem !important;
  padding-right: 1.5rem;
}

.footer .footer-top .footer-info .logo span {
  color: var(--hunza-white);
}

.footer .footer-top .footer-info p {
  color: var(--hunza-strong-blue);
  line-height: 1.65;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

[data-theme="dark"] .footer .footer-top .footer-info p {
  color: var(--text-secondary) !important;
}

/* Footer Contact Section */
.footer .footer-top .footer-contact {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

@media (max-width: 991px) {
  .footer .footer-top .footer-contact {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .footer .footer-top .footer-links {
    padding-right: 1rem;
  }
}

.footer .footer-top .footer-contact p {
  color: var(--hunza-strong-blue);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

[data-theme="dark"] .footer .footer-top .footer-contact p {
  color: var(--text-secondary) !important;
}

.footer .footer-top .footer-contact strong {
  color: var(--hunza-strong-blue);
  font-weight: 600;
  transition: color 0.3s ease;
}

[data-theme="dark"] .footer .footer-top .footer-contact strong {
  color: var(--text-primary) !important;
}

.footer .footer-top .footer-contact a {
  color: var(--hunza-strong-blue);
  transition: color 0.3s ease;
}

.footer .footer-top .footer-contact a:hover {
  color: var(--hunza-gold);
}

/* Principle Cards - Core Values */
.principle-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 5px 20px var(--shadow-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--border-color);
  position: relative;
  cursor: pointer;
}

.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hunza-gold), var(--hunza-deep-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.principle-card:hover::before {
  transform: scaleX(1);
}

.principle-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(201, 168, 106, 0.25);
  border-color: var(--hunza-gold);
}

.principle-image-wrapper {
  width: 100%;
  height: 50%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.principle-card:hover .principle-image-wrapper {
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.05) 0%, rgba(3, 54, 73, 0.05) 100%);
}

[data-theme="dark"] .principle-card:hover .principle-image-wrapper {
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.1) 0%, rgba(74, 155, 196, 0.1) 100%);
}

.principle-image-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.principle-card:hover .principle-image-wrapper::after {
  width: 300px;
  height: 300px;
}

.principle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
  position: relative;
  z-index: 2;
}

.principle-card:hover .principle-image {
  transform: scale(1.05);
}

.principle-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.principle-content h3 {
  color: var(--text-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.principle-card:hover .principle-content h3 {
  color: var(--hunza-gold);
  transform: translateY(-2px);
}

.principle-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.principle-card:hover .principle-content p {
  color: var(--text-primary);
}

.principle-card:hover .principle-content {
  background: linear-gradient(to bottom, transparent 0%, rgba(201, 168, 106, 0.02) 100%);
}

.principle-content h3 {
  color: var(--text-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.principle-card:hover .principle-content h3 {
  color: var(--hunza-gold);
  transform: translateY(-2px);
}

.principle-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.principle-card:hover .principle-content p {
  color: var(--text-primary);
}

/* Responsive Division Cards */
@media (max-width: 768px) {
  .division-image-wrapper {
    min-height: 180px;
    padding: 0;
  }
  
  .division-card > h4,
  .division-card > p {
    padding: 1.5rem;
  }
  
  .division-card h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .division-image-wrapper {
    min-height: 160px;
    padding: 0;
  }
  
  .division-card > h4,
  .division-card > p {
    padding: 1.25rem;
  }
  
  .division-card h4 {
    font-size: 1.2rem;
  }
  
  .division-card p {
    font-size: 0.9rem;
  }
}

/* Responsive Principle Cards */
@media (max-width: 768px) {
  .principle-image-wrapper {
    min-height: 180px;
    padding: 0;
  }
  
  .principle-content {
    padding: 1.5rem;
  }
  
  .principle-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .principle-image-wrapper {
    min-height: 160px;
    padding: 0;
  }
  
  .principle-content {
    padding: 1.25rem;
  }
  
  .principle-content h3 {
    font-size: 1.2rem;
  }
  
  .principle-content p {
    font-size: 0.9rem;
  }
}

/* Footer Social Links */
.footer .footer-top .social-links a {
  font-size: 17px;
  display: inline-block;
  color: var(--hunza-strong-blue);
  line-height: 0;
  margin-right: 12px;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 77, 146, 0.1);
  text-align: center;
  line-height: 36px;
}

.footer .footer-top .social-links a:hover {
  color: var(--hunza-gold);
  background: rgba(201, 168, 106, 0.2);
  transform: translateY(-3px);
}

/* Footer Copyright */
.footer .copyright {
  text-align: center;
  padding-top: 30px;
  color: var(--hunza-strong-blue) !important;
  border-top: 1px solid #e1ecff;
  margin-top: 30px;
  font-weight: 400;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer .copyright strong {
  color: var(--hunza-strong-blue) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

[data-theme="dark"] .footer .copyright {
  color: var(--text-secondary) !important;
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer .copyright strong {
  color: var(--text-primary) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Map Container */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* Press/News Cards */
.press-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow-color);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.press-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.press-card .date {
  color: var(--hunza-gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.press-card h3 {
  color: var(--text-heading);
  font-family: 'Montserrat', sans-serif;
  margin: 1rem 0;
  transition: color 0.3s ease;
}

[data-theme="dark"] .press-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color);
}

[data-theme="dark"] .press-card h3 {
  color: var(--text-heading) !important;
}

/* Breadcrumbs / Page Title */
.breadcrumbs {
  background: transparent !important;
  padding: 30px 0 20px 0;
  min-height: auto;
  margin-top: 82px;
  color: var(--hunza-deep-blue);
}

.breadcrumbs h2 {
  color: var(--hunza-deep-blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
  transition: color 0.3s ease;
}

[data-theme="dark"] .breadcrumbs {
  color: var(--text-primary);
}

[data-theme="dark"] .breadcrumbs h2 {
  color: var(--text-heading) !important;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  color: var(--hunza-gold);
  content: "/";
}

.breadcrumbs ol li a {
  color: var(--hunza-gold);
  text-decoration: none;
}

.breadcrumbs ol li a:hover {
  color: var(--hunza-white);
}

/* Mobile Navigation Styling */
.navbar-mobile {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-mobile .mobile-menu-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 60px 0 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--hunza-strong-blue);
  font-family: 'Montserrat', sans-serif;
  z-index: 1000;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.navbar-mobile .mobile-nav-toggle {
  color: var(--hunza-strong-blue) !important;
  background: transparent;
  z-index: 1001;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove mobile menu toggle alignment with theme toggle since theme toggle is now at bottom */
@media (max-width: 991px) {
  .navbar-mobile .mobile-nav-toggle {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .navbar-mobile .mobile-nav-toggle {
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 576px) {
  .navbar-mobile .mobile-nav-toggle {
    top: 18px;
    right: 15px;
  }
}

@media (max-width: 400px) {
  .navbar-mobile .mobile-nav-toggle {
    top: 18px;
    right: 12px;
  }
}

.navbar-mobile .mobile-nav-toggle.bi-x {
  color: var(--hunza-strong-blue) !important;
}

.navbar-mobile ul {
  background-color: #fff !important;
  top: 70px !important;
  box-shadow: none;
  border-top: 1px solid #e0e0e0;
}

.navbar-mobile a {
  color: var(--hunza-strong-blue) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.navbar-mobile a:hover, 
.navbar-mobile .active, 
.navbar-mobile li:hover > a {
  color: var(--hunza-gold) !important;
  background: rgba(201, 168, 106, 0.05);
  padding-left: 25px;
}

.navbar-mobile .getstarted {
  background: var(--hunza-gold) !important;
  color: var(--hunza-white) !important;
  border-radius: 5px;
  margin: 15px 20px !important;
  padding: 12px 20px !important;
  text-align: center;
  display: block;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.navbar-mobile .getstarted:hover {
  background: #B8965A !important;
  color: var(--hunza-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 106, 0.4);
}

/* Dark mode - Mobile Contact Us button */
[data-theme="dark"] .navbar-mobile .getstarted {
  background: var(--hunza-gold) !important;
  color: var(--hunza-white) !important;
}

[data-theme="dark"] .navbar-mobile .getstarted:hover {
  background: #B8965A !important;
  color: var(--hunza-white) !important;
}

/* Dark Mode - Mobile Navigation */
[data-theme="dark"] .navbar-mobile {
  background: var(--bg-card) !important;
}

[data-theme="dark"] .navbar-mobile .mobile-menu-header {
  background: var(--bg-card) !important;
  color: var(--hunza-gold) !important;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-mobile .mobile-menu-header span,
[data-theme="dark"] .navbar-mobile .mobile-menu-header a,
[data-theme="dark"] .navbar-mobile .mobile-menu-header * {
  color: var(--hunza-gold) !important;
}

[data-theme="dark"] .navbar-mobile .mobile-nav-toggle {
  color: var(--hunza-gold) !important;
}

[data-theme="dark"] .navbar-mobile .mobile-nav-toggle.bi-x {
  color: var(--hunza-gold) !important;
}

[data-theme="dark"] .navbar-mobile ul {
  background-color: var(--bg-card) !important;
  border-top: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .navbar-mobile a {
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .navbar-mobile a:hover,
[data-theme="dark"] .navbar-mobile .active,
[data-theme="dark"] .navbar-mobile li:hover > a {
  color: var(--hunza-gold) !important;
  background: rgba(201, 168, 106, 0.1) !important;
}

/* Dark Mode - Mobile Menu Icons (chevron-down) */
[data-theme="dark"] .navbar-mobile .dropdown > a i,
[data-theme="dark"] .navbar-mobile .dropdown > a .bi-chevron-down {
  color: var(--hunza-gold) !important;
}

[data-theme="dark"] .navbar-mobile .dropdown > a:hover i,
[data-theme="dark"] .navbar-mobile .dropdown > a:hover .bi-chevron-down {
  color: var(--hunza-gold) !important;
}

/* Dark Mode - Mobile Dropdown Sub-menu */
[data-theme="dark"] .navbar-mobile .dropdown ul {
  background: var(--bg-secondary) !important;
  border-left: 3px solid var(--hunza-gold) !important;
}

[data-theme="dark"] .navbar-mobile .dropdown ul a {
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .navbar-mobile .dropdown ul a:hover {
  color: var(--hunza-gold) !important;
  background: rgba(201, 168, 106, 0.15) !important;
}

/* Dark Mode - Mobile Dropdown Active/Open State */
[data-theme="dark"] .navbar-mobile .dropdown.active > a,
[data-theme="dark"] .navbar-mobile .dropdown.show > a {
  color: var(--hunza-gold) !important;
  background: rgba(201, 168, 106, 0.1) !important;
}

[data-theme="dark"] .navbar-mobile .dropdown.active > a i,
[data-theme="dark"] .navbar-mobile .dropdown.show > a i,
[data-theme="dark"] .navbar-mobile .dropdown.active > a .bi-chevron-down,
[data-theme="dark"] .navbar-mobile .dropdown.show > a .bi-chevron-down {
  color: var(--hunza-gold) !important;
  transform: rotate(180deg);
}

.navbar-mobile .dropdown ul {
  background: #f8f9fa !important;
  border-left: 3px solid var(--hunza-gold);
  margin: 0 20px 10px 20px !important;
  border-radius: 5px;
}

.navbar-mobile .dropdown ul a {
  color: var(--hunza-strong-blue) !important;
  padding: 12px 20px;
}

.navbar-mobile .dropdown ul a:hover {
  color: var(--hunza-gold) !important;
  background: rgba(201, 168, 106, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem !important;
  }
  
  .hero h2 {
    font-size: 1rem !important;
  }
  
  .hero p {
    font-size: 1.2rem !important;
  }
  
  .leadership-card img {
    height: 250px;
  }
  
  .stats-counter .number {
    font-size: 2rem;
  }
  
  .breadcrumbs {
    margin-top: 57px;
  }
}

/* Global Text Colors */
.text-hunza-gold {
  color: var(--hunza-gold) !important;
}

.text-hunza-blue {
  color: var(--hunza-deep-blue) !important;
}

.bg-hunza-gold {
  background-color: var(--hunza-gold) !important;
}

.bg-hunza-blue {
  background-color: var(--hunza-deep-blue) !important;
}

/* Back to Top Button - Theme Styling */
.back-to-top {
  background: var(--hunza-gold) !important;
}

.back-to-top:hover {
  background: var(--hunza-deep-blue) !important;
}

.back-to-top i {
  color: var(--hunza-white) !important;
}

/* Floating Background Images Animation */
@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translate(30px, -30px) rotate(5deg);
    opacity: 0.25;
  }
  50% {
    transform: translate(-20px, 20px) rotate(-5deg);
    opacity: 0.15;
  }
  75% {
    transform: translate(20px, 30px) rotate(3deg);
    opacity: 0.22;
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translate(-25px, 25px) rotate(-4deg);
    opacity: 0.23;
  }
  50% {
    transform: translate(25px, -20px) rotate(4deg);
    opacity: 0.15;
  }
  75% {
    transform: translate(-15px, -25px) rotate(-3deg);
    opacity: 0.25;
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
  }
  33% {
    transform: translate(20px, -25px) rotate(6deg);
    opacity: 0.25;
  }
  66% {
    transform: translate(-30px, 15px) rotate(-6deg);
    opacity: 0.15;
  }
}

@keyframes float4 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translate(-20px, -30px) rotate(-5deg);
    opacity: 0.25;
  }
  50% {
    transform: translate(30px, 20px) rotate(5deg);
    opacity: 0.15;
  }
  75% {
    transform: translate(-25px, 25px) rotate(-3deg);
    opacity: 0.22;
  }
}

/* Car Animation - Left to Right Continuous Loop */
@keyframes carMoveLeftToRight {
  0% {
    left: -300px;
    opacity: 0;
  }
  5% {
    opacity: 0.2;
  }
  95% {
    opacity: 0.2;
  }
  100% {
    left: calc(100% + 300px);
    opacity: 0;
  }
}

/* Hero Background Slideshow */
.hero-background-slideshow {
  overflow: hidden;
}

.hero-bg-slide {
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Ensure text visibility on hero section */
#hero h1,
#hero h2,
#hero p {
  position: relative;
  z-index: 10;
}

#hero .btn-get-started {
  position: relative;
  z-index: 10;
}

.floating-bg-img {
  transition: opacity 0.3s ease;
}

.floating-bg-img:hover {
  opacity: 0.3 !important;
}

/* Responsive adjustments for floating images */
@media (max-width: 768px) {
  .floating-bg-img {
    width: 150px !important;
    opacity: 0.15 !important;
  }
  
  .floating-bg-img[alt="Gas Station"] {
    top: 20% !important;
    left: 2% !important;
  }
  
  .floating-bg-img[alt="Food"] {
    top: 22% !important;
    right: 2% !important;
  }
  
  .floating-bg-img[alt="Hospitality"] {
    top: 55% !important;
    right: 3% !important;
  }
  
  .car-animation {
    bottom: 12% !important;
    width: 180px !important;
  }
}

@media (max-width: 480px) {
  .floating-bg-img {
    width: 100px !important;
    opacity: 0.12 !important;
  }
  
  .floating-bg-img[alt="Gas Station"] {
    top: 25% !important;
    left: 1% !important;
    width: 120px !important;
  }
  
  .floating-bg-img[alt="Food"] {
    top: 28% !important;
    right: 1% !important;
    width: 110px !important;
  }
  
  .floating-bg-img[alt="Hospitality"] {
    top: 60% !important;
    right: 2% !important;
    width: 120px !important;
  }
  
  .car-animation {
    bottom: 10% !important;
    width: 140px !important;
  }
}

/* Additional dark theme fixes for better visibility */
[data-theme="dark"] main {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .section-header p {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .values {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .counts {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .features {
  background: var(--bg-primary) !important;
}

[data-theme="dark"] .divisions-preview {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .about {
  background: var(--bg-primary) !important;
}

[data-theme="dark"] .what-we-do {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .global-presence {
  background: var(--bg-primary) !important;
}

[data-theme="dark"] .mvv {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .press {
  background: var(--bg-primary) !important;
}

[data-theme="dark"] .dubai {
  background: var(--bg-primary) !important;
}

/* Additional fixes for better visibility */
[data-theme="dark"] .badge.bg-secondary {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .press-card .date i {
  color: var(--hunza-gold) !important;
}

/* Comprehensive dark theme text fixes */
[data-theme="dark"] *[style*="color: #666"],
[data-theme="dark"] *[style*="color:#666"] {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] *[style*="color: #033649"],
[data-theme="dark"] *[style*="color:#033649"] {
  color: var(--text-heading) !important;
}

[data-theme="dark"] *[style*="color: #0E4D92"],
[data-theme="dark"] *[style*="color:#0E4D92"] {
  color: var(--hunza-strong-blue) !important;
}

[data-theme="dark"] .leadership-card-body p,
[data-theme="dark"] .leadership-card-body h5 {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .leadership-card-body h5 {
  color: var(--text-heading) !important;
}

[data-theme="dark"] .leadership-card-body strong {
  color: var(--text-primary) !important;
}

/* Fix white cards in dark mode */
[data-theme="dark"] .hunza-card[style*="background"],
[data-theme="dark"] .card[style*="background"] {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

/* Country flags as images — Windows often shows flag emoji as “US” / “PK” letter pairs */
.country-flag {
  display: inline-block;
  vertical-align: middle;
  width: 2rem;
  max-width: 100%;
  height: auto;
  max-height: 1.4rem;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.country-flag-md {
  width: 2.5rem;
  max-height: 1.65rem;
  margin-right: 0.35rem;
}

.country-flag-lg {
  display: inline-block;
  width: 4.5rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.75rem;
}

.country-flag-xl {
  width: 5.5rem;
  margin-bottom: 1rem;
}

.country-flag-heading {
  width: 2.75rem;
  max-height: 1.85rem;
  margin-right: 0.5rem;
  vertical-align: text-bottom;
}

/* Leadership page only — PNG flags (Windows shows flag emoji as “AE”, “US”, etc.) */
.leadership .leadership-region-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 1.5rem 0;
  line-height: 1;
}

.leadership .leadership-flag-thumb {
  display: block;
  flex-shrink: 0;
  height: 1.5rem;
  width: auto;
  max-width: 2.75rem;
  object-fit: contain;
  object-position: center;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Homepage Global Presence only — flag above country name (v_home.php) */
.hunza-global-presence-home > [class*="col-"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.hunza-global-presence-home .country-flag-lg {
  display: block;
  margin-bottom: 0;
  flex-shrink: 0;
}

.hunza-global-presence-home > [class*="col-"] strong {
  display: block;
  text-align: center;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Viewport + header: logo scale, mobile “Contact Us” CTA (always visible)
   -------------------------------------------------------------------------- */
.hunza-header-logo-img {
  transform: scale(1.25) !important;
}

@media (min-width: 576px) {
  .hunza-header-logo-img {
    transform: scale(1.5) !important;
  }
}

@media (min-width: 992px) {
  .hunza-header-logo-img {
    transform: scale(1.8) !important;
  }
}

.header-actions {
  min-width: 0;
}

.header-contact-cta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  padding: 0.45rem 0.65rem;
  min-height: 40px;
  border-radius: 5px;
  background: var(--hunza-gold);
  color: var(--hunza-white) !important;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-contact-cta:hover {
  background: #b8965a;
  color: var(--hunza-white) !important;
}

[data-theme="dark"] .header-contact-cta:hover {
  color: var(--hunza-white) !important;
}

@media (max-width: 400px) {
  .header-contact-cta {
    font-size: 0.75rem;
    padding: 0.4rem 0.55rem;
    min-height: 38px;
  }
}

/* Mobile menu icon: blue in light mode, white in dark mode (header + open overlay) */
@media (max-width: 991px) {
  .header-actions .mobile-nav-toggle {
    font-size: 28px;
    padding: 6px;
    transition: color 0.25s ease;
  }

  html:not([data-theme="dark"]) #header .mobile-nav-toggle {
    color: var(--hunza-strong-blue) !important;
  }

  html[data-theme="dark"] #header .mobile-nav-toggle {
    color: #ffffff !important;
  }

  /* Override template default (white X) so close icon stays visible on light overlay */
  html:not([data-theme="dark"]) #navbar.navbar-mobile .mobile-nav-toggle.bi-x {
    color: var(--hunza-strong-blue) !important;
  }

  html[data-theme="dark"] #navbar.navbar-mobile .mobile-nav-toggle.bi-x {
    color: #ffffff !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile readability: touch targets, single-column heroes, readable type
   (Works with proper viewport meta on all pages.)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section-header h2 {
    font-size: 0.875rem !important;
  }

  .section-header p {
    font-size: clamp(1.28rem, 4.25vw, 1.85rem) !important;
    line-height: 1.28 !important;
  }

  /* Hero (#home): stack CTAs, readable type */
  #hero h1 {
    font-size: clamp(1.45rem, 6.25vw, 2.05rem) !important;
    line-height: 1.15 !important;
  }

  #hero h2 {
    font-size: clamp(0.92rem, 3.15vw, 1.08rem) !important;
  }

  #hero p {
    font-size: clamp(0.98rem, 3.5vw, 1.2rem) !important;
    line-height: 1.45 !important;
  }

  #hero .d-flex.flex-wrap.justify-content-center {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.62rem !important;
    width: 100%;
    max-width: 380px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #hero .btn-get-started {
    width: 100%;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0.72rem 1.1rem !important;
    font-size: 0.9375rem !important;
  }

  .slideshow-nav {
    bottom: 18px !important;
    gap: 8px !important;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 95%;
  }

  .slideshow-nav .slide-dot {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
  }

  .hunza-card {
    padding: 1.15rem 1.05rem !important;
  }

  .hunza-card h4 {
    font-size: 1.0625rem !important;
  }

  .hunza-card p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
  }

  .division-card h4 {
    font-size: 1.1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .division-image-wrapper {
    min-height: 168px !important;
  }

  /* Core Values + Business Divisions: two columns — compact cards on small screens */
  #values .principle-image-wrapper {
    min-height: 118px !important;
  }

  #values .principle-content {
    padding: 0.75rem 0.5rem !important;
  }

  #values .principle-content h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.35rem !important;
  }

  #values .principle-content p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  #divisions-preview .division-image-wrapper {
    min-height: 112px !important;
  }

  #divisions-preview .division-card h4 {
    font-size: 0.88rem !important;
    padding: 0.55rem 0.35rem !important;
    line-height: 1.25 !important;
  }

  #advantage .hunza-card {
    padding: 0.85rem 0.55rem !important;
  }

  #advantage .hunza-card .bi {
    font-size: 2rem !important;
  }

  #advantage .hunza-card h4 {
    font-size: 0.92rem !important;
    margin-bottom: 0.4rem !important;
  }

  #advantage .hunza-card p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  /* Dubai Division — Our Services: two columns on mobile */
  #dubai .dubai-services-grid .hunza-card {
    padding: 0.85rem 0.55rem !important;
  }

  #dubai .dubai-services-grid .hunza-card .bi {
    font-size: 2rem !important;
  }

  #dubai .dubai-services-grid .hunza-card h4 {
    font-size: 0.88rem !important;
    margin-bottom: 0.45rem !important;
    line-height: 1.25 !important;
  }

  #dubai .dubai-services-grid .hunza-card p {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
  }

  /* Global Presence: three flags in one horizontal row */
  .hunza-global-presence-home > [class*="col-"] {
    margin-bottom: 0 !important;
  }

  .hunza-global-presence-home .country-flag-lg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .hunza-global-presence-home strong {
    font-size: clamp(0.62rem, 2.75vw, 0.82rem) !important;
    margin-top: 0.25rem;
    line-height: 1.2;
    display: block;
  }

  /* Stats */
  .stats-counter .number {
    font-size: clamp(2rem, 7vw, 2.65rem) !important;
  }

  .stats-counter .label {
    font-size: 0.9375rem !important;
  }

  /* Primary / outline buttons site-wide */
  .btn-hunza-primary,
  .btn-hunza-outline {
    min-height: 44px;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    font-size: 0.9375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .about .content p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .about .content h3 {
    font-size: clamp(1.22rem, 4vw, 1.55rem) !important;
  }

  .about .content.card h4 {
    font-size: 1.12rem !important;
  }

  .btn-read-more {
    min-height: 44px !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* CTA strip */
  #cta h3 {
    font-size: clamp(1.22rem, 4.25vw, 1.75rem) !important;
  }

  #cta p {
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  /* Footer — balanced with page text (not oversized) */
  .footer-brand-logo {
    max-height: 88px !important;
    max-width: 170px !important;
  }

  footer {
    padding: 1.5rem 0 0.65rem !important;
  }

  footer .footer-top {
    padding: 1.65rem 0 1.15rem !important;
  }

  .footer .footer-top .footer-links ul a {
    font-size: 0.875rem !important;
    padding: 7px 0 !important;
  }

  .footer .footer-top .footer-info p,
  .footer .footer-top .footer-contact p {
    font-size: 0.9375rem !important;
    line-height: 1.58 !important;
  }

  .footer .footer-top .footer-contact h4,
  .footer .footer-top .footer-links h4 {
    font-size: 0.8125rem !important;
    margin-bottom: 0.75rem !important;
  }

  .footer .copyright {
    font-size: 0.8125rem !important;
    padding-top: 1rem !important;
    margin-top: 0.75rem !important;
  }
}

@media (max-width: 576px) {
  #hero .d-flex.flex-wrap.justify-content-center {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

