/* =================================================================== */
/* ==================== ATIPIK BLOG PAGE STYLES ====================== */
/* =================================================================== */

/* Import global variables from variables.css */

/* ===== GLOBAL STYLES ===== */
:root {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.smooth-transition {
    transition: all 0.3s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ===== HEADER ===== */
header {
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--brand-blue-900) 0%, var(--brand-blue) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://atipikgroup.com/wp-content/uploads/2019/02/pattern-rev-img-01.jpg');
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-actions {
    margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--brand-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s var(--ease-smooth);
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--brand-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 35, 90, 0.2);
}

.btn-secondary {
    background: var(--brand-yellow);
    color: var(--brand-blue);
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--brand-yellow-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 204, 0, 0.3);
}

/* ===== BLOG CARDS ===== */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 22, 110, 0.05);
    transition: all 0.4s var(--ease-smooth);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 35, 90, 0.1);
}

.blog-category {
    background: var(--brand-gold-light);
    color: var(--brand-blue-900);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-item.active {
    background: var(--brand-blue);
    color: white;
}

.pagination-item:not(.active):not(.disabled):hover {
    background: #f1f5f9;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-gold);
    color: var(--brand-blue-900);
}

/* ===== NEWSLETTER ===== */
.newsletter-form {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
    border-radius: 12px;
    padding: 32px;
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to right, var(--brand-blue), var(--brand-blue-light));
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://atipikgroup.com/wp-content/uploads/2019/02/pattern-rev-img-01.jpg');
    opacity: 0.05;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
    background: var(--brand-blue-900);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s var(--ease-smooth);
}

#back-to-top:hover {
    background: var(--brand-blue-light);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .blog-content {
        padding-inline: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.85rem, 6vw, 2.4rem);
    }

    .blog-content {
        padding-inline: 0;
    }

    .blog-card {
        margin-inline: auto;
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(1.8rem, 6.4vw, 2.35rem);
    }

    .blog-card img {
        height: 200px;
        object-fit: cover;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}