    /* index-styles.css */

.home3 .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.home3 .view-all-btn {
    border: 3px solid var(--highlight);
    color: var(--black);
    padding: 0.5rem 1rem;
    background: var(--offWhite);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.home3 .view-all-btn:hover {
    background: var(--highlight);
}

/* Card common styles */
.home3 .timeline-card {
    border: none;
    filter: unset;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.home3 .timeline-card .text-overlay ul {
    padding-left: 1rem;
}

.home3 .timeline-card .text-overlay a {
    color: white;
    text-decoration: underline;
    font-style: italic;
}

/* Flag icon */
.home3 .flag-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home3 .flag-icon {
    width: 33px;
    height: 22px;
    object-fit: cover;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    vertical-align: middle;
}

/* Timeline context text */
.home3 .timeline-context {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Mobile toggle indicators */
.home3 .mobile-toggle-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

.home3 .mobile-toggle-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 0rem;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ---------- HERO SECTION ---------- */
.home3 .hero-viewport {
    min-height: 100vh;
    position: relative;
}

.home3 .hero-image-area {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width:768px) {
    .home3 .hero-image-area {
        height: 90vh;
    }
}

.home3 .hero-image-area .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .6s ease;
}

.home3 .hero-content-box {
    height: 25vh;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 4rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 1.5rem 2rem;
}

.home3 .hero-content-box .content-inner {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    filter: drop-shadow(0px 5px 10px #FFE793);
}

@media (max-width: 768px) {
   .home3 .hero-content-box .content-inner::before {
        content: "";
        position: absolute;
        top: 0;
        right: -10;
        width: 100%;
        height: 100%;
        background-image: url(../img/logo_star.png);
        background-size: contain;
        object-position: center;
        background-repeat: no-repeat;
        opacity: 0.15;
        z-index: -1;
    }
}
.home3 .home-text {
    margin-top: .5rem;
    color: #222;
    font-size: 1rem;
    line-height: 1.5rem;
}

.home3 .logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.home3 .logo-animated {
    max-width: 300px;
    width: 100%;
    transform: translateY(-1rem);
    position: absolute;
}

/* Carousel styling */
.home3 #heroCarousel {
    height: 100%;
}

.home3 #heroCarousel .carousel-inner {
    height: 100%;
}

.home3 #heroCarousel .carousel-item {
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.home3 #heroCarousel .carousel-control-prev,
.home3 #heroCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    height: 75%;
}

.home3 #heroCarousel .carousel-control-prev:hover,
.home3 #heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

.home3 .carousel-control-prev-icon,
.home3 .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100%;
}

.home3 .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11 1 L3 8 L11 15' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.home3 .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 1 L13 8 L5 15' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.home3 #heroCarousel .carousel-indicators {
    bottom: 20px;
}

.home3 #heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.home3 #heroCarousel .carousel-indicators button.active {
    background-color: white;
}

/* ---------- EVENTS SECTION ---------- */

@media (min-width:761px) {
    .home3 .h-350-md {
           height: 380px;
           min-height: 350px;
       }
}


.home3 .timeline-main-img {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.home3 .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home3 .timeline-main-img:hover .bg-img {
    transform: scale(1.05);
}

.home3 .bg-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Event metadata - black by default */
.home3 .event-meta {
    position: absolute;
    top: 1rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.home3 .event-date {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #000;
    text-shadow: none;
    transition: all 0.3s ease;
}

.home3 .event-loc {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
    color: #000;
    text-shadow: none;
    transition: all 0.3s ease;
}

/* Hover overlay */
.home3 .event-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0); */
    z-index: 2;
    transition: background 0.3s ease;
    pointer-events: none;
}
@media (max-width:768px) {
    .home3 .event-hover-overlay {
    background: rgba(0, 0, 0, 0.502);

    }
}

.home3 .timeline-main-img:hover .event-hover-overlay {
    background: rgba(0, 0, 0, 0.502);
}

/* On hover, make text white */
.home3 .timeline-main-img:hover .event-date,
.home3 .timeline-main-img:hover .event-loc {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Text overlay - Hidden on md+ by default, shows on hover */
.home3 .text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 3rem 1rem 1rem;
    z-index: 2;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.7s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
}

.home3 .timeline-main-img:hover .text-overlay {
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.1) 60%, transparent);
}

