/*
Theme Name: poppastring2
Description: Clean Bootstrap 5 blog theme for poppastring.com
Author: Mark Downie
*/

/* ---------------------------------------------------------------------------
   Typography
--------------------------------------------------------------------------- */
html {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 28px;
    height: 100%;
    scroll-padding-top: 130px;
}

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.1px;
    line-height: 1.8;
    color: #051922;
    overflow-x: hidden;
}


figure img {
     width: 100%;
     height: auto;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    margin: 0.75rem 0 0.50rem 0;
    color: #051922;
}

h1, .h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 4rem;
}

@media only screen and (max-width: 767.96px) {
    h1, .h1 { font-size: 3rem; line-height: 3.25rem; }
}

@media only screen and (max-width: 575.96px) {
    h1, .h1 { font-size: 2.5rem; line-height: 2.75rem; }
}

h2, .h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 3.25rem;
}

@media only screen and (max-width: 575.96px) {
    h2, .h2 { font-size: 2rem; line-height: 2.25rem; }
}

h3, .h3 {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 2.25rem;
    margin: 0.75rem 0 0.25rem 0;
}

h4, .h4 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.75rem;
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
}

p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.1px;
    line-height: 1.8;
    color: #051922;
    margin: 0 0 1.25rem 0;
}

p:last-child {
    margin: 0;
}

dl, ol {
    margin-top: -1rem;
    margin-bottom: 0.5rem;
}

ul {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.4rem;
    font-weight: 400;
}


blockquote {
  border-left: 4px solid #741e8b;
  background: #f9f5ff;
  padding: 12px 16px;
  margin: 16px 0;
}


/* ---------------------------------------------------------------------------
   Colors & Links
--------------------------------------------------------------------------- */
a {
    color: #741e8b;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #741e8b;
    text-decoration: none;
    font-weight: 500;
}

.orange-text {
    color: #741e8b;
}

/* ---------------------------------------------------------------------------
   Navbar
--------------------------------------------------------------------------- */
.navbar {
    background:
        radial-gradient(circle at 85% 0%, rgba(116, 30, 139, 0.18), transparent 32%),
        #051922;
    padding: 1rem 0;
}

.navbar .container {
    position: relative;
}

.navbar .navbar-brand {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    flex-direction: column;
}

