/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F9FAFB;
  color: #1F2937;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Wrapper - Full width with max-width container */
.page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
}

/* Container for content sections */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 30px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

/* ---------------- HERO SECTION ---------------- */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #003366;
}

.media-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- BUTTONS ---------------- */
.btn-primary {
  background-color: #FCD34D;
  color: #000;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #fbbf24;
  transform: scale(1.05);
}

/* ---------------- ANNOUNCEMENTS ---------------- */
.animate-marquee {
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------------- GRIDS ---------------- */
.grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

/* Responsive Grid */
@media (min-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------------- CARDS ---------------- */
.news-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ---------------- GALLERY ---------------- */
.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: #B8033D;
  border-radius: 10px;
}

/* ---------------- UTILITY CLASSES ---------------- */
/* Full width sections */
.full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive typography */
.text-responsive {
  font-size: clamp(1rem, 4vw, 1.5rem);
}

/* Hide scrollbar but allow scrolling */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Glass effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */
@media (max-width: 1024px) {
  .hero-container {
    height: 80vh;
  }
}

@media (max-width: 768px) {
  .hero-container {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
  }
  
  section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .hero-container {
    height: 60vh;
    min-height: 450px;
  }
  
  .hero-content {
    padding: 15px;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
}

/* Ensure sections don't overflow */
section {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Fix for mobile 100vh issue */
@supports (-webkit-touch-callout: none) {
  .hero-container {
    height: -webkit-fill-available;
  }
}

/* Print styles */
@media print {
  .hero-container,
  .announcement-marquee,
  .btn-primary,
  .mobile-toggle,
  .progress-bar {
    display: none;
  }
}