.mg-timeline {
    position: relative;
    max-width: 780px;
    margin: 40px auto;
    padding-left: 80px;
}

.mg-timeline::before {
    content: '';
    position: absolute;
    left: 39px;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: -1;

    background: repeating-linear-gradient(
        to bottom,
        #e0c9a0 0,
        #e0c9a0 6px,
        transparent 6px,
        transparent 12px
    );
}

.mg-year {
    font-size: 28px;
    font-weight: 300;
    color: black;
    margin: 40px 0 20px -80px;
    letter-spacing: 2px;
    background-color: white;
    padding: 0px 20px;
    border: 2px solid #e0c9a0;
    border-radius: 100px;
}

.mg-item {
    position: relative;
    margin-bottom: 50px;
}

.mg-date {
    position: absolute;
    left: -67px;
    top: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #e0c9a0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    color: #333;
    z-index: 2;
}

.mg-day { font-size: 16px; }
.mg-mon { font-size: 11px; letter-spacing: 1px; }

.mg-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.mg-main-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.mg-main-img.glightbox img {
    object-position: center top;
}

.mg-content {
    padding: 22px 24px 28px;
}
.mg-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #222;
}
.mg-meta {
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 18px;
}
.mg-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
.mg-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.mg-thumbs a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}
.mg-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mg-thumbs a:hover img {
    transform: scale(1.08);
}

.mg-video {
    position: relative;
    display: block;
    background: #222;
}

.mg-video-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mg-video-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mg-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: clamp(28px, 60%, 44px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #a51a16;
    color: #fff;
    pointer-events: none;
}

.mg-video-cover .mg-video-play {
    width: clamp(44px, 12%, 64px);
}

.mg-video-play::before {
    content: '';
    width: 32%;
    aspect-ratio: 1;
    background: currentColor;
    clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}

.mg-video:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

/* Mobile */
@media (max-width: 600px) {
    .mg-timeline { padding-left: 60px; }
    .mg-timeline::before { left: 29px; }
    .mg-date { left: -60px; width: 42px; height: 42px; }
    .mg-year { margin-left: -60px; }
    .mg-main-img img { height: 220px; }
    .mg-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Blog Timeline Extra Styles ===== */

/* Category Filter */
.bt-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.bt-filter-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #f5f5f5;
    color: #555;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.bt-filter-btn:hover,
.bt-filter-btn.active {
    background: #e0c9a0;
    color: #fff;
}

/* Blog specific */
.mg-title a {
    color: inherit;
    text-decoration: none;
}
.mg-title a:hover {
    color: #b08d57;
}
.bt-sep {
    color: #ccc;
    margin: 0 4px;
}
.bt-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 16px;
}
.bt-readmore {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #b08d57;
    text-decoration: none;
}
.bt-readmore:hover {
    color: #8a6a3d;
}

/* Make sure meta has flex */
.mg-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.bt-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.bt-filter-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #f5f5f5;
    color: #555;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.bt-filter-btn:hover,
.bt-filter-btn.active {
    background: #e0c9a0;
    color: #fff;
}
.mg-title a {
    color: inherit;
    text-decoration: none;
}
.mg-title a:hover {
    color: #b08d57;
}
.bt-sep {
    color: #ccc;
    margin: 0 4px;
}
.bt-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 16px;
}
.bt-readmore {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #b08d57;
    text-decoration: none;
}
.bt-readmore:hover {
    color: #8a6a3d;
}
.mg-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
