/* Brave Group Core Design System (bravevision.css) - Mobile Anchored */
:root {
  --png-red: #d11c1c;
  --png-black: #000000;
  --png-yellow: #fcd50b;
  --gold-color: #ffd700;
  --gold-hover: #e0b400;
  --dark-red: #8b0000;
  --primary-color: var(--png-black);
  --secondary-color: var(--png-yellow);
  --accent-color: var(--png-red);
  --text-color: #333;
  --light-text-color: #ffffff;
  --background-color: #ffffff;
  --card-background: #f9f9f9;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --menu-btn-bg: #2c2c2c;
  --menu-btn-hover: #3a3a3a;
  --forest-green: #228B22;
  --dark-green: #006400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Critical for mobile anchoring */
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  font-size: 1rem;
  /* Mobile anchoring improvements */
  position: relative;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Critical mobile anchoring support */
@supports (position: sticky) {
  .main-header {
    position: -webkit-sticky;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

p {
  font-weight: 400;
  font-size: 1em;
  line-height: 1.7;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.625rem;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 0.25rem;
  background-color: var(--secondary-color);
}

.section-description {
  text-align: center;
  max-width: 43.75rem;
  margin: 0 auto 3.125rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

/* Announcement Stripe - POSITIONED BELOW FIXED HEADER */
.announcement-stripe {
  background: linear-gradient(90deg, 
    var(--png-black) 0%, 
    var(--forest-green) 35%, 
    var(--gold-color) 70%, 
    var(--png-black) 100%);
  background-size: 300% 100%;
  animation: stripeGradient 8s ease infinite;
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  /* Position below fixed header */
  position: sticky;
  top: 80px; /* Height of the header */
  z-index: 999;
  margin-top: 80px; /* Push content down to account for fixed header */
}

.scrolling-text {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  animation: scrollText 15s linear infinite;
  padding: 0 1.25rem;
}

.announcement-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-text-color);
  text-shadow: 0.1875rem 0.1875rem 0.375rem rgba(0, 0, 0, 0.8);
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
}

.announcement-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -0.625rem;
  right: -0.625rem;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  animation: shineEffect 3s ease-in-out infinite;
}

/* MAIN HEADER - FIXED POSITION */
.main-header {
  background-color: var(--background-color);
  border-bottom: 1px solid #eee;
  position: fixed; /* Changed to fixed */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
  /* Improved mobile anchoring */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1.25rem;
  gap: 1.25rem;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
}

.header-logo {
  height: 3.125rem;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Navigation Menu Buttons */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.3125rem;
}

.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--light-text-color);
  padding: 0.75rem 1.25rem;
  position: relative;
  min-width: auto;
  text-align: center;
  transition: all var(--transition-speed);
  background-color: var(--menu-btn-bg);
  border-radius: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2), 0 0 0.9375rem rgba(255, 255, 255, 0.1) inset;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--light-text-color);
  background-color: var(--menu-btn-hover);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.25), 0 0 1.25rem rgba(255, 255, 255, 0.15) inset;
}

.main-nav a::after {
  display: none;
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--menu-btn-bg);
  list-style: none;
  min-width: 13.75rem;
  box-shadow: 0 0.25rem 0.9375rem var(--shadow-color);
  border-radius: 0.625rem;
  padding: 0.625rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.625rem);
  transition: opacity var(--transition-speed), transform var(--transition-speed);
  z-index: 1002;
  display: none;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.dropdown-menu.active,
.dropdown-menu.visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 0.625rem 1.125rem;
  text-align: left;
  display: flex;
  min-width: unset;
  border-radius: 0;
  box-shadow: none;
  justify-content: flex-start;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background-color: var(--menu-btn-hover);
  transform: translateX(0.3125rem);
}

.has-dropdown .fa-chevron-down {
  margin-left: 0.375rem;
  font-size: 0.7rem;
  transition: transform var(--transition-speed);
}

