/**
 * Bible Teaching Program - Brand Styles
 * "Truth without compromise. Grace without merit."
 *
 * Brand Colors:
 * - Ancient Ink: #1C1D37 (deep navy - primary)
 * - Heritage Gold: #CBA378 (metallic gold - accent)
 * - Living Sage: #7F9A83 (muted green - growth)
 * - Parchment White: #F9F7F2 (background)
 */

/* ============================================
   CSS VARIABLES - BRAND COLORS
   ============================================ */

:root {
    /* Primary Brand Colors */
    --ancient-ink: #1C1D37;
    --heritage-gold: #CBA378;
    --living-sage: #7F9A83;
    --parchment: #F9F7F2;

    /* Supporting Colors */
    --warm-cream: #FAF8F5;
    --text-dark: #1C1D37;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
}

/* ============================================
   BRAND COLOR UTILITIES
   ============================================ */

.bg-ancient-ink { background-color: var(--ancient-ink); }
.bg-heritage-gold { background-color: var(--heritage-gold); }
.bg-living-sage { background-color: var(--living-sage); }
.bg-parchment { background-color: var(--parchment); }

.text-ancient-ink { color: var(--ancient-ink); }
.text-heritage-gold { color: var(--heritage-gold); }
.text-living-sage { color: var(--living-sage); }

.border-heritage-gold { border-color: var(--heritage-gold); }
.border-ancient-ink { border-color: var(--ancient-ink); }

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */

/* Body text - using Inter for readability */
.content-area {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Headings - using Playfair Display for authority */
.content-area h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ancient-ink);
    font-family: 'Playfair Display', Georgia, serif;
}

.content-area h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--ancient-ink);
    border-bottom: 2px solid var(--heritage-gold);
    padding-bottom: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.content-area h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--ancient-ink);
    font-family: 'Playfair Display', Georgia, serif;
}

.content-area h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: 'Inter', system-ui, sans-serif;
}

/* Paragraphs */
.content-area p {
    margin-bottom: 1rem;
}

/* Lists */
.content-area ul,
.content-area ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-area li {
    margin-bottom: 0.5rem;
}

.content-area ul {
    list-style-type: disc;
}

.content-area ol {
    list-style-type: decimal;
}

/* Nested lists */
.content-area ul ul,
.content-area ol ol,
.content-area ul ol,
.content-area ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes - Scripture references */
.content-area blockquote {
    border-left: 4px solid var(--heritage-gold);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #525252;
    background-color: var(--parchment);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.content-area blockquote strong {
    font-style: normal;
    color: var(--ancient-ink);
}

/* Links */
.content-area a {
    color: var(--heritage-gold);
    text-decoration: underline;
    text-decoration-color: rgba(203, 163, 120, 0.4);
    text-underline-offset: 2px;
}

.content-area a:hover {
    color: var(--ancient-ink);
    text-decoration-color: var(--ancient-ink);
}

/* Bold and italic */
.content-area strong,
.content-area b {
    font-weight: 600;
    color: var(--ancient-ink);
}

.content-area em,
.content-area i {
    font-style: italic;
}

/* Tables */
.content-area table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.content-area th {
    background-color: var(--ancient-ink);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
    border: 1px solid var(--ancient-ink);
    font-family: 'Inter', system-ui, sans-serif;
}

.content-area td {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    vertical-align: top;
}

.content-area tr:nth-child(even) {
    background-color: var(--parchment);
}

/* Images */
.content-area img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

/* Code */
.content-area code {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--parchment);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* ============================================
   SPECIAL CONTENT BOXES
   ============================================ */

/* Scripture/Key Verse Box */
.scripture-box {
    background: linear-gradient(to bottom right, var(--parchment), #F5F0E8);
    border: 2px solid var(--heritage-gold);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.scripture-box .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--heritage-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.scripture-box .reference {
    font-weight: 600;
    color: var(--ancient-ink);
}

.scripture-box .text {
    color: var(--text-dark);
    font-style: italic;
}

/* Theme/Key Point Box - Living Sage accent */
.theme-box {
    background-color: rgba(127, 154, 131, 0.1);
    border: 1px solid var(--living-sage);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.theme-box strong {
    color: var(--living-sage);
}

.theme-box span {
    color: #5A7A5E;
}

/* Story/Illustration Box */
.story-box {
    background-color: rgba(203, 163, 120, 0.1);
    border: 1px solid var(--heritage-gold);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.story-box h4 {
    font-weight: 600;
    color: var(--ancient-ink);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.story-box p {
    color: var(--text-dark);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.story-box p:last-child {
    margin-bottom: 0;
}

/* Note/Warning Box */
.note-box {
    background-color: rgba(203, 163, 120, 0.15);
    border-left: 4px solid var(--heritage-gold);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.note-box strong {
    color: var(--ancient-ink);
}

/* ============================================
   NAVIGATION ELEMENTS
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    font-family: 'Inter', system-ui, sans-serif;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumbs a:hover {
    color: var(--heritage-gold);
}

.breadcrumbs span {
    color: white;
}

/* ============================================
   SIDEBAR ELEMENTS
   ============================================ */

.sidebar-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ancient-ink);
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.sidebar-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Lesson Navigation List */
.lesson-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    font-family: 'Inter', system-ui, sans-serif;
}

.lesson-nav-item:hover {
    background-color: var(--parchment);
}

.lesson-nav-item.active {
    background-color: var(--ancient-ink);
    color: white;
}

.lesson-nav-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-nav-title {
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.15s;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-primary {
    background-color: var(--ancient-ink);
    color: white;
}

.btn-primary:hover {
    background-color: #2A2B4A;
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: var(--parchment);
    border-color: var(--heritage-gold);
}

.btn-gold {
    background-color: var(--heritage-gold);
    color: var(--ancient-ink);
}

.btn-gold:hover {
    background-color: #B8936A;
}

/* ============================================
   CARDS (for course listings, etc.)
   ============================================ */

.course-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.course-card:hover {
    box-shadow: 0 10px 30px rgba(28, 29, 55, 0.1);
    transform: translateY(-4px);
    border-color: var(--heritage-gold);
}

.course-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ancient-ink);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.course-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Resource Card (homepage style) */
.resource-card {
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(28, 29, 55, 0.1);
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

footer {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================
   WORD/OFFICE CLEANUP
   ============================================ */

.MsoNormal,
.MsoBodyText,
.MsoPlainText {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.SpellE,
.GramE {
    background: none;
    border: none;
}
