/*
Theme Name: Alria Hub Pro Ultimate
Theme URI: https://test.linkfly.in
Author: Aman Alria
Description: Optimized Fast Lightweight Version
Version: 25.0
*/

/* =========================================
   GLOBAL RESET
========================================= */

:root {
    --primary: #10b981;
    --primary-dark: #047857;
    --bg-light: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Screen Reader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   HEADER FINAL FIX
========================================= */

.glass-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo left proper alignment */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.logo span {
    color: var(--primary);
}

/* Desktop Menu */
.nav-links ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Hidden by Default */
#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* MOBILE FIX */
@media (max-width: 900px) {

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        background: #fff;
        border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        display: none;   /* IMPORTANT */
        flex-direction: column;
        padding: 15px;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    #mobile-menu-btn {
        display: block;
    }
}

/* =========================================
   HERO
========================================= */

.hero {
    min-height: 220px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* =========================================
   POSTS GRID
========================================= */

.grid-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding-bottom: 40px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title + Excerpt Lock */
.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Author Fix */
.author-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-author-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Remove NEW Badge */
.new-badge {
    display: none !important;
}

/* =========================================
   ABOUT SECTION
========================================= */

.pre-footer,
.about-section {
    text-align: center;
    padding: 50px 20px;
}

.pf-author-img,
.about-section img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
}

.about-section a,
.contact-btn {
    display: inline-block;
    margin-top: 20px;
}

/* Hide Newsletter */
.newsletter-box {
    display: none !important;
}

/* =========================================
   FOOTER
========================================= */

.master-footer {
    background: #10b981;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.master-footer ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

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

.footer-bottom {
    background: #064e3b;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================
   PROGRESS BAR (NO CLS)
========================================= */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399);
    z-index: 9999;
    pointer-events: none;
    transform-origin: left;
    transform: scaleX(0);
}