/* ============================================
   Journals by Title Page Styles
   ============================================ */

/* Page Banner */
.journals-page-banner {
    position: relative;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    padding: 100px 0 80px;
    overflow: hidden;
    margin-bottom: 0;
}

.journals-page-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.journals-page-banner .container {
    position: relative;
    z-index: 2;
}

.journals-page-banner .banner-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.journals-page-banner .banner-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.journals-page-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.journals-page-banner .banner-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 500;
}

.journals-page-banner .banner-description {
    max-width: 800px;
    margin: 0 auto;
}

.journals-page-banner .banner-description p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

.journals-page-banner .banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

/* Alphabet Filter Section */
.alphabet-filter-section {
    background: #fff;
    padding: 40px 0;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alphabet-filter-section .filter-header {
    text-align: center;
    margin-bottom: 25px;
}

.alphabet-filter-section .filter-header h3 {
    color: #10b981;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.alphabet-filter-section .filter-header h3 i {
    margin-right: 8px;
}

.alphabet-filter-section .filter-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.letter-btn {
    min-width: 45px;
    height: 45px;
    border: 2px solid #10b981;
    background: #fff;
    color: #10b981;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}

.letter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.letter-btn:hover::before,
.letter-btn.active::before {
    width: 200%;
    height: 200%;
}

.letter-btn .letter-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.letter-btn:hover,
.letter-btn.active {
    border-color: #047857;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.letter-btn.disabled {
    border-color: #ddd;
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

.letter-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Journals Listing Section */
.journals-listing-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.letter-group {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #10b981;
}

.letter-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.letter-count {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Journals Grid */
.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Journal Card */
.journal-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.journal-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Journal Thumbnail */
.journal-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.journal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.journal-card:hover .journal-thumbnail img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #a2f9b3a6;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journal-card:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    font-size: 40px;
    color: #fff;
}

.badge-open-access {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    z-index: 2;
}

/* Journal Info */
.journal-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.journal-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.journal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.journal-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.journal-title a:hover {
    color: #10b981;
}

.journal-code {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.journal-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.journal-subject i {
    color: #10b981;
}

/* Journal Meta */
.journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.meta-item i {
    color: #10b981;
    font-size: 14px;
}

/* Journal Contact */
.journal-contact {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.contact-link {
    width: 175px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.email-link {
    background: #f0f0f0;
    color: #10b981;
}

.email-link:hover {
    background: #10b981;
    color: #fff;
    transform: scale(1.1);
}

.whatsapp-link {
    background: #e8f5e9;
    color: #25d366;
}

.whatsapp-link:hover {
    background: #25d366;
    color: #fff;
    transform: scale(1.1);
}

/* Journal Actions */
.journal-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-view-journal,
.btn-submit-paper {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-journal {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fff;
}

.btn-view-journal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-submit-paper {
    background: #fff;
    color: #10b981;
    border: 2px solid #10b981;
}

.btn-submit-paper:hover {
    background: #10b981;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Flyer Section */
.journal-flyer-section {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.flyer-toggle {
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    transition: all 0.3s ease;
}

.flyer-toggle:hover {
    background: #e9ecef;
    color: #047857;
}

.flyer-toggle i.fas.fa-image {
    margin-right: 8px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotate {
    transform: rotate(180deg);
}

.flyer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
}

.flyer-content.show {
    max-height: 1000px;
    padding: 0 25px 25px;
}

.flyer-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .journals-page-banner {
        padding: 80px 0 60px;
    }

    .journals-page-banner h1 {
        font-size: 36px;
    }

    .journals-page-banner .banner-icon {
        font-size: 50px;
    }

    .journals-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .alphabet-filter-section {
        padding: 30px 0;
    }
}

@media (max-width: 767px) {
    .journals-page-banner {
        padding: 60px 0 40px;
    }

    .journals-page-banner h1 {
        font-size: 28px;
    }

    .journals-page-banner .banner-subtitle {
        font-size: 16px;
    }

    .journals-page-banner .banner-icon {
        font-size: 40px;
    }

    .journals-page-banner .banner-description p {
        font-size: 14px;
    }

    .alphabet-filter-section {
        padding: 25px 0;
        position: relative;
    }

    .alphabet-filter-section .filter-header h3 {
        font-size: 20px;
    }

    .alphabet-nav {
        gap: 6px;
    }

    .letter-btn {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
        padding: 0 10px;
    }

    .journals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .letter-badge {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .letter-count {
        font-size: 16px;
    }

    .journal-thumbnail {
        height: 200px;
    }

    .journal-info {
        padding: 20px;
    }

    .journal-title {
        font-size: 16px;
    }

    .journal-actions {
        flex-direction: column;
    }

    .btn-view-journal,
    .btn-submit-paper {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .journals-page-banner h1 {
        font-size: 24px;
    }

    .journals-page-banner .banner-subtitle {
        font-size: 14px;
    }

    .alphabet-filter-section .filter-header h3 {
        font-size: 18px;
    }

    .letter-btn {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        padding: 0 8px;
    }

    .journal-header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .journal-code {
        align-self: flex-start;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Empty State */
.no-journals-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-journals-message i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-journals-message h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-journals-message p {
    font-size: 16px;
}