/*
 * Font Face Declarations
 */
@font-face {
  font-family: 'UAF Sans';
  src: url('fonts/UAFSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'UAF Sans';
  src: url('fonts/UAFSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'UAF Sans';
  src: url('fonts/UAFSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'UAF Sans';
  src: url('fonts/UAFSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'UAF Sans';
  src: url('fonts/UAFSans-OnBoard.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
}

/*
 * General styles and variables
 */
:root {
  --bg-color: #0d0d0e;
  --surface-color: #1a1a1d;
  --primary-color: #FFCC01;
  --primary-light: #FFD633;
  --text-color: #f5f5f5;
  --text-muted: #b0b0b0;
  --border-color: #2e2e31;
  --radius: 6px;
}

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

body {
  font-family: 'UAF Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
}

/* Decorative Background Watermark */
.bg-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}
.bg-watermark img {
  width: 60%;
  max-width: 1000px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Ensure header and sections render above watermark */
.site-header {
  position: relative;
  z-index: 1000;
}

section {
  position: relative;
  z-index: 10;
}

h1, h2, h3, h4 {
  font-family: 'UAF Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--text-color);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #0a0a0a;
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #0a0a0a;
}

.btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Header */
.site-header {
  background-color: #080808;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.2;
}
.logo img {
  height: 50px;
  width: auto;
  display: block;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}
.site-nav a:hover {
  color: var(--primary-color);
}
.apply-btn {
  margin-left: 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  z-index: 2;
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title .highlight {
  color: var(--primary-color);
}
.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background-color: rgba(13, 13, 14, 0.85);
}
.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.about-text {
  flex: 1 1 45%;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.about-text p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}
.about-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Paths Section */
.paths-section {
  padding: 4rem 0;
  background-color: rgba(13, 13, 14, 0.85);
}
.paths-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
}
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.path-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease;
}
.path-card:hover {
  transform: translateY(-4px);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.path-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}
.path-card p {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

/* Steps Section */
.steps-section {
  padding: 4rem 0;
  background-color: rgba(26, 26, 29, 0.85);
}
.steps-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.step-item {
  background-color: var(--bg-color);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-color);
}
.step-number {
  display: block;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: 'UAF Sans', sans-serif;
}
.step-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.step-item p {
  font-size: 0.9rem;
}

/* Units Section */
.units-section {
  padding: 4rem 0;
  background-color: rgba(26, 26, 29, 0.85);
}
.units-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
  gap: 2rem;
  justify-content: center;
  justify-items: center;
  margin-bottom: 2rem;
}

.units-row--bottom {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.unit-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}
.unit-card:hover {
  transform: translateY(-4px);
}
.unit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.unit-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  color: var(--text-color);
}
.unit-card p {
  font-size: 0.9rem;
}

/* Brigade Cards */
.brigade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: transparent;
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease;
  width: 200px;
  position: relative;
  cursor: pointer;
}
.brigade-card:hover {
  transform: translateY(-4px);
}
.brigade-card::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: var(--surface-color);
  color: var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(255, 204, 1, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 280px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}
.brigade-card::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: var(--primary-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}
.brigade-card:hover::before,
.brigade-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.brigade-emblem {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #000000;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.brigade-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brigade-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background-color: rgba(13, 13, 14, 0.85);
}
.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}
.faq-items details {
  background-color: var(--surface-color);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.faq-items summary {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-items summary::-webkit-details-marker {
  display: none;
}
.faq-items summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(0.2rem);
  transition: transform 0.3s ease;
}
.faq-items details[open] summary::after {
  transform: translateY(0.2rem) rotate(180deg);
}
.faq-items p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: rgba(26, 26, 29, 0.85);
}
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.contact-info {
  flex: 1 1 40%;
}
.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.corps-logo {
  margin-top: 2rem;
  margin-left: 6.5rem;
  max-width: 240px;
  height: auto;
  display: block;
}
.contact-form {
  flex: 1 1 55%;
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--primary-light);
}
.form-group input,
.form-group textarea {
  padding: 0.6rem;
  background-color: #151516;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-color);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.form-group.full {
  grid-column: 1 / -1;
}
.contact-form button {
  margin-top: 0.5rem;
  width: 100%;
}

