html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif;
  /* Warm, light background for an inviting canvas */
  background: #fffdfa;
  /* Dark charcoal text for strong contrast */
  color: #2C3136;
}

main {
  flex: 1;
}

/* Skills Chips Styles */
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f4f0ec;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #2C3136;
  border: 1px solid #e8e4e0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.chip:hover {
  background: #b97552;
  color: #fff;
  border-color: #b97552;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(185, 117, 82, 0.2);
}

.chip i {
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
}

.chip i svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.chip--active {
  background: #b97552;
  color: #fff;
  border-color: #b97552;
}

.content {
  margin: 2rem auto;
  max-width: 80%;
  padding: 2rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #FFFFFF; /* crisp card background */
  color: #2C3136;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44,49,54,0.06);
}

/* Hyperlink styling */
a {
  word-break: keep-all;
  overflow-wrap: end;
  color: #b16e4c;
  text-decoration: none;
  transition: color 0.18s;
}

a:hover {
  color: #5f3b29;
  text-decoration: none;
}

/* --- Navigation Bar --- */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600');
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600');

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 100%;
  background: linear-gradient(90deg, 
    rgba(244, 240, 236, 0) 0%, 
    rgba(244, 240, 236, 0.92) 5%,
    rgba(244, 240, 236, 0.95) 12%,
    rgba(244, 240, 236, 0.95) 25%,
    rgba(244, 240, 236, 0.92) 35%,
    rgba(244, 240, 236, 0) 65%);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(185, 117, 82, 0.2);
  box-shadow: 0 4px 15px rgba(44, 49, 54, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
}

nav:hover {
  box-shadow: 0 6px 25px rgba(44, 49, 54, 0.12);
  text-decoration: none !important;
}

nav ul {
  text-align: center;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  box-shadow: none;
}

nav ul li {
  display: inline-block;
  margin: 0;
}

nav ul li a {
  padding: 0.7rem 2.5rem;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  color: #b97552;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

nav ul li a:hover {
  color: #5f3b29;
  text-decoration: none;
}

/* Hero Title Styling */
.hero-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  font-family: 'Poppins', sans-serif;
  color: #FBF7F2;
  background: #b97552;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  transition: all 0.3s ease;
}

.hero-title:hover {
  background: #a0633d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(185, 117, 82, 0.25);
}

/* Hero Title Styling */
.hero-subtitle {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  background: #FBF7F2;
  color: #b97552;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  transition: all 0.3s ease;
}

.hero-subtitle:hover {
  background: #f0e4d7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(185, 117, 82, 0.25);
}

/* Responsive navigation */
@media (max-width: 768px) {
  nav ul li a {
    padding: 0.6rem 1.8rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 576px) {
  nav {
    padding: 0.7rem 0;
  }

  nav ul li a {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
  }
}

.navbar {
  background: linear-gradient(135deg, rgba(185, 117, 82, 0.08) 0%, rgba(244, 240, 236, 0.6) 100%);
  color: #b97552;
  padding: 1rem 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  border-bottom: 2px solid rgba(185, 117, 82, 0.15);
  box-shadow: 0 2px 8px rgba(44, 49, 54, 0.06);
}
.navbar .logo {
  font-weight: bold;
  font-size: 1.3rem;
  color: #b97552;
  text-decoration: none;
}
.navbar a {
  color: #b97552;
  text-decoration: none;
  transition: color 0.15s ease;
}
.navbar a:hover {
  color: #5f3b29;
}
.herohome {
  text-align: center;
  max-width: 100vw;
  margin: 0 auto;
  padding: 3rem 0 2rem 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(212,163,115,0.04), rgba(244,240,236,0)), 
    url('');
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
  position: relative;
}
.hero {
  text-align: center;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: #FBF7F2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero h1 {
  font-size: 2.5rem;
  color: #2C3136; /* inherit dark text for readability */
}
.cards {
  /* single column, center-aligned */
  display: flex;
  justify-self: center;
  max-width: 80%;
  padding: 2rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.card {
  /* same width for all cards, responsive */
  width: 800px;
  max-width: 95%;
  background: #fff; /* light card for warmth and readability */
  border-radius: 10px;
  justify-self: center;
  box-shadow: 0 6px 18px rgba(44,49,54,0.06);
  padding: 2rem;
  margin: 1rem 0;
  color: #2C3136;
}

.navbarcont {
  display: flex;
  justify-content: center;
}

.card h2 {
  color: #2C3136;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  background: #fff;
  color: #5a5a5a;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
  font-size: 0.85rem;
}

.btn:hover {
  background: #a56647;
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.btn-grid .btn {
  width: 85%;
  text-align: center;
  margin: 0;
}

.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin: 2rem auto;
  padding: 1rem;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44,49,54,0.04);
}

/* Table styling */
.table-nice {
  width: 100%;
  border-collapse: collapse;
  color: #2C3136;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.table-nice th,
.table-nice td {
  padding: 0.75rem 1rem;
  border: 1px solid #2e3a59;
  text-align: left;
}

.table-nice th {
  background: #34495e; /* maintains hierarchy with nav color */
  color: #ffffff;
  font-weight: bold;
}

.table-nice tr:nth-child(even) {
  background: #FBF7F2;
}

/* Class for embedded images */
.embedded-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fffaf6;
}

/* Ontology Visualizations Section Styles */
.ontology-visualizations {
  padding: 1.5rem 0;
}

.ontology-visualizations .row {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem;
}

.ontology-visualizations .col-md-6,
.ontology-visualizations .col-12 {
  flex: 0 0 calc(50% - 2rem);
  max-width: calc(50% - 2rem);
  padding: 1rem;
  box-sizing: border-box;
}

.ontology-visualizations .col-12 {
  flex: 0 0 calc(100% - 2rem);
  max-width: calc(100% - 2rem);
}

.ontology-visualizations h4 {
  color: #2C3136;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(185, 117, 82, 0.2);
}

.ontology-visualizations img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(44, 49, 54, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: 1px solid rgba(44, 49, 54, 0.04);
}

.ontology-visualizations img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(44, 49, 54, 0.12);
}

