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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

a:hover {
  color: #a93226;
}

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

/* Header and Navigation */
.header {
  background: #1a252f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compass-icon {
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #ecf0f1;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(192, 57, 43, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
  color: #ffffff;
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: #c0392b;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.cta-button:hover {
  background: #a93226;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
  color: #ffffff;
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.search-icon,
.heart-icon {
  font-size: 4rem;
  opacity: 0.8;
}

.search-icon {
  animation: pulse 2s infinite;
}

.heart-icon {
  position: absolute;
  top: -1rem;
  right: -1rem;
  font-size: 2rem;
  animation: heartbeat 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Sections */
.featured-articles,
.articles-listing {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #1a252f;
}

.page-header {
  background: #f8f9fa;
  padding: 3rem 0;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  color: #1a252f;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
  color: #ffffff;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.article-category {
  background: #c0392b;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
}

.featured .article-category {
  background: rgba(255, 255, 255, 0.2);
}

.article-date {
  color: #6c757d;
  font-weight: 500;
}

.featured .article-date {
  color: rgba(255, 255, 255, 0.8);
}

.article-title {
  margin-bottom: 1rem;
}

.article-title a {
  color: inherit;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: #c0392b;
}

.featured .article-title a:hover {
  color: #ffffff;
  opacity: 0.9;
}

.article-excerpt {
  margin-bottom: 1.5rem;
  color: #6c757d;
  line-height: 1.6;
}

.featured .article-excerpt {
  color: rgba(255, 255, 255, 0.9);
}

.read-more {
  font-weight: 600;
  color: #c0392b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #a93226;
  transform: translateX(5px);
}

.featured .read-more {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.featured .read-more:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(0);
}

/* View All Link */
.view-all {
  text-align: center;
}

.view-all-link {
  display: inline-block;
  background: #1a252f;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  background: #2c3e50;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Inspiration Quote */
.inspiration-quote {
  background: #f8f9fa;
  padding: 4rem 0;
}

.quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote p {
  font-size: 1.5rem;
  font-style: italic;
  color: #1a252f;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.quote cite {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

/* About Page Styles */
.about-content {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.about-text h2 {
  color: #1a252f;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: bold;
}

.mission-box,
.values-box {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid #c0392b;
}

.mission-box h3,
.values-box h3 {
  color: #1a252f;
  margin-bottom: 1rem;
}

.values-box ul {
  list-style: none;
  padding-left: 0;
}

.values-box li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.values-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: bold;
}

/* Resources Page Styles */
.resources-content {
  padding: 4rem 0;
}

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

.resource-category h2 {
  color: #1a252f;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #c0392b;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resource-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #c0392b;
}

.resource-item h3 {
  color: #1a252f;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.resource-item p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.resource-note {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.resource-note h3 {
  color: #1a252f;
  margin-bottom: 1rem;
}

/* Article Page Styles */
.article-header {
  background: #f8f9fa;
  padding: 3rem 0;
}

.article-meta-full {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  color: #1a252f;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.highlight-box {
  background: #f8f9fa;
  border-left: 4px solid #c0392b;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-style: italic;
  color: #2c3e50;
}

/* Footer */
.footer {
  background: #1a252f;
  color: #ecf0f1;
  padding: 3rem 0 1rem;
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-text {
  color: #bdc3c7;
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #95a5a6;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #1a252f;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-card.featured {
    grid-column: span 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .featured-articles,
  .articles-listing,
  .about-content,
  .resources-content {
    padding: 2rem 0;
  }

  .article-card {
    padding: 1.5rem;
  }

  .mission-box,
  .values-box {
    padding: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .article-card {
    border: 2px solid #000;
  }

  .cta-button,
  .read-more {
    border: 2px solid currentColor;
  }
}
