@import url('https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  
  background-color: #f0f0f0;
}

.wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* ========== Nav Bar ========== */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: #131e3d;
  position: relative;
  height: 80px;
  z-index: 1000;
}

.logo {
  width: 120px;
  height: 50px;
  animation: slideInLeft 1s ease;
}

.sub-head {
  font-size: 32px;
  color: #f8f9ff;
  text-align: center;
  flex: 1;
  animation: slideInLeft 1s ease;
}

.contact-btn {
  background-color: #87cdc3;
  color: #000;
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: bold;
  font-family: sans-serif;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  animation: slideInLeft 1s ease;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #48699d;
}

/* Fixed contact button */
.fixed-contact-btn {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  background-color: #7ccabf;
  color: #000;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 12px 12px 0 0;
  font-weight: bolder;

  font-size: 1.5rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.fixed-contact-btn:hover {
  background-color: #48699d;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 54rem;
  overflow: hidden;
  animation: slideInLeft 3s ease;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slideInLeft 1s ease;
}

.hero-section h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.hero-section .absolute {
  position: absolute;
  inset: 0;
  background-color: rgba(160, 175, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.5rem;
}

h1, h2, h3 {
  font-weight: 600;
  color: #244a81;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 2.3rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.3rem;
}

/* Similar Posts */
.similar-posts {
  padding: 1.5rem;
}

.similar-posts h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: #17578b;
  text-align: center;
}

.blog-cards-container {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-card {
  background: #fff;
  border-radius: 0.625rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 23rem;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column; /* Allow content to stretch */
}

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

.blog-card-img img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1; /* Fill available height */
  padding: 0.9375rem;
}

.blog-card-content h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.blog-card-content p {
  font-size: 1.4rem;
  color: #7f8c8d;
  flex: 1; /* Push button to bottom */
}

.blog-card-btn {
  display: inline-block;
  padding: 0.5rem 0.9375rem;
  background-color: #50b6a1;
  color: #000;
  text-decoration: none;
  border-radius: 3rem;
  font-weight: 700;
  text-align: center;
  margin-top: 1rem; /* Space above button */
}

.blog-card-btn:hover {
  background-color: #4d7397;
}


/* Info Box & CTA */
.info-box, .cta-box {
  
  padding: 3.4375rem;
  margin-top: 3.125rem;
  border-radius: 0.75rem;
  background-color: #f0f9ff;
}

.cta-box {
  background-color: #e8fff2;
  border-color: #317e9f;
  text-align: center;
  color: #317e9f;
}

.cta-button {
  display: inline-block;
  margin-top: 1.25rem;
  background-color: #317e9f;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #58c8a4;
}

/* ========== Footer ========== */
.site-footer {
  background-color: #131e3d;
  color: #d7d9dd;
  padding: 2rem 1rem;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
  gap: 1rem;
}

.footer-brand {
  flex: 1 1 auto;
  text-align: left;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #dcdcdc;
}

.footer-logo {
  max-height: 50px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff1a;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  background-color: #ffffff33;
  transform: scale(1.1);
}

.footer-social i {
  color: white;
  font-size: 16px;
}

.lastpage {
  text-align: center;
  font-size: 1rem;
  padding-top: 1rem;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 2rem;
  }
  .hero-section {
    height: 31.25rem;
  }
  .hero-section h1 {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 70px;
    height: 20px;
  }
  .sub-head {
    font-size: 0.9rem;
    margin-top: 20px;
  }
  
  .contact-btn {
    padding: 8px 16px;
    font-size: 0.7rem;
  }
}
