:root {
    --primary-color: #494cfa;
    --secondary-color: #64748b;
    --light-bg: #f8fafc;
    --card-hover: #f1f5f9;
    --text-dark: #1e293b;
    --text-light: #64748b;
  }
  
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: url('../assets/images/bg.png');
    background-size: cover;
   min-height: 100vh;
   position: relative;
   width: 100%;
   overflow-x: hidden;
   background-attachment: fixed;
  }
  
  .header-section {
    padding: 0.7rem 0;
    padding-top: 0 !important;
    margin-bottom: 0;
    border-radius: 0 0 20px 20px;
    
  }
  
  .header-title {
    color: #0891b2;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .header-subtitle {
    color: #4f4f4f;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
  }
  
  .header-description.headline {
    color: #377f7e;
    font-size: 18px;
  }
  .header-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  /* Added split-screen layout styles */
  .editions-container {
    display: flex;
    gap: 2rem;
    min-height: 600px;
  }
  
  .cards-section {
    flex: 1;
    transition: all 0.3s ease;
  }
  
  .detail-section {
    flex: 1.4;
    /* position: sticky; */
    /* top: 2rem; */
    height: fit-content;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
  }
  
  .detail-section.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
  }
  
  .edition-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .edition-card:hover {

    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  }
  
  .edition-card:hover .card-title {
    color: white;
  }
  
  .edition-card:hover .card-subtitle {
    color: rgba(255, 255, 255, 0.8);
  }

  .edition-card:hover .card-arrow {
    color: white !important;
  }
  
  .edition-card.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  }
  
  .edition-card.active .card-title {
    color: white;
  }
  
  .edition-card.active .card-subtitle {
    color: rgba(255, 255, 255, 0.8);
  }

  
  .card-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0rem;
  }
  
  .card-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
  }
  
  .edition-card {
    width: 90% !important;
    transition: width 0.3s ease; /* Smooth animation */
  }
  
  .edition-card:hover {
    width: 100% !important;
  }

  
  .card-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
  }
  
  .edition-card:hover .card-arrow,
  .edition-card.active .card-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) translateX(5px);
  }
  
  .edition-card.active .card-arrow {
    color: white;
  }
  
  /* Modified detail panel styles for right-side display */
  .detail-panel {
    background: white;
    border: 0.5px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    display: none;
    top: 0;
    animation: slideIn 0.3s ease;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-right: 2rem;
  }
  

  .detail-title2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0 !important;
    padding-right: 2rem;
  }
  
  .detail-description {
    color: var(--text-light);
    line-height: 1.6;
    /* margin-bottom: 1.5rem; */
  }
  
  .contact-section {
    padding: 0;
    border-radius: 8px;
  }
  
  .contact-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
  }
  
  .contact-info {
    color: var(--text-light);
    font-size: 0.9rem;
  }
  
  .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .close-btn:hover {
    color: var(--text-dark);
    background-color: #f3f4f6;
  }
  
  .main-content {
    padding-bottom: 0 !important;
    max-height: auto !important;
    min-height: auto !important;
  }
  .sidebar {
    min-height: 100vh !important;
  }
  
  /* Enhanced mobile accordion behavior */
  .card-wrapper {
    margin-bottom: 1rem;
  }
  
  .mobile-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
  }
  
  .mobile-detail.show {
    max-height: 1730px;
    padding: 0;
  }
  
  .contact-section li strong{
    /* display: none ; */
    color: black !important;
  }
  .contact-section li {
    /* display: none !important; */
    font-weight: 400;
    color: #3f3f3f !important;
  }

  .mobile-detail-content {
    padding: 1.5rem;
  }
  
  @media (max-width: 991.98px) {
    .card-arrow {
      transition: transform 0.3s ease;
    }
  
    .mobile-detail {
      display: block;
    }
  
    .detail-section {
      display: none !important;
    }
  
    .card-wrapper:last-child {
      margin-bottom: 0;
    }
  
    .editions-container {
      flex-direction: column;
      gap: 0;
    }
  
    .cards-section {
      flex: none;
    }
  
    .header-title {
      font-size: 2rem;
    }
  
    .edition-card {
      padding: 10px !important;
      margin-bottom: 0;
      border-radius: 12px !important;
    }
  
    .edition-card.active {
      border-radius: 12px 12px 0 0;
    }
  
    .card-wrapper:not(:last-child) .edition-card:not(.active) {
      border-radius: 12px;
    }
  
    .footer {
      margin: 0 !important;
    }
    .like-btn .thumb-icon {
      margin-top: 7px !important;
      width: 27px !important;
      height: 27px !important;
    }
    .like-btn .thumb-icon img{
      display: none !important;
      width: 0px !important;
      height: 0px !important;
    }
    .detail-title {
      /* margin-top: 0.5rem; */
      margin-bottom: 0 !important;

    }
  }
  
  /* Enhanced desktop hover behavior */
  @media (min-width: 992px) {
      .edition-card {
          transition: all 0.2s ease;
        }
        
        .edition-card:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
        }
        
        .detail-section {
            transition: all 0.2s ease;
    }
    
    .mobile-detail {
      display: none;
    }
}

