/* ------------------------------------
   GLOBAL VARIABLES
------------------------------------ */
:root {
    --primary: #0A66C2;
    --accent: #FFCD2E;
    --bg: #F7F9FC;
    --card: #FFFFFF;
    --muted: #6B7280;
    --radius: 12px;
    --maxw: 1100px;
}

/* ------------------------------------
   DEFAULT GLOBAL STYLES
------------------------------------ */
body {
    margin: 0;
    background: var(--bg);
    font-family: Inter, sans-serif;
    color: #1b1f24;
}

.container {
    width: 90%;
    max-width: var(--maxw);
    margin: auto;
}

/* Utility */
.muted {
    color: var(--muted);
}

/* ------------------------------------
   HEADER & NAVIGATION
------------------------------------ */
header {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #0f7ad6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* ------------------------------------
   HOMEPAGE — HERO SECTION
------------------------------------ */
.hero {
    margin-top: 25px;
    padding: 40px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(10,102,194,0.08), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.hero h1 {
    font-family: Poppins, sans-serif;
    font-size: 34px;
    margin: 0;
}

.hero p {
    color: var(--muted);
}

.hero button {
    padding: 10px 14px;
    margin-right: 8px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.tip-box {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: 220px;
}

/* ------------------------------------
   CATEGORY CARDS
------------------------------------ */
.categories {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-left: 75px;
}

.cat {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ------------------------------------
   LATEST POSTS GRID
------------------------------------ */
.posts-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.post {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
}

.post img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.post-info {
    padding: 14px;
}

/* ------------------------------------
   QUOTE BANNER
------------------------------------ */
.quote-box {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(90deg, rgba(255,205,46,0.2), rgba(10,102,194,0.10));
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
}

/* ------------------------------------
   FEATURED SECTIONS
------------------------------------ */
.featured {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.featured-box {
    flex: 1;
    min-width: 260px;
}

.f-card {
    background: #fff;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ------------------------------------
   NEWSLETTER
------------------------------------ */
.newsletter {
    margin: 40px 0;
    padding: 25px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.newsletter input {
    padding: 14px;
    width: 70%;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.newsletter button {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ------------------------------------
   BLOG POST PAGES
------------------------------------ */
.post-box {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.post-title {
    font-family: Poppins, sans-serif;
    font-size: 32px;
}

.post-subtitle {
    font-size: 17px;
    color: var(--muted);
}

.hero-img {
    width: 100%;
    border-radius: var(--radius);
    margin: 20px 0;
}

.tip {
    background: rgba(10,102,194,0.08);
    padding: 14px;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    margin: 20px 0;
}

/* ------------------------------------
   FOOTER
------------------------------------ */
footer {
    margin-top: 40px;
    padding: 25px 0;
    text-align: center;
    color: var(--muted);
}

/* ------------------------------------
   RESPONSIVE STYLE
------------------------------------ */
@media (max-width: 768px) {
    .hero {
        padding: 25px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .newsletter input {
        width: 100%;
        margin-bottom: 12px;
    }

    .newsletter button {
        width: 100%;
    }
}
