body {
  font-family: Courier, "Courier New", monospace;
  font-size: 14px;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
  background-color: #f0f0f0;
  padding: 15px;
  border-bottom: 1px solid #757575;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-title {
  font-weight: bold;
  color: #6699cc;
  text-decoration: none;
  font-size: 18px;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #6699cc;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  margin-top: 15px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 10px;
}

.mobile-nav a {
  color: #6699cc;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  display: block;
  padding: 5px 0;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  text-decoration: underline;
  color: #3565c5;
}

/* Slider Styles - FIXED */
.hero-slider {
  padding-left: 3rem;
  margin-bottom: 30px;
}

.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

.carousel-item-next:not(.carousel-item-start),
.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-end,
.active.carousel-item-start {
  transform: translateX(0);
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
  transition: opacity 0s 0.6s;
}

.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  color: #fff;
  text-align: center;
  background: 0 0;
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  color: #fff;
  opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  margin-bottom: 1rem;
  margin-left: 15%;
  list-style: none;
}

.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #fff;
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.carousel-indicators .active {
  opacity: 1;
}

/* Sticky Sidebar */
.sidebar-wrapper {
  position: sticky;
  top: 0;
  align-self: flex-start;
  padding: 80px;
  height: fit-content;
}

.sidebar-title a {
  color: #6699cc;
  text-decoration: none;
  font-weight: bold;
}

.sidebar-title a:hover {
  text-decoration: underline;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 2px;
}

