@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- GLOBAL VARIABLES & THEME OVERRIDES --- */
:root {
  /* Core Brand Colors */
  --sm-lime: #a7e628;
  /* Vibrant Lime */
  --sm-navy: #263b4b;
  /* Dark Slate/Navy */
  --sm-slate: #304c5f;
  /* Medium Slate */
  --sm-light-lime: #d7fc81;
  --sm-bg-light: #f4f6f8;
  --sm-border: #e1e4e8;

  /* Material Theme Variable Overrides */
  /* We use !important on these variables to ensure they beat the theme defaults */
  --md-primary-fg-color: var(--sm-navy);
  --md-primary-bg-color: #ffffff;
  --md-text-font-family: "Inter", sans-serif;
  --md-typeset-font-size: 1rem;
}

/* --- LINK STYLING --- */
/* Apply slate color to body links, lime on hover */
.md-typeset a {
  color: var(--sm-slate);
  transition: color 0.2s;
}

.md-typeset a:hover {
  color: var(--sm-lime);
}

/* --- ADMONITIONS (ORIGINAL STYLE) --- */
/* Reverted to the initial design: Light gray body, white title bar */
.md-typeset .admonition,
.md-typeset details {
  border: 1px solid var(--sm-border) !important;
  border-radius: 8px;
  box-shadow: none !important;
  background-color: #f9fafb;
}

.md-typeset .admonition-title,
.md-typeset summary {
  background-color: white !important;
  border-bottom: 1px solid var(--sm-border);
  font-weight: 600;
}

/* --- HEADER STYLING --- */
/* Strict override for header background */
.md-header {
  background-color: var(--sm-navy) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.md-header__title,
.md-header__button,
.md-header__topic {
  color: #ffffff !important;
  font-weight: 600;
}

/* Tabs styling - Force Navy background to match header */
.md-tabs {
  background-color: var(--sm-navy) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-bottom: none;
}

.md-tabs__link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: #ffffff !important;
  font-weight: 700;
}

/* --- FOOTER STYLING --- */
/* Apply Navy to the entire footer area */
.md-footer {
  background-color: var(--sm-navy) !important;
  color: white !important;
}

.md-footer-meta {
  background-color: var(--sm-navy) !important;
}

.md-footer-meta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  /* Reduced padding for shorter footer */
}

/* Hide "Made with Material for MkDocs" branding */
.md-footer-copyright__highlight,
.md-footer-copyright>a {
  display: none;
}

/* Social Icons specific sizing */
.md-social {
  margin-bottom: 1.5rem;
  gap: 2rem;
  justify-content: center;
}

.md-social__link {
  color: white !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
}

/* Target SVG directly to force size increase */
.md-social__link svg {
  height: 2.4rem !important;
  width: 2.4rem !important;
}

/* Custom Footer Contact Info Class */
.sm-footer-contact {
  text-align: center;
  margin-top: 1rem;
}

.sm-footer-contact p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  /* Smaller text */
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sm-footer-contact .twemoji {
  color: rgba(255, 255, 255, 0.7);
  height: 1.2rem;
  width: 1.2rem;
}

/* --- NAVIGATION & CONTENT --- */

/* Force Sidebar Navigation to be Vertical */
.md-nav__list {
  display: flex;
  flex-direction: column;
  /* Ensures vertical stacking */
}

/* Table of Contents specific styling */
.md-nav--secondary .md-nav__list {
  display: block;
  /* Standard block layout for TOC */
}

/* Nav Link Hover State */
.md-nav__link:hover {
  color: var(--sm-lime) !important;
}

.md-nav__link--active {
  color: var(--sm-navy) !important;
  font-weight: 700;
  border-left: 3px solid var(--sm-lime);
  /* Lime accent */
  padding-left: 8px;
}

/* --- CUSTOM UTILITIES --- */

/* Hero Section */
.sm-hero {
  padding: 4rem 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.sm-hero h1 {
  font-size: 3rem !important;
  font-weight: 800 !important;
  color: var(--sm-navy);
  margin-bottom: 1.5rem;
}

/* Buttons */
.sm-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--sm-lime);
  /* Lime */
  color: var(--sm-navy) !important;
  /* Navy Text */
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(167, 230, 40, 0.3);
}

.sm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 230, 40, 0.5);
  color: var(--sm-navy) !important;
}

/* Feature Cards */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.sm-card {
  background: white;
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease;
}

.sm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}