/* Variables */
:root {
  --primary-color: #3a7bd5;
  --secondary-color: #00d2ff;
  --accent-color: #ff6b6b;
  --text-color: #333333;
  --light-text: #777777;
  --background: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background);
}

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

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

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

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

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

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

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

.logo {
  height: 50px;
  margin-right: 15px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: white;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

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

.nav-link:hover::after {
  width: 100%;
}

.active .nav-link::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('images/1.jpg') no-repeat center center;
  background-size: cover;
  height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 60px;
  font-size: 1.2rem;
  color: var(--light-text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Posts Grid */
.posts-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: var(--box-shadow);
  transition: var(--transition);
}

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

.post-img {
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 25px;
}

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

.post-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

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

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

/* Single Post Page */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}

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

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--light-text);
  font-size: 0.9rem;
}

.post-author {
  margin-right: 20px;
}

.post-author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

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

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

.post-content h2 {
  margin: 40px 0 20px;
  color: var(--primary-color);
}

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

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

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

/* Custom List Markers */
ul.custom-list {
  list-style: none;
  padding-left: 0;
}

ul.custom-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

ul.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted var(--light-text);
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--text-color);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
  box-shadow: var(--box-shadow);
}

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

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

/* About Page */
.about-section {
  background-color: var(--light-bg);
  padding: 80px 0;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

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

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

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

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

.team-info {
  padding: 25px;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.team-bio {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

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

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

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
  transition: var(--transition);
}

.social-link:hover svg {
  fill: white;
}

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

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  background-color: var(--primary-color);
  color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 700;
}

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

.contact-icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-details p {
  opacity: 0.85;
}

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

.form-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--text-color);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
  outline: none;
}

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

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background: #2d3436;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 15px;
}

.footer-about {
  margin-bottom: 20px;
  opacity: 0.8;
  line-height: 1.7;
}

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

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

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

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.footer-link-item {
  margin-bottom: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
  padding-left: 5px;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background-color: white;
  padding: 20px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

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

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

.cookie-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.cookie-accept:hover {
  background-color: var(--secondary-color);
}

.cookie-settings {
  background-color: transparent;
  border: 1px solid var(--border-color);
}

.cookie-settings:hover {
  background-color: var(--light-bg);
}

.cookie-reject {
  background-color: transparent;
  color: var(--light-text);
}

.cookie-reject:hover {
  color: var(--text-color);
}

.cookie-policy-link {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Thank You Modal */
.thank-you-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s all ease-in-out;
  max-width: 500px;
  width: 90%;
}

.thank-you-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.modal-text {
  color: var(--light-text);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.modal-close {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s all ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-item {
    margin: 10px 0;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