/* On mobile, always show text overlay */
@media (max-width: 767.98px) {
    .home3 .mobile-text-overlay {
        transform: translateY(0) !important;
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.2) 60%, transparent) !important;
    }
    
    .home3 .event-date,
    .home3 .event-loc {
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    }
    
    /* Ensure both containers take full height on mobile */
    .home3 .mobile-context-container,
    .home3 .mobile-image-container {
        height: 450px;
        min-height: 450px;
    }
    
    .home3 .mobile-context-container {
        position: relative;
    }
    
    .home3 .mobile-image-container {
        position: relative;
    }
}


.home3 .upcoming-context {
    font-size: 1rem;
    max-height: 0;
    overflow: auto;
    transition: max-height 0.5s ease;
    margin-bottom: 0;

    padding-right: 12px; /* pushes scrollbar to the right */
}


/* ===== Chrome, Edge, Safari ===== */
.home3 .upcoming-context::-webkit-scrollbar {
    width: 4px; /* thin scrollbar */
}

.home3 .upcoming-context::-webkit-scrollbar-track {
    background: transparent; /* transparent background */
}

.home3 .upcoming-context::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5); /* visible scroll thumb */
    border-radius: 10px;
}

/* ===== Firefox ===== */
.home3 .upcoming-context {
    scrollbar-width: thin; /* thin scrollbar */
    scrollbar-color: rgba(255,255,255,0.5) transparent;
}


.home3 .timeline-main-img:hover .upcoming-context {
    max-height: 260px;
    /* margin-bottom: 1rem; */
}


.home3 .upcoming-btn {
    width: auto;
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    border: 1px solid white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.home3 .timeline-main-img:hover .upcoming-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Upcoming events specific */
.home3 .upcoming-event .event-meta {
    right: 1rem;
    align-items: end;
}

/* Past events specific */
.home3 .timeline-card:nth-child(odd) .event-meta {
    right: 1.5rem;
    align-items: end;
    text-align: right;
}

.home3 .timeline-card:nth-child(even) .event-meta {
    left: 1.5rem;
    align-items: start;
    text-align: left;
}

.home3 .timeline-content-box {
    height: 100%;
    position: relative;
    background: color-mix(in srgb, var(--timeline-color) 10%, white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home3 .timeline-card:nth-child(odd) .timeline-content-box {
    border-left: 5px solid var(--timeline-color);
}

.home3 .timeline-card:nth-child(even) .timeline-content-box {
    border-right: 5px solid var(--timeline-color);
    border-left: none;
}

.home3 .timeline-content-box::after {
    position: absolute;
    content: '';
    width: 35px;
    height: 35px;
    background: var(--timeline-color);
    top: 0;
    left: -21px;
    border-radius: 50%;
    z-index: 100;
}

.home3 .timeline-card:nth-child(even) .timeline-content-box::after {
    right: -21px;
    left: auto;
}

.home3 .content-image-container {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.home3 .content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content slider */
.home3 .content-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.home3 .slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.home3 .slider-img.active {
    opacity: 1;
    position: relative;
}

.home3 .no-images {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Color variables for timeline items */
.home3 .timeline-card:nth-child(3n+1) {
    --timeline-color: var(--green); 
}

.home3 .timeline-card:nth-child(3n+2) {
    --timeline-color: var(--yellow);
}

.home3 .timeline-card:nth-child(3n+3) {
    --timeline-color: var(--red);
}

/* ---------- ARTICLES SECTION ---------- */
.home3 .article-card {
    border-top: 7px solid var(--highlight);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border: none;
}

.home3 .article-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home3 .article-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--red);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.6rem;
}

.home3 .meta {
    font-size: 1rem;
    color: #666;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.home3 .article-card .author {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
    line-height: 1.2;
    color: var(--olive);
    font-weight: bold;
    font-size: 1rem;
}

.home3 .dashed-sep {
    border: none;
    background: transparent;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.71);
    margin: 0.75rem 0;
}

.home3 .article-excerpt {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    font-style: italic;
    flex: 1;
}

.home3 .article-card .btn {
    font-size: 1rem;
    padding: 0.5rem 0rem;
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 1199.98px) {
    .home3 .hero-content-box .content-inner {
        padding: 1.5rem 2rem;
    }
    
    .home3 .home-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 991.98px) {
    .home3 .hero-content-box {
        bottom: 2rem;
        padding: 1rem;
    }
    
    .home3 .home-text {
        font-size: 1rem;
    }
    
    .home3 .logo-animated {
        max-width: 200px;
    }
}

@media (max-width: 767.98px) {
    .home3 .hero-viewport {
        min-height: auto;
    }

    .home3 .hero-image-area {
        height: 50vh;
    }

    .home3 .hero-content-box {
        position: relative;
        bottom: 0;
        height: auto;
        padding: 1.5rem 0;
        margin-top: -2rem;
    }

    .home3 .hero-content-box .content-inner {
        padding: 1.5rem;
    }

    .home3 .home-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Hide carousel controls on mobile */
    .home3 #heroCarousel .carousel-control-prev,
    .home3 #heroCarousel .carousel-control-next {
        display: none;
    }

    /* Events mobile adjustments */
    .home3 .timeline-main-img {
        min-height: 450px;
    }
    
    .home3 .timeline-content-box {
        min-height: 350px;
    }
    
    .home3 .timeline-content-box::after {
        display: none;
    }
    
    .home3 .event-loc {
        font-size: 1.25rem;
    }
    
    .home3 .upcoming-context {
        font-size: 0.95rem;
    }
    
    .home3 .upcoming-btn {
        font-size: 0.9rem;
        padding: 0.35rem 0.8rem;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* On mobile, hide hover effects */
    .home3 .text-overlay {
        transform: translateY(0) !important;
        opacity: 1 !important;
        padding: 5rem 1rem 1rem;
    }
    
    .home3 .upcoming-context {
        max-height: none !important;
        margin-bottom: 1rem !important;
    }
    
    /* Mobile toggle specific styles */
    .home3 .mobile-context-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 525px;
    }
 
    .home3 .mobile-image-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 400px;
    }
    
    .home3 .timeline-card {
        position: relative;
        height: 450px;
    }
    
    .home3 .timeline-card > .row {
        position: relative;
        height: 100%;
    }
}

