/* 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), visibility var(--transition-speed);
  z-index: 1002;
  display: block;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu.active,
.dropdown-menu.visible {
  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);
}

.dropdown-arrow {
  transition: transform var(--transition-speed);
}

.dropdown-arrow.rotate {
  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;
}

/* NEW HERO TEXT STYLES - OPTIMIZED FOR VIEWPORT FIT */
.building-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.building-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0;
  width: 100%;
  text-align: center;
}

.building-word {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-right: 1.5rem;
  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;
  white-space: nowrap;
  line-height: 1.1;
}

.colored-word {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  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;
  white-space: nowrap;
  line-height: 1.1;
}

.white-text {
  color: #ffffff;
}

.red-text {
  color: var(--png-red);
}

.black-text {
  color: var(--png-black);
  text-shadow: 
    -2px -2px 0 #ffffff,
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff,
    -1px 0px 0 #ffffff,
     1px 0px 0 #ffffff,
     0px -1px 0 #ffffff,
     0px 1px 0 #ffffff;
}

.yellow-text {
  color: var(--png-yellow);
}

/* Hero Section - OPTIMIZED FOR VIEWPORT FIT */
.hero-section {
  position: relative;
  height: calc(100vh - 160px); /* Fill viewport minus header and announcement stripe */
  min-height: 500px; /* Minimum height for smaller screens */
  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;
  padding: 0; /* No padding needed with flex centering */
  margin-top: 0;
}

.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;
  padding: 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;
  margin: 0 auto;
  width: 90%;
}

.hero-tagline {
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-intro {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 37.5rem;
  margin: 0 auto 1.5rem;
  color: #ffffff;
  text-shadow: 
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000;
  line-height: 1.5;
  padding: 0 1rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  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;
  font-size: 1rem;
}

.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);
}

/* Mission, Vision, Values Section */
.mission-vision-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0 4rem;
}

.mv-item {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.mv-item:hover {
  transform: translateY(-5px);
}

.mv-icon {
  font-size: 2.5rem;
  color: var(--gold-color);
  margin-bottom: 1rem;
}

.mv-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.mv-item p {
  color: var(--text-color);
  line-height: 1.6;
}

/* 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: 1.5rem;
  position: relative;
}

.card-icon {
  font-size: 2rem;
  color: var(--gold-color);
  margin-bottom: 0.625rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-content > p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Services List Styling */
.services-list {
  margin: 1.5rem 0;
  text-align: left;
}

.services-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li i {
  color: var(--gold-color);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.division-btn,
.moreAboutUs {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  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;
  margin-top: 1rem;
}

.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);
}

/* Youth Empowerment Section */
#empowerment-section {
  background: linear-gradient(135deg, var(--card-background) 0%, #f0f0f0 100%);
}

