/* =========================================================
   Our Unfinished Story - Main Stylesheet
   File: /assets/css/ous-style.css
========================================================= */

/* =========================================================
   0. OUS Brand Tokens
   Social media aligned palette: navy, cream, gold, parchment,
   soft blue-gray, and natural green.
========================================================= */

:root {
    --ous-navy: #0b2239;
    --ous-navy-soft: #12324f;
    --ous-cream: #fdf6e3;
    --ous-parchment: #f7f1e3;
    --ous-gold: #b8863b;
    --ous-gold-soft: #d2ad69;
    --ous-blue-gray: #6f8794;
    --ous-green: #2d4a43;
    --ous-text: #263241;
    --ous-muted: #6b7280;
    --ous-white: #ffffff;
    --ous-border: rgba(11, 34, 57, 0.12);
    --ous-shadow: 0 12px 32px rgba(11, 34, 57, 0.08);
}

/* =========================================================
   1. Global Page Foundation
========================================================= */

body {
    background:
        radial-gradient(circle at top right, rgba(210, 173, 105, 0.16), transparent 34rem),
        linear-gradient(180deg, #fffaf0 0%, #f5f3ec 58%, #efe8d8 100%);
    color: var(--ous-text);
}

/* Optional: gentle texture or image, very subtle */
body.has-texture {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.85), rgba(245,243,236,0.95)),
        url("/assets/img/paper-texture.jpg") center/cover fixed no-repeat;
}


/* =========================================================
   2. Navigation / Branding
========================================================= */

.navbar {
    background: var(--ous-navy) !important;
    border-bottom: 3px solid var(--ous-gold);
}

.ous-navbar-brand {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .9rem;
    color: var(--ous-cream) !important;
}

.ous-subtitle {
    font-size: .8rem;
    opacity: .8;
    color: rgba(253, 246, 227, 0.82);
}

.navbar a,
.navbar .nav-link {
    color: rgba(253, 246, 227, 0.9) !important;
}

.navbar a:hover,
.navbar .nav-link:hover {
    color: var(--ous-gold-soft) !important;
}

/* =========================================================
   Navbar Dropdown Menu Fix
========================================================= */

.navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid var(--ous-border);
    box-shadow: var(--ous-shadow);
}

.navbar .dropdown-menu .dropdown-item {
    color: var(--ous-navy) !important;
    font-weight: 500;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: var(--ous-cream);
    color: var(--ous-navy) !important;
}

.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    background-color: var(--ous-navy);
    color: var(--ous-cream) !important;
}


/* =========================================================
   3. Main Layout
========================================================= */

.ous-main-wrapper {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}


/* =========================================================
   4. Reusable Text / Badges
========================================================= */

.ous-badge-category {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
}


/* =========================================================
   5. Homepage Start Cards
========================================================= */

.start-card-highlight {
    border: 1px solid rgba(13, 110, 253, 0.25) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.start-card-highlight .card-body {
    position: relative;
}


/* =========================================================
   6. Topic Buttons / Pills
========================================================= */

.topic-btn {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.topic-btn:hover {
    background-color: var(--ous-navy);
    color: var(--ous-cream);
    border-color: var(--ous-navy);
}


/* =========================================================
   7. Article Blockquotes
========================================================= */

article blockquote {
    margin: 2.25rem 0;
    padding: 1.4rem 1.6rem;
    background: rgba(253, 246, 227, 0.68);
    border: 1px solid rgba(184, 134, 59, 0.20);
    border-left: 5px solid var(--ous-gold);
    border-radius: 0.95rem;
    color: var(--ous-text);
    font-size: 1.03rem;
    line-height: 1.85;
    font-style: italic;
    box-shadow: 0 0.35rem 1.25rem rgba(11, 34, 57, 0.06);
}

article blockquote::before,
article blockquote::after {
    content: none !important;
}

article blockquote p {
    margin: 0 0 0.85rem;
}

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

article blockquote cite {
    display: block;
    margin-top: 0.85rem;
    color: var(--ous-navy);
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
}

article blockquote cite::before {
    content: "— ";
    color: var(--ous-gold);
}

article blockquote a {
    color: var(--ous-navy);
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

article blockquote a:hover,
article blockquote a:focus {
    color: var(--ous-gold);
}


/* =========================================================
   8. Article Reading Experience
========================================================= */

article h2 {
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #374151;
}

article p {
    line-height: 1.85;
}

article ul,
article ol {
    line-height: 1.85;
}


/* =========================================================
   9. Card Refinement
========================================================= */

.card,
.rounded-3.shadow-sm.bg-white {
    border-color: var(--ous-border);
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 134, 59, 0.28);
    box-shadow: var(--ous-shadow) !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5 {
    color: var(--ous-navy);
}

.card a {
    color: var(--ous-navy);
    font-weight: 600;
}

.card a:hover {
    color: var(--ous-gold);
}


/* =========================================================
   10. Homepage / Landing Hero Refinement
========================================================= */

.ous-home-hero,
.ous-brand-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(253, 246, 227, 0.96), rgba(255, 255, 255, 0.92)),
        radial-gradient(circle at top right, rgba(184, 134, 59, 0.22), transparent 28rem);
    border: 1px solid var(--ous-border);
    box-shadow: var(--ous-shadow);
}

.ous-brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 34, 57, 0.05), transparent 45%),
        radial-gradient(circle at bottom left, rgba(111, 135, 148, 0.16), transparent 22rem);
    pointer-events: none;
}

