body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
  margin: 0;
  min-height: 100vh;
  color: #1e3a8a;
}

header:not(.app-header) {
  background-color: #1e3a8a;
  color: white;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
header:not(.app-header) h1 {
  margin: 0 0 5px 0;
  font-size: 1.8rem;
}

header:not(.app-header) p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}
header h1 {
  margin: 0;
  font-size: 2.2em;
}

header p {
  margin: 5px 0 0 0;
  font-size: 1.1em;
  opacity: 0.9;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon {
  font-size: 3.5em;
  margin-bottom: 15px;
}

.card h2 {
  margin: 0 0 10px 0;
  font-size: 1.4em;
  color: #1f2937;
}

.card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95em;
  line-height: 1.4;
}


/* =========================================================
   SMARTPREP ITALIAN — STANDARD APP BANNER
   Matches phonics-style.css
   ========================================================= */

header.smartprep-banner {
    width: 100%;
    height: 82px;
    min-height: 82px;
    padding: 0 20px;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #1e3a8a;
    color: #ffffff;
    text-align: center;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

/* Main SmartPrep title */
header.smartprep-banner .smartprep-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* App-specific subtitle */
header.smartprep-banner .smartprep-subtitle {
    margin: 2px 0 0 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    white-space: nowrap;
}

/* Mobile consistency */
@media (max-width: 640px) {
    header.smartprep-banner {
        height: 82px;
        min-height: 82px;
        padding: 0 12px;
    }

    header.smartprep-banner .smartprep-title {
        font-size: 1.6rem;
    }

    header.smartprep-banner .smartprep-subtitle {
        font-size: 1rem;
    }
}
