:root {
  --base-color: #2226ff;
  --primary-color: #691dff;
  --secondary-color: #f1faee;
  --accent-color: #a8dadc;
  --text-color: #333;
  --bg-color: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: var(--text-color);
}

.active-nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
}

header {
  /* background-image: url("../images/banner.png"); */
  background-size: cover;
  background-position: center;
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.navbar {
  z-index: 1000;
}

.linear-btn {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--base-color)
  );
}

.blogs-banner {
  /* background-image: url("../images/insights/banner.png"); */
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.blog-details-thumbnail {
  position: relative;
  width: 80%;
  margin-top: -275px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.pitfall {
  position: relative;
  background: #ea311829;
  padding: 20px 20px 20px 60px;
  margin: 20px;
  border-radius: 6px;
}

.pitfall::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 30%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-image: url("../images/Vector.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pitfall::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 30%;
  transform: translateY(50%);
  width: 30px;
  height: 30px;
  background-image: url("../images/Frame.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-navbar {
  width: 60%;
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.hero-section h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.hero-section p {
  color: var(--text-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  transition: background 0.3s;
}

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

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.custom-btn {
  padding: 8px 16px;
  color: var(--bg-color);
  text-decoration: none;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--base-color)
  );
  transition: all 0.3s;
}

.custom-btn:hover {
  background: var(--text-color);
}

.ventures {
  position: relative;
  overflow: hidden; /* ensure background stays behind */
  padding-bottom: 20px;
}

.ventures-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: var(--bg-color);
  filter: blur(50px); */
  background: #edf3fa;
  filter: blur(52.04999923706055px);
  z-index: 0;
}

.academic {
  margin-top: 2rem;
}

.academic-card {
  /* background: #fff; */
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 15px rgba(6, 14, 69, 0.08); */
  transition: all 0.3s ease;
  border: none;
  border-radius: 8px;
  background: #f1f4f8;
}

.academic-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 6px 25px rgba(6, 14, 69, 0.15); */
}

.academic-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.academic-card p {
  font-size: 15px;
  color: #222;
}

.academic-card small {
  font-size: 13px;
  line-height: 1.4;
  color: #6c757d;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .academic-card {
    padding: 20px;
  }
  .academic-logo {
    width: 50px;
  }
}

.ventures .card {
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  min-height: 265px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ventures h2,
.expertise-section h3,
.achievements h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.achievements .card {
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: left;
  min-height: 200px;
}

.ventures .card:hover,
.achievements .card:hover {
  transform: translateY(-5px);
}
.achievements .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.achievements .card-img-top {
  height: auto;
  object-fit: contain;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.achievements .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.achievements .card-text {
  flex-grow: 1;
}

.expertise-section {
  padding: 80px 0;
  /* background-color: #fafafa; */
}

.expertise-section p {
  text-align: justify;
}

.profile-expertise-box {
  width: 160px;
  min-height: 160px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(6, 14, 69, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-expertise-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.profile-expertise-box strong {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.profile-expertise-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(6, 14, 69, 0.15);
}

/* Responsive tweaks (Bootstrap already handles most of it) */
@media (max-width: 768px) {
  .profile-expertise-box {
    width: 140px;
    min-height: 140px;
    padding: 15px;
  }

  .profile-expertise-box img {
    width: 50px;
    height: 50px;
  }

  .blogs-banner {
    background-size: cover;
    background-position: center;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }
  .expertise-section {
    padding: 20px 0;
  }
  .blog-details-thumbnail {
    position: relative;
    width: 80%;
    margin-top: -150px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .profile-expertise-box {
    width: 45%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 400px) {
  .profile-expertise-box {
    width: 100%;
  }
}

.expertise-box {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  box-shadow: 2px 4px 20.7px 0 rgba(6, 14, 69, 0.08);
}

.dots-rounded {
  margin-left: 20px;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: #fff;
  box-shadow: 2px 4px 20.7px 0 rgba(6, 14, 69, 0.08);
}

.footer-section {
  position: relative;
  color: #fff;
}

.footer-section .form-control {
  border-radius: 6px;
  border: none;
  padding: 0.8rem 1rem;
}

.footer-section .form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px #e63946;
}

.footer-section .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-section .social-icon:hover {
  transform: scale(1.1);
  background-color: var(--base-color) !important;
  color: #fff !important;
}

.footer-section .social-icon:hover i {
  color: var(--secondary-color);
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background-image: url("../images/Footer_bg.png");
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.text-highlight {
  color: var(--primary-color);
  font-style: italic;
}

.contact-section {
  margin-top: 135px;
}

ul.contact-address li .box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 10px;
  border-radius: 4px;
  background: var(--base-color);
}

ul.contact-address li span {
  margin-left: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  header {
    min-height: 90vh;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .btn-primary {
    padding: 0.5rem 1rem;
  }

  .contact-section {
    margin-top: 10px;
  }
  .expertise-box {
    width: 150px;
    height: 150px;
  }
}

/* Navbar width rules */
/* .custom-navbar {
  width: 60%;
  max-width: 1200px;
} */

@media (max-width: 768px) {
  .custom-navbar {
    width: 90%;
    left: 0;
    transform: none;
    border-radius: 0;
  }

  /* --- Toggle Button Styles --- */
  .navbar-toggler {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navbar-toggler:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
    border-color: transparent;
  }

  .navbar-toggler .toggler-icon {
    position: relative;
  }

  .hamburger-icon,
  .close-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Hamburger icon (three lines) */
  .hamburger-icon {
    width: 25px;
    height: 2px;
    background-color: #000;
    box-shadow: 0 6px 0 0 #000, 0 -6px 0 0 #000;
    top: 0;
    left: -10px;
  }

  /* Close icon (X) */
  .close-icon {
    font-size: 2.5rem;
    color: #000;
    opacity: 0;
    top: -17px;
    left: -12px;

    /* transform: scale(0.7); */
  }

  /* When expanded (Bootstrap removes .collapsed) */
  .navbar-toggler:not(.collapsed) .hamburger-icon {
    opacity: 0;
    transform: scale(0.5);
  }

  .navbar-toggler:not(.collapsed) .close-icon {
    opacity: 1;
    transform: scale(1);
  }
}
