/**
 * Premium Post Templates Stylesheet
 * Enhances News, University, and Article single post templates
 * with modern UI/UX design elements
 */

/* ============================================
   Premium Card Styling
   ============================================ */

.premium-post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(5, 41, 99, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-post-card:hover {
    box-shadow: 0 12px 48px rgba(5, 41, 99, 0.15);
    transform: translateY(-2px);
}

/* Gradient Border for Featured Content */
.premium-post-card.featured {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #052963 0%, #FBAC1B 100%) border-box;
}

/* ============================================
   Typography Enhancements
   ============================================ */

.premium-post-card .entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-post-card .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.premium-post-card .entry-content p {
    margin-bottom: 1.5rem;
}

.premium-post-card .entry-content h2,
.premium-post-card .entry-content h3 {
    color: #052963;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ============================================
   Premium Badges & Meta
   ============================================ */

.premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #FBAC1B 0%, #ff9800 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 172, 27, 0.3);
    transition: all 0.3s ease;
}

.premium-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 172, 27, 0.4);
}

.premium-badge.featured {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(251, 172, 27, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(251, 172, 27, 0.6);
    }
}

.premium-badge i {
    margin-right: 0.5rem;
}

/* Meta Information Styling */
.premium-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(5, 41, 99, 0.1);
    margin-bottom: 2rem;
}

.premium-meta span {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.premium-meta i {
    color: #FBAC1B;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* University Meta Badges */
.university-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.1) 0%, rgba(5, 41, 99, 0.05) 100%);
    border: 1px solid rgba(5, 41, 99, 0.2);
    color: #052963;
    transition: all 0.3s ease;
}

.university-meta-badge:hover {
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 41, 99, 0.3);
}

.university-meta-badge i {
    margin-right: 0.5rem;
}

/* ============================================
   Featured Image Enhancements
   ============================================ */

.premium-featured-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.premium-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.premium-featured-image:hover img {
    transform: scale(1.05);
}

.premium-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(5, 41, 99, 0.3), transparent);
    pointer-events: none;
}

/* ============================================
   Glassmorphism Sidebar
   ============================================ */

.premium-sidebar-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(5, 41, 99, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.premium-sidebar-card:hover {
    box-shadow: 0 12px 40px rgba(5, 41, 99, 0.15);
}

.premium-sidebar-header {
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-sidebar-header i {
    font-size: 1.3rem;
}

/* Sidebar List Items */
.premium-list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(5, 41, 99, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-list-item:last-child {
    border-bottom: none;
}

.premium-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #FBAC1B 0%, #ff9800 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.premium-list-item:hover {
    background: rgba(251, 172, 27, 0.05);
    padding-left: 2rem;
}

.premium-list-item:hover::before {
    transform: scaleY(1);
}

.premium-list-item a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.3s ease;
}

.premium-list-item:hover a {
    color: #052963;
}

.premium-list-item .item-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-list-item .item-date i {
    color: #FBAC1B;
}

/* ============================================
   External Link Card
   ============================================ */

.premium-external-link {
    background: linear-gradient(135deg, rgba(251, 172, 27, 0.1) 0%, rgba(251, 172, 27, 0.05) 100%);
    border: 2px solid rgba(251, 172, 27, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.premium-external-link:hover {
    background: linear-gradient(135deg, rgba(251, 172, 27, 0.15) 0%, rgba(251, 172, 27, 0.08) 100%);
    border-color: rgba(251, 172, 27, 0.5);
    transform: translateX(5px);
}

.premium-external-link strong {
    color: #052963;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.75rem;
}

.premium-external-link a {
    color: #FBAC1B;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.premium-external-link a:hover {
    color: #ff9800;
    gap: 0.75rem;
}

/* ============================================
   Category & Tag Styling
   ============================================ */

.premium-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.premium-taxonomy strong {
    color: #052963;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.premium-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(5, 41, 99, 0.08);
    color: #052963;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(5, 41, 99, 0.15);
}

.premium-tag:hover {
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 41, 99, 0.3);
}

/* ============================================
   University Logo Styling
   ============================================ */

.premium-university-logo {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.03) 0%, rgba(251, 172, 27, 0.03) 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.premium-university-logo img {
    max-height: 180px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.premium-university-logo:hover img {
    transform: scale(1.05);
}

/* ============================================
   CTA Button Enhancement
   ============================================ */

.premium-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(5, 41, 99, 0.3);
}

.premium-cta-button:hover {
    background: linear-gradient(135deg, #0a4299 0%, #052963 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5, 41, 99, 0.4);
}

.premium-cta-button i {
    transition: transform 0.3s ease;
}

.premium-cta-button:hover i {
    transform: translateX(3px);
}

/* ============================================
   Fade-in Animation
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991px) {
    .premium-post-card .entry-title {
        font-size: 2rem;
    }

    .premium-meta {
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .premium-post-card .entry-title {
        font-size: 1.75rem;
    }

    .premium-post-card .entry-content {
        font-size: 1rem;
    }

    .premium-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .premium-sidebar-card {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   Blockquote Enhancement
   ============================================ */

.premium-post-card .entry-content blockquote {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.05) 0%, rgba(251, 172, 27, 0.05) 100%);
    border-left: 4px solid #FBAC1B;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.premium-post-card .entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(251, 172, 27, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ============================================
   Archive Page Styling
   ============================================ */

/* Archive Header */
.archive-header {
    padding: 2rem;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.archive-title i {
    background: linear-gradient(135deg, #FBAC1B 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.archive-meta {
    margin-top: 1.5rem;
}

/* Premium Archive Cards */
.premium-archive-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(5, 41, 99, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(5, 41, 99, 0.2);
}

/* Archive Card Image */
.archive-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.1) 0%, rgba(251, 172, 27, 0.1) 100%);
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-archive-card:hover .archive-card-image img {
    transform: scale(1.1);
}

.archive-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(5, 41, 99, 0.4), transparent);
}

/* Archive Card Content */
.archive-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.archive-card-title a {
    color: #052963;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.archive-card-title a:hover {
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Archive Card Meta */
.archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(5, 41, 99, 0.1);
}

.archive-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
}

.archive-card-meta i {
    color: #FBAC1B;
}

/* Archive Card Excerpt */
.archive-card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Archive Card Link */
.archive-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #052963;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.archive-card-link:hover {
    color: #FBAC1B;
    gap: 0.75rem;
}

.archive-card-link i {
    transition: transform 0.3s ease;
}

.archive-card-link:hover i {
    transform: translateX(4px);
}

/* Premium Pagination */
.premium-pagination {
    text-align: center;
}

.premium-pagination .pagination {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.premium-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    background: rgba(5, 41, 99, 0.08);
    color: #052963;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(5, 41, 99, 0.15);
}

.premium-pagination .page-numbers:hover,
.premium-pagination .page-numbers.current {
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 41, 99, 0.3);
}

.premium-pagination .page-numbers.dots {
    background: transparent;
    border: none;
}

.premium-pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Archive Cards */
@media (max-width: 767px) {
    .archive-title {
        font-size: 2rem;
    }

    .archive-card-image {
        height: 180px;
    }

    .archive-card-title {
        font-size: 1.2rem;
    }

    .premium-archive-card {
        margin-bottom: 1.5rem;
    }
}