.empowerment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.empowerment-card {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.empowerment-card:hover {
  transform: translateY(-5px);
}

.empowerment-icon {
  font-size: 3rem;
  color: var(--gold-color);
  margin-bottom: 1rem;
}

.empowerment-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.empowerment-card p {
  color: var(--text-color);
  line-height: 1.6;
}

/* 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: 2rem;
  border-radius: 0.625rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
}

.subscribe-card h3 {
  margin-bottom: 1rem;
  color: var(--light-text-color);
}

.subscribe-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.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: 1.5rem;
  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: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.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;
  background-color: white;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.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;
  width: 100%;
}

.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 select,
.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 select,
.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 - MOBILE OPTIMIZATION */
  .hero-section {
    height: calc(100vh - 140px); /* Mobile optimized: viewport minus header and announcement */
    min-height: 400px; /* Reduced minimum height for mobile */
    padding: 1rem 0; /* Add small padding for mobile */
  }

  .main-header {
    padding: 0.5rem 0; /* Reduced padding for mobile */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* Fixed positioning for mobile */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px; /* Reduced header height for mobile */
  }

  /* Announcement Stripe Mobile Adjustment */
  .announcement-stripe {
    top: 60px; /* Adjusted for mobile header height */
    margin-top: 60px; /* Adjusted for mobile */
    padding: 0.5rem 0; /* Reduced padding */
  }

  .header-inner {
    padding: 0 1rem; /* Reduced padding */
    height: 60px; /* Match header height */
  }

  .header-logo {
    height: 2.5rem; /* Smaller logo for mobile */
  }

  /* 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);
    /* Adjusted top padding for mobile header */
    padding: 5rem 1.25rem 1.25rem; /* Reduced from 6rem to account for smaller header */
    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%;
    /* Adjusted spacing for mobile */
    margin-top: 0.5rem;
  }
  
  .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;
    width: 2.2rem; /* Smaller for mobile */
    height: 2.2rem;
    min-height: 2.2rem;
    min-width: 2.2rem;
  }
  
  /* Close Mobile Menu Button - ENSURED VISIBILITY */
  .close-mobile-menu {
    display: flex;
    /* Position fixed to ensure it stays visible */
    position: fixed;
    top: 1rem; /* Adjusted for smaller header */
    right: 1rem;
    z-index: 1004;
    width: 2.2rem;
    height: 2.2rem;
    min-height: 2.2rem;
    min-width: 2.2rem;
  }

  /* FIXED: Mobile Dropdown Menu Styles - Properly hidden by default */
  .dropdown-menu {
    position: static !important;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 0.3125rem;
    width: 100%;
    display: none; /* Hidden by default on mobile */
    opacity: 0 !important; /* Hidden by default */
    visibility: hidden !important; /* Hidden by default */
    transform: none !important; /* Remove transform */
    z-index: 1005 !important; /* Higher z-index for mobile */
    margin-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  .dropdown-menu.visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 300px;
  }

  .dropdown-menu li a {
    padding-left: 1.875rem;
    font-size: 0.85rem;
    width: 100%;
  }

  .has-dropdown:hover .dropdown-menu {
    display: none; /* Disable hover on mobile */
  }

  /* NEW HERO TEXT MOBILE STYLES - OPTIMIZED FOR MOBILE VIEWPORT */
  /* UPDATED: Increased line spacing between text lines for cleaner appearance */
  .building-text-container {
    margin-bottom: 0.8rem; /* Increased from 0.5rem for better spacing */
  }

  .building-line {
    margin: 0.4rem 0; /* Increased from 0.2rem for better line separation */
  }

  .building-word {
    font-size: 1.8rem; /* Adjusted for mobile viewport */
    margin-right: 0.6rem;
    text-shadow: 
      -1px -1px 0 #000000,
       1px -1px 0 #000000,
      -1px  1px 0 #000000,
       1px  1px 0 #000000;
    line-height: 1.2; /* Increased from 1 for better readability */
  }

  .colored-word {
    font-size: 1.8rem; /* Adjusted for mobile viewport */
    text-shadow: 
      -1px -1px 0 #000000,
       1px -1px 0 #000000,
      -1px  1px 0 #000000,
       1px  1px 0 #000000;
    line-height: 1.2; /* Increased from 1 for better readability */
  }

  .black-text {
    text-shadow: 
      -1px -1px 0 #ffffff,
       1px -1px 0 #ffffff,
      -1px  1px 0 #ffffff,
       1px  1px 0 #ffffff;
  }

  .hero-content-card {
    padding: 1.5rem; /* Adjusted for mobile */
    width: 95%; /* Slightly wider for mobile */
    max-width: 95%; /* Ensure it fits mobile screens */
    background: rgba(0, 0, 0, 0.8); /* Slightly darker for better contrast on mobile */
  }
  
  .hero-intro {
    font-size: 1rem; /* Adjusted for mobile */
    margin-bottom: 1.2rem; /* Increased from 1rem for better spacing */
    line-height: 1.5; /* Increased from 1.4 for better readability */
    padding: 0 0.5rem;
  }
  
  /* UPDATED: Hero buttons in single row for mobile */
  .hero-buttons {
    display: flex; /* Ensure flex layout */
    flex-direction: row; /* Keep buttons in a single row */
    gap: 0.8rem; /* Slightly reduced gap for mobile */
    margin-top: 0.6rem; /* Increased from 0.4rem for better spacing */
    flex-wrap: nowrap; /* Prevent wrapping to keep in single row */
    justify-content: center;
    width: 100%;
  }
  
  .hero-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    min-height: 2.5rem;
    flex: 1; /* Allow buttons to grow equally */
    min-width: 0; /* Allow buttons to shrink */
    max-width: 48%; /* Ensure both buttons fit in single row */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Mission, Vision, Values Mobile */
  .mission-vision-values {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .mv-item {
    padding: 1.5rem;
  }
  
  /* Services List Mobile */
  .services-list li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }
  
  .card-content h3 {
    font-size: 1.3rem;
  }
  
  .card-content > p {
    font-size: 0.9rem;
  }
  
  /* Youth Empowerment Mobile */
  .empowerment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .empowerment-card {
    padding: 1.5rem;
  }
  
  /* About Section Mobile Spacing Fix */
  .about-section {
    padding: 3rem 0;
    margin-bottom: 1rem;
  }
  
  .about-group-section {
    padding: 3rem 0;
    margin-bottom: 1rem;
  }
  
  .division-grid {
    margin-top: 2rem;
    padding: 1rem 0;
  }

  /* 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-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .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;
    padding: 1.25rem;
  }
  
  .map-container h3,
  .contact-form-card h3 {
    font-size: 1.5rem;
  }

  /* 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;
  }
  
  /* NEW HERO TEXT SMALL MOBILE STYLES - FURTHER OPTIMIZED */
  .building-word {
    font-size: 1.5rem; /* Further reduced for very small screens */
    margin-right: 0.4rem;
    text-shadow: 
      -1px -1px 0 #000000,
       1px -1px 0 #000000,
      -1px  1px 0 #000000,
       1px  1px 0 #000000;
    line-height: 1.2; /* Increased for better spacing */
  }

  .colored-word {
    font-size: 1.5rem; /* Further reduced for very small screens */
    text-shadow: 
      -1px -1px 0 #000000,
       1px -1px 0 #000000,
      -1px  1px 0 #000000,
       1px  1px 0 #000000;
    line-height: 1.2; /* Increased for better spacing */
  }

  .black-text {
    text-shadow: 
      -1px -1px 0 #ffffff,
       1px -1px 0 #ffffff,
      -1px  1px 0 #ffffff,
       1px  1px 0 #ffffff;
  }

  .building-text-container {
    margin-bottom: 0.6rem; /* Increased for better spacing */
  }

  .building-line {
    margin: 0.3rem 0; /* Increased for better line separation */
  }
  
  .hero-intro {
    font-size: 0.85rem; /* Further reduced for very small screens */
    margin-bottom: 0.8rem; /* Increased for better spacing */
    line-height: 1.4; /* Increased for better readability */
    padding: 0 0.3rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .announcement-text {
    font-size: 1.1rem;
    padding: 0.3rem 0; /* Further reduced */
  }

  .main-nav {
    width: 100%;
    max-width: 17.5rem;
    right: -100%;
    padding: 4.5rem 1.25rem 1.25rem; /* Further reduced top padding */
  }

  .main-nav.active {
    right: 0;
  }

  .hero-section {
    height: calc(100vh - 130px); /* Further reduced for very small screens */
    min-height: 350px; /* Further reduced minimum height */
    padding: 0.5rem 0; /* Minimal padding */
  }

  .hero-content-card {
    padding: 1rem;
    width: 98%;
    max-width: 98%;
  }

  .header-inner {
    padding: 0 0.8rem; /* Further reduced */
  }

  /* UPDATED: Small mobile hero buttons - keep in single row */
  .hero-buttons {
    flex-direction: row; /* Keep buttons in single row */
    gap: 0.6rem; /* Slightly reduced gap for very small screens */
    margin-top: 0.5rem; /* Increased for better spacing */
    flex-wrap: nowrap; /* Prevent wrapping */
  }

  .hero-button {
    width: 48%; /* Keep buttons side by side */
    max-width: 48%;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    min-height: 2.2rem;
    flex: 1; /* Allow equal distribution */
    min-width: 0; /* Allow shrinking */
  }

  /* Announcement Stripe Small Mobile Adjustment */
  .announcement-stripe {
    top: 55px; /* Further reduced for very small screens */
    margin-top: 55px; /* Further reduced for very small screens */
  }

  .main-header {
    height: 55px; /* Further reduced header height */
  }

  .header-inner {
    height: 55px; /* Match header height */
  }

  /* 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;
  }

  .mission-vision-values {
    margin: 1.5rem 0;
  }

  .mv-item {
    padding: 1.25rem;
  }

  .services-list li {
    font-size: 0.8rem;
  }

  .empowerment-grid {
    gap: 1rem;
  }

  .empowerment-card {
    padding: 1.25rem;
  }

  .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: 0.8rem;
    right: 0.8rem;
  }

  /* 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;
  }
  
  /* NEW HERO TEXT DESKTOP STYLES - KEPT AS IS */
  .building-text-container {
    margin-bottom: 1rem;
  }

  .building-line {
    margin: 0.3rem 0;
  }

  .building-word {
    font-size: 3.5rem;
    margin-right: 1.5rem;
  }

  .colored-word {
    font-size: 3.5rem;
  }

  .hero-section {
    height: calc(100vh - 160px); /* Fill viewport minus header and announcement */
    min-height: 500px; /* Minimum height */
  }
  
  .hero-buttons {
    gap: 1rem;
    margin-top: 0.5rem;
  }
  
  .hero-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 2.75rem;
  }
  
  .hero-intro {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  /* Ensure header doesn't overlap content */
  .announcement-stripe {
    top: 80px;
    margin-top: 80px;
  }

  /* Additional safety margin for the first content section */
  #about-us {
    scroll-margin-top: 100px;
  }
  
  .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.8rem;
  }
  
  .card-content > p {
    font-size: 1.1rem;
  }
  
  .card-icon {
    font-size: 2.5rem;
  }
  
  .services-list li {
    font-size: 1rem;
  }
  
  .division-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .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;
  }
  
  .mission-vision-values {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .empowerment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  #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;
    width: auto;
  }
  
  .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;
  }
}