/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://publiclythinking.com/
 Description:  A premium, professional child theme for GeneratePress.
 Author:       Antigravity
 Author URI:   https://google.com
 Template:     generatepress
 Version:      2.3.0
 Text Domain:  generatepress-child
*/

:root {
    /* Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-main: #1A1A1A;
    --text-secondary: #666666;
    --text-meta: #999999;
    --accent-blue: #0066CC;
    --accent-blue-dark: #0052A3;
    --border-color: #E0E0E0;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;

    /* Layout */
    --max-content-width: 1200px;
    --max-grid-width: 1200px;
    --header-height: 80px;
    --header-height-scrolled: 60px;

    /* Shadows */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-grid-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

/* Header & Navigation */
.site-header {
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 0.5px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-scrolled {
    height: var(--header-height-scrolled);
    box-shadow: var(--shadow-sm);
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    background: var(--accent-blue);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--accent-blue);
}

/* HOME HERO SECTION (MODERN PLATFORM VERSION) */
.home-hero {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: var(--space-xxl);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero-badge a {
    background: var(--accent-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -1.5px;
}

.hero-excerpt {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 650px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

/* 3-COLUMN POST GRID */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0 auto;
    border-radius: 2px;
}

.posts-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: var(--space-xxl);
}

.card-item {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.card-item__image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-item:hover .card-item__image img {
    transform: scale(1.1);
}

.card-item__category a {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 102, 204, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.card-item__body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-item__title {
    font-size: 24px;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.card-item__title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.card-item__title a:hover {
    color: var(--accent-blue);
}

.card-item__description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

.card-item__meta {
    font-size: 13px;
    color: var(--text-meta);
}

.card-item__more {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-item__more .arrow {
    transition: transform 0.2s;
}

.card-item__more:hover .arrow {
    transform: translateX(5px);
}

/* GRID PAGINATION / CTA */
.grid-pagination {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    min-width: 220px;
    position: relative;
}

.btn-load-more .btn-text {
    transition: opacity 0.3s ease;
}

.btn-load-more .btn-spinner {
    position: absolute;
    font-size: 20px;
}

.btn-load-more:hover {
    background: var(--accent-blue);
    color: white;
}

/* HOME NEWSLETTER SECTION */
.home-newsletter {
    background: var(--bg-light);
    padding: var(--space-xxl) 0;
    margin-bottom: var(--space-xxl);
}

.newsletter-inner {
    text-align: center;
    max-width: 800px;
}

.newsletter-title {
    font-size: 32px;
    margin-bottom: var(--space-xs);
}

.newsletter-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.newsletter-form input {
    flex-grow: 1;
    max-width: 400px;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--accent-blue);
}

.newsletter-form button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.newsletter-form button:hover {
    background: var(--accent-blue-dark);
}

/* FOOTER */
.site-footer {
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    color: #cccccc;
    padding: 64px 0 32px;
    border-top: 1px solid #333333;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-branding .logo-icon {
    background: var(--accent-blue);
    color: #fff;
    font-weight: 900;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.footer-branding .site-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #999999;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #aaaaaa;
    font-size: 14px;
    transition: 0.2s;
    text-decoration: none;
}

.footer-menu a:hover {
    color: white;
    padding-left: 4px;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: #222222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.15);
    color: white;
}

.social-link.facebook:hover {
    background: #3b5998;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.social-link.instagram:hover {
    background: #e1306c;
}

.social-link.youtube:hover {
    background: #ff0000;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 32px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: #777777;
}

.bottom-links {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #777777;
}

.bottom-links a {
    color: inherit;
    text-decoration: none;
}

.bottom-links a:hover {
    color: white;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1024px) {
    .posts-grid-three {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        height: 500px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-excerpt {
        font-size: 16px;
    }

    .posts-grid-three {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        max-width: 100%;
    }
}