:root {
  --primary-color: #0056b3;
  --secondary-color: #ffc107;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --text-color: #333;
  --text-light: #6c757d;
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9f9;
  overflow-x: hidden;
}

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

a:hover {
  color: #003d7a;
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

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

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--dark-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 61, 122, 0.9)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e0aa00;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
  background-color: #003d7a;
}

/* Blog Posts Section */
.blog-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

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

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

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px 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: 20px;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

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

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.read-more {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  position: relative;
}

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

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

/* Terminology Section */
.terminology-section {
  background-color: var(--light-color);
  padding: 80px 0;
}

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

.term-card {
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.term-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.term-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
}

/* Fun Facts Section */
.facts-section {
  padding: 60px 0;
  text-align: center;
}

.fact-card {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 0 auto;
  max-width: 800px;
}

.fact-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

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

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: white;
}

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

.contact-info {
  margin-bottom: 30px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-details div {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-details i {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
}

.contact-form form {
  display: grid;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 15px;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background-color: white;
  padding: 0 5px;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  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 2px rgba(0, 86, 179, 0.2);
}

.form-group textarea {
  min-height: 150px;
}

/* About Page */
.about-section {
  padding: 80px 0;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-header p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.about-text p {
  margin-bottom: 20px;
}

.team-section {
  padding: 40px 0;
}

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

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

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

.team-image {
  height: 220px;
  overflow: hidden;
}

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

.team-info {
  padding: 20px;
}

.team-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.team-info p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.team-info p:last-of-type {
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

/* Single Post Page */
.single-post {
  padding: 60px 0;
}

.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.post-header .post-meta {
  justify-content: center;
  margin-bottom: 30px;
}

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

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

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

.post-body p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--dark-color);
}

.post-body h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--dark-color);
}

.post-body ul, .post-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

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

.post-body blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  border-left: 4px solid var(--primary-color);
  background-color: #f5f5f5;
  font-style: italic;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
}

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

.post-navigation .prev-post::before {
  content: '←';
  margin-right: 10px;
}

.post-navigation .next-post::after {
  content: '→';
  margin-left: 10px;
}

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

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

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 10px;
}

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

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

.footer-links a {
  color: #ddd;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

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

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

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

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

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

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

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links a {
  color: #bbb;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

/* Cookies Banner */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(52, 58, 64, 0.95);
  color: white;
  padding: 15px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookies-banner.show {
  transform: translateY(0);
}

.cookies-text {
  flex: 1;
  margin-right: 20px;
}

.cookies-text h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.cookies-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cookies-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.accept-cookies {
  background-color: var(--success-color);
  color: white;
}

.accept-cookies:hover {
  background-color: #218838;
}

.customize-cookies {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.customize-cookies:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.reject-cookies {
  background-color: transparent;
  color: #ddd;
}

.reject-cookies:hover {
  color: white;
}

/* Thank You Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-content i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 20px;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.modal-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.close-modal {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.close-modal:hover {
  background-color: #003d7a;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 20px;
    display: none;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 15px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .cookies-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookies-text {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
}
