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

body {
    font-family: 'Mukta Vaani';
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #303360;
    color: white;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-title {
    font-size: 15px;
    letter-spacing: 2px;
}

.header-items {
    width: 25%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* background-color: yellow; */
}

.header-items img {
    width: 60px;
    height: 80px;
    cursor: pointer;
}


.header-items svg {
    width: 35px;
    height: 35px;
    margin-left: 0;
    cursor: pointer;
}

.hamburger-icon {
    display: none;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    /* background-color: #7c87ad; */
    margin-top: 6rem;
}

nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

nav li {
    list-style: none;
    margin: 10px 20px;
}

nav p {
    list-style: none;
    margin: 10px 20px;
    font-weight: bold;
}

nav li a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

nav li a:hover {
    color: #41468d;
}

nav ul li a svg {
    width: 15px;
    height: 15px;
}

.active {
    color: #303360;
    font-weight: bold;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 210px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 4px;
    border-top: 3px solid #303360;
}

.dropdown.active-dropdown .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100%;
}

.dropdown-menu li a {
    color: #333;
    padding: 8px 20px;
    display: block;
    text-align: left;
    justify-content: flex-start;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    color: #303360;
    padding-left: 25px;
}

.dropdown>a svg {
    transition: transform 0.3s;
}

.dropdown.active-dropdown>a svg {
    transform: rotate(180deg);
}

.nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #ce6738;
    height: 90px;
    width: 250px;
}

.nav-right:hover {
    background-color: #d47143ee;
    cursor: pointer;
}

.nav-item {
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 33%;
    /* background-color: aqua; */
}

.manuscript-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    height: 80px;
    width: 250px;
}

.manuscript-link:hover {
    cursor: pointer;
}

.nav-right p {
    text-decoration: none;
    color: white;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    background: url('../images/mainbg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Semi-transparent overlay */
    backdrop-filter: blur(2px);
    /* Blur effect */
    z-index: 1;
    /* Ensure it's on top of the image but below content */
}

.main-content>* {
    position: relative;
    z-index: 2;
    /* Ensure content is above the overlay */
}

.main-content h1 {
    font-size: 20px;
    text-decoration: underline #ce6738 3px;
    text-underline-offset: 7px;
}

.main-content p {
    width: 50vw;
    margin-top: 20px;
    text-align: center;
}

.latest-edition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -13rem;
    z-index: 2;
    width: 100%;
}

.latest-edition img {
    height: 250px;
}

.latest-edition img:hover {
    cursor: pointer;
}

.edition-issue {
    margin-top: 20px;
    font-size: 15px;
}

.edition-volume {
    margin: 0;
    font-size: 25px;
}

.edition-volume b {
    font-size: 25px;
    margin: 0;
}

.articles-header {
    text-decoration: underline 3px #303360;
    margin-top: 350px;
    justify-items: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 6px;
    text-underline-offset: 5px;
}

.articles {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 30px;
}

.articles-sections {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #4d4d4d;
    height: 400px;
    width: 350px;
    padding: 10px 40px;
    gap: 30px;
    position: relative;
    color: black;
    cursor: pointer;
}

.articles-sections:hover {
    cursor: pointer;
    color: white;
}

.article-color {
    width: 20px;
    height: 400px;
    background-color: #303360ee;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.4s ease;
    z-index: -1;
}

.articles-sections:hover .article-color {
    cursor: pointer;
    width: 100%;
    color: white;
}

.articles-sections b {
    font-size: 20px;
    margin-top: 10px;
    width: 15rem;
    letter-spacing: 0.5px;
}

.articles-sections .article-volume {
    font-size: 14px;
    margin-top: -4rem;
}

.articles-sections .article-volume b {
    font-size: 14px;
}

.article-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.article-info p {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

.article-info-title {
    margin-right: 10px;
    text-align: left;
    /* background-color: #ce6738; */
    width: 60px;
}

.open-access-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 100px;
}

.open-journal-header {
    text-decoration: underline 3px #303360;
    justify-items: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 6px;
    text-underline-offset: 5px;
}

.open-journal-text {
    margin-top: 50px;
    text-align: center;
    width: 50vw;
}

/* Footer Styles */
footer {
    background-color: #303360;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ce6738;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ce6738;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

@media screen and (max-width: 1200px) {
    header {
        width: 100%;
        height: 10vh;
        justify-content: space-between;
        padding: 0 20px;
    }

    .header-title {
        display: none;
    }

    .header-items svg {
        display: none;
    }

    .header-items {
        width: auto;
    }

    .header-item-left {
        width: 250px;
        margin-left: 20px;
    }

    .hamburger-icon {
        display: flex;
        /* Show hamburger on mobile */
    }

    .hamburger-icon svg {
        display: block;
        /* Ensure SVG inside is visible */
        margin: 0;
    }

    .header-items img {
        width: 45px;
        height: 60px;
        margin: 0;
    }

    nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 10vh;
        left: 0;
        width: 100%;
        background-color: #f4f4f4;
        height: auto;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
        margin-top: 0;
        overflow-y: scroll;
    }

    nav.nav-active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    nav li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-item {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .manuscript-link {
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #303360;
        width: 100%;
        background-color: transparent;
        display: none;
    }

    .dropdown.active-dropdown .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px 40px;
    }

    .main-content {
        height: 40vh;
    }

    .main-content h1 {
        text-align: center;
        font-size: 16px;
    }

    .main-content p {
        width: 90%;
        font-size: 14px;
    }

    .articles {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
        gap: 30px;
    }

    .articles-sections {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        border: 1px solid #4d4d4d;
        height: 400px;
        width: 350px;
        padding: 10px 40px;
        gap: 30px;
        position: relative;
        color: black;
        cursor: pointer;
    }


    .latest-edition {
        position: relative;
        bottom: 0;
        margin-top: 20px;
    }

    .articles-header {
        margin-top: 30px;
    }
}

/* Journal Indexes Section */
.journal-indexes {
    background-color: #fff;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
    text-align: center;
}

.indexes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.indexes-title {
    font-size: 14px;
    font-weight: bold;
    color: #303360;
    margin-bottom: 30px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.indexes-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #ce6738;
}

.indexes-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.index-item {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.index-item:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

.index-item img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}

@media screen and (max-width: 1200px) {
    .journal-indexes {
        padding: 30px 0;
    }

    .indexes-grid {
        gap: 20px;
    }

    .index-item img {
        max-height: 40px;
        max-width: 120px;
    }
}