
/* =========================================
   CROWTHER ECOPEDIA — ARTICLE PAGE
========================================= */

:root {

    --border: #E8E1D5;
    --surface: #FFFFFF;
    --gold-light: #F4E8D4;
    --red-light: #F8ECE9;
    --shadow: 0 8px 35px rgba(31, 31, 31, 0.045);
    --radius: 12px;
}

a{
    text-decoration: none;
}

/* =========================================
   RESET AND BASE
========================================= */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* header */
.elephant-block dir{
    display: block;
    padding-bottom: 5px;
    font-style: italic;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
}

.elephant-block dir a{
   color: var(--accent); 
}

.elephant-block dir span{
    color: var(--secondary);
    opacity: .8;
}

#post-header h1{
        font-size: 30px;
        margin-bottom: .5%;
        margin-top: .8%;
}

.header-date{
    color: var(--muted-text);
    font-style: italic;
}

.header-icon svg{
    color: var(--accent);
    font-weight: bolder;
    width: 15px;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.post-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
}
.post {
    padding: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    /* height: 100vh; */
}

/* =========================================
   ARTICLE CONTENT
========================================= */

.post-content {
    min-width: 0;
    color: var(--text);
    font-size: 1.06rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
    height: 100%;

}

.post-content::first-letter{
    font-size: 50px;
    color: var(--secondary);
    font-style: italic;
        line-height: 1;
        font-variant: small-caps;
}

.post-content p {
    margin-bottom: 3%;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 40px;
    margin-bottom: 18px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
}

.post-content h1 {
    font-size: 2.1rem;
}

.post-content h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.45rem;
}

.post-content h4 {
    font-size: 1.2rem;
}


/* ARTICLE LINKS */

.post-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(139, 46, 46, 0.3);
    text-underline-offset: 4px;
}

.post-content a:hover {
    color: var(--secondary);
}


/* ARTICLE IMAGES */

.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    border-radius: 7px;
}

.post-content figure {
    margin: 35px 0;
}

.post-content figcaption,
.post-content .wp-caption-text {
    margin-top: -17px;
    color: var(--muted-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    line-height: 1.7;
    text-align: center;
}


/* QUOTATIONS */

.post-content blockquote {
    margin: 32px 0;
    padding: 25px 28px;
    background: var(--primary);
    border-left: 4px solid var(--secondary);
    color: var(--text);
    font-size: 1.13rem;
    font-style: italic;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}


/* LISTS */

.post-content ul,
.post-content ol {
    margin: 0 0 28px 26px;
    padding-left: 10px;
}

.post-content li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.post-content li::marker {
    color: var(--secondary);
}


/* TABLES */

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.post-content th,
.post-content td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
}

.post-content th {
    background: var(--primary);
    color: var(--text);
}

.post-content tr:nth-child(even) {
    background: #FCFAF6;
}


/* VIDEOS AND EMBEDS */

.post-content iframe,
.post-content video,
.post-content embed {
    max-width: 100%;
}

.post-content iframe {
    width: 100%;
    min-height: 330px;
    border: 0;
    border-radius: 8px;
}

.post-content video {
    width: 100%;
    border-radius: 8px;
}


/* HORIZONTAL RULE */

.post-content hr {
    height: 1px;
    margin: 40px 0;
    background: var(--border);
    border: 0;
}


/* =========================================
   ARTICLE CATEGORIES
========================================= */

.article-categories {
    margin-top: 45px;
    padding-top: 27px;
    border-top: 1px solid var(--border);
}

.article-categories h3 {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.category-tag {
    display: inline-block;
    padding: 7px 12px;
    background: var(--gold-light);
    border: 1px solid #EAD6B3;
    border-radius: 4px;
    color: #79501B;
    font-size: 0.76rem;
    font-weight: 700;
}

/* =========================================
   SIDEBAR
========================================= */

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
        position: sticky;
    top: 2px;
    bottom: 5px;
    align-self: start;
   
}


