
/* ============================================================
   AllAboutScholarships.com - Main Stylesheet
   A division of Universal Cost Control, Inc.
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e40af;
  --color-accent: #059669;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.25rem; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #111827;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; }
h4 { font-size: 1.15rem; margin-top: 1.25rem; }
p { margin-bottom: 1rem; }


/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.small { font-size: 0.875rem; }
.bold { font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 3rem 0; }
.section-alt { background: var(--color-bg-alt); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo span { color: var(--color-text); font-weight: 400; font-size: 0.9rem; }


/* --- Navigation --- */
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-link {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}
.nav-link:hover { color: var(--color-primary); text-decoration: none; }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-primary-dark); text-decoration: none; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 1rem;
}
.mobile-nav a {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}
.mobile-nav a:last-child { border-bottom: none; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: #047857; }


/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; max-width: 600px; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: #111827; }
.card-subtitle { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.card-body { margin-bottom: 1rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }

/* --- Scholarship Card --- */
.scholarship-card { border-left: 4px solid var(--color-primary); }
.scholarship-card .award-badge {
  display: inline-block;
  background: var(--color-bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.scholarship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.scholarship-meta span { background: var(--color-bg-alt); padding: 0.15rem 0.5rem; border-radius: 4px; }


/* --- Article / Content --- */
.article-content { max-width: 780px; }
.article-content h2 { border-bottom: 2px solid var(--color-border); padding-bottom: 0.5rem; }
.article-content h3 { color: var(--color-primary); }
.article-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.callout {
  background: #f0f7ff;
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.callout h4 { margin-top: 0; color: var(--color-primary-dark); }
.callout-success {
  background: #f0fdf4;
  border-left-color: var(--color-success);
}
.callout-success h4 { color: #065f46; }
.callout-warning {
  background: #fffbeb;
  border-left-color: var(--color-warning);
}
.callout-warning h4 { color: #92400e; }
.key-takeaways {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.key-takeaways h4 { margin-top: 0; }
.key-takeaways ul { margin-bottom: 0; }
.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border);
}
.related-links { margin-top: 1rem; }
.related-links h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.related-links ul { list-style: none; margin-left: 0; }
.related-links li::before { content: →; color: var(--color-primary); margin-right: 0.5rem; }

/* --- Finder Tool --- */
.finder-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.finder-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}
.filter-group select, .filter-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: #fff;
}
.filter-group select:focus, .filter-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.finder-results { min-height: 200px; }
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}
.results-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}


/* --- Newsletter --- */
.newsletter-block {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}
.newsletter-block h3 { color: #fff; margin-bottom: 0.5rem; }
.newsletter-block p { opacity: 0.85; margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.newsletter-form button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.newsletter-form button:hover { background: #047857; }
.newsletter-note { font-size: 0.75rem; opacity: 0.6; margin-top: 0.75rem; }

/* --- Footer --- */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #374151;
}
.footer-col h5 { color: #fff; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin-left: 0; }
.footer-col a {
  color: #9ca3af;
  font-size: 0.875rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-disclosure {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #374151;
}


/* --- Compliance / Badge --- */
.compliance-badge {
  display: inline-block;
  background: var(--color-bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.affiliate-placeholder {
  border: 2px dashed var(--color-border);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}
.affiliate-placeholder strong { color: var(--color-text); }
.inline-disclosure {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
}
tr:nth-child(even) { background: #f9fafb; }
tr:hover { background: #f3f4f6; }

/* --- Forms --- */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-text-muted); }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { font-size: 1.1rem; color: var(--color-text-muted); max-width: 650px; }

/* --- Feature Grid --- */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* --- Status Tags --- */
.status-open { color: var(--color-success); font-weight: 600; }
.status-closed { color: var(--color-error); font-weight: 600; }
.status-annual { color: var(--color-warning); font-weight: 600; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.active { display: flex; }
  .hero h1 { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 2rem 0; }
  .finder-filters { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
}