.has-dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

/* Hamburger Menu Button */
.hamburger-button {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1003;
  /* Improved touch target for mobile */
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.hamburger-button .double-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--menu-btn-bg);
  border-radius: 0.375rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hamburger-button .double-border::before {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  right: 0.125rem;
  bottom: 0.125rem;
  border: 1px solid var(--menu-btn-bg);
  border-radius: 0.25rem;
  pointer-events: none;
}

.hamburger-button .hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.hamburger-button .hamburger-menu span {
  display: block;
  height: 0.1875rem;
  width: 1.25rem;
  background-color: var(--menu-btn-bg);
  margin: 0.125rem 0;
  transition: all 0.3s ease;
  border-radius: 0.125rem;
}

.hamburger-button.active .hamburger-menu span:nth-child(1) {
  transform: translateY(0.4375rem) rotate(45deg);
}

.hamburger-button.active .hamburger-menu span:nth-child(2) {
  opacity: 0;
}

.hamburger-button.active .hamburger-menu span:nth-child(3) {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

/* Close Mobile Menu Button - FIXED POSITION */
.close-mobile-menu {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--png-red);
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
  /* Improved touch target for mobile */
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.close-mobile-menu .double-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--light-text-color);
  border-radius: 0.375rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-mobile-menu .double-border::before {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  right: 0.125rem;
  bottom: 0.125rem;
  border: 1px solid var(--light-text-color);
  border-radius: 0.25rem;
  pointer-events: none;
}

.close-mobile-menu i {
  color: var(--light-text-color);
  font-size: 1.4rem;
  font-weight: bold;
}

/* Hero Section with Text Background - ADJUSTED FOR FIXED HEADER */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 31.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text-color);
  background: linear-gradient(45deg, var(--png-black) 0%, var(--png-red) 50%, var(--png-yellow) 100%);
  background-size: 200% 200%;
  animation: shinyGradient 5s ease infinite;
  overflow: hidden;
  /* Adjusted padding to account for fixed header and ribbon */
  padding: 6rem 0 4rem 0; /* Increased top padding to account for ribbon */
  margin-top: 0; /* Remove margin-top since ribbon handles spacing */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content-card {
  position: relative;
  z-index: 10;
  /* Increased padding for better mobile spacing */
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.9375rem;
  max-width: 50rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
  animation: fadeInScale 1s ease-in-out;
  /* Ensure proper spacing on mobile */
  margin: 1rem;
}

.hero-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  /* Updated: White text with black border */
  color: #ffffff;
  text-shadow: 
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
    -1px 0px 0 #000000,
     1px 0px 0 #000000,
     0px -1px 0 #000000,
     0px 1px 0 #000000;
}

.animated-text-container .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(-1.25rem);
  animation: wordDrop 0.8s ease-out forwards;
}

.hero-intro {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 37.5rem;
  margin: 0 auto 1.875rem;
  color: #ffffff;
  text-shadow: 
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 1.5625rem;
  background-color: var(--gold-color);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 0.3125rem;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  border: 0.125rem solid transparent;
  min-height: 2.75rem;
}

.hero-button:hover {
  background-color: var(--gold-hover);
  transform: translateY(-0.1875rem);
}

.hero-button.alt {
  background-color: transparent;
  color: var(--light-text-color);
  border-color: var(--light-text-color);
}

.hero-button.alt:hover {
  background-color: var(--light-text-color);
  color: var(--primary-color);
}

/* About Section - IMPROVED SPACING */
.about-section {
  background-color: #f4f4f4;
  /* Increased padding for better separation */
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.75rem;
}

.about-image-container {
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0 0.3125rem 0.9375rem var(--shadow-color);
  max-width: 31.25rem;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

.content-text p {
  margin-bottom: 0.9375rem;
}

.content-text ul {
  margin: 0.9375rem 0;
  padding-left: 1.25rem;
}

.content-text ul li {
  margin-bottom: 0.5rem;
}

.impact-areas h3 {
  text-align: center;
  margin-bottom: 1.875rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.625rem;
}

.impact-areas h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.75rem;
  height: 0.1875rem;
  background-color: var(--accent-color);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 1.875rem;
}

