/* premium.css - Premium styling for publications and statistics */

/* General Premium Container */
.premium-section {
    position: relative;
    padding: 60px 0;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* Impact Factor Trendline */
.trendline-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0 auto 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px 20px 40px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
}

.trendline-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.trend-area {
    fill: url(#trend-gradient);
    opacity: 0;
    transition: opacity 1.5s ease-in 0.5s;
}

.trend-line {
    fill: none;
    stroke: #7be2c4;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 2s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.trend-point {
    fill: #fff;
    stroke: #0b6c50;
    stroke-width: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.trend-label {
    font-size: 14px;
    font-weight: 700;
    fill: #555;
    text-anchor: middle;
}

.spotlight-counter {
    position: absolute;
    top: 30px;
    left: 40px; /* Put total on the left so it doesn't overlap the highest point on the right */
    text-align: left;
}

.spotlight-number {
    font-size: 72px;
    font-weight: 900;
    color: #0b6c50;
    text-shadow: 0 5px 25px rgba(123, 226, 196, 0.6);
    line-height: 1;
}

.spotlight-text {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

/* Premium Publication Cards */
.premium-pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.premium-pub-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.premium-pub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(123, 226, 196, 0.5); /* Accent glow */
}

.pub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pub-year-badge {
    background: rgba(123, 226, 196, 0.15);
    color: #0b6c50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pub-journal-badge {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-pub-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.pub-authors {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 800;
}

/* 
======================================================
  EXTERNAL PARTNERS MARQUEE
======================================================
*/
.partners-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: #f9f9f9;
    position: relative;
}

.partners-marquee-container::before,
.partners-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
}

.partners-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
}

.partners-marquee {
    display: flex;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
}

.partners-marquee:hover {
    animation-play-state: paused;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

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

.partner-logo-item img {
    height: 60px; /* Auto-scaling based on height constraint */
    width: auto;
    object-fit: contain;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.pub-abstract {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pub-link-btn {
    display: inline-flex;
    align-items: center;
    color: #0b6c50;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}

.pub-link-btn:hover {
    color: #7be2c4;
    text-decoration: none;
}

.pub-link-btn::after {
    content: "→";
    margin-left: 6px;
    transition: transform 0.2s;
}

.pub-link-btn:hover::after {
    transform: translateX(4px);
}

/* Impact Metrics Dashboard */
.premium-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.premium-stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.premium-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(123, 226, 196, 0.5);
}

.stat-icon {
    font-size: 32px;
    color: #0b6c50;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: #222;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Vertical Timeline */
.premium-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.premium-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: rgba(123, 226, 196, 0.3);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #7be2c4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b6c50;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.timeline-year {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(11, 108, 80, 0.1);
    color: #0b6c50;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
}

.timeline-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* 
======================================================
  LAYOUT FIXES (Logo, Nav, and White Space)
======================================================
*/
.navbar-brand img {
    max-height: 70px; /* Ensures logo isn't massively tall */
    width: auto;
}

.navbar-collapse {
    clear: both; /* Forces navigation below the logo */
    padding-top: 15px; 
}

#header {
    padding-bottom: 20px !important; /* Reduces huge white gap below navigation */
}
