@media (max-width: 991px) {

    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .logo-section {
        justify-content: center;
        text-align: center;
    }

    .journal-info {
        text-align: center;
        width: 100%;
    }

    .navbar-collapse {
        background-color: var(--primary-green);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        margin: 0.5rem 0 0.5rem 1rem;
        border-left: 3px solid var(--accent-gold);
    }

    .dropdown-submenu>.dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        margin-left: 1.5rem;
        border-left: 3px solid var(--secondary-green);
    }

    .mega-menu {
        padding: 1rem !important;
    }
}


@media (max-width: 768px) {

    .navbar-multilevel {
        top: 60px;
    }

    .editor-image-container {
        width: 170px;
        height: 170px;
    }

    .editor-role-badge {
        font-size: 0.75rem;
    }

    .editor-name {
        font-size: 1.4rem;
    }

    .editor-experience-list li {
        font-size: 0.9rem;
    }

    .editor-image-column {
        padding: 20px 10px;
    }

    .journal-title {
        font-size: 1.5rem;
    }

    .journal-logo {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .editor-image {
        width: 100px;
        height: 100px;
    }

    .editorial-header {
        padding: 60px 0;
    }

    .editorial-title {
        font-size: 2.4rem;
    }

    .editorial-subtitle {
        font-size: 1.2rem;
    }

    .intro-text {
        padding: 20px;
        font-size: 1.1rem;
    }

    .editors-container,
    .associate-editors-container {
        grid-template-columns: 1fr;
    }

    .editor-card {
        max-width: 100%;
    }

    .website-title {
        font-size: 1.4rem;
    }

    .website-logo {
        height: 60px;
    }

    .featured-image-container {
        height: 220px;
    }

    .featured-image-caption h3 {
        font-size: 1.5rem;
    }

    .featured-image-caption p {
        font-size: 0.95rem;
    }

    .clamp-lines {
        white-space: normal;
        /* Allows text to wrap */
        overflow: visible;
        /* Prevents hidden overflow */
        text-overflow: clip;
        /* Prevents ellipsis when wrapping */
    }
}

/* Mobile Layout */
@media (max-width: 576px) {

    .top-social-bar .container {
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .top-social-icons {
        width: 100%;
        margin-top: 5px;
    }

    .top-social-icons a {
        margin: 0 8px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .featured-image-container {
        height: 180px;
    }

    .featured-image-caption {
        padding: 30px 15px 15px;
    }

    .featured-image-caption h3 {
        font-size: 1.2rem;
    }

    .featured-image-caption p {
        font-size: 0.85rem;
        display: block;
    }

    .editor-card {
        width: 95%;
    }

    .journal-header {
        width: 100%;
    }

    .issue-cover {
        width: 95%;
    }

    .editorial-title {
        font-size: 2rem;
    }

    .editorial-subtitle {
        font-size: 1.1rem;
    }

    .intro-text {
        padding: 15px;
        font-size: 1rem;
    }

    .editor-header {
        padding: 15px;
    }

    .editor-name {
        font-size: 1.3rem;
    }

    .website-logo {
        height: 50px;
    }

    .website-title {
        font-size: 1.2rem;
    }
}