/* Image magnification modal */
.image-magnifier-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.image-magnifier-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-magnifier-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.image-magnifier-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.image-magnifier-close:hover,
.image-magnifier-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .ontology-visualizations .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Division to wrap images, to be used inside .content */
.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  background: #fff;
  border: 1px solid rgba(44,49,54,0.04);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.image-caption {
  display: inline-block; /* wrap tightly so background + radius are visible */
  text-align: center;
  font-size: 1rem;
  color: #5a5a5a; /* slightly darker for contrast */
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  border-radius: 8px;
  padding: 0.25rem 0.65rem; /* more horizontal padding to show background */
  background: rgba(255,240,230,0.88); /* stronger translucent warm background */
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); /* subtle lift to separate from wrapper */
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Class for embedded iframes */
.embedded-iframe {
    display: block;
    width: 100%;
    max-width: 900px;
    height: 480px;
    margin: 0 auto;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fffaf6;
}

/* Division to wrap iframes, to be used inside .content */
.iframe-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid rgba(44,49,54,0.04);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.iframe-wrapper p {
    text-align: left;
    width: 90%;
}

.card ul {
  /* ensure comfortable left padding for bullets */
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.card ul li {
  margin-bottom: 0.65rem; /* space between bullets */
  line-height: 1.45;       /* improve readability */
}

.card ul li:last-child {
  margin-bottom: 0; /* avoid extra space after the list */
}

/* --- Space Facts Carousel --- */
.slider {
  position: relative !important;
  margin: 2.5rem auto 1.5rem auto !important;
  width: 100% !important;
  max-width: 900px !important;
  height: 370px !important;
  overflow: visible !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 60px !important;
  box-sizing: border-box !important;
}

.slider .item {
  position: absolute !important;
  width: 260px !important;
  max-width: 90vw !important;
  height: 320px !important;
  text-align: left !important;
  background-color: #fff !important;
  border-radius: 14px !important;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem !important;
  box-shadow: 0 4px 18px rgba(44,49,54,0.08) !important;
  color: #2C3136 !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  font-size: 1.08rem !important;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.18s ease !important;
  left: calc(50% - 130px) !important;
  top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.7rem !important;
  cursor: pointer !important;
}
.slider .item:active,
.slider .item:focus {
  box-shadow: 0 0 0 3px #b9755233 !important;
  outline: none !important;
}

.slider .item h1 {
  font-size: 1.25rem !important;
  color: #b97552 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 0.7rem !important;
  margin-top: 0.2rem !important;
  text-align: center !important;
}

/* Slider-specific status chip styling */
.slider .item .status {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  margin-bottom: 0.8rem !important;
  padding: 0.2rem 0.5rem !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  gap: 0.35rem !important;
  z-index: 10 !important;
  box-shadow: 0 2px 8px rgba(44, 49, 54, 0.1) !important;
}

.slider .item .status .status-dot {
  width: 8px !important;
  height: 8px !important;
}

/* Adjust status colors for slider to match website theme */
.slider .item.status-ongoing .status,
.slider .item .status.status-ongoing {
  background: linear-gradient(90deg, #43AA8B 0%, #389a7a 100%) !important;
  color: #ffffff !important;
}

.slider .item.status-ongoing .status .status-dot,
.slider .item .status.status-ongoing .status-dot {
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(67, 170, 139, 0.12) !important;
  animation: status-pulse 2.2s infinite ease-in-out !important;
}

.slider .item.status-paused .status,
.slider .item .status.status-paused {
  background: linear-gradient(90deg, #D6D84F 0%, #c4c63f 100%) !important;
  color: #3d3d3d !important;
}

.slider .item.status-paused .status .status-dot,
.slider .item .status.status-paused .status-dot {
  background: #3d3d3d !important;
  box-shadow: 0 0 0 3px rgba(214, 216, 79, 0.15) !important;
}

.slider .item.status-retired .status,
.slider .item .status.status-retired {
  background: linear-gradient(90deg, #b5b8bb 0%, #a5a8ab 100%) !important;
  color: #3d3d3d !important;
  opacity: 0.95 !important;
}

.slider .item.status-retired .status .status-dot,
.slider .item .status.status-retired .status-dot {
  background: #3d3d3d !important;
  box-shadow: 0 0 0 3px rgba(181, 184, 187, 0.15) !important;
}

#next, #prev {
  position: absolute !important;
  top: 50% !important;
  background: none !important;
  border: none !important;
  font-size: 0 !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  font-weight: bold !important;
  opacity: 0.7 !important;
  color: #b97552 !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  z-index: 2 !important;
  cursor: pointer !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#next { 
  right: 6px !important;
  left: auto !important;
}
#prev { 
  left: 6px !important;
  right: auto !important;
}
#next:hover, #prev:hover {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.slider #next .carousel-nav-icon,
.slider #prev .carousel-nav-icon {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.slider #next .carousel-nav-icon svg,
.slider #prev .carousel-nav-icon svg {
  fill: #b97552 !important;
  transition: fill 0.3s ease !important;
}

.slider .slider-img {
  display: block !important;
  margin: 0.5rem auto 0.5rem auto !important;
  width: 90% !important;
  height: 90% !important;
  max-width: 210px !important;
  max-height: 250px !important;
  object-fit: contain !important;
  justify-self: center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  /* Remove circular frame, make image main object */
}
@media (max-width: 900px) {
  .slider {
    height: 300px !important;
    max-width: 98vw !important;
    border-radius: 12px !important;
    padding: 0 50px !important;
  }
  .slider .item {
    width: 180px !important;
    height: 200px !important;
    font-size: 0.98rem !important;
    left: calc(50% - 90px) !important;
    padding: 1rem 0.7rem 0.7rem 0.7rem !important;
  }
  .slider .item h1 {
    font-size: 1.08rem !important;
  }
  .slider .item .status {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
    margin-bottom: 0.6rem !important;
    gap: 0.3rem !important;
  }
  .slider .item .status .status-dot {
    width: 7px !important;
    height: 7px !important;
  }
  #next, #prev {
    position: absolute !important;
    top: 50% !important;
    width: 40px !important;
    height: 40px !important;
    transform: translateY(-50%) !important;
    right: auto !important;
    left: auto !important;
    opacity: 0.8 !important;
    z-index: 5 !important;
  }
  #next {
    right: 10px !important;
    left: auto !important;
  }
  #prev {
    left: 10px !important;
    right: auto !important;
  }
  #next:hover, #prev:hover {
    transform: translateY(-50%) scale(1.1) !important;
  }
  .slider .slider-img {
    width: 100% !important;
    height: 95% !important;
    top: 40% !important;
  }
}