.impact-item {
  background-color: var(--card-background);
  padding: 1.875rem;
  border-radius: 0.625rem;
  text-align: center;
  box-shadow: 0 0.3125rem 0.9375rem var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-item:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.impact-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.9375rem;
}

.impact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
}

/* Division Section - FIXED SPACING */
.division-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3.125rem;
  position: relative;
  z-index: 1;
}

.division-card {
  background-color: var(--card-background);
  border-radius: 0.625rem;
  box-shadow: 0 0.3125rem 0.9375rem var(--shadow-color);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(1.25rem);
  color: var(--text-color);
}

.division-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out forwards;
}

.division-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.5rem 0.9375rem rgba(0, 0, 0, 0.2);
}

.division-card-img-container {
  display: none;
}

.card-content {
  padding: 0.9375rem;
}

.card-icon {
  font-size: 2rem;
  color: var(--gold-color);
  margin-bottom: 0.625rem;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3125rem;
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.8rem;
  color: var(--text-color);
  margin-bottom: 0.9375rem;
}

.division-btn,
.moreAboutUs {
  display: inline-block;
  padding: 0.5rem 0.625rem;
  font-size: 0.8rem;
  color: var(--light-text-color);
  font-weight: 600;
  border-radius: 0.3125rem;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(209, 28, 28, 0.9) 50%, rgba(252, 213, 11, 0.9) 100%);
  background-size: 200% 200%;
  animation: shinyGradient 5s ease infinite;
  min-height: 2.25rem;
}

.division-btn:hover,
.moreAboutUs:hover {
  background: var(--gold-color);
  color: var(--primary-color);
  transform: translateY(-0.1875rem);
}

.division-btn i,
.moreAboutUs i {
  margin-left: 0.3125rem;
  transition: transform var(--transition-speed);
}

.division-btn:hover i,
.moreAboutUs:hover i {
  transform: translateX(0.3125rem);
}

.read-more-btn {
  display: inline-block;
  padding: 0.75rem 1.5625rem;
  font-size: 1rem;
  color: var(--light-text-color);
  font-weight: 600;
  border-radius: 0.3125rem;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(209, 28, 28, 0.9) 50%, rgba(252, 213, 11, 0.9) 100%);
  background-size: 200% 200%;
  animation: shinyGradient 5s ease infinite;
  min-height: 2.75rem;
}

.read-more-btn:hover {
  background: var(--gold-color);
  color: var(--primary-color);
  transform: translateY(-0.1875rem);
}

/* About Brave Group Section - IMPROVED SPACING */
.about-group-section {
  background-color: var(--background-color);
  /* Increased padding for better separation */
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.125rem;
}

.service-card {
  background-color: var(--card-background);
  border-radius: 0.625rem;
  box-shadow: 0 0.3125rem 0.9375rem var(--shadow-color);
  padding: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.service-card .service-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  min-width: 15.625rem;
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0;
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.service-card p {
  margin-left: 1.875rem;
  flex-grow: 1;
}

.our-commitment {
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 3.75rem;
  padding: 1.25rem;
  border-left: 0.25rem solid var(--secondary-color);
  background-color: #f0f0f0;
}

#contact-promo {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(homepagebg.jpg) center center fixed;
  background-size: cover;
}

#contact-promo .section-title {
  color: var(--light-text-color);
}

#contact-promo .section-title::after {
  background-color: var(--secondary-color);
}

#contact-promo .section-description {
  color: var(--light-text-color);
  margin-bottom: 1.875rem;
}

.subscribe-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.875rem;
  border-radius: 0.625rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
}

