/* CSS Reset and Base Styles */
:root {
  --primary-color: #002f5d;
  /* Deep Blue */
  --secondary-color: #4DB6AC;
  /* Teal */
  --accent-color: #00BFA5;
  /* Bright Teal */
  --background-color: #f5f5f5;
  --surface-color: #ffffff;
  --text-primary: #212121;
  --text-secondary: #757575;
  --font-family: 'Roboto', 'Inter', sans-serif;
  --shadow-1: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  color: var(--primary-color);
}

/* Header & Nav */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  border-radius: 50%;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
}

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

/* Hero Section */
.hero {
  background: white;
  /* Dark geometric background or gradient */
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d80 100%);
  color: white;
  padding: 4rem 20px;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-1);
}

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

.btn-primary:hover {
  background-color: #64ffda;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Main Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* Podcast Widget Section */
.podcast-widget {
  margin-bottom: 4rem;
  text-align: center;
}

/* Section Styling */
section {
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-header h2 {
  font-size: 2rem;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image-header {
  height: 160px;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Default placeholders patterns */
.card-image-header.dremio-pattern {
  background: repeating-linear-gradient(45deg, #002f5d, #002f5d 10px, #003a70 10px, #003a70 20px);
}

.card-image-header.dlh-pattern {
  background: repeating-linear-gradient(-45deg, #4DB6AC, #4DB6AC 10px, #26A69A 10px, #26A69A 20px);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--primary-color);
}

.card-snippet {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-action {
  margin-top: auto;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  color: var(--accent-color);
}

/* List Groups (for Recommended) */
.list-group {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-1);
  padding: 10px 0;
}

.list-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: #f9f9f9;
}

.list-item-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.list-item-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero,
  .podcast-widget,
  section {
    margin-bottom: 2rem;
  }
}