/* styles.css */

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

:root {
  --primary-color: #B76E79;
}

body, html {
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  background-color: #eeeeee;
}

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

a {
  text-decoration: none;
  color: var(--primary-color);
}

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

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

.hero-image {
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.3s;
}

.btn-outline-secondary {
  background-color: unset;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn:hover {
  background-color: #e73370;
  color: #fff;
}

/* Sections */
section {
  padding: 50px 0;
  text-align: center;
}

section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #333;
}

/* Filter Buttons */
.filter-buttons {
  margin-bottom: 20px;
}

.filter-btn {
  text-decoration: none;
  color: var(--primary-color);
  padding: 8px 16px;
  border: none;
  background-color: #eee;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Stories Grid */
.stories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.story-card {
  background: #f9f9f9;
  padding: 20px;
  flex: 1 1 calc(50% - 30px);
  text-align: left;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .story-card {
    flex: 1 1 calc(100% - 30px);
  }
}

.story-card.full {
  flex: 1 1 calc(100% - 30px);
}

.story-card .story-content{
  /* max 2 lines overflow */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
  max-height: 3.2em; /* line-height * number of lines */
  line-height: 1.6em;
  margin-bottom: 10px;
  color: #666;
  font-size: 0.9rem;
}

.story-card a {
  text-decoration: unset;
}

/* On hover a, underline h3 */
.story-card a:hover > .story-card h3{
  text-decoration: underline;
}

.story-card h3 {
  margin-bottom: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  color: var(--primary-color);
}


.story-card .story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.story-card .story-tags span {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s;
}

.story-card .story-tags span:hover {
  background: var(--primary-color);
  color: white;
}

.story-card p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #666;
}

/* Contact Form */
#contactForm {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contactForm button {
  padding: 10px;
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#contactForm button:hover {
  background-color: #e73370;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}