.subscribe-card h3 {
  margin-bottom: 1.25rem;
  color: var(--light-text-color);
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
}

.subscribe-form .form-group {
  display: flex;
  width: 100%;
  max-width: 31.25rem;
}

.subscribe-form input {
  flex-grow: 2;
  padding: 0.75rem 0.9375rem;
  border: none;
  border-radius: 0.3125rem 0 0 0.3125rem;
  font-size: 1rem;
  outline: none;
  min-height: 2.75rem;
}

.subscribe-btn {
  flex-grow: 1;
  padding: 0.75rem 1.5625rem;
  background-color: var(--gold-color);
  color: var(--primary-color);
  border: none;
  border-radius: 0 0.3125rem 0.3125rem 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed);
  min-height: 2.75rem;
}

.subscribe-btn:hover {
  background-color: var(--gold-hover);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3.125rem;
}

.map-container,
.contact-form-card {
  background-color: var(--card-background);
  padding: 0.9375rem;
  border-radius: 0.625rem;
  box-shadow: 0 0.3125rem 0.9375rem var(--shadow-color);
}

.map-container h3,
.contact-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  border-bottom: 0.125rem solid var(--secondary-color);
  padding-bottom: 0.625rem;
}

.map-container iframe {
  width: 100%;
  height: 25rem;
  border-radius: 0.5rem;
}

.contact-form-card {
  padding: 0.9375rem;
}

.form-group {
  margin-bottom: 0.9375rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.3125rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  min-height: 2.75rem;
}

.send-btn {
  display: inline-block;
  width: auto;
  padding: 0.75rem 1.5625rem;
  font-size: 1rem;
  color: var(--light-text-color);
  font-weight: 600;
  border: none;
  border-radius: 0.3125rem;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform var(--transition-speed), color var(--transition-speed);
  background-color: var(--primary-color);
  min-height: 2.75rem;
}

.send-btn:hover {
  background-color: var(--gold-color);
  color: var(--primary-color);
  transform: translateY(-0.1875rem);
}

footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding-top: 3.75rem;
  font-size: 0.9rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--secondary-color);
}

.footer-section p {
  margin-bottom: 0.9375rem;
  color: #eee;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.625rem;
}

.footer-section a {
  color: #ccc;
  transition: color var(--transition-speed);
}

.footer-section a:hover {
  color: var(--light-text-color);
}

.social-icons {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9375rem;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text-color);
  font-size: 1.2rem;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  min-height: 2.5rem;
  min-width: 2.5rem;
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-0.1875rem);
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0.3125rem 0;
  font-weight: 300;
}

.developer-credit a {
 color: #ccc;
}

/* === CONTACT FORM STYLES === */
.form-message {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.form-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--png-black), var(--png-red), var(--gold-color));
    opacity: 0.8;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e8 100%);
    color: #155724;
    border-left-color: #28a745;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #fdeff0 100%);
    color: #721c24;
    border-left-color: #dc3545;
    border: 1px solid #f5c6cb;
}

.form-message.sending {
    background: linear-gradient(135deg, #cce7ff 0%, #e3f2fd 100%);
    color: #004085;
    border-left-color: #007bff;
    border: 1px solid #b3d7ff;
}

.form-message i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Loading spinner for send button */
.send-btn.loading {
    position: relative;
    color: transparent;
}

.send-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background-color: #fff5f5;
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background-color: #f0fff4;
}

/* Field error message */
.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
    padding-left: 0.5rem;
}

.contact-info-note {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--gold-color);
}

.contact-info-note p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #495057;
}

.contact-info-note i {
    color: var(--gold-color);
    margin-right: 0.5rem;
}

/* Email client animation */
@keyframes emailFly {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(10px) scale(1.05); }
    100% { transform: translateX(0) scale(1); }
}

.email-sending {
    animation: emailFly 1s ease-in-out;
}

