/* Base styles & Variables */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-secondary: #f9f9f9;
  --border-color: #ddd;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --radius: 6px;
  --transition: all 0.3s ease;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
}

/* Dark mode variables */
.dark-mode {
  --primary-color: #2980b9;
  --secondary-color: #27ae60;
  --accent-color: #c0392b;
  --text-color: #e0e0e0;
  --text-light: #aaa;
  --bg-color: #121212;
  --bg-secondary: #1e1e1e;
  --border-color: #333;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

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

/* Header and Navigation */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.logo img {
  max-height: 40px;
  border-radius: 50%;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius);
}

nav a.active, nav a:hover {
  color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* Posts Section */
.posts {
  padding: 40px 0;
}

.posts h2 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  font-size: 2rem;
}

.posts h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 15px auto 0;
}

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

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

.post-image {
  flex: 1;
  max-width: 350px;
  position: relative;
}

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

.post-content {
  flex: 2;
  padding: 25px;
}

.post-content h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tag.new {
  background: var(--accent-color);
  color: white;
}

/* Newsletter */
.newsletter {
  background: var(--bg-secondary);
  padding: 60px 0;
  text-align: center;
  margin-top: 40px;
}

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

.newsletter p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.newsletter input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-main);
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-color);
  padding: 60px 0 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

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

.footer-col h3 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

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

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

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

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

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

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

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--bg-color);
  box-shadow: var(--shadow);
  padding: 20px;
  border-radius: var(--radius);
  z-index: 1000;
  display: none;
  animation: slideUp 0.5s forwards;
}

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

.cookie-content {
  max-width: 1000px;
  margin: 0 auto;
}

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

.cookie-info {
  font-size: 0.8rem;
  margin-bottom: 0;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* About Page */
.about-hero {
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #9b59b6 100%);
}

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

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

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

.team-member:hover {
  transform: translateY(-5px);
}

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

.team-member h3, .team-member p {
  padding: 0 20px;
}

.team-member h3 {
  margin-top: 20px;
  font-size: 1.3rem;
}

.team-member p:last-child {
  padding-bottom: 20px;
}

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

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

.value-card:hover {
  transform: translateY(-5px);
}

.value-card .icon {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.value-card h3 {
  margin-bottom: 10px;
}

.values-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* Contact Page */
.contact-hero {
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #16a085 100%);
}

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

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

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

.info-item .icon {
  margin-right: 15px;
  color: var(--primary-color);
}

.info-item h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.info-item p {
  margin-bottom: 5px;
}

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

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

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-main);
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

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

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

.checkbox input {
  width: auto;
  margin-right: 10px;
}

.map-section {
  text-align: center;
}

.map-container {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 30px;
}

.map-placeholder {
  background: var(--bg-secondary);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  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: var(--bg-color);
  padding: 30px;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s;
}

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

.modal-icon {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.close-btn {
  margin-top: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .post-card {
    flex-direction: column;
  }

  .post-image {
    max-width: 100%;
    height: 200px;
  }

  .newsletter form {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  header .container {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 2rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }
}

/* Icons for footer contact info */
.icon-location, .icon-phone, .icon-email {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.icon-location {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}