@media (max-width: 575.98px) {
    .home3 .hero-image-area {
        height: 40vh;
    }

    .home3 .hero-content-box {
        padding: 1rem 0;
        margin-top: -1.5rem;
    }

    .home3 .hero-content-box .content-inner {
        padding: 1rem;
    }

    .home3 .home-text {
        font-size: 1rem;
        line-height: 1.35;
    }
    
    .home3 .section-title {
        font-size: 1.4rem;
    }
    
    .home3 .event-loc {
        font-size: 1.1rem;
    }
    
    .home3 .article-title {
        font-size: 1.1rem;
    }
    
    .home3 .content-image-container {
        height: auto;
    }
}

@media (min-width: 768px) {
    .home3 .timeline-card:nth-child(odd) .row {
        flex-direction: row;
    }

    .home3 .timeline-card:nth-child(even) .row {
        flex-direction: row-reverse;
    }
    
    /* On desktop, text overlay starts hidden */
    .home3 .text-overlay {
        transform: translateY(100%);
        opacity: 0;
    }
    
    /* Hide mobile toggle indicators on desktop */
    .home3 .mobile-toggle-indicator,
    .home3 .mobile-toggle-back {
        display: none !important;
    }
}
@media (min-width: 768px) {
    .home3 .container{
        max-width: 910px;
    }}
    
    @media (min-width: 1200px) {
    .home3 .container{
        max-width: 1140px;
    }
}

/* overview */
/* overview-styles.css */
#overview {
    background: white;
}

#overview .section-banner {
    padding: 2rem 1rem;
    background-image: url(https://images.unsplash.com/photo-1752052081785-d2635a8e30b5?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjR8fGJvb2tzbGVmfGVufDB8fDB8fHww);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #00000092;
    background-blend-mode: multiply;
}

#overview .page-heading {
    font-family: "lato", sans-serif;
    color: white;
}

#overview .label-section {
    border-bottom: 2px dotted #0000004c;
}

#overview .section-label {
    padding-left: 0.5rem;
    margin-right: 1.5rem;
    font-weight: bold;
    font-size: 1.45rem;
    position: relative;
    bottom: -0.5rem;
}

#overview .section-label::before {
    content: '';
    position: absolute;
    height: 1rem;
    width: .5rem;
    background: var(--highlight);
    bottom: .6rem;
    left: -.6rem;
}

#overview .lable-group {
    background: white;
    display: flex;
    position: relative;
    top: .7rem;
    width: fit-content;
}

#overview .secondary-label {
    color: red;
    font-weight: bold;
}

/* Team */
/* team-styles.css */
#team {
    background: white;
}

#team .section-banner {
    padding: 2rem 1rem;
    background-image: url(https://images.unsplash.com/photo-1752052081785-d2635a8e30b5?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjR8fGJvb2tzbGVmfGVufDB8fDB8fHww);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #00000092;
    background-blend-mode: multiply;
}

#team .page-heading {
    font-family: "lato", sans-serif;
    color: white;
}

#team .label-section {
    border-bottom: 2px dotted #0000004c;
}

