:root {
  --primary: #4a6cff;
  --secondary: #6a56e8;
  --accent: #ff5e5e;
  --light: #f5f7ff;
  --dark: #1f2b42;
  --text: #333;
  --text-light: #777;
  --background: #fff;
  --border: #ddd;
  --shadow: rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

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

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--background);
  box-shadow: 0 2px 10px var(--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;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.logo img {
  width: 40px;
  height: 40px;
}

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

.nav-links li a {
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -150px;
  right: -50px;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  position: relative;
}

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

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

.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
}

.btn:hover {
  background: transparent;
  color: white;
  border-color: white;
}

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

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

/* Blog Posts Section */
.blog-section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}

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

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

.post-card {
  background: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow);
}

.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.05);
}

.post-content {
  padding: 25px;
}

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

.post-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

 
/* About Page */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

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

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

.team-card {
  text-align: center;
  background: var(--light);
  border-radius: var(--border-radius);
  padding: 25px;
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: 0 10px 30px var(--shadow);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 5px solid white;
  box-shadow: 0 5px 15px var(--shadow);
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

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

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

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

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info {
  background: var(--light);
  padding: 40px;
  border-radius: var(--border-radius);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

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

.info-item .details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.info-item .details p {
  color: var(--text-light);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 25px var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.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);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

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

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

/* Single Post Page */
.post-header {
  text-align: center;
  margin-bottom: 40px;
}

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

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

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

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

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

.post-content-single h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

.post-content-single h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--dark);
}

.post-content-single ul, 
.post-content-single ol {
  margin: 20px 0 20px 20px;
}

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

.post-content-single img {
  border-radius: var(--border-radius);
  margin: 30px 0;
}

.post-content-single blockquote {
  background: var(--light);
  border-left: 4px solid var(--primary);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
}

.share-post {
  display: flex;
  align-items: center;
  margin: 40px 0;
  padding: 20px;
  background: var(--light);
  border-radius: var(--border-radius);
}

.share-post span {
  font-weight: 600;
  margin-right: 15px;
}

.share-post a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  margin-right: 10px;
  transition: var(--transition);
}

.share-post a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 20px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

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

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  margin-bottom: 20px;
  opacity: 0.8;
}

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

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

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links li 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: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

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

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

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #ccc;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: var(--dark);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  font-size: 0.9rem;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Glossary */
.glossary {
  background: var(--light);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-top: 40px;
}

.glossary h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

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

.glossary-item {
  margin-bottom: 15px;
}

.glossary-term {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.glossary-definition {
  font-size: 0.95rem;
  color: var(--text);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-consent.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-text {
  margin-bottom: 15px;
}

.cookie-text h4 {
  margin-bottom: 10px;
  color: var(--dark);
}

.cookie-text p {
  font-size: 0.95rem;
  color: var(--text-light);
}

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

.cookie-btn {
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.cookie-btn.customize, 
.cookie-btn.decline {
  background: #f0f0f0;
  color: var(--text);
}

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.modal-content {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-content h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}

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

.modal-close {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

/* Animations */
@keyframes slideUp {
  from {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: white;
    width: 250px;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: var(--border-radius);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .post-grid, 
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .post-card {
    max-width: 100%;
  }
  
  .contact-info,
  .contact-form {
    padding: 20px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    display: block;
    width: 100%;
  }
}
