body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

body.no-scroll {
    position: fixed;
    width: 100%;
}

.fss {
    font-size: 14px;
    word-spacing: 0.2em;
}

.pop-list li,
ol li {
    line-height: 1.8;
    margin-bottom: 14px;
}
.search-input{
    padding: 4%;
}

#stickyNav {
    transition: all 0.3s ease;
}


/* --- Header Styles --- */
.navbar-top {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.journal-header {
    padding: 20px 0;
    background-color: #002d54;
    color: white;
}

.cite-score-box {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Secondary Navigation (Journal Nav) --- */
.journal-nav {
    border-bottom: 1px solid #002d54;
    background: white;
    z-index: 1000;
}

.journal-nav .nav-link {
    color: #333 !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 15px 20px !important;
    border-right: 1px solid #eee;
    transition: 0.2s;
}

/* Hover & Active States */
.journal-nav .nav-link:hover {
    background-color: #f8f9fa;
}

.journal-nav .nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #007398;
}

/* Arrow Rotation */
.bi-chevron-down {
    transition: transform 0.3s;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* --- Desktop Specific (Hover) --- */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown:hover>.nav-link .bi-chevron-down {
        transform: rotate(180deg);
    }

    .search-container {
        border-right: 1px solid #eee;
        padding: 0 15px;
        display: flex;
        align-items: center;
    }

    .search-input {
        border: none !important;
        box-shadow: none !important;
        width: 250px;
    }
}

/* --- Mobile Specific (Collapse) --- */
@media (max-width: 991px) {
    .journal-nav .nav-link {
        border-right: none;
        border-bottom: 1px solid #eee;
        justify-content: space-between;
    }

    .dropdown-menu {
        border: none;
        background-color: #fbfbfb;
        padding-left: 20px;
        box-shadow: none;
        margin: 0;
    }

    .search-container {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .action-link-mobile {
        padding: 15px 20px;
        display: block;
        color: #007398;
        text-decoration: none;
        font-weight: bold;
    }
}

/* Utility Styles */
.dropdown-menu {
    border-radius: 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
    margin-top: 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.feedback-btn {
    position: fixed;
    bottom: 0;
    right: 20px;
    background: #007398;
    color: white;
    padding: 8px 16px;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2000;
}

#sidePopup {
    position: fixed;
    background: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    /* 🔑 key */
    transition: all 0.4s ease;
}

/* Header stays visible */
.popup-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Body scrolls */
.popup-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    /* 🔑 key */
}

/* Desktop */
@media (min-width: 768px) {
    #sidePopup {
        top: 0;
        right: -450px;
        width: 450px;
        height: 100%;
    }

    #sidePopup.active {
        right: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    #sidePopup {
        left: 0;
        bottom: -100%;
        width: 100%;
        height: 90vh;
        /* 🔑 use viewport height */
        border-radius: 16px 16px 0 0;
    }

    #sidePopup.active {
        bottom: 0;
    }
}


#sidePopup.active {
    right: 0;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1040;
}

.popup {
    background: #f5f5f5;
    text-decoration: underline;
}

.metrics {
    gap: 20px;
}

.metric-item {
    text-align: center;
}

.metric-divider {
    width: 2px;
    height: 40px;
    background-color: #000;
}

/* Footer */
footer {
    background-color: #002d54;
    color: white;
    padding: 60px 0 20px;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: white;
}

/* Carousel */
.carousel-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-carousel .item {
    padding: 15px;
    display: flex;
    height: 520px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-card-img {
    transform: scale(1.1);
}

.feature-card-img-wrapper {
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}

.feature-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.feature-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    min-height: 3.6em;
    display: flex;
    align-items: center;
}

.feature-card-text {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-card-btn {
    margin-top: auto;
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.feature-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Owl Carousel Height Fix */
.owl-carousel .owl-stage-outer {
    height: 520px;
}

.owl-carousel .owl-stage {
    height: 520px;
}

.owl-carousel .owl-item {
    height: 520px;
    display: flex;
}

/* Feature Carousel Custom Styling */
.feature-carousel {
    position: relative;
}

.feature-carousel.owl-theme .owl-nav {
    margin-top: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.feature-carousel.owl-theme .owl-nav [class*='owl-'] {
    background: white;
    color: #667eea;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: absolute;
    pointer-events: all;
}

.feature-carousel.owl-theme .owl-nav .owl-prev {
    left: -25px;
}

.feature-carousel.owl-theme .owl-nav .owl-next {
    right: -25px;
}

.feature-carousel.owl-theme .owl-nav [class*='owl-']:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.feature-carousel.owl-theme .owl-dots {
    margin-top: 30px;
}

.feature-carousel.owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.feature-carousel.owl-theme .owl-dots .owl-dot.active span,
.feature-carousel.owl-theme .owl-dots .owl-dot:hover span {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-section-title {
        font-size: 2rem;
    }
}