#team .section-label {
    padding-left: 0.5rem;
    margin-right: 1.5rem;
    font-weight: bold;
    font-size: 1.27rem; /* CHANGED: from 1.25rem to 1.45rem */
    position: relative;
    bottom: -0.2rem;
}
@media (min-width:1200px) {
    #team .section-label {
        font-size: 1.45rem;
    }
}
#team .section-label::before {
    content: '';
    position: absolute;
    height: 1rem;
    width: .5rem;
    background: var(--highlight);
    bottom: .6rem;
    left: -.6rem;
}

#team .lable-group {
    background: white;
    display: flex;
    position: relative;
    top: .9rem;
    width: fit-content;
}

#team .secondary-label {
    color: red;
    font-weight: bold;
    font-size: 1.45rem; /* CHANGED: from 1.1rem to 1.45rem */
}

/* Profile Cards */
#team .profile-lg-card {
    background: white;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#team .profile-lg-card .profile-img img {
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
    display: block;
    border-bottom: 7px solid var(--highlight);
}

#team .profile-lg-card .profile-details {
    text-align: center;
    background: var(--bgDefault);
    padding: 0.5rem 1rem;
    width: 100%;
    flex-grow: 1;
    height: 140px;
}

#team .profile-lg-card .profile-name {
    color: var(--red);
    margin-bottom: 0;
    font-weight: bold;
}

#team .profile-lg-card .profile-affiliation {
    font-size: 1rem; /* CHANGED: from 0.9rem to 1rem */
    font-weight: bold;
}

#team .profile-md-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

#team .profile-md-img {
    border-radius: 2.5rem;
    height: 295px;
    width: 250px;
    border-bottom: 6px solid var(--highlight);
    object-fit: cover;
    object-position: center;
    overflow: hidden;
}

#team .profile-md-card .profile-md-details {
    text-align: center;
    padding: 0.5rem 0;
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 250px;
}

#team .profile-md-card .profile-md-name {
    color: var(--red);
    font-size: 1rem; /* CHANGED: from 0.7rem to 1rem */
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: bold;
}

#team .profile-md-card .profile-md-affiliation {
    font-size: 1rem; /* CHANGED: from 0.7rem to 1rem */
    line-height: 1.2;
    margin-bottom: 0;
    font-weight: bold;
}

#team .profile-sm-card {
    display: flex;
    gap: .9rem;
    margin-bottom: 1rem;
    align-items: center;
}

#team .profile-sm-img {
    border-radius: 2rem;
    height: 145px !important;
    width: 125px !important;
    object-fit: cover;
    object-position: center;
    border-bottom: 5px solid var(--highlight);
    overflow: hidden;
    flex-shrink: 0;
}

#team .profile-sm-details {
    flex: 1;
    min-width: 0;
}

#team .profile-sm-name {
    color: var(--red);
    font-size: 1rem; /* CHANGED: from 0.8rem to 1rem */
    margin-bottom: 0;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#team .profile-sm-affiliation {
    font-size: 1rem; /* CHANGED: from 0.8rem to 1rem */
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Partners Section */
#team .strip {
    margin-top: 6rem;
    height: auto;
    background: var(--bgDefault);
    padding-bottom: 2rem;
}

#team .strip img {
    width: 100px;
    height: 100px;
}

#team .card-strip {
    position: relative;
    margin-bottom: 1rem;
    padding: 1.75rem 1.5rem;
}

#team .card-strip img {
    height: 100px;
    width: 100px;
}

#team .strip-group {
    position: relative;
    top: -4rem;
}

#team .img-shadow {
    filter: drop-shadow(0px 0px 15px #ffd84d86);
}

/* Collaborators Carousel */
#team .collaborators-container {
    position: relative;
    margin-top: 2rem;
}

#team .collaborators-scroller {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    gap: 20px;
}

#team .collaborator-item {
    flex: 0 0 calc(25% - 17px);
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#team .collaborators-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s, background-color 0.3s;
}

#team .collaborators-nav.prev {
    left: -20px;
}

#team .collaborators-nav.next {
    right: -20px;
}

#team .collaborators-nav-icon {
    filter: invert(54%) sepia(89%) saturate(742%) hue-rotate(360deg) brightness(102%) contrast(102%);
    width: 3rem;
    height: 3rem;
    position: relative;
    top: -2.5rem;
}

#team .partners-label {
    font-weight: bold;
    margin-bottom: 0;
}

#team .Skill-Partner-container {
    padding: 1rem 1.5rem;
}

#team .partner-img {
    filter: drop-shadow(0 0 15px #ffd84d86);
}

/* Partners Layout */
#team .institutional-partners-container,
#team .skill-partners-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

