/* Base Styles and Variables */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1c40f;
  --light-color: #f1faee;
  --dark-color: #1d3557;
  --gray-color: #a8dadc;
  --text-color: #333;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

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

.btn:hover {
  background-color: #d32f2f;
  color: white;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #14253d;
}

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Layout Components */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

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

.logo {
  height: 60px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

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

.nav-links li a {
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-links li a.active {
  color: var(--primary-color);
}

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

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0;
  text-align: center;
}

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

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

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

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 80px 5%;
  background-color: white;
}

.feature {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.feature-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-icon svg {
  width: 50px;
  height: 50px;
}

.feature h2 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Quote Section */
.quote-section {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 5%;
  text-align: center;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
}

.quote-container h2 {
  margin-bottom: 20px;
  font-size: 1.75rem;
}

#quote-text {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
}

/* Clock Section */
.clock-section {
  background-color: var(--light-color);
  padding: 40px 5%;
  text-align: center;
}

.clock-container {
  max-width: 600px;
  margin: 0 auto;
}

.clock-container h2 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

#clock {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* CTA Section */
.cta {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 5%;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

/* Recent Posts Section */
.recent-posts {
  padding: 80px 5%;
  background-color: white;
}

.recent-posts h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  font-size: 2.25rem;
}

.posts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.post-card h3 {
  padding: 20px 20px 10px;
  color: var(--secondary-color);
}

.post-card p {
  padding: 0 20px 20px;
  color: #666;
}

.read-more {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 10px;
}

.see-all {
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 5% 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 10px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

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

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p svg {
  margin-right: 10px;
  flex-shrink: 0;
}

.social-icons {
  display: flex;
  gap: 15px;
}

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 20px;
  display: none;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 15px;
}

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

.cookie-policy {
  font-size: 0.85rem;
}

/* Blog Page Styles */
.page-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 5%;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.blog-content {
  padding: 60px 5%;
}

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

.post-info {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  color: #666;
  font-size: 0.9rem;
}

.post-date, .post-category {
  display: flex;
  align-items: center;
}

.post-category {
  background-color: var(--light-color);
  padding: 2px 10px;
  border-radius: 15px;
  color: var(--secondary-color);
}

/* Blog Post Styles */
.blog-post {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

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

.post-header h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #666;
  font-size: 0.9rem;
}

.post-featured-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  margin-bottom: 30px;
  line-height: 1.8;
}

.post-content h2 {
  margin: 30px 0 15px;
  color: var(--secondary-color);
}

.post-content h3 {
  margin: 25px 0 10px;
  color: var(--secondary-color);
}

.post-content p {
  margin-bottom: 20px;
}

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

.post-content ul li, .post-content ol li {
  margin-bottom: 10px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tag {
  background-color: var(--light-color);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.related-posts {
  background-color: #f8f9fa;
  padding: 60px 5%;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

/* Contact Page Styles */
.contact-section {
  padding: 60px 5%;
  background-color: white;
}

.contact-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info, .contact-form-container {
  flex: 1 1 400px;
}

.contact-info h2, .contact-form-container h2 {
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-icon {
  margin-right: 20px;
  color: var(--primary-color);
}

.info-content h3 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

.map-section {
  padding: 60px 5%;
  background-color: #f8f9fa;
}

.map-container {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.map-container h2 {
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.map-placeholder {
  height: 400px;
  background-color: #eee;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* About Page Styles */
.about-story {
  padding: 60px 5%;
  background-color: white;
}

.about-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.about-image, .about-content {
  flex: 1 1 400px;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-content h2 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-content p {
  margin-bottom: 20px;
}

.about-values {
  padding: 60px 5%;
  background-color: #f8f9fa;
}

.values-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.values-container h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

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

.value-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-icon svg {
  width: 40px;
  height: 40px;
}

.value-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.team-section {
  padding: 60px 5%;
  background-color: white;
}

.team-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.team-container h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

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

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

.team-image {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
}

.team-card h3 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.team-card p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.achievements-section {
  padding: 60px 5%;
  background-color: #f8f9fa;
}

.achievements-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.achievements-container h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

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

.achievement-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
}

.achievement-icon {
  margin-right: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.achievement-icon svg {
  width: 36px;
  height: 36px;
}

.achievement-card h3 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

/* Thank You Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: var(--border-radius);
  position: relative;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.modal-body {
  text-align: center;
  padding: 20px 0;
}

.check-icon {
  color: #4CAF50;
  margin-bottom: 20px;
}

.modal-body h2 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.modal-body p {
  margin-bottom: 20px;
}

.close-btn {
  margin-top: 10px;
}

/* Special Post Elements */
.combo-recommendation {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
}

.combo-recommendation h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.combo-recommendation p {
  margin-bottom: 10px;
}

.combo-recommendation p strong {
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    gap: 20px;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .feature {
    flex: 1 1 100%;
  }
  
  .about-container, .contact-container {
    flex-direction: column;
  }
  
  .values-grid, .team-grid, .achievements-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  #quote-text {
    font-size: 1.25rem;
  }
  
  #clock {
    font-size: 2rem;
  }
}

/* Utility Classes */
.rounded-image {
  border-radius: var(--border-radius);
}
