:root {
  --primary-color: #3a86ff;
  --secondary-color: #ff006e;
  --accent-color: #fb5607;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-text: #6c757d;
  --border-color: #dee2e6;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

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

/* Header */
header {
  background-color: #fff;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover:after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

/* Main Content */
.main-content {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

/* Featured Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 200px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-date {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.post-card h3 {
  margin-bottom: 15px;
  transition: var(--transition);
}

.post-card:hover h3 {
  color: var(--primary-color);
}

.post-excerpt {
  margin-bottom: 20px;
  color: var(--light-text);
}

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more svg {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover svg {
  transform: translateX(5px);
}

/* Single Post */
.single-post {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
}

.post-header {
  margin-bottom: 30px;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--light-text);
}

.post-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.post-featured-image {
  margin-bottom: 30px;
}

.post-content p,
.post-content h2,
.post-content h3,
.post-content ul,
.post-content ol {
  margin-bottom: 20px;
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: 30px;
}

.post-content ul,
.post-content ol {
  padding-left: 20px;
}

/* "This Day in History" section */
.history-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
}

.history-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.history-item {
  display: flex;
  margin-bottom: 15px;
}

.history-year {
  min-width: 70px;
  font-weight: bold;
  color: var(--secondary-color);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--accent-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* About Page */
.about-section {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
}

.about-intro {
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Contact Page */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.contact-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  min-width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
}

.contact-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-content {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.cookie-btn-accept:hover {
  background-color: #2a75e0;
}

.cookie-btn-settings {
  background-color: white;
  border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
  background-color: #f0f0f0;
}

.cookie-btn-decline {
  background-color: white;
  border: 1px solid var(--border-color);
}

.cookie-btn-decline:hover {
  background-color: #f0f0f0;
}

/* Thank You Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--box-shadow);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-title {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.modal-close {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-right {
    left: 0;
  }

  .timeline-container::after {
    left: 22px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .single-post {
    padding: 20px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    margin-top: 20px;
    justify-content: center;
  }
}
