/* CSS Variables and Base Styles */
:root {
  /* Colors */
  --background: #FFFFFF;
  --foreground: #333333;
  --primary: #112f45;
  --primary-foreground: #FFFFFF;
  --secondary: #4d9cb9;
  --secondary-foreground: #FFFFFF;
  --accent: #f4ba41;
  --accent-foreground: #112f45;
  --muted: #F8F9FA;
  --muted-foreground: #666666;
  --card: #FFFFFF;
  --card-foreground: #333333;
  --border: #E5E7EB;
  --input: #E5E7EB;

  /* Fonts */
  --font-serif: "Merriweather", serif;
  --font-sans: "Open Sans", sans-serif;

  /* Border Radius */
  --radius: 0.5rem;

  /* Bootstrap overrides */
  --bs-primary: #112f45;
  --bs-primary-rgb: 17, 47, 69;
  --bs-secondary: #4d9cb9;
  --bs-secondary-rgb: 77, 156, 185;
  --bs-body-font-family: "Open Sans", sans-serif;
  --bs-heading-font-family: "Merriweather", serif;
}

/* Reset and Base Styles */
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
}

/* Bootstrap Component Overrides */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: #0d2433;
  border-color: #0d2433;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-primary-foreground {
  color: var(--primary-foreground) !important;
}

.bg-muted {
  background-color: var(--muted) !important;
}

.text-muted-foreground {
  color: var(--muted-foreground) !important;
}

.border-primary-border {
  border-color: var(--border) !important;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom Utility Classes */
.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: var(--background);
}

.logo-invert {
  filter: invert(1);
}

/* Photo Decoration */
.aspect-3-4 {
  aspect-ratio: 3 / 4;
}

.photo-container {
  aspect-ratio: 1 / 1;
  max-height: 500px;
}

@media (min-width: 768px) {
  .photo-container {
    aspect-ratio: 3 / 5;
    max-height: none;
  }
}

.photo-overlay {
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.photo-decoration {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(244, 186, 65, 0.3);
  border-radius: 0.5rem;
  z-index: -10;
}

/* Prose */

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.icon-sm {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
}

/* Blog Cards */
.blog-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: white;
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: rgba(244, 186, 65, 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.25rem);
}

.blog-card-header {
  padding: 1.5rem;
  padding-bottom: 0.75rem;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-foreground);
  background-color: rgba(244, 186, 65, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.blog-date {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.blog-title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
  transition: color 0.2s;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card:hover .blog-title {
  color: var(--secondary);
}

.blog-card-content {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

.blog-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.625;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Footer */
.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