/* === END CONTACT FORM STYLES === */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shinyGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes wordDrop {
  0% {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderPulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.6;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-3.125rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(3.125rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes stripeGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shineEffect {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  /* Adjust base font size for mobile */
  html {
    font-size: 14px;
  }
  
  /* Global Adjustments for spacing */
  .container {
    padding: 0 1.25rem;
    overflow-x: hidden;
  }

  /* Refined Font Sizing for mobile */
  body {
    font-size: 1rem;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
  
  .section-padding {
    padding: 3rem 0; /* Increased mobile padding */
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.9375rem;
    line-height: 1.3;
    margin-top: 1.0rem;
    padding-top: 0.5rem;
  }

  .section-description {
    margin-bottom: 1.875rem;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 100%;
    padding: 0 0.9375rem;
  }

  .announcement-text {
    font-size: 1.3rem;
    letter-spacing: 0.0625rem;
  }
  
  .scrolling-text {
    animation: scrollText 12s linear infinite;
  }
  
  /* Header and Nav */
  .hero-section {
    height: auto;
    /* SIGNIFICANTLY INCREASED PADDING FOR MOBILE */
    padding: 5rem 0; /* Increased from 3.75rem */
    min-height: 25rem;
  }

  .main-header {
    padding: 0.625rem 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* Fixed positioning for mobile */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  /* Announcement Stripe Mobile Adjustment */
  .announcement-stripe {
    top: 70px; /* Adjusted for mobile header height */
    margin-top: 70px; /* Adjusted for mobile */
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  /* Mobile Navigation - Improved anchoring with menu button spacing fix */
  .main-nav {
    position: fixed;
    top: 0;
    right: -18.75rem;
    width: 17.5rem;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background-color: var(--menu-btn-bg);
    /* PUSH MENU BUTTONS DOWN BY 0.8CM (approx 0.8rem) */
    padding: 6rem 1.25rem 1.25rem; /* Increased top padding from 5rem to 6rem */
    box-shadow: -0.3125rem 0 0.9375rem var(--shadow-color);
    transition: right var(--transition-speed) ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    left: auto;
    transform: none;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    /* Additional spacing to ensure red button is fully visible */
    margin-top: 0.8rem; /* Pushes menu buttons down by 0.8cm */
  }
  
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav a {
    padding: 0.75rem 0.9375rem;
    display: block;
    width: 100%;
    min-width: unset;
    text-align: left;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.4;
    min-height: 2.75rem;
  }
  
  .hamburger-button {
    display: flex;
  }
  
  /* Close Mobile Menu Button - ENSURED VISIBILITY */
  .close-mobile-menu {
    display: flex;
    /* Position fixed to ensure it stays visible */
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1004; /* Higher z-index to ensure it's above everything */
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 0.3125rem;
    width: 100%;
  }

  .dropdown-menu li a {
    padding-left: 1.875rem;
    font-size: 0.85rem;
  }

  .has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .hero-content-card {
    /* INCREASED PADDING FOR BETTER MOBILE SPACING */
    padding: 2.5rem 1.5rem;
    width: 90%;
    margin: 1.5rem auto;
  }
  
  .hero-tagline {
    font-size: 2rem;
    /* Updated for mobile: White text with black border */
    color: #ffffff;
    text-shadow: 
      -1px -1px 0 #000000,
       1px -1px 0 #000000,
      -1px  1px 0 #000000,
       1px  1px 0 #000000,
      -1px 0px 0 #000000,
       1px 0px 0 #000000,
       0px -1px 0 #000000,
       0px 1px 0 #000000;
  }
  
  .hero-intro {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 
      -1px -1px 0 #000000,
       1px -1px 0 #000000,
      -1px  1px 0 #000000,
       1px  1px 0 #000000;
  }
  
  .hero-buttons {
    gap: 0.625rem;
    flex-direction: row;
    border-radius: 0.625rem;
  }
  
  .hero-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
  
  .card-content p {
    font-size: 0.85rem;
  }
  
  /* About Section Mobile Spacing Fix */
  .about-section {
    padding: 3rem 0; /* Increased padding for better separation */
    margin-bottom: 1rem; /* Added margin to prevent overlap */
  }
  
  .about-group-section {
    padding: 3rem 0; /* Increased padding for better separation */
    margin-bottom: 1rem; /* Added margin to prevent overlap */
  }
  
  .division-grid {
    margin-top: 2rem; /* Increased spacing from about section */
    padding: 1rem 0; /* Added padding for better separation */
  }

  /* Center footer content for mobile */
  .footer-content {
    text-align: center;
    grid-template-columns: 1fr;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-section ul {
    padding: 0;
  }
  
  /* Fix contact promo background for mobile */
  #contact-promo {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(homepageBG.jpg) center center;
    background-size: cover;
    background-attachment: scroll;
    background-repeat: no-repeat;
  }
  
  .subscribe-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1.25rem;
    margin-top: 1.875rem;
    border-radius: 0.5rem;
  }
  
  .subscribe-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.9375rem;
  }
  
  .subscribe-form {
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
  }
  
  .subscribe-form .form-group {
    width: 100%;
    max-width: 21.875rem;
    display: flex;
  }
  
  .subscribe-form input {
    border-radius: 0.3125rem;
    font-size: 0.9rem;
    padding: 0.625rem 0.75rem;
    width: 60%;
    border-radius: 0.3125rem 0 0 0.3125rem;
  }
  
  .subscribe-btn {
    width: 40%;
    border-radius: 0.3125rem;
    padding: 0.625rem;
    font-size: 0.9rem;
    border-radius: 0 0.3125rem 0.3125rem 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container,
  .contact-form-card {
    margin: 0 0.625rem;
  }
  
  .map-container h3,
  .contact-form-card h3 {
    font-size: 1.5rem;
  }
  
  .contact-form-card {
    padding: 0.9375rem;
  }

  /* Mobile contact form styles */
  .form-message {
    padding: 1rem;
    font-size: 1rem;
    margin: 1rem 0;
  }

  .contact-info-note {
    padding: 0.8rem;
    margin-top: 1rem;
  }

  .contact-info-note p {
    font-size: 0.85rem;
  }
}

/* Small Mobile Devices - Enhanced anchoring */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding: 0 0.9375rem;
  }
  
  .hero-tagline {
    font-size: 1.8rem;
    /* Updated for small mobile: White text with black border */
    color: #ffffff;
    text-shadow: 
      -1px -1px 0 #000000,
       1px -1px 0 #000000,
      -1px  1px 0 #000000,
       1px  1px 0 #000000;
  }
  
  .hero-intro {
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.6rem;
   
  }
  
  .announcement-text {
    font-size: 1.1rem;
  }

  .main-nav {
    width: 100%;
    max-width: 17.5rem;
    right: -100%;
    /* Maintain the 0.8cm push for small devices */
    padding: 5.5rem 1.25rem 1.25rem; /* Adjusted for smaller screens */
  }

  .main-nav.active {
    right: 0;
  }

  .hero-section {
    /* FURTHER INCREASED PADDING FOR VERY SMALL DEVICES */
    padding: 4rem 0;
    min-height: 18.75rem;
  }

  .hero-content-card {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }

  .header-inner {
    padding: 0 0.9375rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 0.5rem;
  }

  .hero-button {
    width: auto;
    max-width: 15.625rem;
    flex: 1;
  }

  /* Announcement Stripe Small Mobile Adjustment */
  .announcement-stripe {
    top: 65px; /* Adjusted for very small screens */
    margin-top: 65px; /* Adjusted for very small screens */
  }

  /* Enhanced section spacing for very small devices */
  .about-section {
    padding: 2.5rem 0;
    margin-bottom: 1.5rem;
  }
  
  .about-group-section {
    padding: 2.5rem 0;
    margin-bottom: 1.5rem;
  }
  
  .division-grid {
    margin-top: 2.5rem;
    padding: 1.5rem 0;
  }

  .division-card,
  .impact-item {
    margin: 0 0.3125rem;
    padding: 1.25rem 0.9375rem;
  }

  .subscribe-form .form-group {
    flex-direction: column;
  }

  .subscribe-form input,
  .subscribe-btn {
    width: 100%;
    border-radius: 0.3125rem;
  }

  .subscribe-form input {
    border-radius: 0.3125rem 0.3125rem 0 0;
  }

  .subscribe-btn {
    border-radius: 0 0 0.3125rem 0.3125rem;
  }

  /* Ensure close button is properly positioned on very small screens */
  .close-mobile-menu {
    top: 1rem;
    right: 1rem;
  }

  /* Small mobile contact form styles */
  .form-message {
    padding: 0.8rem;
    font-size: 0.9rem;
    margin: 0.8rem 0;
  }

  .contact-info-note {
    padding: 0.6rem;
    margin-top: 0.8rem;
  }

  .contact-info-note p {
    font-size: 0.8rem;
  }
}

@media (min-width: 993px) {
  /* Reset base font size for desktop */
  html {
    font-size: 16px;
  }
  
  /* Hamburger and Close button styling */
  .hamburger-button, .close-mobile-menu {
    display: none !important;
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 1.25rem;
  }
  
  .hero-button {
    padding: 0.75rem 1.5625rem;
    font-size: 1rem;
  }
  
  .division-grid {
    display: flex;
    flex-direction: column;
  }
  
  .division-card {
    display: flex;
    flex-direction: row;
    text-align: left;
  }
  
  .division-card:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  .division-card-img-container {
    display: block;
    width: 50%;
    height: 15.625rem;
    overflow: hidden;
  }
  
  .division-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .card-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
  }
  
  .card-content h3 {
    font-size: 1.4rem;
  }
  
  .card-content p {
    font-size: 1rem;
  }
  
  .card-icon {
    font-size: 2.2rem;
  }
  
  .division-btn {
    padding: 0.3125rem 0.625rem;
    font-size: 0.8rem;
  }
  
  .moreAboutUs {
    display: inline-block;
    padding: 0.75rem 1.5625rem;
    font-size: 1rem;
    color: var(--light-text-color);
    font-weight: 600;
    border-radius: 0.3125rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(209, 28, 28, 0.9) 50%, rgba(252, 213, 11, 0.9) 100%);
    background-size: 200% 200%;
    animation: shinyGradient 5s ease infinite;
  }
  
  .moreAboutUs:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-0.1875rem);
  }
  
  .moreAboutUs i {
    margin-left: 0.3125rem;
    transition: transform var(--transition-speed);
  }
  
  .moreAboutUs:hover i {
    transform: translateX(0.3125rem);
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-description {
    font-size: 1.1rem;
  }
  
  #contact-promo {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(100, 10, 10, 0.9) 50%, rgba(150, 120, 10, 0.9) 100%);
    background-size: 200% 200%;
    animation: shinyGradient 5s ease infinite;
    background-attachment: fixed;
  }
  
  .subscribe-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    margin-top: 2.5rem;
  }
  
  .subscribe-form {
    flex-direction: row;
    max-width: 31.25rem;
    margin: 0 auto;
  }
  
  .subscribe-form input {
    border-radius: 0.3125rem 0 0 0.3125rem;
    flex-grow: 2;
  }
  
  .subscribe-btn {
    width: auto;
    border-radius: 0 0.3125rem 0.3125rem 0;
    flex-grow: 1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .send-btn {
    padding: 0.9375rem;
    font-size: 1.1rem;
  }
  
  .main-nav {
    all: unset;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .main-nav ul {
    flex-direction: row;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    text-align: left;
  }
  
  .social-icons {
    justify-content: flex-start;
  }
}