/* Import Inter font for clean, modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
  --bg: #f8fafc;
  --fg: #1e293b;
  --brand: #334155;
  --brand-light: #475569;
  --brand-dark: #1e293b;
  --brand-accent: #0f766e;
  --muted: #64748b;
  --card: #ffffff;
  --card-secondary: #f1f5f9;
  --border: #e2e8f0;
  --accent: #f1f5f9;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  --gradient-brand: linear-gradient(135deg, #334155 0%, #0f766e 100%);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: #ffffff;
  color: var(--fg);
  font-size: 16px;
  min-height: 100vh;
  padding-top: 60px;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

main .container {
  padding: 0;
  max-width: none;
  margin: 0;
}

/* Header Styles */
header.site {
  background: rgba(255, 255, 255, 0.95);
  color: var(--fg);
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

header.site.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--muted);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.5rem 2rem;
  max-width: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s ease;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.brand:hover {
  opacity: 0.7;
}

.logo-image {
  height: 50px;
  width: auto;
  display: block;
}

.small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 400;
}

nav {
  display: flex;
  gap: 0;
  align-items: center;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 0;
  transition: all 0.2s ease;
  font-weight: 400;
  font-size: 0.9rem;
  position: relative;
}

nav a:hover {
  color: var(--brand);
}

nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--brand);
}

.nav-active {
  color: var(--brand) !important;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--brand);
}

/* Breadcrumb Navigation - Updated for minimal height */
.breadcrumb-nav {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 0.1rem 0;
  font-size: 0.8rem;
}

.breadcrumb-nav .container {
  padding: 0.1rem 1rem;
  margin: 0 auto;
  max-width: 1200px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.1;
  align-items: center;
  min-height: 1.5rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  height: 1.5rem;
}

.breadcrumb-item a {
  padding: 0.1rem 0.25rem;
  color: var(--brand-accent) !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  padding: 0 0.5rem;
  color: var(--muted);
}

.breadcrumb-item a:hover {
  color: var(--brand-dark) !important;
  text-decoration: none !important;
}

.breadcrumb-item a:visited {
  color: var(--brand-accent) !important;
}