.footer {
    position: unset;
}

.profile-button {
    z-index: 10 !important;
}

.main-content {
    background: #ffffff28 !important;
}

.mobile-detail.show {
    background: #e7f1f6;
    border: none;
}
.mobile-detail-content {
    padding: 10px 8px !important;
}


.mobile-detail-content .contact-section {
    padding: 10px 8px !important;
    border-radius: 8px;
    border-left: none !important;
}

.contact-info a{
  color: #4f4f4f;
  text-decoration: none;
}

@media (max-width: 991px) {
  .edition-card {
    width: 85% !important;
  }
  .edition-card:hover{
    width: 85% !important;
  }
  .mobile-detail-content {
    padding: 0;
  }
  .detail-description {
    color: black;
    line-height: 1.4;
    font-size: 14px;
  }
  .main-content .main-content {
    padding: 20px 15px;
  }

  .mobile-detail-content  ul li{
        margin-top: 10px;
        font-size: 14px;
    }
    .mobile-detail-content  ul {
        padding-left: 18px !important;
    }

    .contact-title{
      font-size: 14px !important;
    }

  .mobile-detail .mobile-detail-content .detail-title.mt-2.fw-bold{
    /* display: none; */
    font-size: 16px !important;
    margin-bottom: 0 !important;
  }
    /* Added split-screen layout styles */
    .editions-container {
      display: flex;
      gap: 2rem;
      min-height: auto;
    }
}
@media (max-width: 600px) {
    .card-title{
        font-size: 1.2rem !important;
        width: 90%;
    }
    
    .detail-title {
        padding-right: 0rem;
        font-size: 15px !important;
    }

    .detail-description{
      margin-bottom: 0.5rem;
    }

    .mobile-detail-content .contact-section {
      background: white;
    }
      
  .card-subtitle {
    font-size: 15px;
  }
  .card-title {
    font-size: 16px !important;
  }
  .card-arrow {
    transform: translateY(-50%);
    font-size: 1.1rem;
}
.edition-card:hover .card-arrow, .edition-card.active .card-arrow {
  /* color: var(--primary-color); */
  transform: translateY(-75%) translateX(0px) !important;
}
}

@media (max-width: 992px) {
    .footer {
        bottom: -150px !important;
        left: 0 !important;
    }
}


.mobile-detail.show .contact-section{
  padding: 0 !important;
}
.mobile-detail.show {
  background: white;
  border: 0.5px solid var(--primary-color);
  border-radius: 12px;
  padding: 0.5rem !important;
  /* height: 100%; */
  margin-top: 10px;
  /* display: none; */
  top: 0;
}

.like-section {
  margin-top: 0px !important;
}

.like-btn {
  border: none;
  color:  #4F4F4F;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.like-btn .thumb-icon {
  background: #36818633;
  /* padding: 5px ; */
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-content: center;
  border-radius: 50%;
}
.like-btn .thumb-icon i{
  width: 18px;
  height: 35px;
  margin-top: 8px;
}
.like-btn .thumb-icon img{
  display: none !important;
  width: 18px;
  height: 35px;
}

.likeCount {
  color: #4F4F4F !important;
}