/*
Theme Name: Figma Modern Starter
Theme URI: https://example.com/
Author: Your Name
Description: A lightweight, Figma-inspired starter theme built to work seamlessly with Elementor.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: figma-modern-starter
*/

/* Core CSS Variables - Modern Palette */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --primary-color: #4f46e5;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius: 16px;
    --container-width: 1200px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Base Wrapper Grid */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex-grow: 1;
}

/* Header & Strict Logo Adjustments */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Constrains Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo .custom-logo-link {
    display: inline-block;
}

.site-logo img {
    max-height: 55px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.logo-link {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

/* Navigation - Strict Reset of Bullets and Padding */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    list-style: none;
}

.main-navigation a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
}

/* Mobile Toggle Hamburger icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Header Responsiveness layout */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }

    .main-navigation.active {
        max-height: 350px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.25rem;
    }

    .menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Multiple Post Archives / Grid styling */
.archive-container {
    max-width: var(--container-width);
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.archive-header-wrapper {
    margin-bottom: 3.5rem;
    max-width: 650px;
}

.archive-page-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.archive-page-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.post-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.modern-post-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.modern-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.05);
}

.card-thumbnail-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-post-card:hover .card-thumbnail-wrapper img {
    transform: scale(1.03);
}

.card-body-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.card-title a {
    color: var(--text-main);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.card-read-more {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-color);
}

.card-read-more .arrow-symbol {
    transition: var(--transition);
}

.modern-post-card:hover .card-read-more .arrow-symbol {
    transform: translateX(4px);
}

.archive-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.archive-pagination a, .archive-pagination .current {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.archive-pagination .current {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Beautiful Single Post Layout Details */
.single-post-wrapper {
    max-width: 780px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.post-hero-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-badge-category {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-badge-category a {
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
    padding: 0.35rem 1rem;
    border-radius: 50px;
}

.post-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.post-meta-strip {
    display: inline-flex;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 3rem;
    margin-top: 0.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.post-featured-hero-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    margin-bottom: 4rem;
}

.post-featured-hero-image img {
    width: 100%;
}

.post-body-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.post-body-content p {
    margin-bottom: 2rem;
}

.post-body-content h2, .post-body-content h3 {
    color: var(--text-main);
    font-weight: 700;
    margin: 3rem 0 1.25rem;
    letter-spacing: -0.02em;
}

.post-body-content h2 { font-size: 1.85rem; }
.post-body-content h3 { font-size: 1.45rem; }

.post-bottom-nav {
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding-top: 2rem;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
}

/* Modern Dynamic Footer Layout */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Strips default widget bullets entirely */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-column li {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-column a {
    color: var(--text-muted);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer fallback static menus styling */
.footer-fallback-menu, .contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list a {
    color: var(--text-muted);
}

/* Footer widget alignment corrections */
.footer-widget-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Bottom Strip Details */
.footer-bottom {
    padding-top: 2rem;
}

.footer-bottom-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile Breakpoint fixes */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .archive-page-title {
        font-size: 2.25rem;
    }

    .post-main-title {
        font-size: 2.25rem;
    }

    .post-meta-strip {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
}