#team .institutional-partner-item,
#team .skill-partner-item {
    flex: 0 0 33.333%;
    padding: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    border-left: 2px dotted #00000072 !important;
    margin-bottom: 20px;
}
@media (min-width:1200px) {
  #team .institutional-partner-item,
#team .skill-partner-item {

    justify-content: center;
   
}  
}

#team .institutional-partner-item:nth-child(3n+1),
#team .skill-partner-item:nth-child(3n+1) {
    border-left: none !important;
}

#team .institutional-partner-item-inner,
#team .skill-partner-item-inner {
    max-width: 278px;
    overflow: hidden;
}

/* Hover Effects */
#team .profile-img,
#team .profile-md-img,
#team .profile-sm-img,
#team .partner-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#team .profile-img img,
#team .profile-md-img img,
#team .profile-sm-img img,
#team .partner-item img {
    transition: all 0.3s ease;
}

#team .profile-img:hover img,
#team .profile-md-img:hover img,
#team .profile-sm-img:hover img,
#team .partner-item:hover img {
    filter: grayscale(100%) brightness(70%);
    transform: scale(1.03);
}

/* Modal Styles */
#team .team-modal .modal-lg {
    max-width: 900px !important;
}

#team .team-modal .modal-header {
    background: var(--bgDefault);
    border-bottom: 5px solid var(--highlight);
    position: relative;
    padding: 1rem 2rem;
}

#team .team-modal .modal-title {
    color: var(--red);
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

#team .team-modal .modal-sub {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#team .team-modal .modal-btn {
    background: var(--highlight);
    padding: 0.5rem 1.25rem;
    color: var(--black);
    display: flex;
    width: fit-content;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#team .team-modal .btn-close-custom {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #202020ff;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

#team .team-modal .btn-close-custom::before {
    content: "✕";
    font-family: inherit;
    font-weight: bold;
}

#team .team-modal .modal-body {
    padding: 1rem 2rem;
}

#team .team-modal .modal-body img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
}

#team .team-modal .modal-footer {
    display: none;
}

/* External Links */
#team .external-link-item {
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

#team .external-link-item:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Text Cards */
#team .text-card {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 5px solid var(--highlight);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 150px;
}

#team .text-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

#team .text-card-details {
    flex: 1;
    min-width: 0;
}

#team .text-card-name {
    color: var(--red);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#team .text-card-affiliation {
    font-size: 1rem; /* CHANGED: from 0.9rem to 1rem */
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    #team .collaborator-item {
        flex: 0 0 calc(33.333% - 14px);
    }

    #team .institutional-partner-item,
    #team .skill-partner-item {
        flex: 0 0 50%;
    }

    #team .institutional-partner-item:nth-child(2n+1),
    #team .skill-partner-item:nth-child(2n+1) {
        border-left: none !important;
    }

    #team .institutional-partner-item:nth-child(2n),
    #team .skill-partner-item:nth-child(2n) {
        border-left: 2px dotted #00000072 !important;
    }
}

@media (max-width: 992px) {
    #team .profile-lg-card .profile-details {
        height: 120px;
    }

    #team .strip {
        margin-top: 5rem;
        height: auto;
    }

    #team .strip-group {
        top: -3rem;
    }

    #team .collaborator-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    #team .collaborator-item {
        flex: 0 0 100%;
    }

    #team .collaborators-nav.prev {
        left: -10px;
    }

    #team .collaborators-nav.next {
        right: -10px;
    }

    #team .institutional-partner-item,
    #team .skill-partner-item {
        flex: 0 0 100%;
        border-left: none !important;
        border-bottom: 2px dotted #00000072 !important;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #team .institutional-partner-item:nth-child(2n),
    #team .skill-partner-item:nth-child(2n) {
        border-left: none !important;
    }

    #team .institutional-partner-item:last-child,
    #team .skill-partner-item:last-child {
        border-bottom: 0 !important;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #team .lable-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    #team .section-label {
        margin-right: 0;
        bottom: 0;
    }

    #team .card-strip .d-flex {
        justify-content: center !important;
        text-align: center;
        margin-bottom: 1rem;
    }

    #team .text-card {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
    }

 
}

@media (max-width: 576px) {
    #team .profile-md-img {
        height: 268px;
        width: 225px;
    }

    #team .profile-sm-img {
        height: 110px;
        width: 110px;
        margin: 0 auto;
    }

    #team .section-banner {
        padding: 1.5rem 1rem;
    }

   

    #team .profile-lg-card .profile-details {
        height: auto;
        min-height: 100px;
    }

   
}