@media (max-width: 600px) {
  .slider {
    height: 280px !important;
    padding: 0 45px !important;
  }
  .slider .item {
    width: 140px !important;
    height: 170px !important;
    font-size: 0.9rem !important;
    left: calc(50% - 70px) !important;
    padding: 0.8rem 0.6rem 0.6rem 0.6rem !important;
  }
  .slider .item h1 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
  }
  .slider .item .status {
    font-size: 0.6rem !important;
    padding: 0.12rem 0.35rem !important;
    margin-bottom: 0.4rem !important;
    gap: 0.25rem !important;
  }
  #next, #prev {
    width: 36px !important;
    height: 36px !important;
  }
  #next:hover, #prev:hover {
    transform: translateY(-50%) scale(1.05) !important;
  }
}

/* --- Carousel container layout fixes (scope to avoid global .card conflicts) --- */
.carousel-container,
.legacy-carousel .container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding: 0;
  margin: 3rem auto; /* increased vertical spacing between carousel containers */
}

/* ensure anchor-wrapped cards behave like block cards */
.carousel-container a.carousel-card,
.carousel-container .card,
.legacy-carousel .container .card {
  display: block; /* anchors behave as block elements */
  box-sizing: border-box;
  width: 200px;
  min-width: 160px;
  min-height: 280px;
  padding: 1.2rem;
  margin: 0; /* spacing handled by container / negative overlap below */
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(44,49,54,0.10);
  position: relative;
  left: 0;
  transition: transform 0.4s ease-out, left 0.4s ease-out;
  overflow: hidden;
}

/* negative overlap for stacked appearance (preserve original behaviour) */
.carousel-container a.carousel-card:not(:first-child),
.carousel-container .card:not(:first-child),
.legacy-carousel .container .card:not(:first-child) {
  margin-left: -50px;
}

/* hover lift and push siblings */
.carousel-container a.carousel-card:hover,
.carousel-container .card:hover,
.legacy-carousel .container .card:hover {
  transform: translateY(-20px);
  z-index: 5;
}
.carousel-container a.carousel-card:hover ~ a.carousel-card,
.carousel-container .card:hover ~ .card,
.legacy-carousel .container .card:hover ~ .card {
  left: 50px;
}

/* Title inside card - normal flow (not absolute) to avoid overlap issues */
.carousel-container .carousel-title,
.carousel-container .title,
.legacy-carousel .container .title {
  position: relative;
  left: 0;
  top: 0;
  margin: 0 0 0.4rem 0;
  color: #251500;
  font-weight: 600;
  font-size: 1rem;
}

/* Carousel image styling */
.carousel-container .carousel-image {
  align-items: center;
  justify-self: center;
  display: flex;
  height: 100px;
  margin: 0 0 0.8rem 0;
  overflow: hidden;
  background-color: transparent;
}

.carousel-container .carousel-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
}

.carousel-container a.carousel-card:hover .carousel-image img {
  transform: scale(1.05);
}

/* Progress bar positioning kept inside card but not overflowing */
.carousel-container .carousel-bar,
.carousel-container .bar,
.legacy-carousel .container .bar {
  position: relative;
  margin-top: 0.4rem;
  height: 5px;
  width: calc(100% - 40px);
  /* keep a maximum width similar to original */
  max-width: 150px;
}

/* Empty / filled bar visuals (scoped) */
.carousel-container .carousel-emptybar,
.carousel-container .emptybar,
.legacy-carousel .container .emptybar {
  background-color: #f4f0ec;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.carousel-container .carousel-filledbar,
.carousel-container .filledbar,
.legacy-carousel .container .filledbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #b97552 0%, #d4a373 65%, #ffba00 100%);
  border-radius: 3px;
  transition: width 0.6s ease-out;
}

/* hover / complete behaviors (scoped) */
.carousel-container a.carousel-card:hover .carousel-filledbar,
.carousel-container .card:hover .filledbar {
  width: 100%;
  transition: width 1.2s linear;
}
.carousel-container a.carousel-card.complete .carousel-filledbar,
.carousel-container .card.complete .filledbar {
  width: 100%;
  transition: width 2s linear;
}

