/* archives.css */

/* Hero Search Section */
.archives-hero {
    background: linear-gradient(135deg, #0f1c2e, #1a2f4c);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 28, 46, 0.75);
    z-index: 2;
}

.archives-hero .container {
    position: relative;
    z-index: 3;
}

.archives-hero-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.archives-hero-stats {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--white);
    margin-bottom: var(--space-6);
}

.archives-hero-stats span {
    color: #4ade80; /* bright green */
    font-weight: 700;
    font-size: var(--text-xl);
}

.search-bar-container {
    max-width: 800px;
    margin: 0 auto var(--space-4);
    display: flex;
    height: 50px;
}

.search-dropdown {
    width: 140px;
    background: #e2e8f0 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat;
    background-position: calc(50% + 15px) center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    text-align: center;
    text-indent: -10px;
    font-size: var(--text-sm);
    color: var(--navy);
    font-weight: 600;
    border-radius: 4px 0 0 4px;
    outline: none;
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 var(--space-4);
    font-size: var(--text-base);
    outline: none;
}

.search-btn {
    background: var(--gold);
    border: none;
    width: 60px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-text {
    display: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.search-btn:hover {
    background: var(--gold-light);
}

.search-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.search-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}

.search-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gold);
}

/* Green Banner */
.collection-banner {
    background: #4d8021;
    color: var(--white);
    padding: var(--space-4) 0;
    position: relative;
    overflow: hidden;
}

.collection-banner .container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    z-index: 2;
}

.collection-banner h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin: 0;
}

.collection-banner .btn-collection {
    background: var(--white);
    color: #4d8021;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: 2px;
}

/* Section Common */
.archive-section {
    padding: var(--space-12) 0;
    background: var(--white);
}

.archive-section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-8);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

/* Author Cards */
.author-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.author-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gray-200);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info h4 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 2px;
}

.author-info span {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
}

.author-desc {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.5;
    flex: 1;
}

.btn-follow {
    align-self: flex-start;
    border: 1px solid var(--navy);
    color: var(--navy);
    background: transparent;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-follow:hover {
    background: var(--navy);
    color: var(--white);
}

/* Article Cards */
.article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h4 {
    padding: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin: 0;
}

/* Extra Articles Hidden State */
.extra-article.hidden {
    display: none !important;
}

/* News Section */
.webinar-promo {
    background: var(--navy);
    color: var(--white);
    position: relative;
    height: 100%;
    min-height: 300px;
}

.webinar-promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0.7;
}

.webinar-promo-content {
    position: relative;
    z-index: 2;
    padding: var(--space-6);
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.news-item:first-child {
    padding-top: 0;
}

.news-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-item-content h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin: 0;
}

/* Conferences List */
.conference-item {
    display: flex;
    border: 1px solid var(--gray-300);
    margin-bottom: var(--space-4);
    background: var(--white);
}

.conf-date-block {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--gray-300);
    padding: var(--space-4);
}

.conf-day {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.conf-month {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
}

.conf-content {
    padding: var(--space-4) var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.conf-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 var(--space-4);
}

.conf-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
}

.conf-actions {
    display: flex;
    gap: var(--space-4);
}

.conf-action {
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
}

.conf-action:hover {
    color: var(--navy);
}

.conf-location {
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 900px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .archives-hero {
        padding: 80px 0 40px;
    }
    .search-bar-container {
        flex-direction: column;
        height: auto;
        gap: 8px;
    }
    .search-dropdown, .search-input {
        border-radius: 4px;
        padding: 12px;
        width: 100%;
        border: 1px solid rgba(0, 0, 0, 0.15); /* Premium crisp border */
    }
    .search-input {
        background: rgba(255, 255, 255, 0.95);
    }
    .search-btn {
        width: 100%;
        padding: 12px;
        border-radius: 4px;
    }
    .search-icon {
        display: none;
    }
    .search-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .news-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
        padding: var(--space-4) 0;
    }
    .news-thumbnail {
        width: 100%;
        height: 160px;
        border-radius: var(--radius-md);
    }
    .news-item-content h4 {
        font-size: var(--text-base);
    }
    .author-card {
        padding: var(--space-4);
    }
}