.breadcrumb-item a:focus {
  color: var(--brand-dark) !important;
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.breadcrumb-item.active {
  color: var(--muted);
  font-weight: 400;
}

/* Hero Carousel Styles */
.hero-carousel-container {
  position: relative;
  width: 100%;
  margin: 0 0 4rem 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 500px;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.7);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

/* Slide-specific text positioning */
.hero-slide:nth-child(1) .hero-text {
  text-align: center;
  margin-left: 8%;
  margin-right: auto;
}

.hero-slide:nth-child(1) .hero-content {
  align-items: flex-start;
  padding-top: 8%;
}

.hero-slide:nth-child(2) .hero-text {
  text-align: right;
  margin-left: auto;
  margin-right: 5%;
}

.hero-slide:nth-child(3) .hero-text {
  text-align: left;
  margin-left: 5%;
  margin-right: auto;
}

.hero-slide:nth-child(3) .hero-content {
  align-items: flex-end;
  padding-bottom: 8%;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white;
}

/* Larger brand name for first slide */
.hero-slide:nth-child(1) .hero-text h1 {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.hero-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  color: white;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.hero-text .lead {
  font-size: 1.3rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
}

.hero-nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  color: var(--brand-dark);
  font-weight: bold;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
}

.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Shared Content Container */
/* Three Column Layout */
.three-column-container {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 2rem;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sidebar positioning */
.sidebar-left {
  grid-column: 1;
  min-width: 0; /* Allow shrinking */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sidebar-right {
  grid-column: 3;
  min-width: 0; /* Allow shrinking */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Main Layout */
.main-layout {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
  width: 100%;
}

/* Main Content Positioning */
.main-content {
  grid-column: 2;
}

/* Full width elements that span all columns */
.full-width {
  grid-column: 1 / -1;
}

/* Main content area */
.main-content {
  grid-column: 2;
  width: 100%;
  max-width: none;
}

.info-widget {
  background: var(--card-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

/* Different widget sizes */
.info-widget.small-widget {
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: var(--accent);
  border-left: 3px solid var(--brand-accent);
}

.info-widget.large-widget {
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--card-secondary) 0%, var(--card) 100%);
  border: 2px solid var(--brand-light);
}

.info-widget.small-widget h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.info-widget.small-widget p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
}

.info-widget.large-widget h4 {
  color: var(--brand-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Poll and interactive content */
.poll-options {
  text-align: left;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.poll-options div {
  margin: 0.25rem 0;
  color: var(--muted);
}

.rating {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--warning);
}

.info-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-widget h4 {
  margin: 0 0 0.75rem 0;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
}

.info-widget p {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.btn-small {
  display: inline-block;
  background: var(--brand);
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  word-wrap: break-word;
  max-width: 100%;
}

.btn-small:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* Card Styles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-light);
}

/* Content Area Link Styling */
.card a,
.main-content a,
p a {
  color: var(--brand-accent) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.card a:hover,
.main-content a:hover,
p a:hover {
  color: var(--brand-dark) !important;
  text-decoration: none !important;
  border-bottom-color: var(--brand-accent);
}

.card a:visited,
.main-content a:visited,
p a:visited {
  color: var(--brand-accent) !important;
}

.card a:focus,
.main-content a:focus,
p a:focus {
  color: var(--brand-dark) !important;
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  color: var(--fg);
  font-weight: 700;
  margin: 0 0 1rem;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 1.5rem 0 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1rem 0 0.75rem;
  letter-spacing: -0.015em;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-item {
  background: var(--card-secondary);
  padding: 2rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.resource-item:hover {
  background: var(--card);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--brand);
  text-decoration: none;
}

.resource-item-content {
  flex: 1;
}

.resource-item h3 {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 600;
}

.resource-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.resource-image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.resource-image-small {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Tags */
.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  background: var(--brand);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

/* Inside main content, grid has no max-width constraint */
.main-content .grid {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.grid.two-column {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid.two-column {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2rem;
  }
}

/* Content Blocks */
.content-block {
  border-radius: 2px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Interstitial Link Styling */
.interstitial-links {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

.interstitial-links a {
  color: #007bff;
  text-decoration: none;
}

.interstitial-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* FAQ Section Styling */
.faq-section {
  text-align: left;
  max-width: 100%;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 3px solid #007bff;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.faq-item h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* Interstitial Content Blocks */
.interstitial-block {
  margin: 3rem 0;
  padding: 0 2rem;
}

.content-card {
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

.content-card h4 {
  margin: 0 0 1rem 0;
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

/* Horizontal Scroll Section */
.horizontal-scroll-section {
  margin: 3rem 0;
  padding: 0 2rem;
}

.horizontal-scroll-section h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand-dark);
}

.scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem 0;
  scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: var(--accent);
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--brand-light);
  border-radius: 4px;
}

.scroll-item {
  flex: 0 0 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.scroll-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.scroll-item h4 {
  margin: 0 0 0.75rem 0;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.scroll-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.scroll-item.ad-spot {
  background: var(--gradient-brand);
  color: white;
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 80px;
}

.ad-placeholder p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: #ffffff;
  margin-top: 3rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
}

footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Additional responsive handling for constrained layouts */
@media (min-width: 1024px) and (max-width: 1300px) {
  .grid.two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .card {
    padding: 2rem;
  }
}

@media (max-width: 800px) {
  .three-column-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .main-content {
    grid-column: 1;
  }
  
  .sidebar-left,
  .sidebar-right {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .info-widget {
    margin-bottom: 0;
  }
  
  .hero-carousel {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text .lead {
    font-size: 1.1rem;
  }
  
  .hero-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .scroll-item {
    flex: 0 0 160px;
    padding: 1rem;
  }
  
  .interstitial-block {
    padding: 0 1rem;
  }
  
  .horizontal-scroll-section {
    padding: 0 1rem;
  }
  
  .hero-carousel {
    height: 350px;
  }
  
  .hero-text {
    padding: 1rem;
  }
  
  .resource-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .resource-image {
    width: 120px;
    height: 80px;
    align-self: center;
  }
  
  header .container {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  nav {
    width: 100%;
    justify-content: center;
    order: 2;
    margin-top: 1rem;
  }
  
  nav a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  
  nav a:hover::after,
  .nav-active::after {
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  main .container {
    padding: 1rem 0.5rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .content-block {
    padding: 1.5rem 1rem;
  }
}
