/* ==========================================================================
   Minimalist Modern Design Tokens & Layout Config
   ========================================================================== */
:root {
    --bg-primary: #fcfcfc;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --accent-color: #cf2e2e;
    --accent-hover: #a02020;
    --border-light: #ececec;
    --max-width: 1100px;
    --font-stack: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Header Architecture
   ========================================================================== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 2.5rem 1rem;
    text-align: center;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #111111;
}

.site-title a:hover {
    text-decoration: none;
}

.site-tagline {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Structural Wrapper (Flex Grid Engine)
   ========================================================================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==========================================================================
   Content Presentation Components
   ========================================================================== */
.entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: 4px;
}

.entry-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
}

.entry-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111111;
}

.hero-banner {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.entry-body h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: #111111;
}

.cta-text {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center !important;
    background: #fff5f5;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
}

/* Modern Before/After Layout (Responsive Grid Engine) */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin: 2rem auto;
    max-width: 640px;
}

.gallery-item {
    text-align: center;
    border: 1px solid var(--border-light);
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.keywords-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3rem;
    border-top: 1px dashed var(--border-light);
    padding-top: 1rem;
    text-align: left !important;
}

/* ==========================================================================
   Sidebar Sidebar Widgets
   ========================================================================== */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #111111;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.widget-body {
    text-align: center;
}

.sidebar-img {
    max-width: 100%;
    height: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0;
    color: #555555;
}

.sidebar-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
    padding-left: 4px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Media Breakpoints (Responsive Layout Engine)
   ========================================================================== */
@media (min-width: 768px) {
    .site-wrapper {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .entry-card {
        padding: 1.5rem;
    }
    .site-title {
        font-size: 1.6rem;
    }
}