/* Global Styles */
:root {
  --primary-color: #e74694;
  --secondary-color: #4b6cb7;
  --accent-color: #ff9a8b;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --white: #fff;
  --black: #000;
  --font-main: 'Nunito', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 700;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header Styles */
header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

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

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--white);
  font-weight: 600;
  position: relative;
}

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

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Featured Posts */
.featured-posts {
  padding: 5rem 0;
}

.featured-posts h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

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

.post-card:hover {
  transform: translateY(-10px);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

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

.post-card:hover .post-image img {
  transform: scale(1.1);
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* This Day in History */
.history-section {
  background-color: var(--light-gray);
  padding: 3rem 0;
}

.history-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.history-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.history-content p {
  margin-bottom: 1rem;
}

.history-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* About Page */
.about-section {
  padding: 5rem 0;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-header h1 {
  font-size: 3rem;
  color: var(--primary-color);
}

.about-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  height: 250px;
  overflow: hidden;
}

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

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.team-info p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

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

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

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

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

.contact-form form {
  display: grid;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(231, 70, 148, 0.3);
}

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

/* Blog Post */
.post-header {
  padding: 3rem 0;
  background-color: var(--light-gray);
  text-align: center;
}

.post-header h1 {
  font-size: 3rem;
  color: var(--primary-color);
}

.post-meta-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  color: var(--dark-gray);
}

.post-featured-image {
  height: 500px;
  overflow: hidden;
  margin-bottom: 3rem;
}

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

.post-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.post-overview {
  background-color: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.post-overview h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.post-overview ul {
  margin-left: 1.5rem;
}

.post-overview li {
  margin-bottom: 0.5rem;
}

.post-body {
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
}

.post-body img {
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--box-shadow);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid var(--medium-gray);
  margin-top: 3rem;
}

/* Footer */
footer {
  background-color: #333;
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-about p {
  margin-bottom: 1.5rem;
}

.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

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

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--medium-gray);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-newsletter p {
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  margin-bottom: 1rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

.social-media {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.footer-policies {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-policies a {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.footer-policies a:hover {
  color: var(--white);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

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

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

.cookie-btn-customize, .cookie-btn-decline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.cookie-btn:hover {
  opacity: 0.9;
}

/* Thank You Popup */
.thank-you-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.thank-you-popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

.popup-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.popup-content p {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .history-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    z-index: 1001;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    margin-top: 3rem;
  }
  
  nav ul li {
    margin: 1rem 0;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .post-meta-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .popup-content {
    width: 90%;
    padding: 2rem;
  }
}
