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

:root {
  --bg-primary: #f4f6f8;
  --bg-header: linear-gradient(90deg, #003c6c 29%, #1569a9 100%);
  --bg-topbar: #002542;
  --text-primary: #24292f;
  --text-secondary: #57606a;
  --text-light: #ffffff;
  --accent-blue: #003c6c;
  --accent-blue-hover: #1569a9;
  --accent-gold: #fdc700;
  --accent-gold-hover: #e0b000;
  --border: #d0d7de;
  --card-bg: #ffffff;
  --success: #1a7f37;
  
  --font-heading: 'Outfit', 'Roboto', -apple-system, sans-serif;
  --font-body: 'Roboto', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Mini Banner */
.top-bar {
  background-color: var(--bg-topbar);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 0.4rem 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  font-weight: 700;
}

/* Primary Header */
header {
  background: var(--bg-header);
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

/* Styled Baskin Logo Icon representation */
.logo-be-badge {
  background-color: var(--accent-gold);
  color: #003c6c;
  font-weight: 900;
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  line-height: 1;
  font-family: var(--font-heading);
}

.logo-text {
  color: var(--text-light);
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.logo-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
  background-color: var(--accent-gold);
  color: #003c6c;
}

/* Golden Separator Bar */
.gold-bar {
  background-color: var(--accent-gold);
  height: 5px;
  width: 100%;
}

/* Secondary Sub-nav */
.sub-nav {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
}

.sub-nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
}

.sub-nav-item {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.sub-nav-item:hover {
  color: var(--accent-gold-hover);
}

/* Main Layout */
main {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* Hub / Dashboard Grid */
.hub-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hub-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-blue);
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-top-color: var(--accent-gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-blue);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
  border: 1px solid var(--accent-blue);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
  background-color: rgba(0, 60, 108, 0.05);
}

/* Page Article Style */
article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 6px solid var(--accent-blue);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

article h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

article p {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Rendered Images */
article img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Custom Markdown Links parsed to Buttons */
article a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin: 1rem 0;
}

article a:hover {
  background-color: var(--accent-blue-hover);
  box-shadow: 0 4px 8px rgba(0, 60, 108, 0.2);
}

/* Footer */
footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  article {
    padding: 1.5rem;
  }
  article h1 {
    font-size: 1.75rem;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive YouTube Video Embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