.sidebar-card {
    padding: 27px 23px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sidebar-heading {
    margin-bottom: 22px;
}

.sidebar-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.sidebar-heading h2 {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.3;
}

.heading-line {
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 14px;
    background: var(--secondary);
}


/* =========================================
   RELATED ARTICLES
========================================= */

.related-posts {
    position: sticky;
    display: flex;
    flex-direction: column;
}

.related-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}



.related-item:first-child {
    padding-top: 0;
}

.related-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.related-date {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-text);
    font-size: 0.72rem;
}

.related-item h3 {
    margin-bottom: 5px;
    font-size: 1.08rem;
    line-height: 1.2;
    color: var(--secondary);
}

.related-item a {
    color: var(--text);
    transition: color 0.2s ease;
    text-decoration: none;
}

.related-item h3 a:hover {
    color: var(--accent);
}

.related-item p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.75;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.related-link span {
    transition: transform 0.2s ease;
}

.related-link:hover {
    color: var(--secondary);
}

.related-link:hover span {
    transform: translateX(4px);
}

.sidebar-empty {
    color: var(--muted-text);
    font-size: 0.85rem;
    line-height: 1.8;
}


/* =========================================
   RELATED CATEGORIES
========================================= */

.category-card {
    background: #FDFBF7;
}

.related-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
}

.related-categories li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
}

.related-categories li:last-child {
    border-bottom: 0;
}

.category-bullet {
    color: var(--secondary);
    font-size: 1rem;
}


/* =========================================
   ARCHIVE CALLOUT
========================================= */

.archive-callout {
    position: relative;
    overflow: hidden;
    padding: 30px 25px;
    background: var(--accent);
    border-radius: var(--radius);
    color: var(--white);
}

.archive-callout::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -65px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.callout-symbol {
    display: block;
    margin-bottom: 18px;
    color: #F1C37C;
    font-size: 1.7rem;
}

.archive-callout h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.3;
}

.archive-callout p {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    color: #F1E4E1;
    font-size: 0.85rem;
    line-height: 1.85;
}

.archive-callout > a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    background: var(--white);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.archive-callout > a:hover {
    background: var(--gold-light);
    color: var(--text);
}


/* =========================================
   ARTICLE SHARING
========================================= */

.share-section {
    margin: 1% auto;
    margin-top: 2%;
    padding: 2px;
    background: var(--primary );
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 60%;
    height: 3rem;
    align-content: center;
}

.share-heading {

}

