/* General Styles */
:root {
  --primary-color: #5f4bb6;
  --secondary-color: #272b33;
  --accent-color: #f86734;
  --text-color: #333;
  --text-light: #666;
  --text-dark: #111;
  --bg-color: #fff;
  --bg-dark: #1a1c22;
  --bg-light: #f5f7fa;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --container-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
}

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

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

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

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

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

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

p {
  margin-bottom: 1rem;
}

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

button:hover, .btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

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

input, textarea, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 16px;
}

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

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

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

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

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

header h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

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

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

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

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

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

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

#font-size-decrease {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: transparent;
  color: var(--text-color);
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

#font-size-decrease:hover {
  background-color: var(--bg-light);
  transform: none;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: white;
}

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

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-image {
  flex: 1;
}

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

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

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

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

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

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

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

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

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

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

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

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

.read-more:hover {
  color: var(--accent-color);
}

/* Newsletter Section */
.newsletter {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: white;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 20px;
}

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

.email-form input {
  flex: 1;
  margin-bottom: 0;
}

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

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.footer-logo h3 {
  color: white;
  margin-bottom: 10px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
}

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

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

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

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

.footer-contact h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

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

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

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

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  color: white;
  padding: 15px;
  z-index: 9999;
  display: none;
}

.cookie-notice.show {
  display: block;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.cookie-content a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-content a:hover {
  color: white;
}

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

.page-header h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-posts {
  padding: 60px 0;
}

.post-item {
  display: flex;
  margin-bottom: 40px;
  background-color: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-image {
  flex: 0 0 300px;
}

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

.post-item .post-content {
  flex: 1;
  padding: 30px;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-light);
}

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

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

.info-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-icon {
  margin-right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(95, 75, 182, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
}

.info-text h4 {
  margin-bottom: 5px;
}

.social-media {
  margin-top: 30px;
}

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

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

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

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

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

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

/* About Page Styles */
.about-intro {
  padding: 60px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  margin-bottom: 20px;
}

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

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

.team-section h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

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

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

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

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-card h3 {
  margin: 15px 0 5px;
  padding: 0 15px;
}

.team-card p {
  padding: 0 15px;
  margin-bottom: 10px;
}

.team-card p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: rgba(95, 75, 182, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

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

.values-section {
  padding: 60px 0;
}

.values-section h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

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

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

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(95, 75, 182, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
}

/* Blog Post Styles */
.blog-post {
  padding: 60px 0;
}

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

.post-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

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

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.blog-post .post-content h3 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.blog-post .post-content ul,
.blog-post .post-content ol {
  margin-bottom: 30px;
}

.blog-post .post-content li {
  margin-bottom: 10px;
}

.post-image {
  margin: 30px 0;
}

.image-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  padding: 10px 0;
}

.post-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(95, 75, 182, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  transition: var(--transition);
}

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

.post-share {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.post-share span {
  font-weight: 600;
}

.post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(95, 75, 182, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

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

.post-navigation {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-nav-prev,
.post-nav-next {
  max-width: 45%;
}

.post-nav-prev a,
.post-nav-next a {
  display: flex;
  flex-direction: column;
}

.post-nav-prev span,
.post-nav-next span {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.post-nav-prev p,
.post-nav-next p {
  font-weight: 600;
  margin: 0;
}

.post-nav-next {
  text-align: right;
}

.post-nav-next a {
  align-items: flex-end;
}

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

.related-posts h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

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

.modal.show {
  display: flex;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content h3 {
  margin-bottom: 15px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .post-header h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    padding: 15px;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav ul li {
    margin-left: 15px;
    margin-right: 15px;
  }
  
  #font-size-decrease {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .post-item {
    flex-direction: column;
  }
  
  .post-image {
    flex: auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: 30px;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-form input {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 40px;
    height: 40px;
  }
  
  header h1 {
    font-size: 1.2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .post-header h2 {
    font-size: 1.8rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-nav-prev,
  .post-nav-next {
    max-width: 100%;
  }
}
