/* 
 Theme Name:     Bare bones for Divi
 Author:         Divi theme examples
 Author URI:     http://www.divithemeexamples.com 
 Template:       Divi
 Version:        1.0 
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 


/* =============================================
   Edinburgh Politics - Story Separation
   Option 1 + Option 3: Divider + Breathing Room
   ============================================= */

/* Add a strong top border and generous spacing before each post */
.blog article,
.archive article,
.home article {
    border-top: 3px solid #333333 !important;
    margin-top: 3em !important;
    padding-top: 2em !important;
}

/* Remove the border/extra space on the very first post so it 
   doesn't look orphaned at the top */
.blog article:first-of-type,
.archive article:first-of-type,
.home article:first-of-type {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Give the post headline more breathing room above it */
.blog article .entry-title,
.archive article .entry-title,
.home article .entry-title {
    margin-top: 0.5em !important;
    margin-bottom: 0.4em !important;
}

/* Tighten the byline so it sits snug under the headline */
.blog article .entry-meta,
.archive article .entry-meta,
.home article .entry-meta {
    margin-bottom: 1em !important;
}

/* =============================================
   Edinburgh Politics - Read More Button
   Transforms (more...) into "Read Article →"
   ============================================= */

/* Hide the default (more...) text and style as a button */
.blog a.more-link,
.archive a.more-link,
.home a.more-link {
    display: inline-block !important;
    font-size: 0 !important; /* hide original text */
    background-color: #333333 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 0 !important;
    margin-top: 1em !important;
    margin-bottom: 1.5em !important;
    text-decoration: none !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
}

/* Inject "Read Article →" as the visible label */
.blog a.more-link::after,
.archive a.more-link::after,
.home a.more-link::after {
    content: "Read Article →" !important;
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    padding: 10px 22px !important;
    color: #ffffff !important;
    font-family: inherit !important;
}

/* Hover state */
.blog a.more-link:hover,
.archive a.more-link:hover,
.home a.more-link:hover {
    background-color: #555555 !important;
    text-decoration: none !important;
}


/* =============================================
   Single Post Page Improvements
   Edinburgh Politics
   ============================================= */

/* 1. Clean end-of-article divider before the footer ads */
.single .entry-content::after {
    content: "" !important;
    display: block !important;
    border-top: 3px solid #333333 !important;
    margin: 2.5em 0 1em 0 !important;
}

/* 3. Fix bullet lists — indented, tight spacing */
.single .entry-content ul {
    margin-left: 2em !important;
    padding-left: 0.5em !important;
    list-style-type: disc !important;
}

.single .entry-content ul li {
    line-height: 1.5 !important;
    margin-bottom: 0.2em !important;
    padding-bottom: 0 !important;
}

/* 4. Tighten paragraph spacing inside articles for readability */
.single .entry-content p {
    line-height: 1.75 !important;
    margin-bottom: 1em !important;
}

/* 6. Add breathing room before the sidebar ads that collapse into content */
.single .et_pb_widget {
    margin-top: 1.5em !important;
}


