/**
 * Dr Dimitrakopoulos Impressive Articles
 * Custom CSS for beautiful article display with large images
 */

/* ============================================
   GENERAL ARTICLE STYLING - ALL MODULES
   ============================================ */

/* Target all Newspaper theme article modules */
.dr-impressive-articles-enabled .td-module-container {
    margin-bottom: 40px !important;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dr-impressive-articles-enabled .td-module-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   FEATURED IMAGES - LARGE & IMPRESSIVE
   ============================================ */

/* Make all article images larger */
.dr-impressive-articles-enabled .td-module-thumb {
    position: relative;
    overflow: hidden;
    height: 350px !important;
    width: 100% !important;
}

.dr-impressive-articles-enabled .td-module-thumb img {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.dr-impressive-articles-enabled .td-module-thumb:hover img {
    transform: scale(1.05);
}

/* Remove any max-width restrictions */
.dr-impressive-articles-enabled .td-module-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   ARTICLE TITLES - BIGGER & BOLDER
   ============================================ */

.dr-impressive-articles-enabled .td-module-title {
    margin: 20px 20px 10px 20px !important;
}

.dr-impressive-articles-enabled .td-module-title a {
    font-size: 26px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    display: block;
    transition: color 0.3s ease;
}

.dr-impressive-articles-enabled .td-module-title a:hover {
    color: #e91e63 !important;
}

/* ============================================
   ARTICLE EXCERPTS - VISIBLE & READABLE
   ============================================ */

.dr-impressive-articles-enabled .td-excerpt {
    display: block !important;
    margin: 10px 20px 20px 20px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #666 !important;
}

/* ============================================
   META INFO - DATE, AUTHOR, CATEGORY
   ============================================ */

.dr-impressive-articles-enabled .td-module-meta-info {
    padding: 0 20px 20px 20px !important;
    font-size: 14px !important;
}

.dr-impressive-articles-enabled .td-post-date,
.dr-impressive-articles-enabled .td-post-author-name,
.dr-impressive-articles-enabled .td-post-category {
    font-size: 14px !important;
    color: #999 !important;
}

/* ============================================
   GRID LAYOUT - RESPONSIVE
   ============================================ */

/* Desktop: 2 columns */
@media (min-width: 1024px) {
    .dr-impressive-articles-enabled .td-pb-row .td-pb-span6 {
        width: 48% !important;
        float: left !important;
        margin-right: 4% !important;
    }
    
    .dr-impressive-articles-enabled .td-pb-row .td-pb-span6:nth-child(2n) {
        margin-right: 0 !important;
    }
}

/* Tablet: 1 column */
@media (min-width: 768px) and (max-width: 1023px) {
    .dr-impressive-articles-enabled .td-module-thumb {
        height: 300px !important;
    }
    
    .dr-impressive-articles-enabled .td-module-thumb img {
        height: 300px !important;
    }
    
    .dr-impressive-articles-enabled .td-module-title a {
        font-size: 24px !important;
    }
}

/* ============================================
   MOBILE - SMARTPHONE OPTIMIZED
   ============================================ */

@media (max-width: 767px) {
    /* Larger images on mobile */
    .dr-impressive-articles-enabled .td-module-thumb {
        height: 280px !important;
    }
    
    .dr-impressive-articles-enabled .td-module-thumb img {
        height: 280px !important;
    }
    
    /* Bigger titles on mobile */
    .dr-impressive-articles-enabled .td-module-title a {
        font-size: 22px !important;
        margin: 15px 15px 10px 15px !important;
    }
    
    /* Readable excerpt on mobile */
    .dr-impressive-articles-enabled .td-excerpt {
        font-size: 15px !important;
        margin: 10px 15px 15px 15px !important;
    }
    
    /* Adjust meta info on mobile */
    .dr-impressive-articles-enabled .td-module-meta-info {
        padding: 0 15px 15px 15px !important;
    }
    
    /* Full width on mobile */
    .dr-impressive-articles-enabled .td-module-container {
        margin-bottom: 30px !important;
    }
}

/* ============================================
   RECENT ARTICLES SECTION SPECIFIC
   ============================================ */

/* Target the "ΔΙΑΒΑΣΤΕ ΤΑ ΠΡΟΣΦΑΤΑ ΑΡΘΡΑ" section */
.dr-impressive-articles-enabled .td-block-title-wrap {
    margin-bottom: 30px !important;
}

.dr-impressive-articles-enabled .td-block-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #e91e63 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BLOG POST LISTING
   ============================================ */

/* Make blog post listing impressive */
.dr-impressive-articles-enabled .td-category-grid .td-module-container,
.dr-impressive-articles-enabled .td-pb-span8 .td-module-container {
    margin-bottom: 50px !important;
}

/* ============================================
   CATEGORY PAGES
   ============================================ */

.dr-impressive-articles-enabled .td-category .td-module-container {
    margin-bottom: 40px !important;
}

/* ============================================
   ARCHIVE PAGES
   ============================================ */

.dr-impressive-articles-enabled .archive .td-module-container {
    margin-bottom: 40px !important;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.dr-impressive-articles-enabled .search .td-module-container {
    margin-bottom: 40px !important;
}

/* ============================================
   HOVER EFFECTS & ANIMATIONS
   ============================================ */

.dr-impressive-articles-enabled .td-module-container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ============================================
   READ MORE BUTTON (if exists)
   ============================================ */

.dr-impressive-articles-enabled .td-read-more {
    display: inline-block;
    margin: 10px 20px 20px 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.dr-impressive-articles-enabled .td-read-more:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
