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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  background-color: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
header {
  background-color: #2c3e50;
  color: white;
  width: 100%;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  text-align: center;
  margin-bottom: 10px;
}

.logo h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0;
}

.logo p {
  font-style: italic;
  margin-top: 5px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.nav-mobile-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.nav-mobile-container::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  gap: 8px;
  padding: 0 10px;
  margin: 0;
  list-style: none;
  min-width: max-content;
}

.nav-list li {
  flex: 0 0 auto;
}

.nav-list a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  display: block;
  background-color: #34495e;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  white-space: nowrap;
  transition: background 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
  background-color: #3d566e;
}

/* ========== DESKTOP (768px+) ========== */
@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  
  .logo {
    margin-bottom: 0;
    text-align: left;
    flex: 1;
  }
  
  .nav-mobile-container {
    width: auto;
    overflow-x: visible;
    padding-bottom: 0;
    flex: 2;
  }
  
  .nav-list {
    justify-content: center;
    padding: 0;
  }
}

/* ========== MAIN CONTENT ========== */
main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* ========== FOOTER ========== */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #3498db;
  color: white;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

/* ========== ABOUT SECTION ========== */
.about {
  background-color: white;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.about img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 1rem;
}

/* ========== NEWS SECTION ========== */
.news {
  margin-bottom: 2rem;
}

.news h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.news-article {
  display: flex;
  flex-direction: column;
  background-color: #ecf0f1;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.news-article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.news-article h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.news-article p {
  font-size: 1rem;
  line-height: 1.5;
  color: #34495e;
}

/* ========== GALLERY ========== */
.galleries-grid,
.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-card,
.gallery-image {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.gallery-card img,
.gallery-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-card img:hover,
.gallery-image img:hover {
  transform: scale(1.03);
}

.gallery-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #2c3e50;
  padding: 0 0.5rem;
}

.gallery-card p {
  margin: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}

/* ========== CALENDAR ========== */
.calendar {
  margin-top: 3rem;
}

.calendar h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2c3e50;
}

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

.event {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-date {
  display: flex;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #3498db;
  margin-bottom: 0.75rem;
}

.event-info h3 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  color: #2c3e50;
}

.event-info p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* ========== SOCIAL ICONS ========== */
.social {
  margin-top: 1rem;
  text-align: center;
}

.social a {
  display: inline-block;
  margin: 0 12px;
  color: white;
  text-decoration: none;
}

.social a i {
  font-size: 40px;
  transition: transform 0.3s ease, color 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.social a:hover i {
  transform: scale(1.2);
  color: #3498db;
}

/* ========== BUTTONS ========== */
.read-more,
.news-item a,
.view-gallery,
.all-news,
.all-events {
  display: inline-block;
  margin-top: 1rem;
  color: #3498db;
  background-color: #ecf5fb;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.read-more:hover,
.news-item a:hover,
.view-gallery:hover,
.all-news:hover,
.all-events:hover {
  background-color: #d1e9f7;
}

/* ========== NEWS CONTENT STYLE ========== */
.news-preview {
  background-color: white;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.news-preview h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

.news-preview .date {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.news-preview p {
  line-height: 1.6;
}

/* ========== MEDIA QUERIES ========== */
@media screen and (max-width: 768px) {
  .news-preview {
    padding: 1.2rem;
  }

  .news-preview h3 {
    font-size: 1.2rem;
  }

  .social a i {
    font-size: 32px;
  }

  .read-more,
  .news-item a,
  .view-gallery,
  .all-news,
  .all-events {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .social a {
    margin: 0 8px;
  }

  .news-preview {
    padding: 1rem;
  }

  .news-preview h3 {
    font-size: 1.1rem;
  }

  .read-more,
  .news-item a,
  .view-gallery,
  .all-news,
  .all-events {
    font-size: 0.85rem;
  }
}
.news-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}