/* Mayton Lyceum School District - Main Stylesheet */

/* CSS Variables */
:root {
  --primary-blue: #003d82;
  --secondary-gold: #ffa500;
  --accent-green: #2c5f2d;
  --text-dark: #333333;
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --border-color: #dddddd;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-gold);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.header-top {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

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

.header-contact a {
  color: white;
  margin-left: 1.5rem;
}

.header-contact a:hover {
  color: var(--secondary-gold);
}

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

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  height: 60px;
  width: auto;
}

.site-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
}

.site-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 300;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.main-nav a {
  color: white;
  padding: 0.75rem 1.25rem;
  display: block;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--secondary-gold);
  color: var(--primary-blue);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--secondary-gold);
  color: var(--primary-blue);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

/* Quick Links */
.quick-links {
  background-color: var(--bg-light);
  padding: 3rem 0;
}

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

.quick-link-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.quick-link-card .icon {
  font-size: 3rem;
  color: var(--secondary-gold);
  margin-bottom: 1rem;
}

.quick-link-card h3 {
  margin-bottom: 0.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-title .subtitle {
  color: #666;
  font-size: 1.125rem;
}

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

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--secondary-gold);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  margin-bottom: 0.75rem;
}

/* School Cards */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.school-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.school-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.school-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.school-card-content {
  padding: 2rem;
}

.school-level {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--accent-green);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.school-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.school-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.school-info strong {
  color: var(--primary-blue);
}

/* Info Boxes */
.info-box {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-gold);
  margin: 2rem 0;
}

.info-box.warning {
  border-left-color: #ff6b6b;
  background-color: #fff5f5;
}

.info-box.success {
  border-left-color: var(--accent-green);
  background-color: #f0f8f0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: white;
  box-shadow: var(--shadow);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: var(--bg-light);
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: var(--secondary-gold);
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--secondary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  background-color: var(--bg-light);
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #999;
}

/* Responsive Design */
@media (max-width: 968px) {
  .header-main .container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero h1 {
    font-size: 2rem;
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: block;
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .quick-links-grid,
  .news-grid,
  .schools-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }

  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--secondary-gold);
  outline-offset: 2px;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-gold);
  color: var(--primary-blue);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