.sidebar a {
  color: #6699cc;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.sidebar a:hover,
.sidebar a.active {
  text-decoration: underline;
  color: #3565c5;
}

.sidebar ul li a {
  line-height: 0.5;
  font-size: 14px;
}

/* Main Content */
.main-content {
  padding: 20px 30px 20px 0;
}

/* Exhibition Info */
.exhibition-info {
  padding: 20px 0;
  padding-left: 3rem;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.8;
}

.exhibition-info a {
  color: #6699cc;
  text-decoration: none;
}

.exhibition-info a:hover {
  text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
  padding-left: 3rem;
}

.gallery-title {
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 12px;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Project Items */
.project-item {
  padding: 10px 0;
  padding-left: 3rem;
}

.project-item img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  display: block;
}

.project-item img:hover {
  transform: scale(1.02);
}

.project-content {
  padding-left: 30px;
}

.project-title {
  color: #6699cc;
  text-decoration: none;
  font-size: 22px;
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.project-title:hover {
  text-decoration: underline;
}

.project-date {
  font-size: 11px;
  color: #999;
  margin-bottom: 15px;
}

.project-description {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
  color: #3565c5;
}

.read-more {
  color: #6699cc;
  text-decoration: none;
  font-size: 14px;
}

.read-more:hover {
  text-decoration: underline;
}

.index-title {
  padding-left: 3rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  background: #000;
  padding: 20px;
  border-radius: 5px;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 5px;
  z-index: 2001;
}

.modal-controls {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.modal-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-family: Courier, monospace;
  transition: background 0.3s ease;
}

.modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* About Page */
.about-section {
  max-width: 100%;
  padding-left: 3rem;
}

.about-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.about-content-wrapper {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.about-image-section {
  flex: 0 0 40%;
}

.about-image {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  display: block;
}

.photo-credit {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.about-text-section {
  flex: 1;
  line-height: 1.8;
}

.about-text-section p {
  margin-bottom: 20px;
}

.download-cv {
  display: inline-block;
  color: #6699cc;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.download-cv:hover {
  text-decoration: underline;
}

/* Contact Page */
.contact-section {
  max-width: 100%;
  padding-left: 3rem;
}

.contact-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.contact-intro {
  margin-bottom: 20px;
  line-height: 1.8;
}

.contact-email {
  margin-bottom: 20px;
}

.label {
  font-weight: bold;
}

.email-link {
  color: #6699cc;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

.or-text {
  text-align: center;
  margin: 20px 0;
  font-weight: bold;
}

/* Form Styles */
.contact-form {
  max-width: 600px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #757575;
  background-color: #f0f0f0;
  font-family: Courier, monospace;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6699cc;
}

.form-input.error,
.form-textarea.error {
  border-color: #c0392b;
}

.form-error {
  color: #c0392b;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.form-textarea {
  height: 150px;
  resize: vertical;
}

.clearfix {
  clear: both;
}

.submit-btn {
  background-color: #6699cc;
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: Courier, monospace;
  font-size: 14px;
  cursor: pointer;
  float: right;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #5588bb;
}

/* Alert Styles */
.alert {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 0;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Links Page */
.links-section {
  max-width: 100%;
  padding-left: 3rem;
}

.links-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.links-divider {
  border: none;
  border-top: 1px solid #757575;
  margin-bottom: 30px;
}

.links-list {
  margin-bottom: 40px;
}

.link-item {
  margin-bottom: 30px;
}

.link-title {
  font-weight: bold;
  color: #6699cc;
  text-decoration: none;
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}

.link-title:hover {
  text-decoration: underline;
}

.link-description {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.links-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #757575;
  display: none;
}

.footer-name {
  font-weight: bold;
  color: #6699cc;
  margin-bottom: 10px;
}

/* Project Detail */
.project-header {
  padding-left: 3rem;
  margin-bottom: 30px;
}

.project-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #2c3e50;
  margin-bottom: 10px;
}

.project-meta {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.project-main-image {
  padding-left: 3rem;
  margin-bottom: 30px;
}

.project-full-description {
  padding-left: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 40px;
}

.project-navigation {
  padding-left: 3rem;
  margin-top: 40px;
}

/* General Styles */
hr {
  border: none;
  border-top: 1px solid #757575;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  .sidebar-wrapper {
    display: none;
  }

  .links-footer {
    display: block;
  }

  .main-content {
    padding: 20px 15px;
    margin-top: 60px;
  }

  .hero-slider,
  .exhibition-info,
  .project-item,
  .gallery-section,
  .about-section,
  .contact-section,
  .links-section,
  .project-header,
  .project-main-image,
  .project-full-description,
  .project-navigation {
    padding-left: 0;
  }

  .carousel-item img {
    height: 300px;
  }

  .project-content {
    padding-left: 0;
  }

  .about-content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .about-image-section {
    flex: 1;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .modal-content {
    max-width: 95%;
  }

  .modal-controls {
    bottom: -60px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .sidebar-wrapper {
    padding: 20px;
  }
}

/* Ensure carousel works */
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: block;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}
/* Publications Page Styles */
.publications-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding-left: 3rem;
}

.publication-item {
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.publication-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.publication-image:hover {
    transform: scale(1.02);
}

.publication-content {
    padding: 0 1rem;
}

.publication-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.publication-title:hover {
    color: #666;
}

.publication-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.read-more {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    color: #666;
}

/* Publication Detail Page Styles */
.publication-main-image {
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.publication-main-image img {
    width: 100%;
    height: auto;
    max-width: 800px;
}

.publication-header {
    padding-left: 3rem;
}

.publication-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.publication-title-bengali {
    font-size: 1.5rem;
    font-weight: normal;
    color: #666;
    margin-bottom: 1rem;
}

.publication-meta {
    padding-left: 3rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.publication-description,
.publication-description-bengali {
    padding-left: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.publication-description-bengali {
    font-family: 'Noto Sans Bengali', 'SolaimanLipi', 'Arial', sans-serif;
}

.publication-order {
    padding-left: 3rem;
}

.publication-navigation {
    padding-left: 3rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .publications-title,
    .publication-item,
    .publication-main-image,
    .publication-header,
    .publication-meta,
    .publication-description,
    .publication-description-bengali,
    .publication-order,
    .publication-navigation {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .publication-item {
        margin-bottom: 1.5rem;
    }

    .publication-item .row {
        flex-direction: column;
    }

    .publication-item .col-md-5 {
        margin-bottom: 1rem;
    }

    .publication-image {
        max-width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .publication-content {
        padding: 0;
    }

    .publication-title {
        font-size: 1.2rem;
    }

    .publication-title-bengali {
        font-size: 1.1rem;
    }

    .publication-meta {
        font-size: 0.85rem;
    }

    .publication-description,
    .publication-description-bengali {
        font-size: 1rem;
        line-height: 1.6;
    }

    .publication-navigation .row {
        flex-direction: column;
        gap: 1rem;
    }

    .publication-navigation .col-6 {
        width: 100%;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .publications-title,
    .publication-item,
    .publication-main-image,
    .publication-header,
    .publication-meta,
    .publication-description,
    .publication-description-bengali,
    .publication-order,
    .publication-navigation {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .publication-image {
        height: 250px;
    }

    .publication-title {
        font-size: 1.1rem;
    }

    .publication-title-bengali {
        font-size: 1rem;
    }
}

/* Hero Slider for Publications */
#publicationCarousel .carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Make publication items look like project items from index */
.publication-item {
    transition: all 0.3s ease;
}

.publication-item:hover {
    background-color: #f8f9fa;
}

.publication-item hr {
    margin: 2rem 0;
    border-top: 1px solid #dee2e6;
}

/* Button styles */
.btn-outline-dark {
    border: 1px solid #333;
    color: #333;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #333;
    color: #fff;
}

/* Ensure proper spacing */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}