.navbar .navbar-brand img {
    width: 52px;
    height: auto;
    max-width: 52px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-brand-name {
    width: 100%;
    color: rgba(255, 255, 255, 0.88);
    font-family: "Open Sans", sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.navbar .nav-link {
    color: #fff;
    font-weight: 300;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.navbar .navbar-nav .nav-link {
    display: block;
    padding: 15px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #741e8b;
}

.navbar .navbar-toggler {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.navbar .btn-primary {
    background-color: #741e8b;
    border-color: #741e8b;
}

.navbar .btn-primary:hover {
    background-color: #5a1669;
    border-color: #5a1669;
}

@media only screen and (min-width: 992px) {
    .navbar .navbar-collapse > .navbar-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar .navbar-collapse > .btn {
        margin-left: auto;
    }
}

@media only screen and (max-width: 991.98px) {
    .navbar .navbar-toggler {
        position: absolute;
        top: 50%;
        right: 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-50%);
    }
}

/* ---------------------------------------------------------------------------
   Hero Carousel
--------------------------------------------------------------------------- */
.carousel-item {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-color: #051922;
    position: relative;
    z-index: 1;
}

.carousel-item:after {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #051922;
    content: "";
    z-index: 0;
    opacity: 0.6;
}

.carousel-item .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.carousel-item .row {
    width: 100%;
}

.hero-text-tablecell {
    padding: 2rem 0;
}

.hero-text-tablecell .subtitle {
    color: white;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 7px;
    font-size: 15px;
}

.hero-text-tablecell h1,
.hero-text-tablecell h2 {
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.3;
}

.homepage-bg-1 {
    background-image: url('hero-bg.jpg');
}

.homepage-bg-2 {
    background-image: url('hero-bg-2.jpg');
}

.homepage-bg-3 {
    background-image: url('hero-bg-3.jpg');
}

nav[aria-label="Jump to category"] a.badge:hover {
     font-weight: 700 !important;
 }

/* ---------------------------------------------------------------------------
   Breadcrumb / Subtitle
--------------------------------------------------------------------------- */
.breadcrumb-text p {
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.breadcrumb-text h1 a {
    color: #fff;
}

.sub-title-block {
    background-color: #051922;
    padding: 10px 0;
}

.sub-title-block .breadcrumb-text h1,
.sub-title-block .breadcrumb-text p {
    color: #fff;
}

.subtitle-h1 {
    color: #fff;
}

/* ---------------------------------------------------------------------------
   Blog Cards (Summary View)
--------------------------------------------------------------------------- */
.single-latest-news {
    display: flex;
    height: calc(100% - 30px);
    flex-direction: column;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px #ddd;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.single-latest-news:hover {
    box-shadow: 0 12px 30px rgba(5, 25, 34, 0.16);
    transform: translateY(-4px);
}

.post-card-media {
    position: relative;
    min-height: 240px;
    aspect-ratio: 16 / 10;
    background-color: #051922;
    overflow: hidden;
}

.post-card-media::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(5, 25, 34, 0.08) 20%,
        rgba(5, 25, 34, 0.88) 100%
    );
    content: "";
}

.post-card-media .card-img-top {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.single-latest-news:hover .post-card-media .card-img-top {
    transform: scale(1.025);
}

.post-card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1.5rem;
}

.post-card-overlay h2 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.3;
}

.post-card-overlay h2 a {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.post-card-overlay h2 a:hover,
.post-card-overlay h2 a:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.news-text-box {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #707b80;
    font-size: 0.95rem;
}

.post-card-meta span {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.post-card-meta i {
    color: #741e8b;
}

p.excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.post-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

a.read-more-btn {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: #051922;
    transition: 0.3s;
    font-weight: 700;
    text-transform: lowercase;
}

a.read-more-btn:hover,
a.read-more-btn:focus {
    color: #741e8b;
}

.post-card-comments a {
    color: #9a58aa;
    font-size: 0.95rem;
}

.post-card-comments a:hover,
.post-card-comments a:focus {
    color: #741e8b;
}

@media only screen and (max-width: 575.96px) {
    .post-card-media {
        min-height: 220px;
    }

    .post-card-overlay {
        padding: 1.25rem;
    }

    .post-card-overlay h2 {
        font-size: 1.45rem;
    }
}

/* ---------------------------------------------------------------------------
   About Page
   Static-page sanitization removes class and id attributes, so these selectors
   intentionally follow the semantic structure of content/static/about.html.
--------------------------------------------------------------------------- */
body > main {
    padding: 2rem 0.75rem 4rem;
    background-color: #f6f7f8;
}

body > main > header {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 80% 20%, rgba(116, 30, 139, 0.42), transparent 34%),
        linear-gradient(135deg, #051922 0%, #102d38 100%);
    border-radius: 12px;
    color: #fff;
}

body > main > header > div,
body > main > div {
    width: 100%;
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}

body > main > header > div > div {
    max-width: 900px;
}

body > main > header p:first-child,
body > main > div section:nth-child(2) > p:first-child,
body > main > div section:nth-child(4) > p:first-child,
body > main > div section:nth-child(3) > div:first-child p {
    margin-bottom: 0.75rem;
    color: #9a58aa;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

body > main > header p:first-child {
    color: #d6a7e2;
}

body > main > header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    line-height: 1.05;
}

body > main > header h1 + p {
    max-width: 760px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    line-height: 1.55;
}

body > main > header h1 + p + div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

body > main > header h1 + p + div > div {
    padding-left: 1rem;
    border-left: 3px solid #9a58aa;
}

body > main > header h1 + p + div strong,
body > main > header h1 + p + div span {
    display: block;
}

body > main > header h1 + p + div strong {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

body > main > header h1 + p + div span {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.45;
}

body > main > div > div {
    max-width: 1040px;
    margin: 1.5rem auto 0;
}

body > main > div section {
    margin-bottom: 1.5rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(5, 25, 34, 0.08);
}

body > main > div section h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.25;
}

body > main > div section p {
    font-size: 1.1rem;
    line-height: 1.75;
}

body > main > div section:nth-child(2) {
    border-top: 4px solid #741e8b;
}

body > main > div section:first-child > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 1.5rem;
}

body > main > div section:first-child > div a {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    background-color: #741e8b;
    border: 2px solid #741e8b;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
}

body > main > div section:first-child > div a:hover,
body > main > div section:first-child > div a:focus {
    background-color: #5a1669;
    border-color: #5a1669;
    color: #fff;
}

body > main > div section:first-child > div a + a {
    background-color: transparent;
    color: #741e8b;
}

body > main > div section:first-child > div a + a:hover,
body > main > div section:first-child > div a + a:focus {
    background-color: #5a1669;
    color: #fff;
}

body > main > div section:first-child > p:last-child {
    margin-bottom: 0;
    color: #59676d;
}

body > main > div section:nth-child(3) > div:first-child {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

body > main > div section:nth-child(3) > div:first-child h2 {
    margin-bottom: 0;
}

body > main > div section > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

body > main > div section > ul li {
    padding: 1.25rem;
    background-color: #f6f7f8;
    border-left: 3px solid #9a58aa;
    border-radius: 0 8px 8px 0;
}

body > main > div section > ul a {
    display: inline-block;
    color: #051922;
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
}

body > main > div section > ul a:hover,
body > main > div section > ul a:focus {
    color: #741e8b;
}

body > main > div section > ul p {
    margin: 0.5rem 0 0;
    color: #59676d;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media only screen and (max-width: 767.98px) {
    body > main > header h1 + p + div,
    body > main > div section > ul {
        grid-template-columns: 1fr;
    }

    body > main > header h1 + p + div {
        gap: 1rem;
        margin-top: 2rem;
    }

    body > main {
        padding: 1rem 0.75rem 3rem;
    }

    body > main > header {
        padding: 2rem 1.5rem;
    }

    body > main > div section:nth-child(3) > div:first-child {
        display: block;
    }

    body > main > div section:nth-child(3) > div:first-child > a {
        display: inline-block;
        margin-top: 0.25rem;
    }
}

/* ---------------------------------------------------------------------------
   Single Post
--------------------------------------------------------------------------- */
.single-article-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.single-article-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #051922;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.footer-area {
    background: linear-gradient(135deg, #051922 0%, #0b222c 100%);
    color: #fff;
    padding: 15px 0;
}

h2.widget-title {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    color: #fff;
}

h2.widget-title:after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20px;
    height: 2px;
    background-color: #741e8b;
    content: "";
}

.footer-box p {
    color: #fff;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-box ul li {
    opacity: 0.7;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-box ul li a {
    color: #fff;
    transition: color 0.3s;
}

.footer-box ul li a:hover {
    color: #741e8b;
}

.footer-box.pages ul li {
    position: relative;
    padding-left: 20px;
}

.footer-box.pages ul li:before {
    position: absolute;
    left: 0;
    top: 0;
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #741e8b;
}

.social-links li {
    display: inline-block;
}

.social-links li a {
    font-size: 1.2rem;
    padding-right: 15px;
}

/* ---------------------------------------------------------------------------
   Copyright
--------------------------------------------------------------------------- */
.copyright {
    background-color: #051922;
    border-top: 1px solid #232a35;
}

.copyright p {
    margin: 0;
    color: #fff;
    opacity: 0.7;
    padding: 16px 0;
    font-size: 15px;
}

.copyright a {
    color: #741e8b;
    font-weight: 700;
}

.copyright a:hover {
    color: #f59d53;
}

.social-icons li a {
    font-size: 16px;
    color: #fff;
    opacity: 0.7;
    padding: 16px 10px;
    transition: color 0.3s;
}

.social-icons li a:hover {
    color: #741e8b;
    opacity: 1;
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */
a.boxed-btn {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    background-color: #741e8b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

a.boxed-btn:hover {
    background-color: #051922;
    color: #741e8b;
}

input[type="submit"] {
    background-color: #741e8b;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    border: none;
    cursor: pointer;
    padding: 15px 25px;
    border-radius: 50px;
    transition: 0.3s;
}

input[type="submit"]:hover {
    background-color: #051922;
    color: #741e8b;
}

/* ---------------------------------------------------------------------------
   Archive Calendar
--------------------------------------------------------------------------- */
.dbc-calendar {
    display: grid;
    margin-top: 1rem;
}

.dbc-calendar ol.day-names,
.dbc-calendar ol.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0;
    margin: 0;
    list-style: none;
}

.dbc-calendar ol.day-names li {
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
}

.dbc-calendar ol.days li {
    border: 1px solid #eee;
    min-height: 80px;
    padding: 0.25rem;
    width: auto;
}

.dbc-calendar ol.days li.outside {
    opacity: 0.4;
}

.dbc-calendar ol.days li .date {
    font-weight: 600;
    font-size: 0.85rem;
}

a.dbc-archive-anchor {
    font-size: 0.8rem;
    display: block;
    line-height: 1.3;
    margin-top: 2px;
}

/* ---------------------------------------------------------------------------
   Comments
--------------------------------------------------------------------------- */
.comment-text-body {
    padding-left: 80px;
    margin-bottom: 40px;
}

.comment-text-body h4 {
    font-size: 18px;
    font-weight: 600;
}

.comment-text-body h4 a {
    color: #051922;
    font-size: 80%;
    margin-left: 10px;
    border-bottom: 1px solid #aaa;
    transition: color 0.3s;
}

.comment-text-body h4 a:hover {
    color: #741e8b;
}

span.comment-date {
    opacity: 0.5;
    font-size: 80%;
    font-weight: 700;
    margin-left: 5px;
}

.comment-text-body p {
    color: #888;
    line-height: 2;
    margin: 0;
}

 /* Compact comment form fields */
 .post-new-comment .form-floating > .form-control,
 .post-new-comment .form-floating > .form-control:focus {
     min-height: 3rem;          /* was 3.5rem */
     padding-top: 1.5rem;       /* was 1.75rem */
     padding-bottom: 0.4rem;
     font-size: 1rem;           /* was inheriting body 1.2rem */
     line-height: 1.25;
 }
 
 .post-new-comment .form-floating > textarea.form-control {
     min-height: 5.5rem;        /* was 6rem */
     padding-top: 1.5rem;
     font-size: 1rem;
 }

 .post-new-comment .form-floating > label {
     padding: 0.4rem 0.75rem;
     font-size: 1rem;           /* base label size before scale */
     opacity: .65;
     transform: scale(.85) translateY(-.5rem) translateX(.15rem);
     transform-origin: 0 0;
     transition: none;
 }
