/* ===== GLOBAL STYLES ===== */
body {
  font-family: 'Arial', sans-serif;
  background-color: #FFF6D9;
  margin: 0;
  padding: 0;
  position: relative; /* Added for logo positioning */
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
  background-color: #A6C672;
  padding: 10px 0;
  border-bottom: 2px solid #2c3e50;
  position: relative; /* Added for logo positioning */
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 5px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: #2c3e50;
  border-radius: 5px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.nav-item:hover {
  background-color: #8FB359;
}

.nav-item.active {
  background-color: #7A9F4B;
  color: white;
}

.nav-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.nav-item span {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* ===== HEADER ===== */
header {
  background-color: #FFD93B;
  padding: 20px 0;
  text-align: center;
  position: relative;
  border: 2px solid black;
  margin: 30px auto 0;
  width: 80%;
  border-radius: 5px;
}

header h1 {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
}

/* ===== NEWS CONTAINER ===== */
.news-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 5%;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
  width: 300px;
  padding: 20px;
  border: 2px solid black;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.card p {
  margin: 10px 0;
  font-size: 14px;
}

.card img {
  width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 5px;
  border: 1px solid black;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.03);
}

/* Card Colors */
.pink {
  background-color: #F6B8D2;
}

.blue {
  background-color: #94DAFF;
}

.red {
  background-color: #FF6F61;
}

/* ===== FOOTER ===== */
footer {
  background-color: white;
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column h1 {
  font-size: 24px;
  color: #333;
}

.footer-column p {
  color: #666;
  line-height: 1.5;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.links-group a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
  white-space: pre-line;
}

.links-group a:hover {
  color: #333;
}

.contact-info h3 {
  color: #333;
  margin-bottom: 15px;
}

.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.contact-info li {
  color: #666;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter h3 {
  color: #333;
}

.email-input {
  position: relative;
}

.email-input input {
  padding: 10px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.divider {
  height: 1px;
  background-color: #ddd;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #666;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #333;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  
  .nav-item {
    padding: 8px 10px;
    min-width: 70px;
    font-size: 12px;
  }
  
  .nav-item img {
    width: 20px;
    height: 20px;
  }
  
  .social-media-links {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-item {
    padding: 6px 8px;
    min-width: 60px;
  }
  
  .nav-item span {
    font-size: 12px;
  }
  
  header {
    width: 95%;
    margin-top: 15px;
  }
  
  .card {
    width: 100%;
  }
}

.news-video {
  width: 100%;
  max-width: 100%;
  margin-top: 15px;
  border-radius: 6px;
  border: 2px solid #2c3e50;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  display: block;
}

/* ===== SCHOOL SPHERE LOGO STYLES ===== */
.logo-container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  text-align: right;
  line-height: 1;
}

.logo-line1 {
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.logo-line2 {
  font-size: 18px;
  font-weight: bold;
  color: #7A9F4B;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.logo-line3 {
  font-size: 10px;
  color: #666;
  line-height: 1;
  margin: 2px 0 0 0;
}

.logo-line4 {
  font-size: 12px;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1;
  margin: 1px 0 0 0;
}

/* Adjust header margin */
header {
  margin-top: 40px;
}