:root {
  --primary-color: #2a6def;
  --secondary-color: #51c5ed;
  --accent-color: #ff6b6b;
  --background-color: #f8fafc;
  --dark-color: #183153;
  --light-color: #ffffff;
  --text-color: #333333;
  --text-light: #777777;
  --border-color: #e0e6ed;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-secondary: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  z-index: 9999;
}

.progress-bar {
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  width: 0%;
}

/* Header */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

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

.logo img {
  height: 40px;
  width: 40px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}

nav ul {
  display: flex;
}

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

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

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

nav ul li a.active:after,
nav ul li a:hover:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(42, 109, 239, 0.1) 0%, rgba(81, 197, 237, 0.1) 100%);
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Admin Panel Preview */
.admin-panel-preview {
  padding: 60px 0;
  background-color: var(--light-color);
}

.admin-panel-preview h2 {
  text-align: center;
  margin-bottom: 30px;
}

.admin-panel-preview iframe {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Featured Posts */
.featured-posts {
  padding: 80px 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

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

.post-card {
  background-color: var(--light-color);
  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.1);
}

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

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
}

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

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

/* Newsletter */
.newsletter {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(42, 109, 239, 0.1) 0%, rgba(81, 197, 237, 0.1) 100%);
}

.newsletter h2 {
  margin-bottom: 15px;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: var(--font-primary);
  outline: none;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 30px;
}

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

.footer-logo {
  flex: 0 0 100%;
  max-width: 250px;
  margin-bottom: 30px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  justify-content: space-around;
}

.footer-links-column {
  flex: 0 0 auto;
  margin-bottom: 30px;
}

.footer-links-column h4 {
  color: var(--light-color);
  margin-bottom: 20px;
  position: relative;
}

.footer-links-column h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

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

.footer-links-column ul li a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-links-column address p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-links-column address a {
  color: var(--secondary-color);
}

.footer-social {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h4 {
  color: var(--light-color);
  margin-bottom: 20px;
}

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

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

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background-color: var(--light-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-content {
  max-width: 800px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-accept {
  background-color: var(--success-color);
  color: white;
}

.btn-customize {
  background-color: var(--warning-color);
  color: white;
}

.btn-reject {
  background-color: var(--danger-color);
  color: white;
}

.cookie-buttons button:hover {
  opacity: 0.9;
}

.cookie-more-info {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* About Page Styles */
.about-hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(42, 109, 239, 0.1) 0%, rgba(81, 197, 237, 0.1) 100%);
}

.about-mission {
  padding: 60px 0;
  background-color: var(--light-color);
}

.about-mission p {
  max-width: 800px;
  margin: 0 auto 20px;
}

.team {
  padding: 80px 0;
}

.team h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

.team-member {
  text-align: center;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--primary-color);
}

.team-member h3 {
  margin-bottom: 5px;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.team-member .social-icons {
  margin-top: 20px;
}

.team-member .social-icons a {
  background-color: rgba(42, 109, 239, 0.1);
  color: var(--primary-color);
}

.our-values {
  padding: 60px 0;
  background-color: var(--light-color);
}

.our-values h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

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

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

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

.cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-color);
}

.cta h2,
.cta p {
  color: var(--light-color);
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.button {
  display: inline-block;
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
}

.button:hover {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* Contact Page Styles */
.contact-hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(42, 109, 239, 0.1) 0%, rgba(81, 197, 237, 0.1) 100%);
}

.contact-info {
  padding: 60px 0;
  background-color: var(--light-color);
}

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

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

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

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

.contact-card h3 {
  margin-bottom: 15px;
}

.contact-form {
  padding: 60px 0;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 40px;
}

form {
  max-width: 700px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

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

.map {
  padding: 60px 0;
  background-color: var(--light-color);
}

.map h2 {
  text-align: center;
  margin-bottom: 30px;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.modal-content {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.success-icon {
  color: var(--success-color);
  margin: 0 auto 20px;
}

/* Blog Post Single */
.post-single {
  padding: 60px 0;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

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

.post-featured-image {
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

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

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

.post-content ul li {
  list-style-type: disc;
}

.post-share {
  max-width: 800px;
  margin: 50px auto;
  text-align: center;
}

.social-share {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-share a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

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

.post-navigation {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 50px auto;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.post-navigation a {
  padding: 15px;
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-navigation a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-navigation a span {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.post-navigation a h4 {
  margin-bottom: 0;
}

.post-navigation-prev {
  margin-right: auto;
}

.post-navigation-next {
  margin-left: auto;
  text-align: right;
}

.related-posts {
  padding: 60px 0;
  background-color: var(--light-color);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-navigation-next {
    text-align: left;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  nav ul li {
    margin-left: 0;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }
  
  .newsletter-form button {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .cookie-consent {
    width: 95%;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .social-share a {
    flex: 1 1 auto;
  }
}
