*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #1e2d3d;
  --primary-blue: #2b4257;
  --accent-red: #8b2332;
  --accent-gold: #c9a84c;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-dark: #1e2d3d;
  --text-light: #5a6a7a;
  --body-bg: #ffffff;
  --card-bg: #ffffff;
  --section-alt-bg: #f5f5f5;
  --border-color: #e8edf2;
  --header-bg: #ffffff;
  --footer-bg: #1e2d3d;
  --dropdown-bg: #ffffff;
  --input-bg: #ffffff;
  --overlay-dark: rgba(30,45,61,0.7);
}

body {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--body-bg);
  transition: background 0.3s, color 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--accent-gold);
  transition: color 0.3s;
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-right a {
  display: flex;
  align-items: center;
  gap: 6px;
}

header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(139, 35, 50, 0.15), 0 4px 24px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.4s, border-color 0.3s, box-shadow 0.4s, padding 0.3s;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-gold) 50%, var(--accent-red) 100%);
  opacity: 0.7;
}

header.header-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(139, 35, 50, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
}

header.header-scrolled::after {
  opacity: 1;
}

html.dark-mode header.header-scrolled {
  background: rgba(20, 28, 40, 0.96);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  max-width: 1260px;
  margin: 0 auto;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  transition: filter 0.3s, transform 0.3s;
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-red);
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav ul li {
  position: relative;
  display: flex;
  align-items: center;
}

nav ul li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  transition: all 0.25s;
  letter-spacing: 0.8px;
  white-space: nowrap;
  border-radius: 8px;
  position: relative;
}

nav ul li a:hover {
  color: var(--accent-red);
  background: rgba(139, 26, 43, 0.06);
}

nav ul li.active a {
  color: var(--accent-red);
}

nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  min-width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-top: 3px solid var(--accent-red);
  border-radius: 0 0 10px 10px;
  z-index: 100;
  transition: background 0.3s;
  padding: 6px 0;
}

nav ul li:hover .dropdown {
  display: block;
}

nav ul li .dropdown li a {
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-radius: 0;
}

nav ul li .dropdown li:last-child a {
  border-bottom: none;
}

nav ul li .dropdown li a:hover {
  background: rgba(139, 26, 43, 0.06);
  color: var(--accent-red);
  padding-left: 28px;
}

@keyframes btnGloss {
  0% { left: -150%; }
  100% { left: 200%; }
}
.nav-apply-btn {
  background: linear-gradient(135deg, #a12a3a 0%, #8b2332 50%, #6e1a28 100%) !important;
  color: #fff !important;
  padding: 11px 28px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  letter-spacing: 1.2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 3px 12px rgba(139, 35, 50, 0.35);
  border: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.nav-apply-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -150%;
  width: 80%;
  height: calc(100% + 4px);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.1) 80%, transparent 100%);
  transform: skewX(-25deg);
  z-index: 1;
  pointer-events: none;
}
.nav-apply-btn:hover::after {
  animation: btnGloss 0.8s ease-in-out;
}

.nav-apply-btn:hover {
  background: linear-gradient(135deg, #8b2332 0%, #6e1522 50%, #5a1019 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 35, 50, 0.45) !important;
}

html.dark-mode .nav-apply-btn {
  background: linear-gradient(135deg, #a12a3a 0%, #8b2332 50%, #6e1a28 100%) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(139, 35, 50, 0.5);
}

html.dark-mode .nav-apply-btn:hover {
  background: linear-gradient(135deg, #c03040 0%, #a12a3a 100%) !important;
  box-shadow: 0 6px 20px rgba(139, 35, 50, 0.6) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  z-index: 10;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  transition: 0.3s;
  border-radius: 2px;
  display: block;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-transition-kenburns .hero-slide img {
  animation: none;
}
.hero-transition-kenburns .hero-slide.active img {
  animation: heroKenBurns 8s ease-in-out forwards;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.15) translate(-1.5%, -1%); }
  100% { transform: scale(1.1) translate(1%, -0.5%); }
}

.hero-transition-zoom-in .hero-slide {
  transition: opacity 1s ease-in-out;
}
.hero-transition-zoom-in .hero-slide img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.85);
}
.hero-transition-zoom-in .hero-slide.active img {
  transform: scale(1);
}

.hero-transition-zoom-out .hero-slide {
  transition: opacity 1s ease-in-out;
}
.hero-transition-zoom-out .hero-slide img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1.2);
}
.hero-transition-zoom-out .hero-slide.active img {
  transform: scale(1);
}

.hero-transition-slide-left .hero-slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.hero-transition-slide-left .hero-slide.active {
  transform: translateX(0);
  opacity: 1;
}
.hero-transition-slide-left .hero-slide.slide-out {
  transform: translateX(-100%);
  opacity: 1;
}

