/* Base styles and variables */
:root {
  --primary-color: #3b7dbd;
  --primary-dark: #2b5c94;
  --secondary-color: #f5a623;
  --text-color: #333333;
  --text-light: #666666;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #888888;
  --white: #ffffff;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --border-radius: 6px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--white);
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn-primary, .btn-secondary, .btn-tertiary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

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

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

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

.btn-tertiary {
  background-color: var(--light-gray);
  color: var(--text-color);
}

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

/* Header and Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo img {
  height: 50px;
  width: auto;
}

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

nav ul li {
  margin: 0 0.5rem;
}

nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

nav ul li a .translate {
  display: block;
  font-size: 0.75rem;
  color: var(--dark-gray);
  margin-top: 0.25rem;
}

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

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

nav ul li a:hover::after, nav ul li a.active::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(59, 125, 189, 0.9), rgba(59, 125, 189, 0.8)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

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

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--white);
}

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

.hero .btn-primary:hover {
  background-color: #e09616;
}

/* Page Headers */
.page-header {
  background: linear-gradient(rgba(59, 125, 189, 0.9), rgba(59, 125, 189, 0.8)), url('images/page-header.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

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

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Featured Posts Section */
.featured-posts {
  padding: 4rem 0;
}

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

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

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

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

.post-content h3, .post-content h4 {
  margin-bottom: 0.5rem;
}

.post-content h3 a, .post-content h4 a {
  color: var(--text-color);
}

.post-content h3 a:hover, .post-content h4 a:hover {
  color: var(--primary-color);
}

.post-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

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

.read-more:hover {
  color: var(--primary-dark);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-gray);
  padding: 4rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.testimonial {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.quote {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

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

.user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.user h4 {
  margin: 0;
  font-size: 1rem;
}

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Blog Page */
.blog-list {
  padding: 4rem 0;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.search-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
}

.search-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.pagination a {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  color: var(--text-color);
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pagination .next {
  display: flex;
  align-items: center;
}

.pagination .next svg {
  margin-left: 0.5rem;
}

/* Single Post */
.single-post {
  padding: 4rem 0;
}

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

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

.post-header .post-meta {
  font-size: 1rem;
}

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

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

.post-featured-image img {
  width: 100%;
  height: auto;
}

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

.post-content h2, .post-content h3, .post-content h4 {
  margin-top: 2rem;
}

.post-content img {
  margin: 2rem 0;
  border-radius: var(--border-radius);
}

.post-content ul, .post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

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

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

.post-tags span {
  font-weight: 600;
  margin-right: 0.5rem;
}

.post-tags a {
  display: inline-block;
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

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

.post-author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 2rem;
}

.post-author-bio h3 {
  margin-bottom: 0.5rem;
}

.post-author-bio p {
  margin-bottom: 0;
}

.related-posts {
  margin-bottom: 3rem;
}

.related-posts h3 {
  margin-bottom: 2rem;
  text-align: center;
}

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

.post-comments h3 {
  margin-bottom: 2rem;
}

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

.comment-avatar {
  margin-right: 1.5rem;
}

.comment-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex-grow: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-header h4 {
  margin: 0;
}

.comment-date {
  font-size: 0.875rem;
  color: var(--text-light);
}

.reply-button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
}

.reply-button:hover {
  color: var(--primary-dark);
}

.add-comment h3 {
  margin-bottom: 1.5rem;
}

.comment-form .form-group {
  margin-bottom: 1.5rem;
}

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

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

.comment-form textarea {
  resize: vertical;
}

/* About Page */
.about-content {
  padding: 4rem 0;
}

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

.about-values {
  margin-bottom: 4rem;
}

.about-values h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.value-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.value-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.team-section {
  margin-bottom: 4rem;
}

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

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

.team-member {
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.stats-section {
  background-color: var(--light-gray);
  padding: 3rem;
  border-radius: var(--border-radius);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
}

.cta-section {
  text-align: center;
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-section h2, .cta-section p {
  color: var(--white);
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background-color: var(--light-gray);
}

/* Contact Page */
.contact-content {
  padding: 4rem 0;
}

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

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-icon {
  color: var(--primary-color);
  margin-right: 1rem;
  padding-top: 0.25rem;
}

.contact-item h3 {
  margin-bottom: 0.25rem;
}

.social-contact h3 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
}

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

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

.contact-form-container {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

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

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

.contact-form textarea {
  resize: vertical;
}

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

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

.checkbox-group label {
  margin: 0;
}

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

.map-container h2 {
  margin-bottom: 1.5rem;
}

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

.map img {
  width: 100%;
  height: auto;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
}

.modal-content {
  position: relative;
  background-color: var(--white);
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message {
  padding: 2rem 0;
}

.thank-you-message svg {
  color: var(--success);
  margin-bottom: 1.5rem;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 1.5rem;
}

/* Info Boxes */
.info-box, .pro-tip {
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box h4, .pro-tip h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.info-box p, .pro-tip p {
  margin-bottom: 0;
}

.info-box ul, .pro-tip ul {
  margin-bottom: 0;
}

.pro-tip {
  border-color: var(--secondary-color);
}

.pro-tip h4 {
  color: var(--secondary-color);
}

/* Tables */
.salary-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.salary-table table {
  width: 100%;
  border-collapse: collapse;
}

.salary-table th, .salary-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

.salary-table th {
  background-color: var(--light-gray);
  font-weight: 600;
}

.salary-table tr:hover {
  background-color: var(--light-gray);
}

.table-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: right;
}

/* Footer */
footer {
  background-color: #2b3342;
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

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

.footer-logo p {
  color: #a7b5cc;
}

.footer-links h3, .footer-contact h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

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

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

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

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

.footer-contact p {
  display: flex;
  align-items: center;
  color: #a7b5cc;
  margin-bottom: 1rem;
}

.footer-contact p svg {
  margin-right: 0.75rem;
  min-width: 16px;
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #3d4656;
  color: var(--white);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: var(--transition);
}

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

.copyright {
  text-align: center;
  color: #a7b5cc;
  padding-top: 2rem;
  border-top: 1px solid #3d4656;
}

.copyright p {
  margin: 0;
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-content h3 {
  margin-bottom: 1rem;
}

.cookie-content p {
  margin-bottom: 1.5rem;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    padding: 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.25rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .post-author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .post-author-bio img {
    margin: 0 auto 1.5rem;
  }
  
  .comment {
    flex-direction: column;
  }
  
  .comment-avatar {
    margin: 0 0 1rem 0;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .post-header .post-meta span {
    display: block;
    margin: 0.25rem 0;
  }
  
  .post-featured-image {
    margin: 0 -1rem 2rem;
    border-radius: 0;
  }
  
  .modal-content {
    margin: 20% auto;
    padding: 1.5rem;
    width: 90%;
  }
}
