/* card css */ 

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

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
}

.main {
    width: 100%;
  
}

.inside {
    background-color: #D0BF89;
    height: 200px;
    
}

.box {
    width: 80%;
    /* height: 100vh; */
    display: flex;
    margin: -180px auto 0 auto;
    gap: 20px;
}

.sidebar {
    width: 35%;
    border-radius: 8px;
    padding: 20px;
    color: black;
    height: fit-content;
}

.sidebar-title {
    font-size: 3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar ul li {
    padding: 12px 15px;
    font-size: large;
    font-weight: bold;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 4, 4, 0.15);
    border-radius: 6px;
    color: #2c3e50;
}

.sidebar ul li:hover {
    background-color: #986424;
    color: white;
    padding-left: 20px;
}

.sidebar ul li a:hover {
  background-color: #986424;
  color: white;
  
}

.sidebar ul li.active {
    background-color: #986424;
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.mainbar {
    width: 70%;
    margin-top: 10px;
    padding: 10px;
}

.mainbar h2 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 40px;;
   
}
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: -40px;
}

.card {
    width: calc(33.333% - 13.33px); /* 3 cards per row with 20px gap */
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}
.card-img{
    overflow: hidden;
}
.card-img img {
    transition: all 0.3s cubic-bezier(0.9, 0.9, 0.9, 1.2);
    transform-origin: center center;
}
.card:hover .card-img img {
    transform: scale(1.15);
    filter: brightness(1.03);
}

.card h3 {
    padding: 15px 15px 5px;
    color: #986424;
    text-decoration: underline;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card p {
    padding: 0 15px 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}
/* Responsive additions without changing existing CSS */
@media (max-width: 1024px) {
    .box {
        width: 90%;
    }
    
    .card {
        width: calc(50% - 10px); /* 2 cards per row on tablets */
    }
}

@media (max-width: 768px) {
    .box {
        flex-direction: column;
        margin-top: -160px;
    }
    
    .sidebar, .mainbar {
        width: 100%;
    }
    
    .sidebar {
        margin-bottom: 20px;
    }
    
    .sidebar-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .card {
        width: 100%; /* 1 card per row on mobile */
    }
    
    .sidebar-title {
        font-size: 2rem;
    }
    
    .sidebar ul li {
        padding: 10px 12px;
        font-size: medium;
    }
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}


/* detailed page  css */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body,
  html {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
  }
  .main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 0 0 0;
  }
  .hero-image-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    max-height: 800px; /* Optional: limits height on large screens */
    overflow: hidden;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Bottom bar */
.bottom-bar {
    /* border: 2px solid red; */
    width: 100%;
    background-color: #ddd;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    /* height: 70px; */
    /* margin-bottom: 10px; */
  }
  
  /* Button wrapper */
  .button-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 10px;
    /* border: 2px solid red; */
  
  }

  /* Icon button styles */
.icon-button {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
    /* margin-bottom: 10px; */
  }
  .icon-button1 {
    background: none;
    border: none;
    font-size: 2mainbar8px;
    color: #986424;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .icon-button:hover {
    color: #555;
  }

  /* Section container */
.content-section {
    /* border: 2px solid red; */
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -150px;
    margin-bottom: 60px;
  }
  .section {
    /* border: 2px solid red; */
    padding: 60px 40px;
    background-color: #f9f9f9;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    text-align: center;
   
  }
  .arc {
    width: 100%;
    color: #986424;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
  }
  .main-title {
    margin-top: 40px;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
  }
  
  .overlap-box {
    background-color: #986424;
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding: 10px 20px;
    width: 100%;
    margin-top: 10px;
  
    text-align: start;

  }
  
  .details {
    margin-top: 10px;
    font-size: 16px;
    text-align: left;
    line-height: 1.6;
    color: #444;
  }
  
  .details p {
    margin-bottom: 8px;
  }
  
  .para {
    margin-top: 20px;
    font-size: large;
    text-align: left;
    line-height: 40px;
    color: #333;
  }
  
  .para .p {
    margin-top: 15px;
  }
  .button {
    display: block;
    margin: 20px auto 0;
    border-radius: 2px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
  }