.hero-transition-slide-right .hero-slide {
  opacity: 1;
  transform: translateX(-100%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.hero-transition-slide-right .hero-slide.active {
  transform: translateX(0);
  opacity: 1;
}
.hero-transition-slide-right .hero-slide.slide-out {
  transform: translateX(100%);
  opacity: 1;
}

.hero-transition-blur .hero-slide {
  transition: opacity 1s ease-in-out, filter 1s ease-in-out;
  filter: blur(20px);
}
.hero-transition-blur .hero-slide.active {
  opacity: 1;
  filter: blur(0);
}

.hero-transition-flip {
  perspective: 1500px;
}
.hero-transition-flip .hero-slide {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transform: rotateY(90deg);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.hero-transition-flip .hero-slide.active {
  opacity: 1;
  transform: rotateY(0deg);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,51,102,0.15) 0%, rgba(0,51,102,0.4) 40%, rgba(0,51,102,0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 25vh;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  color: var(--white);
  z-index: 2;
  position: relative;
  text-align: center;
}

.hero-content h1 {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h1 span {
  color: var(--accent-gold);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 35px;
  max-width: 550px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero {
  padding: 22px 55px !important;
  font-size: 20px !important;
  letter-spacing: 2px !important;
  border-radius: 6px !important;
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.btn-hero i {
  font-size: 22px;
  transition: transform 0.4s ease;
}

.btn-hero:hover i {
  transform: translateX(4px) scale(1.15);
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-hero:hover::after {
  left: 100%;
}

.btn-hero-apply {
  background: linear-gradient(135deg, #8b2332, #a92835) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 30px rgba(139,35,50,0.5), 0 0 0 0 rgba(139,35,50,0) !important;
}

.btn-hero-apply:hover {
  background: linear-gradient(135deg, #a92835, #c0303f) !important;
  box-shadow: 0 12px 40px rgba(139,35,50,0.6), 0 0 20px rgba(169,40,53,0.3) !important;
  transform: translateY(-3px);
}

.btn-hero-contact {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.7) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
  backdrop-filter: blur(4px);
}

.btn-hero-contact:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #fff !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.1) !important;
  transform: translateY(-3px);
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #8b2332;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary:not(.nav-apply-btn)::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -150%;
  width: 80%;
  height: calc(100% + 4px);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.1) 80%, transparent 100%);
  transform: skewX(-25deg);
  z-index: 1;
  pointer-events: none;
}
.btn-primary:not(.nav-apply-btn):hover::before {
  animation: btnGloss 0.8s ease-in-out;
}

.btn-primary:hover {
  background: #0d2240;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13,34,64,0.4);
}

.btn-secondary {
  background: #8b2332;
  color: #fff;
  border: 2px solid #8b2332;
}

.btn-secondary:hover {
  background: #0d2240;
  border-color: #0d2240;
  color: #fff;
  transform: translateY(-2px);
}

.btn-gold {
  background: #8b2332;
  color: #fff;
}

.btn-gold:hover {
  background: #0d2240;
  transform: translateY(-2px);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots .dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section-gray {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.section-dark .section-title h2 {
  color: var(--white);
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--accent-red);
  margin: 0 auto 15px;
}

.section-title p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.7);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-bottom-color: var(--accent-red);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
  color: var(--white);
}

.service-card h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid var(--accent-red);
  border-radius: 8px;
  z-index: -1;
}

.about-content h2 {
  font-size: 36px;
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-weight: 800;
}

.about-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary-dark);
}

.about-feature .check {
  color: var(--accent-red);
  font-size: 18px;
}

.stats-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: var(--white);
}