/* Video Section */
.video-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Footer */
.site-footer {
  background-color: #0a0a0a;
  padding-top: 3rem;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 150px;
  position: relative;
}
.footer-logo img {
  height: 39px;
  width: auto;
  display: block;
  margin-top: 0.3rem;
}
.footer-logo-social {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem;
  align-items: center;
  margin-top: 0.75rem;
  width: auto;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  position: relative;
  z-index: 10;
}
.footer-logo-social a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
}
.footer-logo-social a img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(60%);
}
.footer-logo-social a[href*="instagram"] {
  width: 2.28rem;
  height: 2.28rem;
}
.footer-logo-social a:hover img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(98%) saturate(458%) hue-rotate(350deg) brightness(75%) contrast(101%);
  transform: scale(1.1);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 1;
}
.footer-column h4 {
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}
.footer-column ul {
  list-style: none;
}
.footer-column li {
  margin-bottom: 0.5rem;
}
.footer-column a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: var(--primary-color);
}
.footer-social {
  display: none;
}
.footer-social a {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: var(--primary-light);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-policy a {
  color: var(--text-muted);
  margin-left: 1rem;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}
.footer-policy a:hover {
  color: var(--primary-color);
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Staggered animations for grid items */
.path-card {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.path-card.animated {
  opacity: 1;
  transform: translateX(0);
}

.step-item,
.unit-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step-item.animated,
.unit-card.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Delay for staggered effect */
.path-card:nth-child(1) { transition-delay: 0.1s; }
.path-card:nth-child(2) { transition-delay: 0.2s; }
.path-card:nth-child(3) { transition-delay: 0.3s; }

.step-item:nth-child(1) { transition-delay: 0.1s; }
.step-item:nth-child(2) { transition-delay: 0.2s; }
.step-item:nth-child(3) { transition-delay: 0.3s; }
.step-item:nth-child(4) { transition-delay: 0.4s; }
.step-item:nth-child(5) { transition-delay: 0.5s; }

.unit-card:nth-child(1) { transition-delay: 0.1s; }
.unit-card:nth-child(2) { transition-delay: 0.2s; }
.unit-card:nth-child(3) { transition-delay: 0.3s; }
.unit-card:nth-child(4) { transition-delay: 0.4s; }

/* Hero section animation */
.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* About section animations */
.about-text {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-text.animated {
  opacity: 1;
  transform: translateX(0);
}

.about-image {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-image.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Section headings */
.about-section h2,
.paths-section h2,
.steps-section h2,
.units-section h2,
.faq-section h2,
.contact-section h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-section h2.animated,
.paths-section h2.animated,
.steps-section h2.animated,
.units-section h2.animated,
.faq-section h2.animated,
.contact-section h2.animated {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ items animation */
.faq-items details {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.faq-items details.animated {
  opacity: 1;
  transform: translateY(0);
}

.faq-items details:nth-child(1) { transition-delay: 0.1s; }
.faq-items details:nth-child(2) { transition-delay: 0.2s; }
.faq-items details:nth-child(3) { transition-delay: 0.3s; }
.faq-items details:nth-child(4) { transition-delay: 0.4s; }

/* Contact form animation */
.contact-info {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-info.animated {
  opacity: 1;
  transform: translateX(0);
}

.contact-form {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-form.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll,
  .path-card,
  .step-item,
  .unit-card,
  .about-text,
  .about-image,
  .faq-items details,
  .contact-info,
  .contact-form {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Global mobile adjustments */
  * {
    -webkit-overflow-scrolling: touch;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Container adjustments - prevent overflow */
  .container {
    width: 92%;
    max-width: 100%;
    padding: 0 0.75rem;
    margin: 0 auto;
  }

  /* Background watermark mobile */
  .bg-watermark {
    opacity: 0.05;
  }
  .bg-watermark img {
    width: 90%;
    max-width: 600px;
  }

  /* Header and Navigation - mobile menu */
  .site-header {
    position: sticky;
    top: 0;
    background-color: #080808;
    z-index: 1000;
  }
  
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
    gap: 0.75rem;
  }
  
  .logo {
    align-self: center;
  }
  
  .logo img {
    height: 38px;
  }
  
  .site-nav {
    width: 100%;
  }
  
  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0;
  }
  
  .site-nav li {
    flex: 0 0 auto;
  }
  
  .site-nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    display: block;
  }
  
  .apply-btn {
    margin: 0;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 300px;
    align-self: center;
    text-align: center;
  }

  /* Hero Section */
  .hero-section {
    min-height: 500px;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-content {
    width: 92%;
    max-width: 100%;
    padding: 0 1rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  /* Section spacing normalization */
  section {
    padding: 3rem 0 !important;
  }

  /* About Section */
  .about-wrapper {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .about-text {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: left;
  }
  
  .about-text h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .about-text .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
  }
  
  .about-image {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
  
  .about-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  /* Units Section */
  .units-section h2 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .units-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .units-row--bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1.5rem;
  }
  
  .brigade-card {
    width: 140px;
    max-width: 140px;
    flex: 0 0 auto;
    padding: 1rem 0.5rem;
  }
  
  .brigade-emblem {
    width: 110px;
    height: 110px;
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .brigade-card h3 {
    font-size: 0.7rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Disable tooltips on mobile (touch devices) */
  .brigade-card::before,
  .brigade-card::after {
    display: none;
  }

  /* Paths Section */
  .paths-section h2 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .paths-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .path-card {
    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.25rem;
    text-align: center;
  }
  
  .card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .path-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .path-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  
  .path-card .btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  /* Steps Section */
  .steps-section h2 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .steps-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .step-item {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }
  
  .step-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .step-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
  
  .step-item p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* FAQ Section */
  .faq-section h2 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .faq-items {
    width: 100%;
  }
  
  .faq-items details {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .faq-items summary {
    font-size: 0.95rem;
    padding-right: 2rem;
    line-height: 1.5;
  }
  
  .faq-items p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.75rem;
  }

  /* Contact Section */
  .contact-wrapper {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  
  .contact-info {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  
  .contact-info h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
  }
  
  .contact-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  
  .corps-logo {
    margin: 1.5rem auto 0;
    max-width: 160px;
    display: block;
  }
  
  .contact-form {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1.5rem 1.25rem;
    width: 100%;
  }
  
  .form-group {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    box-sizing: border-box;
  }
  
  .contact-form button {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
  }

  /* Video Section */
  .video-section {
    min-height: 250px;
    height: 40vh;
  }
  
  .video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Footer */
  .site-footer {
    padding-top: 2rem;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
  }
  
  .footer-logo {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo img {
    height: 35px;
    margin: 0 auto;
  }
  
  .footer-logo-social {
    margin-top: 1rem;
    justify-content: center;
  }
  
  .footer-logo-social a {
    width: 2.2rem;
    height: 2.2rem;
  }
  
  .footer-logo-social a[href*="instagram"] {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .footer-links {
    width: 100%;
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-column {
    width: 100%;
    text-align: center;
  }
  
  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer-column ul {
    padding: 0;
  }
  
  .footer-column li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 0;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
  }
  
  .footer-policy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
  }
  
  .footer-policy a {
    margin: 0;
    font-size: 0.8rem;
  }

  /* Buttons - mobile optimized */
  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
    box-sizing: border-box;
  }
  
  .btn.small {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Typography adjustments */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.15rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
  .container {
    width: 94%;
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-section {
    min-height: 450px;
    height: 60vh;
  }

  /* Units - 2 column grid for very small screens */
  .units-grid,
  .units-row--bottom {
    gap: 1.5rem 1rem;
  }
  
  .brigade-card {
    width: 130px;
    max-width: 130px;
  }
  
  .brigade-emblem {
    width: 100px;
    height: 100px;
  }
  
  .brigade-card h3 {
    font-size: 0.65rem;
  }

  /* Smaller headings on tiny screens */
  h2 {
    font-size: 1.7rem;
  }
  
  .corps-logo {
    max-width: 140px;
  }
  
  section {
    padding: 2.5rem 0 !important;
  }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    height: 90vh;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
}

/* Prevent horizontal scroll on all devices */
@media (max-width: 768px) {
  body, html {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .site-header,
  section,
  .container,
  .paths-grid,
  .steps-grid,
  .units-grid,
  .units-row--bottom,
  .about-wrapper,
  .contact-wrapper,
  .footer-inner {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}