/* Blog post shared styles */
main {
    padding-top: 0;
    margin-top: 0;
    min-height: 100%;
}

.main_content {
    margin-left: 20%;
    margin-right: 20%;
    margin-bottom: 200px;
}

@media (max-width: 1320px) {
    .main_content {
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media (max-width: 900px) {
    .main_content {
        margin-left: 7%;
        margin-right: 7%;
    }
}

.main_text {
    font-size: 20px;
    font-family: "Sen", serif;
    color: rgb(95, 124, 145);
    line-height: 1.6;
}

figure {
    margin-top: 100px;
    margin-bottom: 100px;
    max-width: 900px;
}

blockquote {
    font-size: 31px;
    font-family: "Sen", serif;
    color: rgb(30, 31, 79);
    line-height: 1.226;
    border-left: 10px solid;
    border-image: linear-gradient(
            to bottom,
            #5db1ff,
            #9f72e1,
            #f659a8,
            #e1c631
        ) 1;
    padding-left: 50px;
}

blockquote.cta-quote {
    margin-top: 90px;
    margin-bottom: 90px;
}

@media (max-width: 768px) {
    blockquote.cta-quote {
        margin-top: 60px;
        margin-bottom: 60px;
    }
}

.note {
    background: #f8f9fa;
    border-left: 3px solid #6b7280;
    padding: 12px 16px;
    margin: 1.5em 0 1.5em 2em;
    font-size: 0.9em;
    color: #4b5563;
    border-radius: 0 4px 4px 0;
}

.note strong {
    color: #374151;
}

.note code {
    background: #e5e7eb;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.note pre {
    background: #2d2d2d;
    margin: 0.75em 0;
    padding: 8px 12px;
    border-radius: 4px;
}

.note pre code {
    background: none;
    padding: 0;
    color: #ccc;
}

.note a {
    color: #5a97d1;
}

figcaption {
    text-align: right;
    margin-top: 20px;
}

ul, ol {
    margin-left: 80px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.centered {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

img {
    border-radius: 3%;
}

p {
    line-height: 2;
}

a,
a:visited {
    color: rgb(30, 31, 79);
    text-decoration: none;
}

a:hover {
    color: #5db1ff;
}

h2 {
    padding-top: 50px;
}

.coloured_hr {
    border: none;
    height: 4px;
    width: 66%;
    margin: 60px auto;
    background: linear-gradient(
        to right,
        #5db1ff,
        #9f72e1,
        #f659a8,
        #e1c631
    );
    border-radius: 2px;
}

h3 {
    padding-top: 30px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e7ed;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e7ed;
}

th {
    background-color: #f0f4f7;
    font-family: "Sen", serif;
    font-weight: bold;
    color: rgb(30, 31, 79);
}

td {
    font-family: "Sen", serif;
    color: rgb(95, 124, 145);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) td {
    background-color: #fafbfc;
}

@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .main_content {
        margin-left: 5%;
        margin-right: 5%;
    }

    ul, ol {
        margin-left: 10px;
    }

    blockquote {
        padding-left: 5px;
    }

    figure {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Blogroll timeline styles */
.posts {
    position: relative;
    padding-top: 50px;
    margin-bottom: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* The vertical timeline line */
.posts::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #b4c8f2 10%,
        #b4c8f2 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.post {
    position: relative;
    width: 45%;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

/* Left side posts (odd) */
.post:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
    padding-right: 40px;
    text-align: right;
}

/* Right side posts (even) */
.post:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    padding-left: 40px;
    text-align: left;
}

/* Stagger effect - push each post down slightly */
.post:nth-child(2) { margin-top: -150px; }
.post:nth-child(3) { margin-top: -150px; }
.post:nth-child(4) { margin-top: -150px; }

/* Gradient accent line on hover */
.post::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        #5db1ff,
        #9f72e1,
        #f659a8,
        #e1c631
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post:nth-child(odd)::after {
    right: 0;
}

.post:nth-child(even)::after {
    left: 0;
}

.post:hover::after {
    opacity: 1;
}

.post img {
    max-width: 100%;
    height: auto;
}

.post > div:first-child {
    margin-bottom: 20px;
}

.blog_title {
    font-size: 25px;
    font-family: "Sen", serif;
    font-weight: bold;
    color: rgb(33, 50, 96);
    line-height: 1.238;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog_summary {
    font-size: 20px;
    font-family: "Sen", serif;
    color: rgb(95, 124, 145);
    line-height: 1.625;
}

.read_more {
    font-size: 18px;
    font-family: "Poppins";
    color: rgb(90, 151, 209);
    font-weight: bold;
    text-decoration: underline;
    line-height: 2.263;
}

.pager {
    text-align: center;
    line-height: 60px;
}

.pagerNav {
    display: inline-block;
    margin: 0 10px;
    align-items: center;
}

.pagerIndex {
    display: inline-block;
}

@media (max-width: 768px) {
    .posts::before {
        left: 20px;
    }

    .post {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .post:nth-child(2),
    .post:nth-child(3),
    .post:nth-child(4) {
        margin-top: 0;
    }

    .post::before {
        left: -36px !important;
        right: auto !important;
    }
}
