/* Root variables */
:root {
    --primary: #0d6efd;
    --bg-light: #f9f9f9;
    --text-muted: #6c757d;
    --card-radius: 12px;
}

/* Base styles */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #333;
}

.container {
    max-width: 1140px;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
}

.nav-link {
    color: #555;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Hero section (Home) */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(to right, #f0f2fa, #f9f9f9);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
}

.hero p {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--text-muted);
}

/* Small hero (Articles) */
.hero-small {
    padding: 3rem 0;
    text-align: center;
    background: none;
}

.hero-small h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-small p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Tabs */
.nav-tabs .nav-link {
    color: #555;
    border: none;
    margin: 0 5px;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 500;
    border-bottom: 2px solid var(--primary);
}

/* Template Cards */
.template-item {
    transition: transform 0.2s ease;
}

.template-item:hover {
    transform: translateY(-4px);
}

.template-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.template-img {
    max-height: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #f8f9fa;
    display: block;
    padding: 10px;
}

.card-body {
    padding: 1.25rem;
}

.badge-tag {
    background: #0d6efd; /* primary */
    color: #fff;
    font-size: 0.7rem;
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
}

/* Buttons */
.btn-outline-primary {
    font-weight: 500;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-browse {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-browse:hover {
    background-color: #0b5ed7;
    text-decoration: none;
}

/* Why Section */
.why-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.why-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Blog Page */
.blog-title {
    text-align: center;
    margin: 3rem 0 2rem;
}

.blog-post {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.blog-post h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-post p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Grid layout for guide cards */
.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Article content */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.article h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    font-weight: 600;
}

.article p {
    margin-bottom: 1rem;
    color: #444;
}

/* Ensure gap between strong and button */
.article p strong+br+.btn-browse {
    margin-top: 0.75rem;
    display: inline-block;
}

/* CV Template Preview Page */
.template-title {
    text-align: center;
    margin: 3rem 0 1.5rem;
}

.template-title h1 {
    font-size: 2rem;
    font-weight: 600;
}

.template-title p {
    color: var(--text-muted);
}

.template-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.download-box {
    text-align: center;
    margin-bottom: 2rem;
}

.download-box h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Ads Placeholder (Ezoic) */
.ezoic-ad {
    background: #f0f4ff;
    border: 2px dashed #007bff;
    color: #007bff;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Footer */
footer {
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eaeaea;
    text-align: center;
}
/*HIDE AD PLACEHOLDERS*/
.ezoic-ad {
    display: none;
}
