/*
Theme Name: Daudi International School
Description: Official theme for Daudi International School - A comprehensive school website featuring hero carousel, leadership profiles, admissions, events, testimonials, and FAQ sections.
Version: 1.0
Author: DIS Development Team
*/

/* Custom Properties for DIS Brand Colors */
:root {
  --dis-blue: hsl(220, 77%, 27%);
  --dis-light-blue: hsl(217, 91%, 60%);
  --dis-accent: hsl(37, 91%, 55%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(240, 10%, 3.9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(240, 10%, 3.9%);
  --primary: var(--dis-blue);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(240, 4.8%, 95.9%);
  --secondary-foreground: hsl(240, 5.9%, 10%);
  --muted: hsl(240, 4.8%, 95.9%);
  --muted-foreground: hsl(240, 3.8%, 46.1%);
  --accent: var(--dis-accent);
  --accent-foreground: hsl(240, 5.9%, 10%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(240, 5.9%, 90%);
  --input: hsl(240, 5.9%, 90%);
  --ring: hsl(240, 10%, 3.9%);
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WordPress Core Styles */
.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-main {
  min-height: 100vh;
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
}

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  overflow-x: auto;
}

.partner-logos img {
  height: 2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-logos img:hover {
  opacity: 1;
}

.header-main {
  padding: 1rem 0;
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.site-logo img {
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.site-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--dis-blue);
  margin: 0;
}

.site-description {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.main-navigation a:hover {
  color: var(--dis-blue);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }
  
  .main-navigation.mobile-active ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 24rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-carousel {
    height: 31.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-carousel {
    height: 37.5rem;
  }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

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

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.carousel-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 1rem;
}

.carousel-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .carousel-content h1 {
    font-size: 3.75rem;
  }
}

.carousel-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .carousel-content p {
    font-size: 1.5rem;
  }
}

.carousel-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1.5rem;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicator.active {
  background: white;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--dis-accent);
  color: white;
}

.btn-primary:hover {
  background-color: hsl(37, 91%, 45%);
  color: white;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--dis-blue);
}

.btn-blue {
  background-color: var(--dis-blue);
  color: white;
}

.btn-blue:hover {
  background-color: hsl(220, 77%, 22%);
  color: white;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dis-blue);
  text-align: center;
  margin-bottom: 1rem;
}

.section-divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--dis-accent);
  margin: 0 auto 3rem auto;
}

.bg-white {
  background-color: white;
}

.bg-gray {
  background-color: #f9fafb;
}

.bg-blue {
  background-color: var(--dis-blue);
  color: white;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--dis-blue), var(--dis-light-blue));
  color: white;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 1.5rem;
}

.card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

/* Profile Cards */
.profile-card {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
}

.profile-image {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dis-blue);
  margin-bottom: 0.5rem;
}

.profile-role {
  color: var(--dis-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.profile-description {
  color: #6b7280;
  line-height: 1.6;
  font-style: italic;
}

/* Testimonials */
.testimonials-carousel {
  position: relative;
  background: #f9fafb;
  padding: 4rem 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-quote {
  width: 5rem;
  height: 5rem;
  background: var(--dis-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  color: white;
  font-size: 2rem;
}

.testimonial-content {
  font-size: 1.125rem;
  font-style: italic;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--dis-blue);
}

.testimonial-role {
  color: #6b7280;
}

/* FAQ */
.faq-item {
  background: #f9fafb;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dis-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--dis-light-blue);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #4b5563;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 1.5rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #d1d5db;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-blue {
  color: var(--dis-blue);
}

.text-accent {
  color: var(--dis-accent);
}

.font-bold {
  font-weight: bold;
}

.font-semibold {
  font-weight: 600;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.opacity-90 {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .carousel-content h1 {
    font-size: 2rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
  }
  
  .carousel-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
  .site-header,
  .carousel-nav,
  .carousel-indicators,
  .btn,
  .site-footer {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
}