/* main.css - Mobile First */
:root {
  --primary-color: #4CAF50;
  --secondary-color: #FF9800;
  --accent-color: #2196F3;
  --text-color: #333333;
  --background-color: #F8F9FA;
  --border-radius: 12px;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
}
body {
  font-family: 'Comic Neue', cursive, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #F8F9FA 60%, #E3FCEC 100%);
  margin: 0;
  padding: 0;
}
header {
  background: #fff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 16px rgba(76,175,80,0.08);
  margin-bottom: 2em;
  padding-bottom: 1em;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em 0.5em 2em;
  background: var(--primary-color);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
}
.main-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.3em;
  font-weight: bold;
  color: #fff;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}
.main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  padding: 0.5em 1em;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a.active, .main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--accent-color);
  color: #fff;
  outline: 2px solid var(--accent-color);
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 0 1em 0;
  background: linear-gradient(120deg, #E3FCEC 60%, #F8F9FA 100%);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.07);
}
.hero img {
  animation: mascot-bounce 2s infinite alternate;
  margin-bottom: 1em;
}
@keyframes mascot-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
.hero h1 {
  font-size: 2.2em;
  color: var(--primary-color);
  margin: 0.2em 0 0.1em 0;
  font-family: 'Comic Neue', cursive, sans-serif;
}
.hero p {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 1em;
}
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1em;
}
section {
  margin: 2em 0;
  clear: both;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5em 1em;
}
.cta {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 1em 2em;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  font-size: 1.2em;
  text-decoration: none;
  margin: 1em 0;
  transition: background 0.2s;
}
.cta.secondary {
  background: var(--secondary-color);
}
.cta:focus, .cta:hover {
  background: var(--accent-color);
  outline: 2px solid var(--accent-color);
}
input, button {
  font-size: 1em;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  padding: 0.75em;
  margin: 0.5em 0;
  box-shadow: 0 1px 3px rgba(33,150,243,0.07);
}
button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(76,175,80,0.08);
  transition: background 0.2s;
}
button:hover, button:focus {
  background: var(--secondary-color);
  outline: 2px solid var(--accent-color);
}
img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(33,150,243,0.07);
}
.latest-grid {
  margin: 2em 0;
  text-align: center;
}
.latest-grid h2 {
  font-size: 1.7em;
  color: var(--primary-color);
  margin-bottom: 1.2em;
}
.latest-grid .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  justify-items: center;
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(33,150,243,0.07);
  padding: 1.2em 1em;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.grid-item:hover, .grid-item:focus {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 18px rgba(33,150,243,0.13);
  outline: 2px solid var(--accent-color);
}
.grid-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 0.7em;
  border-radius: 50%;
  background: #E3FCEC;
  object-fit: contain;
}
.grid-item h3 {
  font-size: 1.15em;
  margin: 0.2em 0 0.3em 0;
  color: var(--secondary-color);
}
.grid-item p {
  font-size: 0.98em;
  color: #555;
  margin: 0;
}
.hero-flex {
  display: flex;
  flex-direction: row;
  gap: clamp(1em, 3vw, 2em);
  align-items: stretch;
  justify-content: center;
  margin: 0 auto;
  min-height: unset;
  max-height: none;
  height: auto;
  box-sizing: border-box;
  max-width: 1200px;
  width: 100%;
  overflow: visible;
}
.latest-grid {
  flex: 1 1 480px;
  max-width: 520px;
  min-width: 260px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: auto;
}
.hero-main {
  flex: 2 1 520px;
  max-width: 700px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #E3FCEC 60%, #F8F9FA 100%);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.07);
  padding: 1em 0.7em 0.7em 0.7em;
  margin: 0;
  height: auto;
}
@media (max-width: 700px) {
  .main-nav ul {
    flex-direction: column;
    gap: 0.5em;
    background: var(--primary-color);
    border-radius: 0 0 18px 18px;
    padding: 0.5em 0;
  }
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
  }
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}
@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    gap: 1.5em;
    min-height: unset;
    max-height: unset;
  }
  .latest-grid, .hero-main {
    max-width: 100%;
    min-width: 0;
  }
  .latest-grid .grid-container {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }
  .grid-item {
    min-height: 100px;
    padding: 0.7em 0.5em;
  }
  .grid-item img {
    width: 36px;
    height: 36px;
    margin-bottom: 0.5em;
  }
}
@media (max-width: 1100px) {
  .hero-flex {
    height: unset;
    max-height: unset;
    flex-direction: column;
    gap: 1.2em;
    width: 100%;
    max-width: 100vw;
  }
  .latest-grid, .hero-main {
    max-width: 100%;
    min-width: 0;
    height: unset;
  }
  .latest-grid .grid-container {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  .grid-item {
    min-height: 80px;
    max-height: 180px;
    padding: 0.7em 0.5em;
  }
  .grid-item img {
    width: 36px;
    height: 36px;
    margin-bottom: 0.5em;
  }
}
@media (min-width: 768px) {
  main {
    max-width: 900px;
  }
}
@media (min-width: 900px) {
  .hero-flex {
    align-items: stretch;
  }
  .latest-grid, .hero-main {
    height: 100%;
  }
}
@media (min-width: 1024px) {
  main {
    max-width: 1200px;
  }
}
