/* General Reset and Theme Colors */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212; 
    color: #F5F7FA; 
}

/* --- Navigation Bar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border-bottom: 2px solid #0055ff;
    background:  #2f304a;
    animation: blueBorderPulse 2s infinite alternate;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: nowrap; 
    justify-content: center;
}

.nav-links li a {
    text-decoration: none;
    color: #F5F7FA; 
    opacity: 0.8;
    font-size: 11px; 
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #ffffff;
    opacity: 1;
    border: 1px solid rgba(0, 136, 255, 0.5);
    background: rgba(0, 136, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3) inset;
    text-shadow: 0 0 8px #0088ff;
}

/* --- Publications Section Styling --- */
.pub-section {
    padding: 60px 10%;
    background-color: #F5F7FA; 
    min-height: 80vh;
}

/* Header Wrapper with Left & Right Glowing Circles */
.pub-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.pub-header {
    text-align: center;
    flex: 1;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #16324F;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon {
    display: inline-block;
    font-size: 2rem;
    animation: iconGlow 1.8s infinite alternate ease-in-out;
}

/* Glowing Circular Badges */
.glow-circle {
    width: 110px;
    height: 110px;
    background: #16324F;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #0088ff;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.6), inset 0 0 10px rgba(0, 136, 255, 0.4);
    animation: circlePulse 2.5s infinite alternate ease-in-out;
    text-align: center;
    padding: 10px;
}

.count-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 8px #0088ff;
    line-height: 1.1;
}

.count-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Tab Switcher Buttons */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.tab-btn {
    background-color: #16324F;
    color: #F5F7FA;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 30px;
    border: 2px solid #0055ff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 50, 79, 0.2);
}

.tab-btn:hover, .tab-btn.active {
    background-color: #0088ff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.6);
    transform: translateY(-2px);
}

/* Filter & Pagination Bar */
.filter-pagination-bar {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(0, 136, 255, 0.3);
    box-shadow: 0 4px 15px rgba(22, 50, 79, 0.08);
}

.search-box {
    margin-bottom: 15px;
    text-align: center;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    color: #16324F;
}

.search-box input:focus {
    border-color: #0088ff;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

/* Horizontal Pagination Navigation (1-10, 11-20, etc.) */
.pagination-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-btn {
    background-color: #16324F;
    color: #F5F7FA;
    border: 1px solid #0055ff;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active-page {
    background-color: #0088ff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.6);
}

/* Content Sections */
.content-section {
    display: none;
}

.active-section {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Grid Layout for 10 Boxes per view */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pub-box {
    background: #ffffff;
    padding: 22px;
    border-radius: 10px;
    border: 2px solid rgba(0, 136, 255, 0.3);
    box-shadow: 0 4px 15px rgba(22, 50, 79, 0.1);
    transition: all 0.3s ease-in-out;
}

.pub-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.3);
    border-color: #0088ff;
}

.pub-box h3 {
    font-size: 1.15rem;
    color: #16324F;
    margin-bottom: 10px;
    font-weight: 800;
}

.pub-box p {
    font-size: 0.9rem;
    color: #16324F;
    margin-bottom: 6px;
    line-height: 1.4;
}

.pub-link {
    display: inline-block;
    margin-top: 10px;
    color: #6610f0; 
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pub-link:hover {
    color: #16324F;
    text-shadow: 0 0 8px rgba(214, 168, 79, 0.8);
}

/* Glowing Line Effect */
.line-glow {
    position: relative;
}

.line-glow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 3px; 
    border-radius: 2px;
    animation: textUnderlineGlow 2s infinite alternate ease-in-out;
}

.pub-box.line-glow::after {
    bottom: -12px;
    left: 22px;
}

/* Lower Section Divider */
.section-divider {
    width: 100%;
    background: linear-gradient(90deg, transparent, #D6A84F, transparent); 
    box-shadow: 0 2px 10px rgba(214, 168, 79, 0.5); 
    margin-top: 0 px;
}

/* --- Keyframe Animations --- */

@keyframes blueBorderPulse {
    0% {
        border-bottom-color: #0033aa;
        box-shadow: 0 4px 10px rgba(0, 51, 170, 0.4);
    }
    100% {
        border-bottom-color: #0088ff;
        box-shadow: 0 4px 25px rgba(0, 136, 255, 0.9), 0 4px 15px rgba(0, 136, 255, 0.6);
    }
}

@keyframes circlePulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 136, 255, 0.4), inset 0 0 5px rgba(0, 136, 255, 0.2);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 25px #0088ff, 0 0 40px rgba(0, 136, 255, 0.8), inset 0 0 15px rgba(0, 136, 255, 0.6);
        transform: scale(1.05);
    }
}

@keyframes textUnderlineGlow {
    0% {
        width: 30%;
        background: #0033aa;
        box-shadow: 0 0 6px rgba(0, 51, 170, 0.4);
    }
    100% {
        width: 70%;
        background: #0088ff;
        box-shadow: 0 0 12px #0088ff, 0 0 20px rgba(0, 136, 255, 0.8);
    }
}

@keyframes iconGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 136, 255, 0.4));
    }
    100% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px #0088ff) drop-shadow(0 0 25px #D6A84F);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
    .pub-section .pub-header-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .pub-section .glow-circle {
        width: clamp(62px, 12vw, 88px) !important;
        height: clamp(62px, 12vw, 88px) !important;
        flex: 0 0 auto !important;
        padding: 6px !important;
        border-width: 2px !important;
    }

    .pub-section .pub-header {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }

    .pub-section .section-title {
        font-size: clamp(0.9rem, 2.6vw, 1.55rem) !important;
        gap: 5px !important;
    }

    .pub-section .icon {
        font-size: clamp(1rem, 3vw, 1.6rem) !important;
    }

    .pub-section .count-num {
        font-size: clamp(0.8rem, 1.8vw, 1.1rem) !important;
    }

    .pub-section .count-label {
        font-size: clamp(0.43rem, 1vw, 0.58rem) !important;
    }
}

@media (max-width: 520px) {
    .pub-section {
        padding: 40px 12px !important;
    }

    .pub-section .pub-header-wrapper {
        gap: 5px !important;
    }

    .pub-section .glow-circle {
        width: clamp(48px, 17vw, 66px) !important;
        height: clamp(48px, 17vw, 66px) !important;
        padding: 3px !important;
    }

    .pub-section .section-title {
        font-size: clamp(0.56rem, 2.9vw, 0.9rem) !important;
        line-height: 1.12 !important;
        letter-spacing: 0 !important;
        gap: 1px !important;
        flex-wrap: wrap !important;
    }

    .pub-section .icon {
        font-size: clamp(0.7rem, 3.2vw, 1rem) !important;
    }

    .pub-section .count-num {
        font-size: clamp(0.55rem, 2.5vw, 0.8rem) !important;
    }

    .pub-section .count-label {
        font-size: clamp(0.34rem, 1.7vw, 0.48rem) !important;
        line-height: 1.05 !important;
    }
}
@media (max-width: 520px) {
    .pub-section .tab-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    .pub-section .tab-btn {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        padding: 8px 5px !important;
        font-size: clamp(0.65rem, 3vw, 0.85rem) !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: normal !important;
    }
}