:root {
    --primary: #0F172B;
    --secondary: #86b817; /* Default secondary color, override in PHP file if needed */
    --light: #F1F8FF;
    --dark: #0F172B;
}

body {
    font-family: 'Heebo', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
}

.blog-header {
    background: linear-gradient(rgba(15, 23, 43, 0.8), rgba(15, 23, 43, 0.8)), url('../img/placeholder_banner.png') center center no-repeat;
    background-size: cover;
    height: 70vh;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.blog-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #f8f9fa, transparent);
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content img {
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.blog-content img:hover {
    transform: scale(1.02);
}

.highlight-box {
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-left: 4px solid var(--secondary);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.location-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tag {
    background-color: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
}

.table-transport {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.table-transport th {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
}

.table-transport th, .table-transport td {
    padding: 15px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.table-transport tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-transport tr:hover {
    background-color: rgba(254, 161, 22, 0.05);
}

.content-section {
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

h2, h3, h4, h5 {
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
}

.img-caption {
    font-style: italic;
    color: #6c757d;
    text-align: center;
    margin-top: -15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.sidebar-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-card .card-header {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border: none;
}

.sidebar-card .card-body {
    padding: 20px;
}

.gallery-thumb {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.section-divider {
    height: 3px;
    width: 80px;
    background: var(--secondary);
    margin: 30px auto;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .blog-header { height: 50vh; }
    .author-img { width: 50px; height: 50px; }
    .content-section { padding: 20px; }
}

@media (max-width: 768px) {
    .blog-header { height: 40vh; text-align: center; }
    .blog-header h1 { font-size: 2rem; }
    .table-transport { font-size: 0.9rem; }
    .table-transport th, .table-transport td { padding: 10px; }
    h2::after, h3::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .blog-header { height: 35vh; }
    .blog-header h1 { font-size: 1.8rem; }
    .content-section { padding: 15px; }
    .table-responsive { overflow-x: auto; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #dee2e6;
    position: relative;
    padding-left: 30px;
}

.custom-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.social-share {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.social-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.social-share a:hover {
    transform: translateY(-5px);
}

.img-caption { margin-top: 5px; }
.facebook { background: #3b5998; }
.whatsapp { background: #0ea500ff; }
.share { background: #86b817; }
.linkedin { background: #0077b5; }