.stat-item h3 {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,51,102,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.testimonials-section {
  background: var(--light-gray);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 80px;
  color: var(--accent-red);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  font-size: 16px;
  color: var(--primary-dark);
}

.testimonial-author-info span {
  font-size: 13px;
  color: var(--accent-red);
}

.stars {
  color: var(--accent-gold);
  font-size: 14px;
  margin-bottom: 15px;
}

.cta-section {
  background: linear-gradient(135deg, var(--accent-red), #a92835);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-cta-primary {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: #8b2332;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-buttons .btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: #f0f0f0;
  color: #8b2332;
}

.cta-buttons .btn-cta-outline {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid white;
  color: white;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-buttons .btn-cta-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.15);
  color: white;
}

.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-detail .text h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.contact-detail .text p {
  margin: 0;
  font-size: 14px;
}

.contact-form {
  background: var(--light-gray);
  padding: 40px;
  border-radius: 8px;
}

.contact-form h3 {
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

footer {
  background: var(--primary-dark);
  color: var(--white);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid.footer-grid-3col {
  grid-template-columns: 2fr 1fr 1.3fr;
}

.footer-col-about p {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.footer-col-about p::-webkit-scrollbar {
  width: 4px;
}

.footer-col-about p::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.footer-col-links {
  display: flex;
  align-items: stretch;
}

.footer-col-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.footer-col-links ul li {
  margin: 0 !important;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.footer-col-links ul li a {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: block;
  padding: 2px 0;
  line-height: 1.3;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 14px;
}

.footer-col address {
  font-style: normal;
}

.footer-col .footer-company-name {
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-col ul li {
  margin-bottom: 2px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-action-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.footer-call-btn {
  background: #8b2332 !important;
  color: #fff !important;
}

.footer-call-btn:hover {
  background: #6a1a27 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 35, 50, 0.4);
  color: #fff !important;
}

.footer-directions-btn {
  background: #0d2240 !important;
  color: #fff !important;
  border: none !important;
}

.footer-directions-btn:hover {
  background: #152230 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 34, 64, 0.4);
  color: #fff !important;
}

.footer-legal-accordions {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-bottom: 0;
  display: none;
}

.footer-accordion {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.footer-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  list-style: none;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.footer-accordion summary::-webkit-details-marker {
  display: none;
}

.footer-accordion summary::marker {
  display: none;
  content: '';
}

.footer-accordion summary:hover {
  background: rgba(255,255,255,0.06);
}

.footer-accordion-icon {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.footer-accordion[open] .footer-accordion-icon {
  transform: rotate(180deg);
}

.footer-accordion-body {
  padding: 0 16px 16px;
}

.footer-accordion-body p {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-accordion-body p:last-child {
  margin-bottom: 0;
}

.footer-accordion-body a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-ehl-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: 0.3s;
}

.footer-social a:hover {
  background: var(--accent-red);
  transform: translateY(-3px);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.mobile-nav-close {
  font-size: 32px;
  cursor: pointer;
  color: var(--text-dark);
  background: rgba(0,0,0,0.05);
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.mobile-nav ul {
  padding: 10px 0;
}

.mobile-nav ul li a {
  display: block;
  padding: 14px 25px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li a:hover {
  color: var(--accent-red);
  background: var(--light-gray);
}

.mobile-nav .dropdown {
  padding-left: 20px;
}

.mobile-nav .dropdown li a {
  font-weight: 400;
  font-size: 14px;
}

.mobile-dropdown-toggle {
  cursor: pointer;
}

.mobile-nav .sub-menu {
  display: none;
  padding-left: 15px;
}

.mobile-nav .sub-menu.open {
  display: block;
}

.page-header {
  background: linear-gradient(180deg, #1a2332 0%, #1e2d3d 100%);
  padding: 100px 0 44px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(139,26,26,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.page-header .breadcrumb {
  font-size: 14px;
  margin-top: 12px;
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a {
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.2s;
}

.page-header .breadcrumb a:hover {
  color: #e0c068;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--accent-red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9991;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}

@media (max-width: 992px) {
  .scroll-top {
    bottom: 90px;
  }
}

.scroll-top:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

.phone-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 100;
}

.phone-float a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-red);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(192,57,43,0.4);
  transition: 0.3s;
}

.phone-float a:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

.va-loan-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.va-loan-type-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.va-loan-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.va-loan-type-card .card-body {
  padding: 30px;
}

.va-loan-type-card h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.va-loan-type-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: var(--accent-red);
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
}

.process-step h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
}

@media (max-width: 1024px) {
  nav ul li a {
    padding: 15px 12px;
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .hero {
    height: 100vh;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,51,102,0.7) 0%, rgba(0,51,102,0.4) 40%, rgba(0,0,0,0.3) 100%);
    padding: 0 20px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .btn-hero {
    padding: 16px 32px !important;
    font-size: 16px !important;
    letter-spacing: 1.5px !important;
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-slide img {
    object-position: center center;
  }

  .page-header {
    padding: 90px 0 30px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .services-grid,
  .testimonials-grid,
  .va-loan-types {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    padding-top: 40px;
    padding-bottom: 70px;
  }

  .footer-grid,
  .footer-grid.footer-grid-3col {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col-about p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 0;
    list-style: none;
  }

  .footer-col ul li {
    margin-bottom: 0;
  }

  .footer-col ul li a {
    font-size: 15px;
    padding: 4px 0;
    display: inline-block;
  }

  .footer-col h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .footer-col address p {
    font-size: 15px;
    line-height: 1.6;
  }

  .footer-action-buttons {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 20px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-action-btn {
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 12px;
    min-height: 54px;
  }

  .footer-call-btn {
    font-size: 17px;
    min-height: 58px;
  }

  .footer-legal-accordions {
    display: block;
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .footer-accordion {
    margin-bottom: 10px;
  }

  .footer-accordion summary {
    padding: 16px 18px;
    font-size: 15px;
  }

  .footer-accordion-body {
    padding: 4px 18px 18px;
  }

  .footer-accordion-body p {
    font-size: 14px;
    line-height: 1.8;
  }

  .footer-bottom {
    padding: 16px 15px;
    font-size: 12px;
    line-height: 1.6;
  }

  .cta-section h2 {
    font-size: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item h3 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 6px 12px;
    gap: 8px;
  }

  .logo-img {
    height: 36px;
  }

  .hamburger {
    padding: 8px;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
  }

  .hero {
    height: 100vh;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .btn-hero {
    padding: 14px 24px !important;
    font-size: 14px !important;
  }

  .hero-buttons {
    max-width: 280px;
  }

  .btn {
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .phone-float {
    bottom: 15px;
    left: 15px;
  }

  .phone-float a span {
    display: none;
  }

  .page-header {
    padding: 80px 15px 20px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title p {
    font-size: 14px;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .cta-section p {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .cr-thumb {
    width: 100px !important;
  }

  .stat-item h3 {
    font-size: 28px;
  }

  footer {
    padding-top: 30px;
  }

  .footer-grid,
  .footer-grid.footer-grid-3col {
    gap: 22px;
    padding-bottom: 20px;
  }

  .footer-col-about p {
    font-size: 14px;
  }

  .footer-col h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-col address p {
    font-size: 14px;
  }

  .footer-action-buttons {
    max-width: 100%;
  }

  .footer-action-btn {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 50px;
    border-radius: 10px;
  }

  .footer-call-btn {
    font-size: 16px;
    min-height: 54px;
  }

  .footer-legal-accordions {
    padding-top: 20px;
  }

  .footer-accordion summary {
    padding: 13px 14px;
    font-size: 14px;
  }

  .footer-accordion-body {
    padding: 2px 14px 14px;
  }

  .footer-accordion-body p {
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-bottom {
    padding: 14px 12px;
    font-size: 11px;
  }
}

.theme-toggle {
  background: rgba(30, 45, 61, 0.06);
  border: 1.5px solid rgba(30, 45, 61, 0.12);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #5a6a7a;
  transition: all 0.25s;
  padding: 0;
}

.theme-toggle:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.08);
  transform: rotate(15deg);
}

.theme-toggle .light-icon {
  display: none;
}

.mobile-theme-toggle {
  display: none;
}

@media (max-width: 992px) {
  .mobile-theme-toggle {
    display: flex;
  }
}

html.dark-mode {
  --primary-dark: #e8ecf0;
  --primary-blue: #8bb0d0;
  --accent-red: #8b2332;
  --accent-gold: #d4b85c;
  --accent-maroon: #8b2332;
  --white: #1c2130;
  --light-gray: #252a3a;
  --text-dark: #e4e8ee;
  --text-light: #a0aab8;
  --body-bg: #0f1320;
  --card-bg: #1c2130;
  --section-alt-bg: #161b28;
  --border-color: #2e3548;
  --header-bg: #1c2130;
  --footer-bg: #0a0e18;
  --dropdown-bg: #222840;
  --input-bg: #252a3a;
  --overlay-dark: rgba(0,0,0,0.7);
}

html.dark-mode .theme-toggle .dark-icon {
  display: none;
}

html.dark-mode .theme-toggle .light-icon {
  display: inline;
  color: var(--accent-gold);
}

html.dark-mode .theme-toggle {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
}

html.dark-mode .theme-toggle:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 184, 92, 0.1);
}

html.dark-mode header {
  background: rgba(10, 14, 30, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: none;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

html.dark-mode header::after {
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-gold) 50%, var(--accent-red) 100%);
  opacity: 0.5;
}

html.dark-mode .logo-img {
  filter: brightness(0) invert(1);
}

html.dark-mode .mobile-nav-header .logo-img,
html.dark-mode .mobile-nav-header img {
  filter: brightness(0) invert(1);
}

html.dark-mode nav ul li a {
  color: #dfe6f0;
}

html.dark-mode nav ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

html.dark-mode nav ul li.active a {
  color: var(--accent-gold);
}

html.dark-mode nav ul li .dropdown {
  background: rgba(20, 26, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top-color: var(--accent-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

html.dark-mode nav ul li .dropdown li a {
  border-bottom-color: rgba(255,255,255,0.05);
  color: #b8c4d6;
}

html.dark-mode nav ul li .dropdown li a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

html.dark-mode .hamburger span {
  background: #dfe6f0;
}

html.dark-mode .mobile-nav {
  background: #111827;
  box-shadow: -5px 0 30px rgba(0,0,0,0.7);
}

html.dark-mode .mobile-nav-header {
  border-bottom-color: rgba(255,255,255,0.08);
}

html.dark-mode .mobile-nav-close {
  color: #dfe6f0;
  background: rgba(255,255,255,0.1);
}

html.dark-mode .mobile-nav ul li a {
  color: #cbd3e0;
  border-bottom-color: #2e3548;
}

html.dark-mode .mobile-nav ul li a:hover {
  color: var(--accent-gold);
  background: rgba(212,184,92,0.06);
}

html.dark-mode .service-card {
  background: #1c2130;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border-bottom-color: transparent;
}

html.dark-mode .service-card:hover {
  border-bottom-color: var(--accent-gold);
}

html.dark-mode .service-card h3 {
  color: #e4e8ee;
}

html.dark-mode .service-card p {
  color: #a0aab8;
}

html.dark-mode .page-header {
  background: linear-gradient(180deg, #0f1520 0%, #0d1a2a 100%);
}

html.dark-mode .section {
  background: #0f1320;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: #e4e8ee;
}

html.dark-mode p,
html.dark-mode li,
html.dark-mode span,
html.dark-mode label,
html.dark-mode td,
html.dark-mode th {
  color: #c0c8d4;
}

html.dark-mode a {
  color: #c0c8d4;
}

html.dark-mode .contact-detail .text p,
html.dark-mode .contact-info p {
  color: #c0c8d4;
}

html.dark-mode .section-gray {
  background: #141828;
}

html.dark-mode .section-dark {
  background: #0a0e18;
}

html.dark-mode .cta-section {
  background: linear-gradient(135deg, #1a1028, #2a1525);
}

html.dark-mode .cta-section h2 {
  color: #fff;
}

html.dark-mode .cta-section p {
  color: rgba(255,255,255,0.8);
}

html.dark-mode .section-title h2 {
  color: #e4e8ee;
}

html.dark-mode .section-title p {
  color: #a0aab8;
}

html.dark-mode .about-content h2 {
  color: #e4e8ee;
}

html.dark-mode .about-content p {
  color: #a0aab8;
}

html.dark-mode .about-feature {
  color: #cbd3e0;
}

html.dark-mode footer {
  background: #0a0e18;
  border-top: 1px solid #1c2130;
}

html.dark-mode .footer-col a:hover,
html.dark-mode .footer-col ul li a:hover {
  color: #ffffff;
}

html.dark-mode .footer-bottom {
  border-top-color: #1c2130;
}

html.dark-mode .testimonial-card {
  background: #1c2130;
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

html.dark-mode .testimonial-card p {
  color: #a0aab8;
}

html.dark-mode .testimonial-author-info h4 {
  color: #e4e8ee;
}

html.dark-mode .testimonials-section {
  background: #141828;
}

html.dark-mode .contact-form {
  background: #1c2130;
}

html.dark-mode .contact-form h3 {
  color: #e4e8ee;
}

html.dark-mode .contact-info h3 {
  color: #e4e8ee;
}

html.dark-mode .contact-detail .text h4 {
  color: #e4e8ee;
}

html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  background: #252a3a;
  color: #e4e8ee;
  border-color: #2e3548;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,184,92,0.15);
}

html.dark-mode .btn-primary {
  background: #8b2332;
  color: #fff;
}

html.dark-mode .btn-primary:hover {
  background: #0d2240;
}

html.dark-mode .btn-secondary {
  background: #8b2332;
  border-color: #8b2332;
  color: #fff;
}

html.dark-mode .btn-secondary:hover {
  background: #0d2240;
  border-color: #0d2240;
  color: #fff;
}

html.dark-mode .btn-gold {
  background: #8b2332;
  color: #fff;
}

html.dark-mode .btn-gold:hover {
  background: #0d2240;
}

html.dark-mode .stat-item {
  background: transparent;
}

html.dark-mode .stats-section {
  background: linear-gradient(135deg, #141828, #0a0e18);
}

html.dark-mode .gallery-item {
  background: #1c2130;
}

html.dark-mode .va-loan-type-card {
  background: #1c2130;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

html.dark-mode .va-loan-type-card h3 {
  color: #e4e8ee;
}

html.dark-mode .va-loan-type-card p {
  color: #a0aab8;
}

html.dark-mode .process-step h3 {
  color: #e4e8ee;
}

html.dark-mode .process-step p {
  color: #a0aab8;
}

html.dark-mode .phone-float a {
  background: #8b2332;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

html.dark-mode .phone-float a:hover {
  background: var(--accent-gold);
  color: #0f1320;
}

html.dark-mode .scroll-top {
  background: var(--accent-gold);
  color: #0f1320;
}

html.dark-mode .scroll-top:hover {
  background: #e4c86c;
}

html.dark-mode .lightbox {
  background: rgba(0,0,0,0.95);
}

.dark-bg-section {
  background: var(--primary-dark);
}

html.dark-mode .dark-bg-section {
  background: #0d1a2a !important;
}

html.dark-mode .dark-bg-section h1,
html.dark-mode .dark-bg-section h2,
html.dark-mode .dark-bg-section h3,
html.dark-mode .dark-bg-section p,
html.dark-mode .dark-bg-section span,
html.dark-mode .dark-bg-section label {
  color: #fff;
}

html.dark-mode #contactModalInner,
html.dark-mode .jotform-modal-inner {
  background: #1c2130 !important;
}

html.dark-mode #contactModalInner a {
  color: #e4e8ee !important;
  border-color: #2e3548 !important;
}

html.dark-mode #contactModalInner a:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: var(--accent-gold) !important;
}

html.dark-mode #contactModalInner span[style*="background:#e8f0fe"],
html.dark-mode #contactModalInner span[style*="background:#fef3e0"] {
  background: #252a3a !important;
}

html.dark-mode .cr-thumb {
  background: rgba(255,255,255,0.08) !important;
}

html.dark-mode .team-modal {
  background: rgba(0,0,0,0.8);
}

html.dark-mode .team-modal-content {
  background: #1c2130 !important;
  color: #e4e8ee;
}

html.dark-mode .team-modal-content h2,
html.dark-mode .team-modal-content h3,
html.dark-mode .team-modal-content h4 {
  color: #e4e8ee !important;
}

html.dark-mode .team-modal-content p,
html.dark-mode .team-modal-content li {
  color: #c0c8d4 !important;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
}

.legal-content h2 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-gold);
}

.legal-content h3 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-top: 25px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-dark);
  font-size: 15px;
}

.legal-content ul {
  margin-bottom: 18px;
  padding-left: 25px;
}

.legal-content ul li {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content a {
  color: var(--primary-blue);
  text-decoration: underline;
}

html.dark-mode .legal-content h2,
html.dark-mode .legal-content h3 {
  color: #e4e8ee !important;
  border-bottom-color: var(--accent-gold);
}

html.dark-mode .legal-content p,
html.dark-mode .legal-content li {
  color: #c0c8d4 !important;
}

html.dark-mode .legal-content a {
  color: #5dade2 !important;
}

html.dark-mode .loan-program-card {
  background: #1c2130 !important;
}

html.dark-mode .loan-program-card h3 {
  color: #e4e8ee !important;
}

html.dark-mode .page-header h1 {
  color: #e4e8ee !important;
}

html.dark-mode .page-header p,
html.dark-mode .page-header .breadcrumb {
  color: #a0aab8 !important;
}

html.dark-mode .page-header .breadcrumb a {
  color: var(--accent-gold) !important;
}

html.dark-mode .section {
  color: #c0c8d4;
}

html.dark-mode .section-gray {
  color: #c0c8d4;
}

html.dark-mode strong {
  color: #e4e8ee;
}

html.dark-mode .va-loan-type-card i,
html.dark-mode .service-card i {
  color: #d4605e !important;
}

html.dark-mode .process-step .step-number {
  background: #252a3a;
  color: var(--accent-gold);
}

html.dark-mode .stat-item h3 {
  color: #e4e8ee !important;
}

html.dark-mode .stat-item p {
  color: #a0aab8 !important;
}

html.dark-mode .gallery-item h3 {
  color: #e4e8ee;
}

html.dark-mode .gallery-item p {
  color: #a0aab8;
}

html.dark-mode .about-feature i {
  color: var(--accent-gold);
}

html.dark-mode .about-image-wrapper {
  border-color: #2e3548;
}

html.dark-mode .contact-detail i {
  color: var(--accent-gold);
}

html.dark-mode hr {
  border-color: #2e3548;
}

html.dark-mode table {
  border-color: #2e3548;
}

html.dark-mode table th {
  background: #1c2130;
  color: #e4e8ee;
  border-color: #2e3548;
}

html.dark-mode table td {
  border-color: #2e3548;
  color: #c0c8d4;
}

html.dark-mode blockquote {
  border-left-color: var(--accent-gold);
  background: #1c2130;
  color: #c0c8d4;
}

html.dark-mode .video-card {
  background: #1c2130 !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

html.dark-mode .video-card h3,
html.dark-mode .video-card h4 {
  color: #e4e8ee !important;
}

html.dark-mode .video-card p,
html.dark-mode .video-card span {
  color: #a0aab8 !important;
}

html.dark-mode .reviews-cta .btn-gold {
  color: #0f1320 !important;
}

html.dark-mode [style*="color:#1e2d3d"],
html.dark-mode [style*="color: #1e2d3d"] {
  color: #e4e8ee !important;
}

html.dark-mode [style*="color:#666"],
html.dark-mode [style*="color: #666"],
html.dark-mode [style*="color:#444"],
html.dark-mode [style*="color: #444"],
html.dark-mode [style*="color:#555"],
html.dark-mode [style*="color: #555"],
html.dark-mode [style*="color:#333"],
html.dark-mode [style*="color: #333"] {
  color: #a0aab8 !important;
}

html.dark-mode .trust-bar {
  background: #1c2130;
  border-bottom-color: #2e3548;
}

html.dark-mode .elfsight-widget-wrap {
  filter: invert(0.85) hue-rotate(180deg) brightness(1.1);
  border-radius: 12px;
  overflow: hidden;
}

html.dark-mode .elfsight-widget-wrap img {
  filter: invert(1) hue-rotate(180deg);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes slideInDivider {
  from { width: 0; }
  to { width: 60px; }
}

.anim-hidden {
  opacity: 0;
}

.anim-fade-up {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fade-left {
  animation: fadeInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fade-right {
  animation: fadeInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fade-in {
  animation: fadeIn 0.7s ease forwards;
}

.anim-scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }

.hero-title-anim {
  animation: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-content h1:not(.hero-title-anim) {
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-word {
  display: inline-block;
  opacity: 0;
  color: #ffffff;
  transform: translateY(40px) scale(0.9);
  animation: heroWordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             heroColorShimmer 4s ease-in-out infinite;
  animation-delay: calc(0.3s + var(--i) * 0.15s), calc(1.2s + var(--i) * 0.3s);
}
.hero-word.hero-gold {
  animation: heroWordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             heroGoldShimmer 3s ease-in-out infinite;
  animation-delay: calc(0.3s + var(--i) * 0.15s), calc(1.2s + var(--i) * 0.3s);
}
@keyframes heroWordIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes heroColorShimmer {
  0%, 100% { color: #ffffff; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
  50% { color: #e0e8ff; text-shadow: 0 0 30px rgba(200,220,255,0.3); }
}
@keyframes heroGoldShimmer {
  0%, 100% { color: #c9a84c; text-shadow: 0 0 20px rgba(201,168,76,0.2); }
  50% { color: #f0d68a; text-shadow: 0 0 30px rgba(240,214,138,0.5); }
}

.hero-buttons {
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.section-title .divider.anim-visible {
  animation: slideInDivider 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stat-item.anim-visible h3 {
  animation: countPulse 0.6s ease 0.3s both;
}

.page-header h1 {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.page-header p,
.page-header .breadcrumb {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.btn:not(.btn-sm) {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:not(.btn-sm):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn:not(.btn-sm):active {
  transform: translateY(0);
}

.service-card,
.va-loan-type-card,
.testimonial-card,
.gallery-item,
.loan-program-card,
.video-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.service-card:hover,
.va-loan-type-card:hover,
.testimonial-card:hover,
.loan-program-card:hover,
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-fade-down {
  animation: fadeInDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-blur-in {
  animation: blurIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes blurIn {
  from { opacity: 0; filter: blur(10px); transform: translateY(20px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-bg);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

body {
  animation: pageEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-apply-float {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(255,255,255,0.98) 70%, rgba(255,255,255,0));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-apply-float.visible {
  transform: translateY(0);
}

.mobile-apply-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #a12a3a 0%, #8b2332 50%, #6e1a28 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(139, 35, 50, 0.4);
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-apply-float a:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(139, 35, 50, 0.5);
}

.mobile-apply-float a i {
  font-size: 13px;
}

html.dark-mode .mobile-apply-float {
  background: linear-gradient(to top, rgba(15,19,32,0.98) 70%, rgba(15,19,32,0));
}

html.dark-mode .mobile-apply-float a {
  box-shadow: 0 4px 20px rgba(139, 35, 50, 0.6);
}

@media (max-width: 992px) {
  .mobile-apply-float {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anim-hidden { opacity: 1; }
  .anim-fade-up,
  .anim-fade-left,
  .anim-fade-right,
  .anim-fade-down,
  .anim-fade-in,
  .anim-blur-in,
  .anim-scale-in { animation: none; opacity: 1; transform: none; filter: none; }
  .hero-content h1,
  .hero-buttons,
  .page-header h1,
  .page-header p,
  .page-header .breadcrumb { animation: none; opacity: 1; transform: none; }
  body { animation: none; }
  .page-transition-overlay { display: none; }
  .mobile-apply-float { transform: translateY(0); }
}

.global-sound-controls {
    position: absolute;
    top: 80px;
    right: 30px;
    z-index: 10;
    display: none;
    align-items: center;
    gap: 12px;
    transition: opacity 1s ease;
    opacity: 1;
}
.global-sound-controls.fade-out {
    opacity: 0;
    pointer-events: none;
}
.global-sound-btn {
    background: #47b2ff;
    color: #fff;
    padding: 16px 34px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 17px;
    border: none;
    border-bottom: 5px solid #2d8fd4;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.global-sound-btn:hover {
    background: #5cbfff;
    transform: translateY(-2px);
}
.global-sound-btn.unmuted {
    background: #3cc970;
    border-bottom-color: #2ba55a;
}
.global-sound-btn.unmuted:hover {
    background: #4ad87e;
}
.global-sound-btn i { margin-right: 2px; }
html.dark-mode .global-sound-btn {
    background: #6fc6ff;
    border-bottom-color: #4ba8e0;
    color: #fff;
}
html.dark-mode .global-sound-btn:hover {
    background: #85d0ff;
}
html.dark-mode .global-sound-btn.unmuted {
    background: #3cc970;
    border-bottom-color: #2ba55a;
    color: #fff;
}
html.dark-mode .global-sound-btn.unmuted:hover {
    background: #4ad87e;
}
html.dark-mode .global-sound-btn i,
html.dark-mode .global-sound-btn span {
    color: #fff !important;
}
.global-volume-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 10px;
}
.global-volume-wrap i {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}
.global-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 130px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.global-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #47b2ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.global-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #47b2ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .global-sound-controls {
        top: 75px;
        right: 10px;
        left: auto;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    .global-sound-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-bottom-width: 3px;
    }
    .global-volume-wrap {
        padding: 8px 14px;
    }
    .global-volume-slider {
        width: 90px;
    }
}

.skip-to-content {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: var(--accent-red);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    z-index: 100000;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

*:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 2px;
}

html.dark-mode *:focus-visible {
    outline-color: var(--accent-gold);
}

.hamburger:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 4px;
    border-radius: 4px;
}

html.dark-mode .hamburger:focus-visible {
    outline-color: var(--accent-gold);
}

.page-videos-section {
    padding: 70px 0;
    background: #f8f9fa;
}
html.dark-mode .page-videos-section {
    background: #111827;
}
.page-videos-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-videos-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1e2d3d;
    margin-bottom: 8px;
}
.page-videos-header h2 i {
    color: #8B1A1A;
    margin-right: 10px;
}
html.dark-mode .page-videos-header h2 {
    color: #e8e8e8;
}
.page-videos-header p {
    color: #666;
    font-size: 15px;
}
html.dark-mode .page-videos-header p {
    color: #9ca3af;
}
.page-video-player {
    max-width: 800px;
    margin: 0 auto 30px;
}
.page-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
html.dark-mode .page-video-embed {
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.page-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.page-video-now-playing {
    text-align: center;
    padding: 14px 0;
    font-weight: 700;
    font-size: 16px;
    color: #1e2d3d;
}
html.dark-mode .page-video-now-playing {
    color: #e8e8e8;
}
.page-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.page-video-thumb {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.page-video-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.page-video-thumb.active {
    border-color: #8B1A1A;
    box-shadow: 0 4px 15px rgba(139,26,26,0.25);
}
html.dark-mode .page-video-thumb {
    background: #1e293b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
html.dark-mode .page-video-thumb:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
html.dark-mode .page-video-thumb.active {
    border-color: #c0392b;
}
.page-video-thumb .thumb-img {
    width: 100%;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-color: #1e2d3d;
    position: relative;
}
.page-video-thumb .thumb-placeholder {
    background: linear-gradient(135deg, #1e2d3d, #2c4157);
}
.page-video-thumb .thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(139,26,26,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}
.page-video-thumb:hover .thumb-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.page-video-thumb .thumb-title {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1e2d3d;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark-mode .page-video-thumb .thumb-title {
    color: #e0e0e0;
}
@media (max-width: 768px) {
    .page-videos-header h2 {
        font-size: 24px;
    }
    .page-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .page-video-thumb .thumb-title {
        font-size: 12px;
        padding: 8px 10px;
    }
}
