/* Global Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #f39c12;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --light-gray: #ecf0f1;
  --dark-gray: #7f8c8d;
  --success: #27ae60;
  --danger: #e74c3c;
  --container-width: 1200px;
  --transition: all 0.3s ease;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

button, .btn {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.3rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 20px;
}

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

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

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

.logo img {
  width: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  color: white;
  margin: 0;
}

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

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

nav ul li a {
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.primary-btn {
  background: var(--accent-color);
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
}

.primary-btn:hover {
  background: #e67e22;
}

.secondary-btn {
  background: transparent;
  border: 2px solid white;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

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

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

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

.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-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

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

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

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more svg {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover svg {
  transform: translateX(5px);
}

/* Quote Section */
.quote-section {
  background-color: var(--light-gray);
  padding: 60px 0;
  text-align: center;
}

.quote-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.quote-container::before {
  content: """;
  position: absolute;
  top: -40px;
  left: 20px;
  font-size: 120px;
  color: var(--accent-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.quote-text {
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.quote-author {
  font-weight: 700;
  color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

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

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

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

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

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

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

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

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

.team-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

.team-info {
  padding: 20px;
}

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

.team-info p {
  color: var(--dark-gray);
}

.team-info p:last-child {
  margin-top: 15px;
  color: var(--text-color);
}

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

.social-links a {
  color: var(--dark-gray);
  transition: var(--transition);
}

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

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

.contact-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

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

.contact-info h3 {
  color: white;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

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

.contact-icon {
  margin-right: 15px;
  color: var(--accent-color);
  font-size: 24px;
}

.contact-text h4 {
  color: var(--accent-color);
  margin-bottom: 5px;
}

.contact-text p {
  margin-bottom: 0;
}

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

.contact-form-container h3 {
  margin-bottom: 30px;
}

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

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

input, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

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

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

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

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

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

.post-meta-info {
  color: var(--dark-gray);
  margin-bottom: 30px;
}

.post-featured-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-content-area {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

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

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

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

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

.post-content-area blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--dark-gray);
}

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

.tag {
  background: var(--light-gray);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
}

.post-nav-link {
  max-width: 48%;
}

.post-nav-label {
  display: block;
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.post-nav-title {
  font-weight: 600;
  color: var(--primary-color);
}

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

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

.footer-col h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-col ul {
  list-style: none;
}

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

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

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

.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(--accent-color);
  transform: translateY(-3px);
}

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

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

.footer-links a {
  color: #bdc3c7;
  font-size: 0.9rem;
}

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background-color: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.cookie-content {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 20px;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  margin-bottom: 5px;
}

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

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

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

.reject-btn {
  background: var(--light-gray);
  color: var(--dark-gray);
}

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

.modal-content {
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

.success-icon {
  color: var(--success);
  font-size: 4rem;
  margin-bottom: 20px;
}

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

/* Ask a Question Button */
.ask-question-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 100;
  transition: var(--transition);
}

.ask-question-btn:hover {
  transform: scale(1.1);
  background-color: #e67e22;
}

.ask-question-btn i {
  font-size: 24px;
}

.tooltip {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--primary-color);
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: var(--primary-color) transparent transparent;
}

.ask-question-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }
  
  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-nav-link {
    max-width: 100%;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
}
