/*
╔══════════════════════════════════════════════════════════════════════════════╗
║     ORTHODOX NEWS DISPLAY - CSS STYLES v2.1                                  ║
║     Byzantine-inspired design for Orthodox Albania                           ║
║     https://orthodoxalbania.org                                              ║
╚══════════════════════════════════════════════════════════════════════════════╝
*/

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
    --ond-gold-bright: #FFD700;
    --ond-gold-primary: #D4AF37;
    --ond-gold-deep: #8B7355;
    --ond-gold-light: #E8D5A3;
    --ond-gold-pale: #F5EED6;
    
    --ond-burgundy-deep: #722F37;
    --ond-burgundy-primary: #8B3A42;
    --ond-burgundy-light: #A85A5A;
    
    --ond-charcoal: #2D2D2D;
    --ond-slate: #3D4149;
    --ond-gray: #777777;
    --ond-gray-light: #999999;
    
    --ond-white: #FFFFFF;
    --ond-ivory: #FFFEF9;
    --ond-cream: #F5F0E6;
    --ond-cream-dark: #E8E0D0;
    
    --ond-font-display: 'Playfair Display', 'Times New Roman', serif;
    --ond-font-heading: 'Cormorant Garamond', Georgia, serif;
    --ond-font-body: 'Crimson Pro', 'Noto Serif', Georgia, serif;
    
    --ond-shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --ond-shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --ond-shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --ond-shadow-hover: 0 12px 35px rgba(0,0,0,0.2);
    
    --ond-transition: 0.3s ease;
    --ond-transition-slow: 0.5s ease;
    
    --ond-radius-sm: 2px;
    --ond-radius-md: 4px;
}


/* ============================================================================
   SECTION CONTAINER
   ============================================================================ */

.ond-news-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--ond-cream);
}


/* ============================================================================
   SECTION HEADER
   ============================================================================ */

.ond-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ond-section-title {
    font-family: var(--ond-font-display);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--ond-burgundy-deep);
    margin: 0 0 1rem 0;
    letter-spacing: 0.02em;
}

.ond-title-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ond-ornament-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ond-gold-primary), transparent);
}

.ond-ornament-cross {
    font-size: 1.25rem;
    color: var(--ond-gold-primary);
}


/* ============================================================================
   NEWS GRID - MAIN LAYOUT
   ============================================================================ */

.ond-news-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}


/* ============================================================================
   FEATURED NEWS (LEFT/MAIN)
   ============================================================================ */

.ond-featured-news {
    display: flex;
}

.ond-featured-card {
    flex: 1;
    background: var(--ond-white);
    border-radius: var(--ond-radius-md);
    overflow: hidden;
    box-shadow: var(--ond-shadow-md);
    transition: var(--ond-transition);
    position: relative;
}

.ond-featured-card:hover {
    box-shadow: var(--ond-shadow-hover);
    transform: translateY(-3px);
}

.ond-featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ond-featured-image {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: var(--ond-cream-dark);
}

.ond-featured-img,
.ond-featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transition: transform var(--ond-transition-slow);
}

.ond-featured-card:hover .ond-featured-img,
.ond-featured-card:hover .ond-featured-image img {
    transform: scale(1.05);
}

.ond-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.ond-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ond-burgundy-deep), var(--ond-burgundy-primary));
}

.ond-cross-icon {
    font-size: 5rem;
    color: var(--ond-gold-primary);
    opacity: 0.4;
}

.ond-featured-content {
    padding: 1.5rem 1.75rem 1.75rem;
}

.ond-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ond-featured-date {
    font-family: var(--ond-font-heading);
    font-size: 0.9rem;
    color: var(--ond-gray);
    letter-spacing: 0.02em;
}

.ond-featured-category {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--ond-gold-pale);
    color: var(--ond-burgundy-deep);
    font-family: var(--ond-font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--ond-radius-sm);
}

.ond-featured-title {
    font-family: var(--ond-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--ond-charcoal);
    margin: 0 0 0.875rem 0;
    transition: color var(--ond-transition);
}

.ond-featured-card:hover .ond-featured-title {
    color: var(--ond-burgundy-deep);
}

.ond-featured-excerpt {
    font-family: var(--ond-font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ond-gray);
    margin: 0 0 1.25rem 0;
}

.ond-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ond-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ond-burgundy-primary);
    letter-spacing: 0.02em;
    transition: var(--ond-transition);
}

.ond-featured-card:hover .ond-read-more {
    color: var(--ond-gold-primary);
}

.ond-arrow-icon {
    transition: transform var(--ond-transition);
}

.ond-featured-card:hover .ond-arrow-icon {
    transform: translateX(4px);
}

/* Gold accent line on featured card */
.ond-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ond-gold-deep), var(--ond-gold-primary), var(--ond-gold-deep));
    z-index: 10;
}


/* ============================================================================
   SECONDARY NEWS WRAPPER - WITH SCROLL
   ============================================================================ */

.ond-secondary-wrapper {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    /* Match the height of featured news */
    min-height: 100%;
    height: auto;
}

/* SCROLLABLE CONTAINER WITH GAP */
.ond-secondary-news {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    /* Spread cards evenly to match featured height */
    justify-content: space-between;
    
    scrollbar-width: thin;
    scrollbar-color: var(--ond-gold-primary) var(--ond-cream);
}

.ond-secondary-news::-webkit-scrollbar {
    width: 5px;
}