.ous-brand-hero > * {
    position: relative;
    z-index: 1;
}

.ous-section-label {
    color: var(--ous-gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}


/* =========================================================
   11. Footer
========================================================= */

footer {
    background: var(--ous-navy);
    color: rgba(253, 246, 227, 0.82);
    border-top: 3px solid var(--ous-gold);
}

footer a {
    color: rgba(253, 246, 227, 0.9);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--ous-gold-soft) !important;
}


/* =========================================================
   12. Responsive Adjustments
========================================================= */

@media (max-width: 768px) {
    article blockquote {
        padding: 1.75rem 1.5rem;
        font-size: 1.02rem;
    }

    article blockquote::before {
        font-size: 4rem;
        top: -8px;
        left: 12px;
    }

    .ous-main-wrapper {
        padding-top: 1rem;
    }
}

/* =========================================================
   13. Brand Buttons
========================================================= */

.btn-primary {
    background-color: var(--ous-navy);
    border-color: var(--ous-navy);
    color: var(--ous-cream);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ous-navy-soft);
    border-color: var(--ous-navy-soft);
    color: var(--ous-cream);
}

.btn-outline-primary {
    color: var(--ous-navy);
    border-color: var(--ous-navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--ous-navy);
    border-color: var(--ous-navy);
    color: var(--ous-cream);
}

.btn-outline-secondary {
    color: var(--ous-navy);
    border-color: rgba(11, 34, 57, 0.25);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--ous-navy);
    border-color: var(--ous-navy);
    color: var(--ous-cream);
}

/* =========================================================
   14. Global Links
========================================================= */

a {
    color: var(--ous-navy);
}

a:hover {
    color: var(--ous-gold);
}

/* =========================================================
   15. Social Profile Icons
========================================================= */

.ous-social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fdf6e3 !important;
    background: rgba(253, 246, 227, 0.08);
    border: 1px solid rgba(210, 173, 105, 0.28);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ous-social-icon i {
    color: inherit !important;
    font-size: 0.95rem;
    line-height: 1;
}

.ous-social-icon:hover,
.ous-social-icon:focus {
    color: #0b2239 !important;
    background: #d2ad69;
    border-color: #d2ad69;
    transform: translateY(-1px);
}

.ous-social-icon:hover i,
.ous-social-icon:focus i {
    color: #0b2239 !important;
}

@media (max-width: 576px) {
    .ous-share-button {
        width: 100%;
        justify-content: center;
    }

    .ous-social-profiles {
        justify-content: flex-start;
    }
}

/* ........ */
article a[rel="author"]:hover,
article a[rel="author"]:focus {
    color: var(--ous-gold) !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18em;
}

/* =========================================================
   Breadcrumbs
========================================================= */

.ous-breadcrumb {
    flex-wrap: nowrap;
    overflow: hidden;
}

.ous-breadcrumb .breadcrumb-item {
    white-space: nowrap;
}

.ous-breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ous-breadcrumb-current span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

@media (max-width: 575.98px) {
    .ous-breadcrumb-current {
        max-width: 58vw;
    }
}