/* =============================================
 *   FULL CSS FILE - LATEST UPDATES WITHOUT WHITE BORDER
 *   ============================================= */

/* 1. RESET & GLOBAL STYLES */
:root {
    --primary-blue: #3498db;
    --primary: #3498db;           /* Alias for consistency */

    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --text-main: #2c3e50;         /* Alias matching text-dark */

    --white: #ffffff;
    --bg-light: #f9fbfc;
    --bg-blue: #ebf5fb;
    --bg-site: #f9fbfc;           /* Alias matching bg-light */

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --radius: 12px;               /* Alias matching border-radius */

    --transition: all 0.3s ease;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f5f7;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* 2. HEADER STYLES */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.blue-text {
    color: var(--primary-blue);
}

.desktop-nav a {
    margin-left: 20px;
    font-size: 15px;
    color: var(--text-muted);
}

.desktop-nav a.active, .desktop-nav a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

/* 3. HERO FEATURE SECTION */
.hero-feature {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-image {
    flex: 1.5;
    min-width: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 8px;
    display: block;
}

.hero-content {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-tag {
    background: var(--bg-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 32px;
    color: #1e272e;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h1:hover {
    color: var(--primary-blue);
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}

.meta {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 30px;
}

.btn-main {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    width: fit-content;
}
.btn-main:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* 4. MAIN LAYOUT GRID (Content + Sidebar) */
.main-layout-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.content-column {
    flex: 2.5; /* Takes up about 75% width */
}

.sidebar {
    flex: 1; /* Takes up about 25% width */
}

.section-title {
    font-size: 28px;
    color: #1e272e;
    margin-bottom: 30px;
    border-bottom: 2px solid #f4f5f7;
    padding-bottom: 10px;
}

/* 5. CARDS GRID STYLES */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.post-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.post-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.tags-wrapper {
    margin-top: 20px;
    padding-left: 10px;
}

.primary-tag {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 10px;
}

.sub-tag {
    background-color: #f0f2f5;
    color: #5e6c7d;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
}

.more-tags {
    background-color: #f0f2f5;
    color: #5e6c7d;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.post-card h3 {
    font-size: 19px;
    line-height: 1.4;
    color: #1e272e;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 15px 0 15px;
}

.post-card h3:hover {
    color: var(--primary-blue);
}

.post-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 15px 0 15px;
}

.post-meta {
    font-size: 13px;
    color: #95a5a6;
    margin-top: auto;
    padding: 0 15px 15px 15px;
}

/* 6. SECTION HEADER STYLES (Both Latest Updates & Sidebar) */

.info-section {
    background-color: transparent; /* NO WHITE BACKGROUND */
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 30px;
}

/* This is the UPDATED "Latest Updates" - no white card, just styled text */
.latest-updates-section h3 {
    font-size: 16px;
    color: #1e272e;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid  var(--primary-blue); /* Blue vertical line - MATCHES sidebar! */
    text-transform: uppercase;
    font-weight: 600;
}

/* This is the sidebar sections - white card background */
.side-block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.side-block h3 {
    font-size: 16px;
    color: #1e272e;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid  var(--primary-blue); /* Blue vertical line - MATCHES sidebar! */
    text-transform: uppercase;
    font-weight: 600;
}

/* Category Links */
.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f4f5f7;
    color: #5e6c7d;
}

.category-link:hover {
    color: var(--primary-blue);
}

.category-link:last-child {
    border-bottom: none;
}

.count {
    background-color: #eef4f9;
    color: var(--primary-blue);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* About Me Section */
.avatar-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content {
    font-size: 14px;
    color: #5e6c7d;
}

.about-content p {
    margin-bottom: 12px;
}

/* 7. FOOTER STYLES */
.main-footer {
    background-color: #222222;
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 25px;
    margin-bottom: 20px;
}

.footer-left h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-left p {
    color: #95a5a6;
    font-size: 14px;
}

.footer-right h5 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-right ul {
    list-style: none;
}

.footer-right li {
    margin-bottom: 8px;
}

.footer-right a {
    color: #bdc3c7;
}

.footer-right a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #333;
}

/* 8. FONT FACES */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('../css/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../css/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../css/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('../css/inter-v20-latin-700.woff2') format('woff2');
}

/* 9. BLOG POST VIEW STYLE */
/* Ensure the Article Content has a "Frame" look (White background, shadow) */
.article-frame {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.post-main-image {
    margin-bottom: 30px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 18px;
    line-height: 1.75;
    color: #2c3e50;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #1e272e;
}

.article-body p {
    margin-bottom: 25px;
}
	
.article-body ul li {
    margin-left: 30px;
}

.post-meta {
    margin-bottom: 20px;
    display: block;
}

.meta-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
}

.article-meta-details {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 20px;
    border-top: 1px solid #f0f2f5;
    padding-top: 15px;
}

.tags-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.post-tag-pill {
    background-color: var(--bg-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.article-body blockquote {
    border-left: 4px solid var(--primary-blue);
    background: transparent;
    padding: 30px;                  /* More padding for quotes */
    font-style: italic;
    margin: 40px 0;
    border-radius: 8px;             /* Rounded corners */
}

/* 10. EXTERNAL LINK ICONS */
a:not([href*="ruckhofer.info"]):not([href^="#"]):not([href^="/"]){
    color: var(--primary-blue);
}
a:not([href*="ruckhofer.info"]):not([href^="#"]):not([href^="/"]):not(.no-icon)::after {
    content: '\2197';               /* ↗ Arrow */
    display: inline-block;
    margin-left: 5px;
    font-size: 0.9em;
}
a:hover:not([href*="ruckhofer.info"]):not([href^="#"]):not([href^="/"]):not(.no-icon) {
    text-decoration: underline;
}

/* 11. PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    padding: 20px 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid transparent;
}

.page-numbers:hover:not(.current):not(.dots) {
    background: var(--bg-blue);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.page-numbers.current {
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    width: fit-content;
}

.page-numbers.prev, .page-numbers.next {
    background: var(--white);
    border: 1px solid #eee;
}

/* 12. RESPONSIVE MEDIA QUERIES */

@media (max-width: 992px) {
    .hero-feature {
        flex-direction: column;
    }

    .hero-image img {
        max-width: 100%;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .desktop-nav a {
        margin-left: 0;
        margin-right: 15px;
    }

    .main-layout-grid {
        flex-direction: column;
    }

    .content-column, .sidebar {
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}
