@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bs-primary: #1a385e;
    --bs-primary-rgb: 26, 56, 94;
    --bs-secondary: #097a7e;
    --bs-secondary-rgb: 9, 122, 126;
    --bs-warning: #c09f58; /* Gold/Bronze */
    --bs-warning-rgb: 192, 159, 88;
    --bs-body-bg: #f8fafc;
    --bs-body-color: #334155;
    --bs-font-sans-serif: 'Outfit', sans-serif;
    --bs-link-color: var(--bs-secondary);
    --bs-link-hover-color: var(--bs-primary);
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: var(--bs-font-sans-serif);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--bs-primary);
    font-weight: 600;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
}
a:hover {
    color: var(--bs-link-hover-color);
}

.navbar {
    background-color: var(--bs-primary) !important;
}

.navbar-brand img {
    height: 40px;
    background-color: #dfdfdf;
    padding: 3px;
    border-radius: 5px;
}

.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.text-accent {
    color: var(--bs-warning) !important;
}

.bg-warning {
    background-color: var(--bs-warning) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.btn-accent {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: white;
}
.btn-accent:hover {
    background-color: #a88849;
    border-color: #a88849;
    color: white;
}

/* --- Article Typography & Markdown Styling --- */
.article-header-bg {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0c1f38 100%);
    color: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(26, 56, 94, 0.15);
}

.article-header-bg h1 {
    color: white !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 2.5rem;
}

.article-header-bg .meta-info {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.article-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bs-primary);
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Blockquotes */
.article-content blockquote {
    background-color: rgba(9, 122, 126, 0.05);
    border-left: 4px solid var(--bs-secondary);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--bs-primary);
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Blocks */
.article-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.75rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.article-content code {
    background-color: rgba(26, 56, 94, 0.05);
    color: var(--bs-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Images & Media */
.article-content img,
.article-content iframe {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 2rem 0;
    height: auto;
}

.article-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
}

/* Tables */
.article-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.article-content th,
.article-content td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: white;
}

.article-content th {
    background-color: var(--bs-primary);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.article-content tr:last-child td {
    border-bottom: none;
}