.share-heading h2 {
    margin: 0 0 8px;
    color: var(--text, #1F1F1F);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.3;
}

.share-buttons {
display: flex;
justify-content: center;
align-content: center;
    gap: 35px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
   /* height: 55px; */
    border: none;
    background-color: transparent;
    color: var(--secondary, #1F1F1F);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    border-color: var(--secondary, #C57600);
    color: var(--accent, #1F1F1F);
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex: 0 0 25px; */
    width: 25px;
    /* height: 25px; */
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
     font-size: 1.8rem;
    font-weight: 800;
}

/* Platform accents */

.share-whatsapp .share-icon {
    color: #168044;
}

.share-facebook .share-icon {
    color: #1877F2;

}

.share-x .share-icon {
    color: #111111;
}

.share-linkedin .share-icon {
    color: #0A66C2;
}

.share-email .share-icon {
    background: #F4E8D4;
    color: #79501B;
}

/* Copy link row */


.share-link-row button {
    flex-shrink: 0;
    padding: 11px 16px;
    border: 1px solid var(--accent, #8B2E2E);
    border-radius: 5px;
    background: var(--accent, #8B2E2E);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.share-link-row button:hover {
    background: #6F2222;
}

.share-link-row button:focus-visible,
.share-button:focus-visible {
    outline: 3px solid var(--secondary, #C57600);
    outline-offset: 3px;
}

.share-feedback {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--text-light, #5F625D);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    
/* header */
.elephant-block{
    background-color: aqua;
}
.elephant-block dir{
    display: block;
    /* padding-bottom: 5px; */
    font-style: italic;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

.elephant-block dir a{
   color: var(--accent); 
   font-size: 12px;
}

.elephant-block dir span{
    color: var(--secondary);
    opacity: .8;
}


#post-header h1{
        font-size: 20px;
        margin-bottom: .5%;
        margin-top: .8%;
}

.header-date{
    color: var(--muted-text);
    font-style: italic;
    font-size: 13px;
}

.header-icon svg{
    color: var(--accent);
    font-weight: bolder;
    width: 12px;
}

    .share-section {
        /* padding: 21px 16px; */
        width: 80%;
  height:65px ;
    }

    .share-buttons {
       display: flex;
       align-content: center;
       margin: auto;
       width: 100%;
       gap: 10px;
    }

    .share-button {
        justify-content: flex-start;
        padding: 10px;
        font-size: 0.78rem;
    }

    .share-link-row {
        flex-wrap: wrap;
    }

    .share-link-row input {
        flex-basis: 100%;
    }

    .share-link-row button {
        flex: 1;
    }
}


/* =========================================
   RESPONSIVE — TABLETS
========================================= */

@media (max-width: 1000px) {

    .post-main {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 22px;
        
    }

    .post {
        padding: 30px;
    }

    .sidebar-card {
        padding: 23px 19px;
    }

    .hero-brand {
        margin-bottom: 50px;
    }
}


/* =========================================
   RESPONSIVE — MOBILE
========================================= */

@media (max-width: 760px) {

    .elephant-block {
        /* padding: 25px 22px 42px; */
    }

    .hero-brand {
        margin-bottom: 42px;
    }

    .elephant-block h1 {
        font-size: clamp(2rem, 8vw, 3.2rem);
        letter-spacing: -0.7px;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .hero-meta {
        gap: 10px;
        font-size: 0.73rem;
    }

    .post-main {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 28px);
        gap: 28px;
    }

    .post {
        padding: 26px 22px;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.9;
    }

    .post-content h1 {
        font-size: 1.8rem;
    }

    .post-content h2 {
        font-size: 1.55rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }

    .post-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        position: static;
    }

    .archive-callout {
        grid-column: 1 / -1;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }
}


/* =========================================
   RESPONSIVE — SMALL PHONES
========================================= */

@media (max-width: 480px) {

    .elephant-block {
        /* padding: 22px 18px 35px; */
    }

    .hero-brand {
        margin-bottom: 35px;
        font-size: 0.8rem;
    }

    .label {
        font-size: 0.65rem;
        letter-spacing: 1.4px;
    }

    .elephant-block h1 {
        font-size: 2rem;
        line-height: 1.22;
    }

    .hero-description {
        font-size: 0.86rem;
        line-height: 1.8;
    }

    .hero-meta {
        align-items: flex-start;
    }

    .meta-divider {
        margin-top: 9px;
    }

    .post-main {
        width: calc(100% - 20px);
        margin: 20px auto 35px;
    }

    .post {
        padding: 22px 17px;
        border-radius: 8px;
    }

    .article-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
        padding-bottom: 17px;
    }

    .post-content {
        font-size: 0.97rem;
    }

    .post-content img {
        margin: 22px auto;
    }

    .post-content blockquote {
        padding: 19px;
        font-size: 1rem;
    }

    .post-content iframe {
        min-height: 220px;
    }

    .post-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .archive-callout {
        grid-column: auto;
    }

    .article-footer {
        align-items: flex-start;
        gap: 12px;
    }

    .footer-mark {
        /* flex-basis: 40px; */
        width: 40px;
        height: 40px;
    }

    .article-footer strong {
        font-size: 0.79rem;
    }

    .article-footer p {
        font-size: 0.74rem;
    }
}
