/*--------------------------------------------------------------
# Homepage Enhancements - Professional Design & Mobile Responsive
--------------------------------------------------------------*/

/* Organization Header Enhancements */
.organization-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 15px;
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.logo-container {
    margin-bottom: 10px;
}

.organization-logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.organization-logo:hover {
    transform: scale(1.05);
}

.organization-info {
    padding-left: 15px;
}

.organization-title {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.journal-info {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4edda 100%);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.journal-label {
    font-weight: 600;
    color: #495057;
    font-size: 15px;
    display: inline-block;
    margin-right: 8px;
}

.journal-name {
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
    display: inline-block;
}

.issn-info {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.issn-item {
    color: #495057;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.issn-item i {
    color: #106eea;
    font-size: 16px;
}

.issn-item strong {
    color: #222;
    font-weight: 600;
}

.issn-separator {
    color: #dee2e6;
    font-weight: 300;
}

/* Mobile Responsive - Organization Header */
@media (max-width: 767px) {
    .organization-header {
        padding: 12px 12px;
        margin: 8px 0;
    }

    .logo-container {
        margin-bottom: 12px;
    }

    .organization-logo {
        max-width: 120px;
    }

    .organization-info {
        padding-left: 0;
        text-align: center;
    }

    .organization-title {
        font-size: 18px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .journal-info {
        padding: 10px 12px;
        text-align: center;
    }

    .journal-label,
    .journal-name {
        font-size: 14px;
        display: block;
        margin-bottom: 6px;
    }

    .issn-info {
        flex-direction: column;
        gap: 6px;
        margin-top: 6px;
    }

    .issn-separator {
        display: none;
    }

    .issn-item {
        font-size: 13px;
        justify-content: center;
    }
}

/* Tablet Responsive - Organization Header */
@media (min-width: 768px) and (max-width: 991px) {
    .organization-header {
        padding: 15px 12px;
    }

    .organization-logo {
        max-width: 130px;
    }

    .organization-title {
        font-size: 22px;
        letter-spacing: 0.8px;
    }

    .organization-info {
        padding-left: 12px;
    }

    .journal-info {
        padding: 10px 12px;
    }

    .journal-label,
    .journal-name {
        font-size: 14px;
    }

    .issn-item {
        font-size: 13px;
    }
}

/* Large Desktop - Organization Header */
@media (min-width: 1200px) {
    .organization-title {
        font-size: 32px;
    }

    .organization-logo {
        max-width: 180px;
    }
}

/* Enhanced Typography */
.homepage-section {
    padding: 25px 0;
}

.homepage-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.homepage-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #106eea;
}

.homepage-section h2.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Modern Carousel Enhancements */
.carousel-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.carousel-wrapper .carousel-item img {
    height: 450px;
    object-fit: cover;
    width: 100%;
}

.carousel-wrapper .carousel-control-prev,
.carousel-wrapper .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(16, 110, 234, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-wrapper:hover .carousel-control-prev,
.carousel-wrapper:hover .carousel-control-next {
    opacity: 1;
}

.carousel-wrapper .carousel-control-prev {
    left: 20px;
}

.carousel-wrapper .carousel-control-next {
    right: 20px;
}

/* Enhanced Notification Card */
.notification-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.notification-card .card-header {
    background: linear-gradient(135deg, #106eea 0%, #3b8af2 100%);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 18px;
}

.notification-card .card-body {
    padding: 15px;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #106eea;
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #0d58ba;
}

.notification-list .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 10px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.notification-list .list-group-item:last-child {
    border-bottom: none;
}

.notification-list .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 15px;
}

.notification-list .list-group-item a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    display: block;
}

.notification-list .list-group-item a:hover {
    color: #106eea;
}

.notification-list .list-group-item a small {
    color: #6c757d;
    font-weight: 400;
}

/* Marquee Enhancement */
.marquee-wrapper {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
}

.marquee-wrapper marquee {
    font-weight: 600;
    font-size: 15px;
}

/* Enhanced Welcome Section */
.welcome-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.welcome-section .section-title h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #222;
}

.welcome-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Modern Article Card Design */
.article-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.article-section .section-title h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.latest-issue-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.latest-issue-card .issue-image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.latest-issue-card .issue-image:hover {
    transform: scale(1.05);
}

.latest-issue-card .card-header {
    background: transparent;
    border: none;
    padding: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #106eea;
}

.latest-issue-card .card-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.latest-issue-card .card-text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Enhanced Articles List */
.articles-list-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.articles-list-card .card-header {
    background: linear-gradient(135deg, #106eea 0%, #3b8af2 100%);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 18px;
}

.articles-list-card .card-body {
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
}

.articles-list-card .card-body::-webkit-scrollbar {
    width: 6px;
}

.articles-list-card .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.articles-list-card .card-body::-webkit-scrollbar-thumb {
    background: #106eea;
    border-radius: 10px;
}

.articles-list-card .card-body::-webkit-scrollbar-thumb:hover {
    background: #0d58ba;
}

.articles-list-card .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.articles-list-card .list-group-item:last-child {
    border-bottom: none;
}

.articles-list-card .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.articles-list-card .list-group-item a {
    color: #222;
    text-decoration: none;
    display: block;
}

.articles-list-card .list-group-item a b {
    font-size: 16px;
    line-height: 1.6;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.articles-list-card .list-group-item:hover a b {
    color: #106eea;
}

.articles-list-card .list-group-item .text-muted {
    font-size: 13px;
}

/* Article list footer styling */
.articles-list-card .card-body.text-center {
    max-height: none;
    overflow: visible;
    padding: 12px 20px;
}

/* Button Enhancements */
.btn-enhanced {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 110, 234, 0.2);
}

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 110, 234, 0.3);
}

