/* Kids Can Succeed Foundation - Main Stylesheet */

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

:root {
  --primary: #1a73a7;
  --primary-dark: #145a84;
  --accent: #f4a024;
  --accent-dark: #d88b1a;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ====== TOP BAR ====== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ====== HEADER / NAV ====== */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 5px;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--dark);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
  transition: background 0.3s, color 0.3s;
}
nav ul li a:hover {
  background: var(--light-gray);
  color: var(--primary);
}

/* Dropdown */
nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}
nav ul li:hover .dropdown {
  display: block;
}
nav ul li .dropdown a {
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.88rem;
}
nav ul li .dropdown a:hover {
  background: var(--light-gray);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

/* ====== HERO ====== */
.hero {
  background: linear-gradient(135deg, rgba(26,115,167,0.85) 0%, rgba(20,90,132,0.9) 50%, rgba(13,63,94,0.95) 100%),
    url('https://images.unsplash.com/photo-1529390079861-591de354faf5?w=1400&h=600&fit=crop') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244,160,36,0.1) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
}
.hero .tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 30px;
  position: relative;
}
.hero-small {
  padding: 60px 20px;
}
.hero-small h1 {
  font-size: 2.2rem;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,160,36,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-blue {
  background: var(--primary);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ====== SECTIONS ====== */
.section {
  padding: 80px 20px;
}
.section-gray {
  background: var(--light-gray);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== CARDS GRID ====== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.card p {
  color: var(--gray);
  font-size: 0.95rem;
}
.card a.card-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
}
.card a.card-link:hover {
  color: var(--accent);
}

/* ====== STATS ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
  padding: 40px 0;
}
.stat h3 {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 800;
}
.stat p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 5px;
}

/* ====== TWO COLUMN LAYOUT ====== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.two-col p {
  color: var(--gray);
  margin-bottom: 15px;
}
.two-col ul {
  list-style: none;
  margin: 15px 0;
}
.two-col ul li {
  padding: 8px 0;
  color: var(--gray);
  position: relative;
  padding-left: 28px;
}
.two-col ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.img-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Card images */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* ====== CONTENT PAGE ====== */
.content-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 60px 20px;
}
.content-page h2 {
  font-size: 1.6rem;
  margin: 35px 0 15px;
  color: var(--dark);
}
.content-page p {
  color: var(--gray);
  margin-bottom: 15px;
}
.content-page ul {
  margin: 15px 0 15px 20px;
  color: var(--gray);
}
.content-page ul li {
  padding: 5px 0;
}
.content-page blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 25px;
  margin: 25px 0;
  background: var(--light-gray);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--gray);
}

/* ====== LEADERSHIP TEAM ====== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}
.team-member {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: 0 4px 15px rgba(26,115,167,0.3);
}
.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--dark);
}
.team-member .team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.team-member p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ====== CONTACT FORM ====== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* ====== CTA BANNER ====== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.cta-banner p {
  opacity: 0.9;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

/* ====== FOOTER ====== */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 50px 20px 30px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}
footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 15px;
}
footer ul {
  list-style: none;
}
footer ul li {
  margin-bottom: 8px;
}
footer ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
}
footer ul li a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 20px;
  font-size: 0.85rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 15px;
  }
  nav ul.active {
    display: flex;
  }
  nav ul li .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 15px;
  }
  nav ul li:hover .dropdown {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .tagline {
    font-size: 1rem;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-small h1 {
    font-size: 1.6rem;
  }
}