@media (max-width: 480px) {
    #team .collaborator-item {
        flex: 0 0 100%;
    }
}

/* Article */
/* articles-styles.css */
#Articles {
    background: white;
}

#Articles .section-banner {
    padding: 2rem 1rem;
    background-image: url(https://images.unsplash.com/photo-1752052081785-d2635a8e30b5?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjR8fGJvb2tzbGVmfGVufDB8fDB8fHww);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #00000092;
    background-blend-mode: multiply;
}

#Articles .page-heading {
    font-family: "lato", sans-serif;
    color: white;
}

#Articles .label-section {
    border-bottom: 2px dotted #0000004c;
}

#Articles .section-label {
    padding-left: 0.5rem;
    margin-right: 1.5rem;
    font-weight: bold;
    font-size: 1.45rem;
    position: relative;
    bottom: -0.5rem;
}

#Articles .section-label::before {
    content: '';
    position: absolute;
    height: 1rem;
    width: .5rem;
    background: var(--highlight);
    bottom: .6rem;
    left: -.6rem;
}

#Articles .lable-group {
    background: white;
    display: flex;
    position: relative;
    top: .7rem;
    width: fit-content;
}

#Articles .secondary-label {
    color: red;
    font-weight: bold;
}

/* Search Bar Styles */
#Articles .search-container {
    margin: 2rem 0;
}

#Articles .search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

#Articles .search-input:focus {
    border-color: var(--highlight);
}

#Articles .no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Blog page specific styles */
#Articles #blogs h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
}

/* Article card styling - matching the homepage */
#Articles .article-card {
    border-top: 7px solid var(--highlight);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#Articles .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* heading clamp to 2 lines */
#Articles .article-title {
    font-size: 1.25rem;  
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--red);
    /* clamp 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5rem;
    max-height: 3rem;
}

/* meta row */
#Articles .meta {
    font-size: 1rem;
    color: #666;
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .25rem;
}

#Articles .article-card .author {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.2em;
    color: var(--olive);
    font-weight: bold;
}

#Articles .dashed-sep {
    border: none;
    background: transparent;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.71);
    margin: .6rem 0;
}

/* excerpt clamp to 4 lines */
#Articles .article-excerpt {
    font-size: 1rem; /* CHANGED: from .95rem to 1rem */
    color: #333;
    line-height: 1.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .75rem;
    font-style: italic;
}

/* Pagination styling */
#Articles .pagination .page-link {
    /* color: var(--white); */
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

#Articles .pagination .page-item.active .page-link {
    background-color: var(--navy);
    border-color: var(--navy);
}

#Articles .pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #Articles #blogs h1 {
        font-size: 1.5rem;
    }
    
    #Articles .article-card {
        min-height: 200px;
    }
    
   
    #Articles .article-excerpt {
        font-size: 1rem; /* CHANGED: from 0.9rem to 1rem */
        line-height: 1.3rem;
    }
}
/* Article Detalis */
/* article-details-styles.css */
#Article-Details {
    background: white;
}

#Article-Details .section-banner {
    padding: 2rem 1rem;
    background-image: url(https://images.unsplash.com/photo-1752052081785-d2635a8e30b5?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjR8fGJvb2tzbGVmfGVufDB8fDB8fHww);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #00000092;
    background-blend-mode: multiply;
}

#Article-Details .page-heading {
    font-family: "lato", sans-serif;
    color: white;
}

#Article-Details .label-section {
    border-bottom: 2px dotted #0000004c;
}

#Article-Details .section-label {
    padding-left: 0.5rem;
    margin-right: 1.5rem;
    font-weight: bold;
    font-size: 1.45rem;
    position: relative;
    bottom: -0.5rem;
}

#Article-Details .section-label::before {
    content: '';
    position: absolute;
    height: 1rem;
    width: .5rem;
    background: var(--highlight);
    bottom: .6rem;
    left: -.6rem;
}

#Article-Details .lable-group {
    background: white;
    display: flex;
    position: relative;
    top: .7rem;
    width: fit-content;
}

#Article-Details .secondary-label {
    color: red;
    font-weight: bold;
}

/* Article card styling - matching the articles page */
#Article-Details .article-card {
    border-top: 7px solid var(--highlight);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

#Article-Details .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* heading clamp to 2 lines */
#Article-Details .article-title {
    font-size: 1rem; /* CHANGED: from .95rem to 1rem */
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--red);
    /* clamp 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15rem;
    max-height: 2.4rem;
}

/* meta row */
#Article-Details .meta {
    font-size: 1rem; /* CHANGED: from .8rem to 1rem */
    color: #666;
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .25rem;
}