.btn-enhanced-primary {
    background: linear-gradient(135deg, #106eea 0%, #3b8af2 100%);
    color: #fff;
}

.btn-enhanced-outline {
    background: #fff;
    color: #106eea;
    border: 2px solid #106eea;
    box-shadow: none;
}

.btn-enhanced-outline:hover {
    background: #106eea;
    color: #fff;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Spacing Utilities */
.section-gap {
    margin-top: 25px;
}

/* Responsive Design - Mobile First */
@media (max-width: 767px) {
    /* Carousel adjustments */
    .carousel-wrapper .carousel-item img {
        height: 250px;
    }

    .carousel-wrapper .carousel-control-prev,
    .carousel-wrapper .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-wrapper .carousel-control-prev {
        left: 10px;
    }

    .carousel-wrapper .carousel-control-next {
        right: 10px;
    }

    /* Typography adjustments */
    .homepage-section h2 {
        font-size: 22px;
    }

    .welcome-section {
        padding: 15px 15px;
    }

    .welcome-section .section-title h3 {
        font-size: 20px;
    }

    .welcome-section p {
        font-size: 14px;
    }

    /* Article section */
    .article-section {
        padding: 15px 15px;
    }

    .article-section .section-title h2 {
        font-size: 20px;
    }

    /* Notification card */
    .notification-card .card-header {
        padding: 12px;
        font-size: 16px;
    }

    .notification-card .card-body {
        padding: 12px;
    }

    .notification-list {
        max-height: 300px;
    }

    .notification-list .list-group-item a {
        font-size: 13px;
    }

    /* Latest issue card */
    .latest-issue-card {
        padding: 15px 12px;
    }

    .latest-issue-card .card-title {
        font-size: 18px;
    }

    /* Articles list */
    .articles-list-card .card-header {
        padding: 12px 15px;
        font-size: 16px;
    }

    .articles-list-card .card-body {
        max-height: 450px;
    }

    .articles-list-card .list-group-item {
        padding: 12px 15px;
    }

    .articles-list-card .list-group-item a b {
        font-size: 14px;
    }

    /* Buttons */
    .btn-enhanced {
        padding: 8px 18px;
        font-size: 13px;
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    /* Marquee */
    .marquee-wrapper marquee {
        font-size: 13px;
    }

    /* Section spacing */
    .homepage-section {
        padding: 20px 0;
    }

    .section-gap {
        margin-top: 15px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-wrapper .carousel-item img {
        height: 350px;
    }

    .notification-list {
        max-height: 350px;
    }

    .welcome-section {
        padding: 20px 20px;
    }

    .article-section {
        padding: 20px 20px;
    }
}

/* Large Desktop adjustments */
@media (min-width: 1200px) {
    .carousel-wrapper .carousel-item img {
        height: 500px;
    }

    .notification-list {
        max-height: 450px;
    }
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state for dynamic content */
.loading-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.loading-placeholder::after {
    content: "Loading...";
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Topbar Mobile Enhancements */
#topbar .contact-info {
    flex-wrap: wrap;
    gap: 8px;
}

#topbar .contact-info i {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    #topbar {
        height: auto;
        padding: 10px 0;
    }

    #topbar .container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    #topbar .contact-info {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    #topbar .contact-info i {
        font-size: 13px;
        margin: 0 !important;
        padding: 5px 0;
    }

    #topbar .contact-info i a {
        font-size: 13px;
        word-break: break-all;
    }

    #topbar .social-links {
        width: 100%;
        justify-content: flex-start !important;
        margin-top: 5px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #topbar .contact-info {
        gap: 15px;
    }

    #topbar .contact-info i {
        font-size: 13px;
    }

    #topbar .contact-info i a {
        font-size: 13px;
    }
}

/* Print styles */
@media print {
    .carousel-wrapper,
    .notification-card,
    .btn-enhanced,
    .action-buttons {
        display: none;
    }

    .welcome-section,
    .article-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