.ond-secondary-news::-webkit-scrollbar-track {
    background: var(--ond-cream);
    border-radius: 3px;
}

.ond-secondary-news::-webkit-scrollbar-thumb {
    background: var(--ond-gold-primary);
    border-radius: 3px;
}

.ond-secondary-news::-webkit-scrollbar-thumb:hover {
    background: var(--ond-burgundy-primary);
}


/* ============================================================================
   SECONDARY NEWS CARDS - COMPACT & CLEAN
   ============================================================================ */

.ond-secondary-card {
    background: var(--ond-white);
    overflow: hidden;
    transition: var(--ond-transition);
    border-radius: var(--ond-radius-md);
    box-shadow: var(--ond-shadow-sm);
    flex-shrink: 0;
    position: relative;
}

.ond-secondary-card:hover {
    background: var(--ond-ivory);
    box-shadow: var(--ond-shadow-md);
    transform: translateX(3px);
}

.ond-secondary-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 0.6rem 0.75rem;
    gap: 0.7rem;
    align-items: center;
}

.ond-secondary-image {
    flex-shrink: 0;
    width: 75px;
    height: 55px;
    overflow: hidden;
    border-radius: var(--ond-radius-sm);
    background: var(--ond-cream-dark);
}

.ond-secondary-img,
.ond-secondary-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform var(--ond-transition);
}

.ond-secondary-card:hover .ond-secondary-img,
.ond-secondary-card:hover .ond-secondary-image img {
    transform: scale(1.08);
}

.ond-no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ond-burgundy-deep), var(--ond-burgundy-primary));
}

.ond-cross-icon-small {
    font-size: 1.2rem;
    color: var(--ond-gold-primary);
    opacity: 0.5;
}

.ond-secondary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ond-secondary-date {
    display: block;
    font-family: var(--ond-font-heading);
    font-size: 0.65rem;
    color: var(--ond-gray-light);
    margin-bottom: 0.15rem;
    letter-spacing: 0.01em;
}

.ond-secondary-title {
    font-family: var(--ond-font-display);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ond-burgundy-deep);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--ond-transition);
}

.ond-secondary-card:hover .ond-secondary-title {
    color: var(--ond-charcoal);
}

/* Hover accent on secondary cards */
.ond-secondary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ond-gold-primary);
    transform: scaleY(0);
    transition: transform var(--ond-transition);
}

.ond-secondary-card:hover::before {
    transform: scaleY(1);
}


/* ============================================================================
   VIEW ALL BUTTON
   ============================================================================ */

.ond-button-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.ond-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: var(--ond-burgundy-deep);
    color: var(--ond-white) !important;
    font-family: var(--ond-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    border-radius: var(--ond-radius-sm);
    border: 2px solid var(--ond-burgundy-deep);
    box-shadow: var(--ond-shadow-sm);
    transition: var(--ond-transition);
    position: relative;
    overflow: hidden;
}

.ond-view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    transition: left 0.5s ease;
}

.ond-view-all-btn:hover::before {
    left: 100%;
}

.ond-view-all-btn:hover {
    background: var(--ond-white);
    color: var(--ond-burgundy-deep) !important;
    transform: translateY(-2px);
    box-shadow: var(--ond-shadow-md);
}

.ond-btn-arrow {
    transition: transform var(--ond-transition);
}

.ond-view-all-btn:hover .ond-btn-arrow {
    transform: translateX(4px);
}


/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .ond-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ond-featured-image {
        height: 320px;
    }
    
    .ond-secondary-wrapper {
        max-height: none;
    }
    
    .ond-secondary-news {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        overflow-y: visible;
        padding-right: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .ond-news-section {
        padding: 2rem 1rem;
    }
    
    .ond-section-title {
        font-size: 1.75rem;
    }
    
    .ond-section-header {
        margin-bottom: 1.75rem;
    }
    
    .ond-featured-image {
        height: 240px;
    }
    
    .ond-featured-content {
        padding: 1.25rem 1.25rem 1.5rem;
    }
    
    .ond-featured-title {
        font-size: 1.2rem;
    }
    
    .ond-featured-excerpt {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .ond-secondary-wrapper {
        max-height: none;
        overflow: visible;
    }
    
    .ond-secondary-news {
        grid-template-columns: 1fr;
        overflow: visible;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    /* HIDE cards after 3rd on mobile */
    .ond-secondary-card:nth-child(n+4) {
        display: none !important;
    }
    
    .ond-secondary-link {
        padding: 0.5rem 0.65rem;
    }
    
    .ond-secondary-image {
        width: 70px;
        height: 50px;
    }
    
    .ond-secondary-title {
        font-size: 0.75rem;
    }
    
    .ond-view-all-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .ond-featured-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .ond-secondary-image {
        width: 65px;
        height: 48px;
    }
    
    .ond-ornament-line {
        width: 40px;
    }
    
    .ond-featured-image {
        height: 200px;
    }
}


/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ond-featured-card {
    animation: fadeInUp 0.4s ease forwards;
}

.ond-secondary-wrapper {
    animation: fadeInUp 0.4s ease 0.1s forwards;
    opacity: 0;
}


/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .ond-news-section {
        background: white;
        padding: 1rem 0;
    }
    
    .ond-news-grid {
        display: block;
    }
    
    .ond-featured-card,
    .ond-secondary-card {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 0.5rem;
        page-break-inside: avoid;
    }
    
    .ond-secondary-news {
        max-height: none;
        overflow: visible;
    }
    
    .ond-view-all-btn {
        display: none;
    }
}