#Article-Details .article-card .author {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.2em;
    color: var(--olive);
    font-weight: bold;
}

#Article-Details .dashed-sep {
    border: none;
    background: transparent;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.71);
    margin: .6rem 0;
}

/* excerpt clamp to 4 lines */
#Article-Details .article-excerpt {
    font-size: 1rem; /* CHANGED: from .8rem to 1rem */
    color: #333;
    line-height: 1.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .75rem;
}

#Article-Details .back-to-entries {
    border: none;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

#Article-Details .main-article {
    background: white;
    padding: 2rem;
    /* border-top: 7px solid var(--highlight); */
}

#Article-Details .main-article h4 {
    color: var(--red);
    font-weight: 700;
    margin-bottom: 1rem;
}

#Article-Details .main-article h5 {
    color: var(--olive);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

#Article-Details .main-article h6 {
    color: #666;
    margin-bottom: .5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #Article-Details .main-article {
        padding: 1.5rem;
    }

    #Article-Details .article-card {
        min-height: 200px;
    }

    #Article-Details .article-title {
        font-size: 1rem;
    }

    #Article-Details .article-excerpt {
        font-size: 1rem; /* CHANGED: from 0.9rem to 1rem */
        line-height: 1.3rem;
    }
}

#Article-Details .filters {
    margin-bottom: 0;
    padding: 0.5rem;
    font-size: 1.25rem;
}

#Article-Details .filters-hr {
    margin-top: 0;
}

/* Projects */

/* projects-styles.css */
#projects {
    background: white;
}

#projects .section-banner {
    padding: 2rem 1rem;
    background-image: url(https://images.unsplash.com/photo-1752052081785-d2635a8e30b5?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjR8fGJvb2tzbGVmfGVufDB8fDB8fHww);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #00000092;
    background-blend-mode: multiply;
}

#projects .page-heading {
    font-family: "lato", sans-serif;
    color: white;
}

#projects .label-section {
    border-bottom: 2px dotted #0000004c;
}

#projects .section-label {
    padding-left: 0.5rem;
    margin-right: 1.5rem;
    font-weight: bold;
    font-size: 1.45rem;
    position: relative;
    bottom: -0.5rem;
}

#projects .section-label::before {
    content: '';
    position: absolute;
    height: 1rem;
    width: .5rem;
    background: var(--highlight);
    bottom: .6rem;
    left: -.6rem;
}

#projects .lable-group {
    background: white;
    display: flex;
    position: relative;
    top: .7rem;
    width: fit-content;
}

#projects .secondary-label {
    color: red;
    font-weight: bold;
}

/* Search Bar Styles */
#projects .search-container {
    margin: 2rem 0;
}

#projects .search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

#projects .search-input:focus {
    border-color: var(--highlight);
}

#projects .no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Project Card Styles */
#projects .project-card {
    border-top: 7px solid var(--highlight);
    overflow: hidden;
    display: flex;
    border-radius: 0;
}

#projects .project-image-container {
    padding: 0;
}

#projects .project-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
}

#projects .project-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

/* heading - NO truncation */
#projects .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--red);
    line-height: 1.5rem;
}

/* meta row */
#projects .meta {
    font-size: 1rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: start;
    margin-top: .25rem;
}

#projects .project-card .author {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* min-height: 2.6em; */
    line-height: 1.2em;
    color: var(--olive);
    font-weight: bold;
}
#projects .project-card .sub_author {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* min-height: 2.6em; */
    line-height: 1.2em;
    color: #000;
    font-weight: bold;
}
#projects .project-card .sub_author a {
    line-height: 1.2em;
    color: var(--olive);
    font-weight: bold;
}
#projects .project-card .sub_author a:hover{
color: var(--highlight);
}

#projects .project-card .author_lable {
    color: #000;
    font-weight: bold;
}
#projects .project-card .author a {
    color: var(--olive) !important;
    font-weight: bold;
    text-decoration: dotted !important ;
}

#projects .dashed-sep {
    border: none;
    background: transparent;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.71);
    margin: .6rem 0;
}

/* excerpt clamp to 4 lines */
#projects .project-excerpt {
    font-size: 1rem; /* CHANGED: from .95rem to 1rem */
    color: #333;
    line-height: 1.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 13;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .75rem;
}
#projects .project-excerpt h4{
    font-size: 1.1rem;
}
/* read more button aligned right */
#projects .project-card .btn {
    font-size: 1rem; /* CHANGED: from .9rem to 1rem */
    padding: .375rem .6rem;
    margin-top: auto;
    align-self: flex-end;
}

