/* Base Styles */
:root {
  --primary-color: #67b26f;
  --primary-dark: #4a9054;
  --secondary-color: #4ca2cd;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333333;
  --text-light: #6c757d;
  --border-color: #e9ecef;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --body-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --heading-font: 'Playfair Display', Georgia, serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --container-width: 1200px;
}

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

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

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background-color: #3b8bae;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

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

.logo img {
  height: 50px;
  width: auto;
  border-radius: 0;
}

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

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

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

nav ul li a.active {
  border-bottom: 2px solid var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

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

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Intro Section */
.intro {
  padding: 5rem 0;
}

.intro .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.intro-content {
  flex: 1;
}

.intro-image {
  flex: 1;
}

.intro-image img {
  box-shadow: var(--shadow-large);
}

/* Featured Posts Section */
.featured-posts {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

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

.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: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

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

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

.view-all {
  text-align: center;
  margin-top: 3rem;
}

/* Admin Preview Section */
.admin-preview {
  padding: 5rem 0;
}

.admin-preview h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iframe-container::before {
  content: "Admin Dashboard Preview";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-light);
  background-color: #f5f5f5;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.admin-preview p {
  text-align: center;
  color: var(--text-light);
}

/* For Beginners Section */
.for-beginners {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.beginners-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.beginners-text {
  flex: 1;
}

.beginners-image {
  flex: 1;
}

.beginners-image img {
  box-shadow: var(--shadow-large);
}

/* Blog Content Section */
.blog-content {
  padding: 3rem 0 5rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-card {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.blog-image {
  flex: 0 0 300px;
  overflow: hidden;
}

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

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

.blog-text {
  flex: 1;
  padding: 2rem;
}

.blog-text h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.blog-meta {
  display: flex;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-meta .date {
  margin-right: 1.5rem;
}

.blog-text p {
  margin-bottom: 1.5rem;
}

/* Beginners Section on Blog Page */
.beginners-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.beginners-section .beginners-content {
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.beginners-section h2 {
  margin-top: 0;
}

.beginners-section ul {
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
  padding: 3rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2,
.contact-form h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  margin-bottom: 2rem;
}

.icon {
  flex: 0 0 40px;
  margin-right: 1rem;
  color: var(--primary-color);
}

.info-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.social-contact {
  margin-top: 3rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

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

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(103, 178, 111, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 0.75rem;
}

.checkbox-group label {
  margin-bottom: 0;
}

/* Map Section */
.map-section {
  padding: 3rem 0 5rem;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thank You Popup */
.thank-you-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.thank-you-popup.active {
  display: flex;
}

.popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-large);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-popup:hover {
  color: var(--text-color);
}

.popup-content h2 {
  margin-top: 0;
}

.close-btn {
  margin-top: 1rem;
}

/* Post Content */
.post-content {
  padding: 3rem 0 5rem;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-bottom: 0.75rem;
}

.post-meta {
  color: var(--text-light);
  font-size: 1rem;
}

.post-meta span {
  margin: 0 0.75rem;
}

.featured-image {
  margin-bottom: 3rem;
}

.featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

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

.post-body h2 {
  margin-top: 3rem;
}

.post-body h3 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--light-color);
  font-weight: 600;
  text-align: left;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.author-bio {
  display: flex;
  align-items: center;
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
}

.author-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.prev-post a,
.next-post a {
  display: inline-block;
  padding: 0.5rem 0;
}

.challenge-cta {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 3rem 0;
  border-left: 4px solid var(--primary-color);
}

.challenge-cta h3 {
  margin-top: 0;
}

/* Related Posts */
.related-posts {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

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

.related-card h3 {
  margin: 1.5rem 1.5rem 0.75rem;
  font-size: 1.2rem;
}

.related-card p {
  margin: 0 1.5rem 1rem;
  color: var(--text-light);
}

.related-card .read-more {
  margin: 0 1.5rem 1.5rem;
  display: inline-block;
}

/* About Page */
.about-intro {
  padding: 3rem 0 5rem;
}

.about-intro .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
}

.team-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.team-member img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-member h3 {
  margin: 1.5rem 1rem 0.25rem;
}

.team-member p {
  margin: 0 1rem 1rem;
  color: var(--text-light);
}

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

.team-member .social-icons {
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.mission-section {
  padding: 5rem 0;
}

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

.mission-content ul {
  margin-left: 1rem;
}

.mission-content li {
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 5rem 0 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 0;
}

.footer-logo p {
  color: #adb5bd;
  font-size: 0.9rem;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  color: white;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

.footer-links ul li {
  margin-bottom: 0.75rem;
}

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

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

.footer-contact p {
  color: #adb5bd;
  margin-bottom: 0.5rem;
}

.footer-social .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

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

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  display: none;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

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

#cookie-accept:hover {
  background-color: var(--primary-dark);
}

#cookie-customize {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

#cookie-customize:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#cookie-decline {
  background-color: transparent;
  color: #adb5bd;
}

#cookie-decline:hover {
  color: white;
}

.cookie-content a {
  color: var(--primary-color);
}

/* Media Queries */
@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 3rem;
  }
  
  .footer-logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .intro .container,
  .beginners-content,
  .about-intro .container {
    flex-direction: column;
  }
  
  .blog-card {
    flex-direction: column;
  }
  
  .blog-image {
    flex: 0 0 200px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
  }
  
  nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .post-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}
