/* Base Styles */
:root {
  --primary-color: #0074d9;
  --primary-dark: #0056a4;
  --primary-light: #4a98e2;
  --secondary-color: #ff851b;
  --secondary-dark: #d96d00;
  --text-color: #333333;
  --text-light: #666666;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #888888;
  --white: #ffffff;
  --success: #2ecc40;
  --warning: #ffdc00;
  --danger: #ff4136;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --max-width: 1200px;
  --header-height: 80px;
  --footer-bg: #282c35;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  padding-top: var(--header-height);
}

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

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

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

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

button {
  cursor: pointer;
}

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

p {
  margin-bottom: 1.5rem;
}

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

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  border-radius: 5px;
}

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

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

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

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

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

.header-tools {
  display: flex;
  align-items: center;
}

#clock {
  font-weight: 500;
  margin-right: 20px;
  color: var(--text-light);
}

.btn-spell-check {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.btn-spell-check:hover {
  background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 50px;
  background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Page Banner */
.page-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
  margin-bottom: 50px;
  background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.page-banner p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Blog Intro */
.blog-intro {
  text-align: center;
  margin-bottom: 50px;
}

.blog-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-intro p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Blog Posts */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

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

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

.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: 20px;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 8px;
}

/* Blog Post Page */
.blog-post {
  margin-bottom: 60px;
}

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

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

.post-header .post-meta {
  display: flex;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.post-header .post-meta span {
  margin-right: 20px;
}

.post-image-full {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content ul, 
.post-content ol {
  margin-bottom: 25px;
}

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

.post-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--medium-gray);
}

.post-tags span {
  font-weight: 600;
  margin-right: 10px;
}

.post-tags a {
  display: inline-block;
  background-color: var(--light-gray);
  color: var(--text-light);
  padding: 5px 10px;
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.post-tags a:hover {
  background-color: var(--medium-gray);
  color: var(--text-color);
}

.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--medium-gray);
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

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

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

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

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

.related-post h4 {
  padding: 15px;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* About Page */
.about-page {
  margin-bottom: 60px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.our-mission {
  margin-bottom: 60px;
}

.our-mission h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mission-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

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

.mission-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.team-section {
  margin-bottom: 60px;
}

.team-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 15px;
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

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

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

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

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

.team-member h3 {
  margin: 15px 15px 5px;
  font-size: 1.2rem;
}

.team-member p {
  padding: 0 15px;
  margin-bottom: 10px;
  color: var(--text-light);
}

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

.member-social {
  display: flex;
  gap: 10px;
  padding: 0 15px 15px;
}

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

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

.our-approach {
  margin-bottom: 60px;
}

.our-approach h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.approach-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.approach-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.approach-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.approach-card ul {
  margin-bottom: 0;
}

/* Contact Page */
.contact-page {
  margin-bottom: 60px;
}

.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.contact-methods {
  margin-bottom: 60px;
}

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

.contact-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

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

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.contact-card p {
  margin-bottom: 10px;
}

.contact-card a {
  color: var(--primary-color);
  font-weight: 500;
}

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

.social-links a {
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: 4px;
}

.contact-form-section {
  margin-bottom: 60px;
}

.contact-form-section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

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

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

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

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

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

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

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--medium-gray);
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

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

.faq-section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--medium-gray);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.faq-item p {
  margin-bottom: 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s;
}

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

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

.modal-body {
  padding: 30px;
  text-align: center;
}

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

.modal-body h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.modal-body p {
  margin-bottom: 10px;
}

.modal-body button {
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie Consent */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1000;
  animation: slideUp 0.3s;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content {
  padding: 20px;
}

.cookie-content p {
  margin-bottom: 15px;
}

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

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

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

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

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.footer-logo p {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-logo .tagline {
  font-weight: normal;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

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

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

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-contact h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
}

.footer-social h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.social-icons a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

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

/* Icon Fonts */
.icon-location:before {
  content: "📍";
  margin-right: 5px;
}

.icon-phone:before {
  content: "📞";
  margin-right: 5px;
}

.icon-mail:before {
  content: "✉️";
  margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .logo span {
    display: none;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .mission-values,
  .team-members,
  .approach-cards {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .header-tools {
    display: none;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .post-header h1 {
    font-size: 1.8rem;
  }
  
  .blog-posts {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-logo {
    align-items: center;
    text-align: center;
  }
  
  .footer-links,
  .footer-contact,
  .footer-social {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}