/* Slightly larger title to maintain hierarchy */
.carousel-container .carousel-title,
.carousel-container .title,
.legacy-carousel .container .title {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

/* Center the carousel-text vertically inside the card and keep it slightly smaller */
.carousel-container .carousel-text,
.carousel-container .card-text,
.legacy-carousel .container .card-text {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 1.2rem;
  font-weight:normal;
  color: #444444;
  text-align: left;
  line-height: 1.3;
  pointer-events: none; /* avoid accidental clicks when cards are clickable */
}

/* Carousel details styling */
.carousel-container .carousel-details {
  position: relative;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.carousel-container .carousel-details p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #5a5a5a;
  line-height: 1.4;
}

.carousel-container .carousel-details strong {
  color: #b97552;
  font-weight: 600;
}

/* Ensure card container is positioned relative so absolute centering works */
.carousel-container a.carousel-card,
.carousel-container .card,
.legacy-carousel .container .card {
  position: relative; /* existing rule retained, ensure present */
}

/* Reduce bar top spacing so it doesn't overlap centered text on small cards */
.carousel-container .carousel-bar,
.carousel-container .bar,
.legacy-carousel .container .bar {
  margin-top: 0.25rem;
}

/* Responsive adjustments for carousel container cards */
@media (max-width: 900px) {
  .carousel-container,
  .legacy-carousel .container {
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .carousel-container a.carousel-card,
  .carousel-container .card,
  .legacy-carousel .container .card {
    width: 160px;
    height: 220px;
    padding: 0.9rem;
  }
  .carousel-container .carousel-bar,
  .carousel-container .bar {
    max-width: 110px;
    width: calc(100% - 30px);
  }
}

/* Module Item Carousel Styles */
.module-item-section {
  padding: 60px 50px;
}

.module-item-line-title {
  position: relative;
  width: 400px;
  margin-bottom: 48px;
  color: #2C3136;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.module-item-line-title::before,
.module-item-line-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 2px;
}

.module-item-line-title::before {
  width: 100%;
  background: #f2f2f2;
}

.module-item-line-title::after {
  width: 32px;
  background: #b97552;
}

.module-item-section .module-item-carousel .owl-stage {
  margin: 15px 0;
  display: flex;
  display: -webkit-flex;
}

.module-item {
  margin: 0 15px 60px;
  width: 320px;
  height: 400px;
  display: flex;
  display: -webkit-flex;
  align-items: flex-end;
  -webkit-align-items: flex-end;
  background: #343434 no-repeat center center / cover;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.module-item.active {
  width: 500px;
  box-shadow: 12px 40px 40px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 12px 40px 40px rgba(0, 0, 0, 0.25);
}

.module-item:after {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

.module-item-desc {
  padding: 8px 24px 12px;
  color: #fff;
  /* position changed so status pills inside can be positioned against .module-item */
  position: static;
  z-index: 1;
  overflow: hidden;
  transform: translateY(calc(100% - 140px));
  -webkit-transform: translateY(calc(100% - 140px));
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.module-item.active .module-item-desc {
  transform: none;
  -webkit-transform: none;
}

.module-item-desc h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 34px;
}

.module-item-desc p {
  opacity: 0;
  -webkit-transform: translateY(32px);
  transform: translateY(32px);
  transition: all 0.4s ease-in-out 0.2s;
  -webkit-transition: all 0.4s ease-in-out 0.2s;
}

.module-item.active .module-item-desc p {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.module-item-section .module-item-carousel .owl-dots {
  display: none;
}

.module-item-section .custom-dots {
  margin-top: -20px;
  position: relative;
  z-index: 5;
  text-align: center;
}

.module-item-section .custom-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.module-item-section .custom-dots .dot:hover {
  transform: scale(1.2);
  background-color: rgba(0, 0, 0, 0.8);
}

.module-item-section .custom-dots .dot.active {
  background-color: #000;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.module-item-section .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.module-item-section .owl-nav button {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 15px;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.module-item-section .owl-nav button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive styles for module items */
@media (min-width: 992px) and (max-width: 1199px) {
  .module-item-section {
    padding: 50px 30px;
  }
  .module-item {
    margin: 0 12px 60px;
    width: 260px;
    height: 360px;
  }
  .module-item.active {
    width: 400px;
  }
  .module-item-desc {
    transform: translateY(calc(100% - 46px));
    -webkit-transform: translateY(calc(100% - 46px));
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .module-item-section {
    padding: 50px 30px 40px;
  }
  .module-item {
    margin: 0 12px 60px;
    width: 240px;
    height: 330px;
  }
  .module-item.active {
    width: 360px;
  }
  .module-item-desc {
    transform: translateY(calc(100% - 42px));
    -webkit-transform: translateY(calc(100% - 42px));
  }
}

@media (max-width: 767px) {
  .module-item-section {
    padding: 30px 15px 20px;
  }
  .module-item {
    margin: 0 10px 40px;
    width: 200px;
    height: 280px;
  }
  .module-item.active {
    width: 270px;
    box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.25);
  }
  .module-item-desc {
    padding: 0 14px 5px;
    transform: translateY(calc(100% - 42px));
    -webkit-transform: translateY(calc(100% - 42px));
  }
}

/* =========================
   Card / Carousel Status UI
   - Small corner pill (.status) with variants
   - Optional rotated ribbon (.status-ribbon)
   - Optional bottom progress bar (.status-progress)
   Usage: add classes to card containers: .card, .module-item, .carousel-card, .slider .item, etc.
   Example: <div class="module-item status-ongoing">...<span class="status">Ongoing<span class="status-dot"></span></span></div>
   ========================= */

.status { /* pill badge */
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(44,49,54,0.08);
  pointer-events: none; /* non-interactive by default */
  white-space: nowrap;
}

/* small circular indicator inside the pill */
.status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08) inset;
}

/* SIZE VARIANTS (optional) */
.status-sm { padding: 0.18rem 0.45rem; font-size: 0.78rem; top: 10px; right: 10px; }
.status-lg { padding: 0.4rem 0.8rem; font-size: 0.98rem; }

/* STATUS THEMES */
/* Ongoing - teal */
.status-ongoing { background: linear-gradient(90deg,#43AA8B 0%, #389a7a 100%); color: #ffffff; }
.status-ongoing .status-dot { background: #ffffff; box-shadow: 0 0 0 4px rgba(67,170,139,0.09); animation: status-pulse 2.2s infinite ease-in-out; }

/* Paused - yellow-green */
.status-paused { background: linear-gradient(90deg,#D6D84F 0%, #c4c63f 100%); color: #3d3d3d; }
.status-paused .status-dot { background: #3d3d3d; box-shadow: 0 0 0 4px rgba(214,216,79,0.08); }

/* Retired - muted grey */
.status-retired { background: linear-gradient(90deg,#95a5a6 0%, #7f8c8d 100%); color: #ffffff; opacity: 0.98; }
.status-retired .status-dot { background: #ecf0f1; box-shadow: none; }

/* Upcoming / Yet to come - cool blue */
.status-upcoming { background: linear-gradient(90deg,#6ea6ff 0%, #8e7cc3 100%); color: #fff; }
.status-upcoming .status-dot { background: #fff; box-shadow: 0 0 0 4px rgba(110,166,255,0.08); }

/* subtle pulse animation used by 'ongoing' */
@keyframes status-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* Rotated ribbon variant (useful for strong visual) */
.status-ribbon {
  position: absolute;
  left: -40px;
  top: 14px;
  z-index: 28;
  transform: rotate(-45deg);
  transform-origin: left top;
  padding: 0.35rem 5.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(44,49,54,0.08);
  pointer-events: none;
  white-space: nowrap;
  border-radius: 3px;
}

/* match ribbon colors to status themes */
.status-ribbon.ongoing { background: linear-gradient(90deg,#28a745,#20c997); }
.status-ribbon.paused { background: linear-gradient(90deg,#f39c12,#e67e22); }
.status-ribbon.retired { background: linear-gradient(90deg,#95a5a6,#7f8c8d); }
.status-ribbon.upcoming { background: linear-gradient(90deg,#6ea6ff,#8e7cc3); }

/* Bottom progress indicator for cards (optional)
   Set the progress using an inline style: style="--progress:62%" */
.status-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 8px;
  background: #f4f0ec;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 22;
}

/* filled portion (reads --progress custom property) */
.status-progress .status-filled {
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #b97552 0%, #d4a373 65%, #ffba00 100%);
  transition: width 0.8s cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 2px 8px rgba(44,49,54,0.08);
}

/* Optional: small text label above progress */
.status-progress .progress-label {
  position: absolute;
  top: -20px;
  right: 6px;
  font-size: 0.78rem;
  color: #5a5a5a;
  background: rgba(255,255,255,0.95);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(44,49,54,0.06);
}

/* Safe scoping hints: common card-like elements already present in this stylesheet
   naturally contain position: relative; if you must apply to a plain element, ensure the parent is positioned. */
.card.status,
.module-item.status,
.carousel-card.status,
.slider .item.status { position: relative; }

/* Prevent overlap with module-item-desc low area: if both status-progress and module text appear,
   move progress up slightly for module-item to keep text visible */
.module-item .status-progress { bottom: 14px; left: 14px; right: 14px; height: 7px; }

/* Fix: avoid .status overlapping module titles in non-active module items */
.module-item-desc .status {
  /* ensure pill sits above the desc content by default and is clearly visible */
  top: 12px;
  right: 12px;
  z-index: 60; /* above overlay and desc content */
}

/* When module is collapsed (not .active) move the pill upward so it doesn't cover the title */
.module-item:not(.active) .module-item-desc .status {
  top: -40px; /* lift the pill above the visible collapsed strip */
  right: 14px;
}

/* Slightly less lift on small screens to avoid pushing off-canvas */
@media (max-width: 767px) {
  .module-item:not(.active) .module-item-desc .status {
    top: -30px;
    right: 10px;
    font-size: 0.82rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Inactive button variant for pages that are not there yet.
   Usage: <a class="btn inactive" href="#">Coming soon</a>
   or for accessibility: <a class="btn" aria-disabled="true" href="#">Coming soon</a> */
.btn.inactive,
a.btn.inactive,
button.btn.inactive,
.btn[aria-disabled="true"],
a.btn[aria-disabled="true"],
button.btn[aria-disabled="true"] {
  background: #ece8e5;         /* desaturated card-like background */
  color: #7a7a7a;              /* muted label */
  box-shadow: none;
  opacity: 0.95;
  cursor: not-allowed;
  pointer-events: none;        /* disable clicks */
  transform: none;
  transition: none;
}

/* Prevent any hover/focus effects when inactive (including illuminated variant) */
.btn.inactive:hover,
.btn.inactive:focus,
a.btn.inactive:hover,
a.btn.inactive:focus,
button.btn.inactive:hover,
button.btn.inactive:focus,
.btn[aria-disabled="true"]:hover,
.btn[aria-disabled="true"]:focus {
  background: #ece8e5;
  color: #7a7a7a;
  box-shadow: none;
  transform: none;
  outline: none;
}

/* Keep keyboard focus visible if you prefer an accessible visible focus (optional)
   Uncomment to allow visible focus but still non-interactive:
.btn[aria-disabled="true"]:focus {
  box-shadow: 0 0 0 3px rgba(124,124,124,0.12);
}

/* --- Selected Overall Projects Section --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600');

/* Override font for project section only */
.projects-section h1, 
.projects-section h5 { 
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Primary color for project section */
.projects-section {
  --primary-color: #b97552;
}

/* Carousel navigation icon */
.projects-section .carousel-nav-icon {
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.projects-section .carousel-nav-icon:hover {
  transform: scale(1.1);
}

.projects-section .carousel-nav-icon svg {
  fill: var(--primary-color);
  transition: fill 0.3s ease;
}

/* Project cards styling */
.projects-section .card {
  border-radius: 10px;
  border: 1px solid rgba(44,49,54,0.08);
  box-shadow: 0 4px 12px rgba(44,49,54,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.projects-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(44,49,54,0.12);
}

.projects-section .card-img-top {
  border-radius: 10px 10px 0 0;
  height: 200px;
  object-fit: cover;
}

/* Card footer styling */
.projects-section .card-footer {
  background-color: #fff;
  border-top: 1px solid rgba(44,49,54,0.08);
  border-radius: 0 0 10px 10px;
  padding: 1rem;
  transition: background-color 0.3s ease;
}

.projects-section .card-footer:hover {
  background-color: var(--primary-color);
  text-decoration: none;
}

.projects-section .card-footer:hover small.text-muted {
  color: #fff !important;
  text-decoration: none;
}

.projects-section .card-footer:hover svg {
  fill: #fff;
}

/* Card body styling */
.projects-section .card-body {
  padding: 1.5rem;
}

.projects-section .card-roles {
  font-size: 0.8rem;
  color: #b97552;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.projects-section .card-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 500;
}

.projects-section .card-title {
  color: #2C3136;
  margin-bottom: 1rem;
}

.projects-section .card-text {
  color: #5a5a5a;
  line-height: 1.6;
}

/* Responsive card layout */
@media (min-width: 576px) {
  .projects-section .card-deck .card {
    flex: 0 0 calc(100% - 30px);
  }
}

@media (min-width: 768px) {
  .projects-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

@media (min-width:  992px) {
  .projects-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

@media (min-width: 1200px) {
  .projects-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

/* Read more button styling */
.projects-section .btn-secondary {
  background-color: #b97552;
  border-color: #b97552;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.projects-section .btn-secondary:hover {
  background-color: #a56647;
  border-color: #a56647;
  transform: translateY(-2px);
}

/* Carousel styling */
.projects-section .carousel {
  position: relative;
}

.projects-section .carousel-inner {
  overflow: hidden;
}

.projects-section .carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Section title styling */
.projects-section h1 {
  color: #2C3136;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* --- Video Episodes Section --- */
.video-episodes-section {
  --primary-color: #b97552;
}

.video-episodes-section .carousel-nav-icon {
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-episodes-section .carousel-nav-icon:hover {
  transform: scale(1.1);
}

.video-episodes-section .carousel-nav-icon svg {
  fill: var(--primary-color);
  transition: fill 0.3s ease;
}

.video-episodes-section .card {
  border-radius: 10px;
  border: 1px solid rgba(44,49,54,0.08);
  box-shadow: 0 4px 12px rgba(44,49,54,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 0.666rem);
  min-width: 0;
  max-width: calc(33.333% - 0.666rem);
}

.video-episodes-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(44,49,54,0.12);
}

.video-episodes-section .card-img-top {
  border-radius: 10px 10px 0 0;
  height: 200px;
  object-fit: cover;
}

.video-episodes-section .card-footer {
  background-color: #fff;
  border-top: 1px solid rgba(44,49,54,0.08);
  border-radius: 0 0 10px 10px;
  padding: 1rem;
  transition: background-color 0.3s ease;
}

.video-episodes-section .card-footer:hover {
  background-color: var(--primary-color);
  text-decoration: none;
}

.video-episodes-section .card-footer:hover small.text-muted {
  color: #fff !important;
}

.video-episodes-section .card-footer:hover svg {
  fill: #fff;
}

.video-episodes-section .card-body {
  padding: 1.5rem;
}

.video-episodes-section .card-title {
  color: #2C3136;
  margin-bottom: 1rem;
}

.video-episodes-section .card-title small {
  color: #b97552;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-episodes-section .card-text {
  color: #5a5a5a;
  line-height: 1.6;
}

@media (min-width: 576px) {
  .video-episodes-section .card-deck .card {
    flex: 0 0 calc(100% - 30px);
  }
}

@media (min-width: 768px) {
  .video-episodes-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

@media (min-width: 992px) {
  .video-episodes-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

@media (min-width: 1200px) {
  .video-episodes-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

/* Ensure card deck has proper width */
.video-episodes-section .card-deck {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: nowrap;
  display: flex;
  gap: 1rem;
}

/* Ensure carousel has proper width */
.video-episodes-section .carousel {
  width: 100%;
}

.video-episodes-section .carousel-inner {
  width: 100%;
  overflow: hidden;
}

.video-episodes-section .carousel-item {
  width: 100%;
  overflow: hidden;
}

.video-episodes-section .carousel {
  position: relative;
  width:100%;
  overflow: hidden;
}

/* Fix carousel row layout */
.video-episodes-section .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.video-episodes-section .col-1 {
  flex: 0 0 auto;
  min-width: 60px;
}

.video-episodes-section .col-10 {
  flex: 1 1 auto;
  min-width: 0;
}

.video-episodes-section .carousel-inner {
  overflow: hidden;
}

.video-episodes-section .carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* --- Tutorials Section --- */
.tutorials-section {
  --primary-color: #b97552;
}

.tutorials-section .carousel-nav-icon {
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tutorials-section .carousel-nav-icon:hover {
  transform: scale(1.1);
}

.tutorials-section .carousel-nav-icon svg {
  fill: var(--primary-color);
  transition: fill 0.3s ease;
}

.tutorials-section .card {
  display: flex;
  text-wrap: break-word;
  border-radius: 10px;
  border: 1px solid rgba(44,49,54,0.08);
  box-shadow: 0 4px 12px rgba(44,49,54,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 0.666rem);
  max-width: calc(33.333% - 0.666rem);
}

.tutorials-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(44,49,54,0.12);
}

.tutorials-section .card-img-top {
  border-radius: 10px 10px 0 0;
  height: 200px;
  object-fit: cover;
}

.tutorials-section .card-footer {
  background-color: #fff;
  text-decoration: none;
  border-top: 1px solid rgba(44,49,54,0.08);
  border-radius: 0 0 10px 10px;
  padding: 1rem;
  transition: background-color 0.3s ease;
}

.tutorials-section .card-footer:hover {
  background-color: var(--primary-color);
  text-decoration: none !important;
}

.tutorials-section .card-footer:hover small.text-muted {
  color: #fff !important;
}

.tutorials-section .card-footer:hover svg {
  fill: #fff;
}

.tutorials-section .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.tutorials-section .card-title {
  color: #2C3136;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tutorials-section .card-title small {
  color: #b97552;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.tutorials-section .card-text {
  color: #5a5a5a;
  line-height: 1.6;
  text-wrap: wrap;
}

@media (min-width: 576px) {
  .tutorials-section .card-deck .card {
    flex: 0 0 calc(100% - 30px);
  }
}

@media (min-width: 768px) {
  .tutorials-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

@media (min-width: 992px) {
  .tutorials-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

@media (min-width: 1200px) {
  .tutorials-section .card-deck .card {
    flex: 0 0 calc(33.333% - 30px);
  }
}

/* Ensure card deck has proper width */
.tutorials-section .card-deck {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: nowrap;
  display: flex;
  gap: 1rem;
}

/* Ensure carousel has proper width */
.tutorials-section .carousel {
  width: 100%;
}

.tutorials-section .carousel-inner {
  width: 100%;
  overflow: hidden;
}

.tutorials-section .carousel-item {
  width: 100%;
  overflow: hidden;
}

.tutorials-section .carousel {
  position: relative;
  width:100%;
  overflow: hidden;
}

/* Fix carousel row layout */
.tutorials-section .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.tutorials-section .col-1 {
  flex: 0 0 auto;
  min-width: 60px;
}

.tutorials-section .col-10 {
  flex: 1 1 auto;
  min-width: 0;
}

.tutorials-section .carousel-inner {
  overflow: hidden;
}

.tutorials-section .carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Infinite Scroll Carousel Styles */
.tutorials-section .container {
  margin: auto;
  max-width: 1440px;
  overflow-x: scroll;
  white-space: nowrap;
  background-color: #fff;
  display: flex;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tutorials-section .container::-webkit-scrollbar {
  display: none;
}

.tutorials-section article {
  min-width: 350px;
  height: 400px;
  padding: 1rem;
}

.tutorials-section article .wrapper {
  padding: 1rem;
  background-color: #fff;
  height: 100%;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 25px;
}

.tutorials-section article .img {
  height: 50%;
  background-color: #f4f0ec;
  border-radius: 25px 25px 0 0;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.tutorials-section article .content {
  padding: 1rem 0.5rem;
}

.tutorials-section article .content h5 {
  margin: 0;
}

.tutorials-section article .content p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.tutorials-section article .content a {
  transition: color 0.18s;
}

.tutorials-section article .content a:hover {
  color: #5f3b29 !important;
}

/* Carousel fixes */
.tutorials-section .carousel {
  position: relative;
  overflow: hidden;
}

.tutorials-section .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tutorials-section .carousel-item {
  position: relative;
  display: none;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.tutorials-section .carousel-item.active {
  display: block;
}

.tutorials-section .carousel-control-prev,
.tutorials-section .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 0;
  color: #fff;
  text-align: center;
  background: rgba(185, 117, 82, 0.8);
  border: none;
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tutorials-section .carousel-control-prev {
  left: 0;
}

.tutorials-section .carousel-control-next {
  right: 0;
}

.tutorials-section .carousel-control-prev:hover,
.tutorials-section .carousel-control-next:hover {
  opacity: 1;
  background: rgba(185, 117, 82, 1);
}

.tutorials-section .carousel-control-prev-icon,
.tutorials-section .carousel-control-next-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
}

.tutorials-section .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.tutorials-section .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.tutorials-section .carousel-indicators {
  position: absolute;
  right: 0;
  bottom: -30px;
  left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin-right: 15%;
  margin-left: 15%;
  list-style: none;
}

.tutorials-section .carousel-indicators li {
  position: relative;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: rgba(185, 117, 82, 0.5);
  border: 0;
}

.tutorials-section .carousel-indicators li.active {
  background-color: #b97552;
}

/* Card fixes */
.tutorials-section .card-deck {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1px;
}

.tutorials-section .card {
  flex: 1;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tutorials-section .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tutorials-section .card-body {
  flex: 1 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.tutorials-section .card-title {
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tutorials-section .card-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tutorials-section .card-footer {
  padding: 1rem;
  background: none;
  border-top: none;
  text-align: center;
}

/* --- Article Card Styles --- */
.article-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44,49,54,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 1.5rem 0;
}

.article-card:hover {
  box-shadow: 0 10px 28px rgba(44,49,54,0.12);
  transform: translateY(-4px);
}

.article-card-header {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f4f0ec;
}

.article-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image {
  transform: scale(1.05);
}

.article-card-body {
  padding: 2rem;
}

.article-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.article-publisher {
  display: inline-block;
  color: #5a5a5a;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.article-date {
  color: #5a5a5a;
  font-style: italic;
}

.article-card-title {
  font-size: 1.4rem;
  color: #2C3136;
  margin: 0.75rem 0 1rem 0;
  line-height: 1.4;
  font-weight: 600;
}

.article-card-snippet {
  color: #5a5a5a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0;
}

.article-card-footer {
  margin-top: 1.5rem;
}

.article-card .btn {
  display: inline-block;
  background: #b97552;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.article-card .btn:hover {
  background: #a56647;
  transform: translateX(3px);
}

/* --- Recent Professional Updates Section --- */
.recent-updates-section {
  background: linear-gradient(135deg, rgba(185, 117, 82, 0.02) 0%, rgba(244, 240, 236, 0.5) 100%);
}

.recent-updates-section h1 {
  font-family: 'Montserrat', sans-serif;
  color: #2C3136;
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.recent-updates-section .update-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(44, 49, 54, 0.08);
  transition: all 0.3s ease;
  min-height: auto;
}

.recent-updates-section .update-card:hover {
  box-shadow: 0 10px 30px rgba(185, 117, 82, 0.15);
  transform: translateY(-4px);
}

.recent-updates-section .update-iframe-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 504px;
  aspect-ratio: 504 / 566;
}

.recent-updates-section .update-iframe-wrapper iframe {
  max-width: 100%;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.recent-updates-section .carousel {
  position: relative;
}

.recent-updates-section .carousel-inner {
  border-radius: 12px;
  overflow: hidden;
}

.recent-updates-section .carousel-item {
  transition: opacity 0.6s ease-in-out;
}

.recent-updates-section .carousel-control-prev,
.recent-updates-section .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(185, 117, 82, 0.2);
  border: none;
  color: #b97552;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-updates-section .carousel-control-prev {
  left: -60px;
}

.recent-updates-section .carousel-control-next {
  right: -60px;
}

.recent-updates-section .carousel-control-prev:hover,
.recent-updates-section .carousel-control-next:hover {
  background: rgba(185, 117, 82, 0.4);
  color: #fff;
}

.recent-updates-section .carousel-control-prev-icon,
.recent-updates-section .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.recent-updates-section .carousel-indicators {
  position: relative;
  bottom: 0;
  margin-top: 2rem;
  background: transparent;
}

.recent-updates-section .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1c7bf;
  border: 2px solid #d1c7bf;
  cursor: pointer;
  transition: all 0.3s ease;
}

.recent-updates-section .carousel-indicators li.active {
  background-color: #b97552;
  border-color: #b97552;
  width: 12px;
  height: 12px;
}

.recent-updates-section .carousel-indicators li:hover {
  background-color: #b97552;
  border-color: #b97552;
}

/* Responsive adjustments for updates carousel */
@media (max-width: 768px) {
  .recent-updates-section .carousel-control-prev {
    left: -30px;
  }

  .recent-updates-section .carousel-control-next {
    right: -30px;
  }

  .recent-updates-section .update-card {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .recent-updates-section h1 {
    font-size: 1.5rem;
  }

  .recent-updates-section .carousel-control-prev,
  .recent-updates-section .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .recent-updates-section .carousel-control-prev {
    left: -20px;
  }

  .recent-updates-section .carousel-control-next {
    right: -20px;
  }

  .recent-updates-section .update-card {
    padding: 0.75rem 0.5rem;
  }

  .recent-updates-section .carousel-indicators {
    margin-top: 1.5rem;
  }
}

/* --- Get in Touch Section --- */
.get-in-touch-section {
  background: linear-gradient(135deg, rgba(185, 117, 82, 0.05) 0%, rgba(244, 240, 236, 0.8) 100%);
  padding: 4rem 2rem;
  margin-top: 3rem !important;
  margin-bottom: 2rem !important;
}

.get-in-touch-section h2 {
  font-family: 'Montserrat', sans-serif;
  color: #2C3136;
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.get-in-touch-section .touch-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.touch-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.touch-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(185, 117, 82, 0.2);
  border: 4px solid #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.touch-image-wrapper:hover .touch-image {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(185, 117, 82, 0.3);
}

.touch-content {
  padding: 0 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f4f0ec;
  color: #b97552;
  border: 2px solid #e8e4e0;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.social-link:hover {
  background: #b97552;
  color: #ffffff;
  border-color: #b97552;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(185, 117, 82, 0.2);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-link.github:hover {
  background: #333;
  border-color: #333;
}

.social-link.behance:hover {
  background: #1473e6;
  border-color: #1473e6;
}

.social-link.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.email-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(185, 117, 82, 0.1);
}

.email-label {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.email-link {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  color: #b97552;
  text-decoration: none !important;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.email-link:hover {
  color: #5f3b29;
  border-bottom-color: #b97552;
}

/* Responsive adjustments for get in touch section */
@media (max-width: 768px) {
  .get-in-touch-section {
    padding: 2.5rem 1.5rem;
  }

  .get-in-touch-section h2 {
    font-size: 2rem;
  }

  .touch-image {
    width: 220px;
    height: 220px;
  }

  .touch-content {
    padding: 0;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .email-contact {
    border-top: 2px solid rgba(185, 117, 82, 0.1);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .get-in-touch-section {
    padding: 2rem 1rem;
  }

  .get-in-touch-section h2 {
    font-size: 1.75rem;
  }

  .get-in-touch-section .touch-subtitle {
    font-size: 1rem;
  }

  .touch-image {
    width: 180px;
    height: 180px;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  .social-links {
    gap: 1rem;
  }

  .email-link {
    font-size: 1.1rem;
  }
}

/* Footer Styling */
.portfolio-footer {
  background-color: #3a3a3a;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  border-top: 1px solid #2c2c2c;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-text {
  color: #d0d0d0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0;
}

.footer-text p {
  margin: 0;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  color: #b97552;
}

.footer-social-link.linkedin:hover {
  color: #0077b5;
}

.footer-social-link.github:hover {
  color: #ffffff;
}

.footer-social-link.behance:hover {
  color: #1473e6;
}

.footer-social-link.youtube:hover {
  color: #ff0000;
}

.footer-social-link.email:hover {
  color: #ea4335;
}

.footer-creator-link {
  color: #d0d0d0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.footer-creator-link:hover {
  color: #b97552;
  text-decoration: none;
}

.footer-version {
  color: #a0a0a0;
  font-size: 0.85rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(208, 208, 208, 0.3);
  letter-spacing: 0.2px;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-text {
    font-size: 0.9rem;
  }

  .footer-social-links {
    justify-content: center;
  }
}

/* --- Tab Bar Navigation Styles --- */
.tab-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -2px 12px rgba(44, 49, 54, 0.12);
  margin: 0;
  padding: 0.5rem 1.5rem;
  border-top: 1px solid rgba(185, 117, 82, 0.1);
  transition: all 0.3s ease;
}

.tab-bar__tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.tab-bar__tab {
  margin: 0;
  padding: 0;
}

.tab-bar__tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #2C3136;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  position: relative;
  min-width: 75px;
}

.tab-bar__tab-link:hover:not([data-disabled="true"]) {
  background-color: #f4f0ec;
  color: #b97552;
}

.tab-bar__tab-link[data-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tab-bar__tab-link[aria-current="page"] {
  background-color: rgba(185, 117, 82, 0.12);
  color: #b97552;
  font-weight: 600;
}

.tab-bar__tab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  stroke: currentColor;
  transition: all 0.25s ease;
}

.tab-bar__tab-link:hover:not([data-disabled="true"]) .tab-bar__tab-icon {
  transform: scale(1.1);
}

.tab-bar__tab-link[aria-current="page"] .tab-bar__tab-icon {
  transform: scale(1.15);
}

.tab-bar__tab-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
  text-align: center;
}

.tab-bar__tab-link[aria-current="page"] .tab-bar__tab-name {
  font-weight: 600;
}

/* Ensure content doesn't overlap with fixed footer */
main {
  flex: 1;
  padding-bottom: 0;
}

/* Responsive Tab Bar */
@media (max-width: 768px) {
  .tab-bar {
    padding: 0.75rem 1rem;
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .tab-bar__tabs {
    gap: 0.5rem;
  }

  .tab-bar__tab-link {
    padding: 0.5rem 0.75rem;
    min-width: 70px;
    gap: 0.4rem;
  }

  .tab-bar__tab-icon {
    width: 20px;
    height: 20px;
  }

  .tab-bar__tab-name {
    font-size: 0.75rem;
  }

  main {
    flex: 1;
    padding-bottom: 0;
  }
}

@media (max-width: 576px) {
  .tab-bar {
    padding: 0.6rem 0.75rem;
    border-radius: 1rem 1rem 0 0;
  }

  .tab-bar__tabs {
    gap: 0.25rem;
  }

  .tab-bar__tab-link {
    padding: 0.4rem 0.5rem;
    min-width: 60px;
    gap: 0.3rem;
  }

  .tab-bar__tab-icon {
    width: 18px;
    height: 18px;
  }

  .tab-bar__tab-name {
    font-size: 0.7rem;
  }

  main {
    padding-bottom: calc(65px + 1rem);
  }
}
