/* Base Styles */
:root {
  --primary-color: #e63946;
  --primary-dark: #c1121f;
  --secondary-color: #457b9d;
  --light-color: #f1faee;
  --dark-color: #1d3557;
  --gray-color: #6c757d;
  --light-gray: #f8f9fa;
  --border-color: #dee2e6;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--dark-color);
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

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

.btn-full {
  width: 100%;
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: white;
  padding: 5px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Slider */
.slider-container {
  position: relative;
  overflow: hidden;
}

.slider {
  position: relative;
  height: 500px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide:nth-child(1) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/slide1.jpg");
}

.slide:nth-child(2) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/slide2.jpg");
}

.slide:nth-child(3) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/slide3.jpg");
}

.slide:nth-child(4) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/slide4.jpg");
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: white;
  padding: 0 20px;
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.5rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  color: #333;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

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

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: white;
}

/* Features */
.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

/* Survey Section */
.survey-section {
  background-color: var(--light-gray);
  padding: 4rem 0;
}

.survey-container {
  max-width: 600px;
  margin: 0 auto;
}

.survey-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 800px;
  margin: 0 auto;
}

/* Authorities */
.authorities {
  padding: 4rem 0;
}

.authorities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.authority-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.authority-card:hover {
  transform: translateY(-5px);
}

.authority-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.authority-info {
  padding: 1.5rem;
}

.authority-info h3 {
  color: var(--dark-color);
}

.authority-info .position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* History */
.history {
  background-color: var(--light-gray);
  padding: 4rem 0;
  text-align: center;
}

.history p {
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Activities */
.activities {
  padding: 4rem 0;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.activity-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.activity-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.activity-card h3 {
  margin-bottom: 1rem;
}

.activity-date {
  color: var(--gray-color);
  font-style: italic;
  margin-top: 1rem;
}

/* Youth Leaders */
.youth-leaders {
  background-color: var(--light-gray);
  padding: 4rem 0;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Join Us */
.join-us {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.join-us p {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.join-us .btn {
  background-color: white;
  color: var(--primary-color);
}

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

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-container {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form-container h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.info-card h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  min-width: 24px;
}

.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.social-links-large {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link-large {
  display: flex;
  align-items: center;
  color: var(--primary-color);
}

.social-link-large i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.join-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.join-card h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.social-link {
  color: white;
  font-size: 1.5rem;
  margin: 0 0.5rem;
}

.social-link:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 0;
    text-align: center;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .slide-content h2 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1.2rem;
  }

  .slider {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .slider {
    height: 300px;
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
