/**
 * ============================================================================
 * LATEST NEWS & GUIDES SECTION - NAMECHEAP STYLE
 * ============================================================================
 * Colorful announcement cards with hover effects
 * Responsive: 3 cards desktop, 2 tablet, 1 mobile
 */

/* ========================================================================
   SECTION CONTAINER
   ======================================================================== */

.news-teaser-section {
    padding: 80px 0;
    background: #ffffff;
}

/* ========================================================================
   SECTION HEADER
   ======================================================================== */

.news-teaser-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-teaser-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.news-teaser-subtitle {
    font-size: 1.15rem;
    color: #666;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================================================
   CARDS GRID - CSS Grid Layout
   ======================================================================== */

.news-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* ========================================================================
   INDIVIDUAL CARD STYLING
   ======================================================================== */

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================================================
   CARD HEADER - Colored Background with Icon
   ======================================================================== */

.news-card-header {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.news-card-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-5%, 5%) rotate(3deg);
    }
}

.news-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.news-card-icon i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================================================
   CARD COLOR VARIATIONS
   ======================================================================== */

/* Blue Card */
.news-card-blue .news-card-header {
    background: linear-gradient(135deg, #a8d8ea 0%, #7ec8e3 100%);
}

.news-card-blue .news-card-icon {
    background: rgba(63, 136, 197, 0.35);
}

.news-card-blue .news-card-icon i {
    color: #2c5f8a;
}

/* Green Card */
.news-card-green .news-card-header {
    background: linear-gradient(135deg, #b8e6c1 0%, #8ed1a0 100%);
}

.news-card-green .news-card-icon {
    background: rgba(60, 145, 100, 0.35);
}

.news-card-green .news-card-icon i {
    color: #2d7a4c;
}

/* Orange Card */
.news-card-orange .news-card-header {
    background: linear-gradient(135deg, #ffd4a8 0%, #ffba78 100%);
}

.news-card-orange .news-card-icon {
    background: rgba(230, 126, 34, 0.35);
}

.news-card-orange .news-card-icon i {
    color: #c45c00;
}

/* Purple Card */
.news-card-purple .news-card-header {
    background: linear-gradient(135deg, #d4b8e8 0%, #b899d4 100%);
}

.news-card-purple .news-card-icon {
    background: rgba(142, 68, 173, 0.35);
}

.news-card-purple .news-card-icon i {
    color: #6b3a8c;
}

/* ========================================================================
   ALL BUTTONS - ORANGE THEME COLOR
   ======================================================================== */

.news-card-btn {
    background: #ff6311 !important;
}

.news-card-btn:hover {
    background: #e55a0f !important;
}

/* ========================================================================
   CARD BODY - Title & Excerpt
   ======================================================================== */

.news-card-body {
    padding: 25px 25px 15px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 15px;
    flex: 1;
}

.news-card-date {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-date i {
    font-size: 0.8rem;
}

/* ========================================================================
   CARD FOOTER - CTA Button
   ======================================================================== */

.news-card-footer {
    padding: 0 25px 25px 25px;
}

.news-card-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

/* ========================================================================
   VIEW ALL BUTTON
   ======================================================================== */

.news-teaser-cta {
    text-align: center;
}

.news-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    border: 2px solid #ff6311;
    border-radius: 10px;
    color: #ff6311 !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.news-view-all-btn:hover {
    background: #ff6311;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 99, 17, 0.3);
}

.news-view-all-btn i {
    transition: transform 0.3s ease;
}

.news-view-all-btn:hover i {
    transform: translateX(5px);
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

/* Tablet: 2 cards per row */
@media (max-width: 991px) {
    .news-teaser-section {
        padding: 60px 0;
    }

    .news-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .news-teaser-title {
        font-size: 2rem;
    }

    .news-card-header {
        height: 140px;
    }

    .news-card-icon {
        width: 70px;
        height: 70px;
    }

    .news-card-icon i {
        font-size: 1.8rem;
    }
}

/* Mobile: 1 card per row */
@media (max-width: 576px) {
    .news-teaser-section {
        padding: 50px 0;
    }

    .news-teaser-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-teaser-header {
        margin-bottom: 35px;
    }

    .news-teaser-title {
        font-size: 1.75rem;
    }

    .news-teaser-subtitle {
        font-size: 1rem;
    }

    .news-card-header {
        height: 130px;
    }

    .news-card-body {
        padding: 20px 20px 10px 20px;
    }

    .news-card-footer {
        padding: 0 20px 20px 20px;
    }

    .news-card-title {
        font-size: 1.15rem;
    }

    .news-card-excerpt {
        font-size: 0.9rem;
    }

    .news-card-btn {
        padding: 12px 18px;
    }

    .news-view-all-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================
   ANIMATION ENHANCEMENTS
   ======================================================================== */

/* Stagger entrance animation */
.news-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.news-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .news-card {
        animation: none;
        opacity: 1;
    }

    .news-card-header::before {
        animation: none;
    }
}

/* ========================================================================
   DARK MODE SUPPORT (Optional)
   ======================================================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    .news-teaser-section {
        background: #1a1a2e;
    }
    
    .news-teaser-title {
        color: #ffffff;
    }
    
    .news-teaser-subtitle {
        color: #aaa;
    }
    
    .news-card {
        background: #252540;
    }
    
    .news-card-title {
        color: #ffffff;
    }
    
    .news-card-excerpt {
        color: #bbb;
    }
    */
}