/* Base Styles */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #f72585;
  --accent-color: #7209b7;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --success-color: #4cc9f0;
  --warning-color: #ffbe0b;
  --danger-color: #f72585;
  --info-color: #4cc9f0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Merriweather', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 2rem;
}

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

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.8rem;
}

h6 {
  font-size: 1.6rem;
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 500;
  padding: 1rem 2.4rem;
  border-radius: var(--border-radius);
  border: none;
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

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

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

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

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

.logo img {
  height: 5rem;
  width: auto;
}

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

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

nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(67, 97, 238, 0.9), rgba(114, 9, 183, 0.9)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 0;
}

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

.hero h2 {
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
  font-size: 1.8rem;
  padding: 1.2rem 3rem;
  background-color: var(--secondary-color);
}

.hero .btn:hover {
  background-color: darken(var(--secondary-color), 10%);
}

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

.featured-posts h2 {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.featured-posts h2::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 3px;
  background-color: var(--primary-color);
}

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

.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: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 2rem;
}

.post-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

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

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(4px);
}

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

/* Newsletter Section */
.newsletter {
  background-color: var(--light-color);
  padding: 6rem 0;
  text-align: center;
}

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

.newsletter p {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

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

#newsletter-form input {
  flex: 1;
  padding: 1.2rem 1.5rem;
  font-size: 1.6rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  outline: none;
}

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

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

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

.footer-logo img {
  height: 5rem;
  margin-bottom: 1.5rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
}

.footer-links h3::after,
.footer-legal h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 4rem;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: 1rem;
}

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

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact p i {
  margin-right: 1rem;
  color: var(--primary-color);
}

.social-media {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  margin: 0;
}

/* Blog Page Styles */
.blog-header,
.about-header,
.contact-header {
  background: linear-gradient(rgba(67, 97, 238, 0.9), rgba(114, 9, 183, 0.9)), url('images/3.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.blog-header h1,
.about-header h1,
.contact-header h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.blog-header p,
.about-header p,
.contact-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  max-width: 700px;
  margin: 0 auto;
}

.blog-content {
  padding: 6rem 0;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.post-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.post-details {
  padding: 2rem 2rem 2rem 0;
}

.post-details h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.4rem;
}

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

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

.about-values ul {
  list-style-type: none;
}

.about-values ul li {
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
}

.about-values ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.team-section {
  margin-top: 6rem;
}

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

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

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

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

.team-member h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.8rem;
}

.team-member p {
  color: var(--text-muted);
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

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

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

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: rgba(67, 97, 238, 0.1);
  margin-right: 2rem;
  color: var(--primary-color);
}

.info-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

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

.form-group {
  margin-bottom: 2rem;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-map {
  padding: 6rem 0;
  background-color: var(--light-color);
}

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

/* Interesting Facts Section */
.interesting-facts {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.interesting-facts h2 {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.interesting-facts h2::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 3px;
  background-color: var(--primary-color);
}

.facts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.fact {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: rgba(67, 97, 238, 0.1);
  margin: 0 auto 2rem;
  color: var(--primary-color);
}

.fact p {
  margin-bottom: 0;
  font-size: 1.7rem;
}

/* Blog Post Page Styles */
.blog-post {
  padding: 6rem 0;
}

.post-header {
  margin-bottom: 3rem;
}

.post-header h1 {
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
}

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

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

.post-intro {
  font-size: 1.8rem;
  color: var(--text-muted);
  border-left: 4px solid var(--primary-color);
  padding-left: 2rem;
  margin-bottom: 3rem;
}

.post-content h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 2.8rem;
}

.post-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 3rem;
}

.post-content li {
  margin-bottom: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 4rem 0;
}

.tag {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 500;
}

.share-post {
  margin: 4rem 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.share-post h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  gap: 1.5rem;
}

.share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.share-facebook {
  background-color: #3b5998;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-email {
  background-color: #ea4335;
}

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.post-nav-prev,
.post-nav-next {
  max-width: 45%;
}

.post-nav-prev a,
.post-nav-next a {
  display: flex;
  flex-direction: column;
}

.post-nav-prev a span,
.post-nav-next a span {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.post-nav-prev a h4,
.post-nav-next a h4 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--dark-color);
  transition: var(--transition);
}

.post-nav-prev a:hover h4,
.post-nav-next a:hover h4 {
  color: var(--primary-color);
}

.related-posts {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.related-posts h2::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 3px;
  background-color: var(--primary-color);
}

/* Salary Table */
.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
}

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

.salary-table th {
  background-color: rgba(67, 97, 238, 0.1);
  font-weight: 600;
}

.salary-table tr:hover {
  background-color: rgba(67, 97, 238, 0.05);
}

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

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

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

.modal-btn {
  margin-top: 2rem;
}

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

.cookie-content {
  padding: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.btn-cookie {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  border-radius: var(--border-radius-sm);
}

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

.btn-cookie.configure {
  background-color: var(--info-color);
}

.btn-cookie.reject {
  background-color: var(--text-muted);
}

.cookie-policy {
  font-size: 1.4rem;
  margin-bottom: 0;
}

/* NEW Tag */
.new-tag {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  margin-left: 1rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 60%;
  }
  
  .post-item {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  header .container {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  .logo {
    margin-bottom: 1.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 1.2rem 1rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .post-item {
    grid-template-columns: 1fr;
  }
  
  .post-image {
    height: 250px;
  }
  
  .post-details {
    padding: 2rem;
  }
  
  #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%;
  }
  
  .contact-grid {
    gap: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 2rem;
  }
  
  .post-nav-prev,
  .post-nav-next {
    max-width: 100%;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-cookie {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 55%;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .info-item {
    flex-direction: column;
    text-align: center;
  }
  
  .info-icon {
    margin: 0 auto 1.5rem;
  }
  
  .share-post h3 {
    text-align: center;
  }
  
  .share-buttons {
    justify-content: center;
  }
}
