/* 
* Maseru SDA Primary School Website Stylesheet
* Modern and elegant design with animations
*/

/* Base Styles */
:root {
  --primary-color: #4a6fdc;
  --secondary-color: #ff9966;
  --accent-color: #2dcc70;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #2c3e50;
  --light-bg: #f7f9fc;
  --border-color: #e1e5ee;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

section {
  padding: 60px 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.btn-primary:hover {
  background-color: #3b5fd2;
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 95, 210, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-secondary:hover {
  background-color: #ff8a53;
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 138, 83, 0.2);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
header {
  background-color: var(--light-text);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: auto;
  margin-right: 15px;
}

.logo-container h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 25px;
  position: relative;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after, .nav-links a:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light-text);
  min-width: 200px;
  box-shadow: var(--box-shadow);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content li {
  margin: 0;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
}

.dropdown-content a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.dropdown i {
  font-size: 0.75rem;
  margin-left: 5px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  width: 30px;
  cursor: pointer;
}

.mobile-menu-btn span {
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 80vh;
  position: relative;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 1s ease-out 1s backwards;
}

.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 4;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: var(--light-text);
  transform: scale(1.2);
}

@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* Announcements Section */
.announcements {
  background-color: var(--light-bg);
}

.announcements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.view-all {
  font-weight: 500;
  display: flex;
  align-items: center;
}

.view-all i {
  margin-left: 5px;
  transition: var(--transition);
}

.view-all:hover i {
  transform: translateX(5px);
}

.announcement-slider {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
}

.announcement-card {
  flex: 0 0 calc(33.333% - 14px);
  background-color: var(--light-text);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: flex;
  transition: var(--transition);
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.announcement-date {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.announcement-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.announcement-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.announcement-content {
  padding: 20px;
  flex-grow: 1;
}

.announcement-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.announcement-content p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -2px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: scaleX(1);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.prev-btn, .next-btn {
  background-color: var(--light-text);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.slider-dots {
  display: flex;
  margin: 0 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Quick Links Section */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.link-card {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  color: var(--text-color);
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.link-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* About Preview Section */
.about-preview .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Stats Section */
.stats {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 80px 0;
}

.stats .container {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.stat-item {
  flex: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-bg);
  text-align: center;
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  overflow-x: hidden;
}

.testimonial-card {
  flex: 0 0 calc(50% - 15px);
  background-color: var(--light-text);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: left;
  position: relative;
}

.quote {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
  margin: 20px 0 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  margin: 0;
  font-style: normal;
  color: #777;
}

/* Base Styles */
:root {
  --primary-color: #4a7acd;
  --secondary-color: #3567b9;
  --accent-color: #ffb74d;
  --light-gray: #f9f9f9;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --text-color: #333;
  --white: #fff;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page Banner */
.page-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-banner h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline;
  font-size: 16px;
}

.breadcrumb li:not(:last-child):after {
  content: '>';
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb .active {
  color: var(--accent-color);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark-gray);
}

/* Academics Section */
.academics-section {
  padding: 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .page-banner {
      padding: 40px 0;
  }

  .page-banner h2 {
      font-size: 28px;
  }

  .section-header h2 {
      font-size: 26px;
  }

  .academics-section {
      padding: 50px 0;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

/* Mobile menu styles */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .mobile-menu-btn {
      display: flex;
  }

  .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--white);
      flex-direction: column;
      align-items: flex-start;
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      z-index: 1000;
  }

  .nav-links.active {
      max-height: 500px;
  }

  .nav-links li {
      width: 100%;
      margin: 0;
  }

  .nav-links li a {
      padding: 15px 20px;
      display: block;
  }

  .dropdown-content {
      position: static;
      display: none;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      padding-left: 20px;
  }

  .dropdown.active .dropdown-content {
      display: block;
  }
}

/*