/* Latest Page Styles */
.latest-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* Mobile Portrait */
@media screen and (max-width: 1300px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Latest Footer Styles */
.latest-footer {
    padding: 2rem 0;
    margin-top: 2rem;
}

.latest-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    gap: 1.5rem;
}

/* Footer Excerpt */
.latest-footer .footer-excerpt {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease forwards;
}

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

.latest-footer .footer-excerpt p {
    margin: 0;
}

/* Contact Links */
.latest-footer .eoc-contact-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto;
}

.latest-footer .eoc-contact-links a,
.latest-footer .eoc-contact-links a.eoc-contact-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    position: relative;
    color: #333333;
}

.latest-footer .eoc-contact-links a::after,
.latest-footer .eoc-contact-links a.eoc-contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    transition: width 0.3s ease;
    transform-origin: left;
    background-color: #333333;
}

.latest-footer .footer-copyright,
.latest-footer .site-info {
    max-width: 800px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.latest-footer .footer-copyright p,
.latest-footer .site-info p {
    margin: 0;
}

/* Footer Links */
.latest-footer a,
.latest-footer a:visited,
.latest-footer a:hover,
.latest-footer a:active {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.latest-footer a:hover {
    opacity: 0.7;
}

/* Light Theme Footer */
.light-theme .latest-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
}

.light-theme .latest-footer a,
.light-theme .latest-footer a:visited,
.light-theme .latest-footer a:hover,
.light-theme .latest-footer a:active {
    color: #333333;
}

.light-theme .latest-footer .footer-copyright,
.light-theme .latest-footer .site-info {
    color: #666666;
}

/* Light Theme Contact Links */
.light-theme .latest-footer .eoc-contact-links a,
.light-theme .latest-footer .eoc-contact-links a:visited,
.light-theme .latest-footer .eoc-contact-links a:hover,
.light-theme .latest-footer .eoc-contact-links a:active,
.light-theme .latest-footer .eoc-contact-links a:focus,
.light-theme .latest-footer .eoc-contact-links a.eoc-contact-link,
.light-theme .latest-footer .eoc-contact-links a.eoc-contact-link:visited,
.light-theme .latest-footer .eoc-contact-links a.eoc-contact-link:hover,
.light-theme .latest-footer .eoc-contact-links a.eoc-contact-link:active,
.light-theme .latest-footer .eoc-contact-links a.eoc-contact-link:focus {
    color: #333333 !important;
}

.light-theme .latest-footer .eoc-contact-links a::after,
.light-theme .latest-footer .eoc-contact-links a.eoc-contact-link::after {
    background-color: #333333;
}

.light-theme .latest-footer .eoc-contact-links a:hover,
.light-theme .latest-footer .eoc-contact-links a.eoc-contact-link:hover {
    opacity: 0.7;
}

/* Dark Theme Footer */
.dark-theme .latest-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #ffffff;
    color: #ffffff;
}

.dark-theme .latest-footer a,
.dark-theme .latest-footer a:visited,
.dark-theme .latest-footer a:hover,
.dark-theme .latest-footer a:active {
    color: #ffffff;
}

.dark-theme .latest-footer .footer-copyright,
.dark-theme .latest-footer .site-info {
    color: #ffffff;
}

/* Dark Theme Contact Links */
.dark-theme .latest-footer .eoc-contact-links a,
.dark-theme .latest-footer .eoc-contact-links a:visited,
.dark-theme .latest-footer .eoc-contact-links a:hover,
.dark-theme .latest-footer .eoc-contact-links a:active,
.dark-theme .latest-footer .eoc-contact-links a:focus,
.dark-theme .latest-footer .eoc-contact-links a.eoc-contact-link,
.dark-theme .latest-footer .eoc-contact-links a.eoc-contact-link:visited,
.dark-theme .latest-footer .eoc-contact-links a.eoc-contact-link:hover,
.dark-theme .latest-footer .eoc-contact-links a.eoc-contact-link:active,
.dark-theme .latest-footer .eoc-contact-links a.eoc-contact-link:focus {
    color: #ffffff !important;
}

.dark-theme .latest-footer .eoc-contact-links a::after,
.dark-theme .latest-footer .eoc-contact-links a.eoc-contact-link::after {
    background-color: #ffffff;
}

.dark-theme .latest-footer .eoc-contact-links a:hover,
.dark-theme .latest-footer .eoc-contact-links a.eoc-contact-link:hover {
    opacity: 0.7;
}

/* Light Theme Footer Excerpt */
.light-theme .latest-footer .footer-excerpt {
    color: #333333;
}

/* Dark Theme Footer Excerpt */
.dark-theme .latest-footer .footer-excerpt {
    color: #ffffff;
}
