/*
Theme Name: Denver Sam
Theme URI: https://denversam.com
Author: sammy
Author URI: https://denversam.com
Description: A private theme for Denver Sam - Your Guide to Mile High Living
Version: 1.0.0
License: Private
Text Domain: denver-sam
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF4057;
    --secondary: #00BFA6;
    --accent: #FFD93D;
    --dark: #1A1A2E;
    --light: #FFFFFF;
    --gray: #F5F5F5;
    --text: #333333;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Skip to Content - ADA */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 1em;
    background-color: var(--dark);
    color: var(--light);
    text-decoration: none;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

/* Navigation */
.nav-wrapper {
    background: var(--light);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-top: 32px; /* Space for admin bar */
}

body:not(.admin-bar) .nav-wrapper {
    margin-top: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
    outline: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
}

.menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF4E6 100%);
    padding: 4rem 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--light);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Page Hero */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF4E6 100%);
    padding: 2.5rem 0;
}

.page-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--dark);
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
    word-wrap: break-word;
}

/* Weather Strip */
.weather-strip {
    background: var(--light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-icon {
    font-size: 3rem;
}

.weather-info {
    text-align: left;
}

.weather-city {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
}

.weather-desc {
    color: #666;
}

.weather-details {
    display: flex;
    gap: 2rem;
}

.weather-detail {
    text-align: center;
}

.weather-detail-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.weather-detail-label {
    font-size: 0.9rem;
    color: #666;
}

/* Main Content Container */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Featured Section */
.featured {
    margin-bottom: 4rem;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--secondary);
    border-radius: 3px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-main {
    grid-column: span 2;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-main:hover,
.featured-main:focus-within {
    transform: scale(1.02);
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--light);
}

.featured-category {
    display: inline-block;
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.featured-main-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-item {
    background: var(--gray);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    height: 100%;
}

.featured-item:hover,
.featured-item:focus-within {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.featured-item-category {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0.5rem 0;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Events Section */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gray);
}

.events-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--gray);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.event-card:hover,
.event-card:focus {
    background: #FFE5E5;
    transform: translateX(10px);
    outline: none;
}

.event-card:focus {
    box-shadow: 0 0 0 3px var(--primary);
}

.event-date {
    background: var(--primary);
    color: var(--light);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    min-width: 80px;
}

.event-date-day {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.event-venue {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.event-time {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* News Section */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gray);
}

.news-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-title::before {
    content: '🔥';
    font-size: 1.5rem;
}

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

.news-item {
    padding: 1.5rem;
    background: var(--gray);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item:hover,
.news-item:focus {
    transform: translateX(10px);
    border-left-color: var(--primary);
    outline: none;
}

.news-item:focus {
    box-shadow: 0 0 0 3px var(--secondary);
}

.news-source {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-headline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.news-time {
    font-size: 0.85rem;
    color: #999;
}

/* Buttons */
.show-more-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: var(--secondary);
    color: var(--light);
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.show-more-btn:hover,
.show-more-btn:focus {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    outline: none;
}

.show-more-btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 64, 87, 0.3);
}

/* Social CTA */
.social-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--light);
    margin: 4rem 0;
}

.social-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-link:hover,
.social-link:focus {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-5px);
    outline: none;
}

.social-link:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    background: var(--light);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.section-number {
    position: absolute;
    top: -20px;
    left: 2.5rem;
    background: var(--primary);
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 64, 87, 0.3);
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.section-content {
    color: #555;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1.5rem;
}

.section-content ul,
.section-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.section-content li {
    margin-bottom: 0.8rem;
}

/* Table of Contents */
.table-of-contents {
    background: var(--gray);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.toc-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title::before {
    content: '📑';
    font-size: 1.3rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-item {
    margin-bottom: 0.8rem;
}

.toc-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.toc-link:hover,
.toc-link:focus {
    background: var(--light);
    color: var(--primary);
    transform: translateX(5px);
    outline: none;
}

.toc-link:focus {
    box-shadow: 0 0 0 3px var(--secondary);
}

.toc-number {
    background: var(--secondary);
    color: var(--light);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF4E6 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-button {
    background: var(--light);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-button:hover,
.contact-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    outline: none;
}

.contact-button:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 10px 20px rgba(0,0,0,0.2);
}

/* Floating shapes */
.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    top: 10%;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 60%;
    left: -100px;
    animation-delay: -10s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 20%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
	list-style: none;

}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--secondary);
    outline: none;
}