/* responsive tweaks */
@media (max-width: 992px) {
    #projects .hero-content-box {
        bottom: 2rem;
    }
    
    #projects .landing-banner-content .hero-logo {
        max-width: 35%;
    }
    
    #projects .home-text {
        font-size: 1rem; /* CHANGED: from .9rem to 1rem */
    }
}

@media (max-width: 768px) {
    #projects .project-card {
        flex-direction: column;
    }
    
    #projects .project-image-container {
        padding: 1rem 1rem 0 1rem;
    }
}

/* Project details */
/* project-details-styles.css */
/* Base Styles */
#Project-Details {
    background: white;
}

/* Banner Styles */
#Project-Details .section-banner {
    padding: 2rem 1rem;
    background-image: url(https://images.unsplash.com/photo-1752052081785-d2635a8e30b5?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjR8fGJvb2tzbGVmfGVufDB8fDB8fHww);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #00000092;
    background-blend-mode: multiply;
}

#Project-Details .page-heading {
    font-family: "lato", sans-serif;
    color: white;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
}

/* #Project-Details .page-subheading {
    font-family: "lato", sans-serif;
    color:var(--red);
    text-transform: none;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 3px dotted rgba(128, 128, 128, 0.605);
} */
 #Project-Details .page-subheading {
    font-family: "lato", sans-serif;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.3;
}

#Project-Details .section-banner .Project-author {
    color: white;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Main Content Styles */
#Project-Details .main-Project {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
}
#Project-Details .main-Project a{color: var(--olive);text-decoration: underline;}
#Project-Details .main-Project .Project-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}


#Project-Details .main-Project .Project-content p {
    margin-bottom: 1rem;
}

/* Gallery Styles */
#Project-Details .gallery-container {
    margin-top: 0;
}

#Project-Details .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

#Project-Details .gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 120px;
    border: 2px solid transparent;
}

#Project-Details .gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--highlight);
}

#Project-Details .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#Project-Details .gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

#Project-Details .no-images {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Modal Styles */
#Project-Details .image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.84);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#Project-Details .modal-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    background-color: unset !important;
}

#Project-Details .modal-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

#Project-Details .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#Project-Details .modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

#Project-Details .modal-prev, 
#Project-Details .modal-next {
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 50%;
    /* user-select: none; */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: background 0.3s, opacity 0.3s, visibility 0.3s;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#Project-Details .modal-prev {
    left: 30px;
    z-index: 1;
}

#Project-Details .modal-next {
    right: 30px;
    z-index: 1;
}

#Project-Details .modal-prev.hidden, 
#Project-Details .modal-next.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Sidebar Project Cards */
#Project-Details .Project-card {
    border-top: 7px solid var(--highlight);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

#Project-Details .Project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#Project-Details .Project-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--red);
    text-transform: none;
    line-height: 1.25rem;
}

#Project-Details .Project-author {
    color: var(--olive);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}

#Project-Details .dashed-sep {
    border: none;
    background: transparent;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.71);
    margin: .6rem 0;
}

/* Sidebar Section Headers */
#Project-Details .filters {
    margin-bottom: 0;
    padding: 0.5rem;
    font-size: 1.25rem;
}

#Project-Details .filters-hr {
    margin-top: 0;
}

#Project-Details #similar-entries {
    background: transparent;
}

#Project-Details .similar-entry .card {
    background: white;
}
#Project-Details .main-Project ul li{
    margin-bottom: .5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #Project-Details .main-Project {
        padding: 1.5rem;
    }

    #Project-Details .page-heading {
        font-size: 1.8rem;
    }

    #Project-Details .Project-card {
        min-height: 200px;
    }

    #Project-Details .Project-title {
        font-size: 1rem;
    }

    #Project-Details .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    #Project-Details .gallery-item {
        height: 100px;
    }

    #Project-Details .modal-prev, 
    #Project-Details .modal-next {
        width: 50px;
        height: 50px;
        padding: 10px 15px;
    }

    #Project-Details .modal-prev {
        left: 20px;
    }

    #Project-Details .modal-next {
        right: 20px;
    }
}

@media (max-width: 576px) {
    #Project-Details .page-heading {
        font-size: 1.5rem;
    }

    #Project-Details .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #Project-Details .gallery-item {
        height: 90px;
    }

    #Project-Details .modal-prev, 
    #Project-Details .modal-next {
        width: 40px;
        height: 40px;
        padding: 8px 12px;
        font-size: 20px;
    }

    #Project-Details .modal-prev {
        left: 15px;
    }

    #Project-Details .modal-next {
        right: 15px;
    }
}