/* galllery section */

  
  .gallery-section {
    padding-top: 20px;
    padding-bottom: 80px;
    text-align: center;
    width: 65%;
    /* max-width: 900px; */
    margin: 0 auto;
  }
  
  .gallery-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px;
    justify-content: center;
  }
  
  .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .image-container:hover img {
    transform: scale(1.05);
  }
  
  .caption {
    position: absolute;
    bottom: 0;
    background: #D0BF89; /* semi-transparent background */
    color: black;
    width: 100%;

    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .image-container:hover .caption {
    opacity: 1;
  }
  .button-wrapper {
    text-align: center;
    margin-top: 30px;
  }
  
  .button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .button:hover {
    background-color: #555;
  }

  .nav-buttons {

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Full width */
    padding: 0 40px; /* Add side padding for spacing */
    margin: 40px 0 60px;
  }
  
  .nav-buttons button {
  padding: 12px 24px;
  font-size: 16px;
  background-color:white ;
  color: #333;
  
  cursor: pointer;
  transition: background-color 0.3s;
  border: 0.5px sold #333;
  border-radius: 4px;
  
  }
  
  .nav-buttons button:hover {
  background-color: #555;
  }
  .gallery-heading {
    text-align: center;
    font-size: 36px;
    margin: 0 auto 20px;
    display: block;
    padding-bottom: 5px;
  }
  
    .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    }
    .hidden-images {
      display: none;
      margin-top: 40px; /* or whatever spacing you want */
  }
  
    
    .gallery-item {
    text-align: left;
    }
    
    .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    }
    
    .project-title {
    color: #986424;
   /* text-decoration: underline #986424; */
    font-family: DM Sans;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    }
    
    .project-subtitle {
      color: #000;
      font-family: DM Sans;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 60px;
    }

    /* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
  }
  
  .modal-caption {
    margin: 15px auto;
    text-align: center;
    color: #f1f1f1;
    font-size: 18px;
  }
  
  .close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .nav-btn {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
  }
  
  .left-btn {
    left: 20px;
  }
  
  .right-btn {
    right: 20px;
  }
  
  /* Responsive additions without changing existing CSS */
@media (max-width: 1200px) {
  .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
  }
  
  .section {
      padding: 50px 30px;
  }
  
  .main-title {
      font-size: 42px;
  }
  
  .overlap-box {
      font-size: 28px;
  }
}

@media (max-width: 992px) {
  .hero-image-container {
      height: 80vh;
  }
  
  .content-section {
      margin-top: -120px;
  }
  
  .gallery-section {
      width: 80%;
  }
  
  .nav-buttons {
      padding: 0 30px;
  }
  
  .nav-buttons button {
      padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .hero-image-container {
      height: 70vh;
      max-height: 600px;
  }
  
  .content-section {
      margin-top: -100px;
      margin-bottom: 40px;
  }
  
  .section {
      width: 95%;
      padding: 40px 25px;
  }
  
  .main-title {
      font-size: 36px;
      margin-top: 30px;
  }
  
  .overlap-box {
      font-size: 24px;
  }
  
  .gallery-section {
      width: 90%;
  }
  
  .gallery-heading {
      font-size: 32px;
  }
  
  .gallery-grid {
      grid-template-columns: 1fr;
  }
  
  .nav-buttons {
      flex-direction: column;
      gap: 15px;
      margin: 30px 0 40px;
  }
  
  .button-wrapper {
      gap: 25px;
  }
  
  .icon-button {
      font-size: 24px;
  }
  
  .icon-button1 {
      font-size: 40px;
  }
}

@media (max-width: 576px) {
  .hero-image-container {
      height: 60vh;
  }
  
  .content-section {
      margin-top: -80px;
  }
  
  .section {
      padding: 30px 20px;
  }
  
  .main-title {
      font-size: 30px;
      margin-top: 20px;
  }
  
  .overlap-box {
      font-size: 20px;
      padding: 8px 15px;
  }
  
  .para {
      font-size: medium;
      line-height: 32px;
  }
  
  .gallery-heading {
      font-size: 28px;
  }
  
  .button-wrapper {
      gap: 20px;
  }
  
  .icon-button {
      font-size: 20px;
  }
  
  .icon-button1 {
      font-size: 28px;
  }
  
  .bottom-bar {
      padding: 10px 15px;
  }
  
  .nav-buttons button {
      padding: 8px 16px;
      font-size: 14px;
  }
  
  /* Modal adjustments for mobile */
  .modal-content {
      max-width: 95%;
      max-height: 70%;
  }
  
  .close-btn {
      top: 15px;
      right: 25px;
      font-size: 30px;
  }
  
  .nav-btn {
      font-size: 30px;
  }
}

/* Prevent horizontal scrolling and maintain layout */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure images don't overflow containers */
img {
  max-width: 100%;
  height: auto;
}


/* share button */


.share-dropdown a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}
.share-dropdown a:hover {
  background-color: #f0f0f0;
}






.image-container a {
  display: block;            /* ensures full coverage */
  text-decoration: none;     /* removes any underline */
  border: none;
  margin: 0;
  padding: 0;
  line-height: 0;            /* prevents extra space from inline elements */
}











/* gallery slide */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 80%;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.nav-btn.prev { left: 30px; }
.nav-btn.next { right: 30px; }




/* toggle */
.category-toggle {
  display: none;
  background: #333;
  color: #fff;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  text-align: left;
}

.category-menu {
  display: block;
}

@media screen and (max-width: 768px) {
  .category-toggle {
      display: block;
	  padding:15px 15px; 
	  outline: 2px solid #fff;
  }
.category-toggle:focus {
    background-color: #AA5500;  /* Change to your desired background color */
    color: #fff;             /* Optional: change text color */
    outline: 2px solid #fff; /* Optional: custom focus outline */
}
  .category-menu {
      display: none;
  }

  .category-menu.open {
      display: block;
      margin-top: 10px;
  }

  .sidebar ul {
      padding: 0;
  }

  .sidebar ul li {
      list-style: none;
      padding: 10px;
      background:#F0F0F1;
      border-bottom: 1px solid #ddd;
  }
}



/* category title show only desktop */

.desktop-only {
    display: block;
}

@media screen and (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}