.footer-links a:focus {
    text-decoration: underline;
}

/* WordPress Specific */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--gray);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main {
        grid-column: span 1;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .weather-strip {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-details {
        justify-content: center;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        width: 100%;
    }
    
    .page-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .toc-link {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .nav-wrapper,
    .menu-toggle,
    .show-more-btn,
    .social-cta,
    .contact-card,
    .shape {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    .main-content,
    .page-content {
        padding: 0;
    }
}

/* Latest Posts Grid Shortcode Styles */
.latest-posts-grid-widget {
    margin: 20px auto !important;
    border-radius: 4px;
    overflow: hidden;
}

.latest-posts-grid-widget .grid-container {
    display: flex !important;
    flex-wrap: wrap;
    margin: -10px !important;
}

.latest-posts-grid-widget .grid-item {
    width: 50% !important;
    padding: 10px !important;
    box-sizing: border-box;
}

.latest-posts-grid-widget .grid-item a {
    display: block !important;
    border-radius: 4px !important;
    text-align: center;
    padding: 15px !important;
    transition: transform 0.3s ease !important;
    text-decoration: none;
    color: #333;
    height: 100%;
    flex-direction: column !important;
}

.latest-posts-grid-widget .grid-item a:hover {
    transform: scale(1.02) !important;
}

.latest-posts-grid-widget .grid-item-image {
    overflow: hidden;
    margin-bottom: 10px;
    height: 200px;
    border-radius: 6px;
}

.latest-posts-grid-widget .grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-posts-grid-widget .grid-item-title {
    font-weight: bold;
    margin-top: auto;
    margin-bottom: 0;
}

/* Responsive: one column on mobile */
@media (max-width: 767px) {
    .latest-posts-grid-widget .grid-item {
        width: 100% !important;
    }
}

/* Theme-specific overrides for Latest Posts Grid */
.featured .latest-posts-grid-widget {
    margin: 0 !important;
}

.featured .latest-posts-grid-widget .grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin: 0 !important;
}

.featured .latest-posts-grid-widget .grid-item {
    width: 100% !important;
    padding: 0 !important;
}

/* Special styling only when there are 3 or more posts */
.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(n+3) {
    grid-column: span 2;
}

.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(n+3) .grid-item-image {
    height: 400px !important;
}

/* When there are only 1 or 2 posts, use regular grid */
.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(1),
.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(2) {
    grid-column: span 1;
}

.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(1) .grid-item-image,
.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(2) .grid-item-image {
    height: 200px !important;
}

.featured .latest-posts-grid-widget .grid-item a {
    background: var(--gray) !important;
    border-radius: 20px !important;
    overflow: hidden;
    padding: 0 !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
    border: 3px solid transparent !important;
}

.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(n+3) a {
    background: transparent !important;
    position: relative;
}

.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(n+3) .grid-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--light) !important;
    font-size: 2rem !important;
    margin: 0 !important;
}

.featured .latest-posts-grid-widget .grid-item:not(:first-child) .grid-item-title,
.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(-n+2) .grid-item-title {
    padding: 1.5rem;
    font-size: 1.2rem !important;
    color: var(--dark) !important;
}

.featured .latest-posts-grid-widget .grid-item a:hover {
    transform: translateY(-5px) !important;
    border-color: var(--secondary) !important;
}

.featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(n+3) a:hover {
    transform: scale(1.02) !important;
    border-color: transparent !important;
}

@media (max-width: 1024px) {
    .featured .latest-posts-grid-widget .grid-container {
        grid-template-columns: 1fr !important;
    }
    
    .featured .latest-posts-grid-widget .grid-item:first-child {
        grid-column: span 1 !important;
    }
}

@media (max-width: 767px) {
    .featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(n+3) .grid-item-image {
        height: 250px !important;
    }
    
    .featured .latest-posts-grid-widget .grid-item:first-child:nth-last-child(n+3) .grid-item-title {
        font-size: 1.5rem !important;
    }
}

