:root {
    --primary-color: #1a5276;
    --secondary-color: #d4ac0d;
    --dark-color: #1b2631;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('wallpa.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.section-title {
    color: var(--primary-color);
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    height: 100%;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.team-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

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

.team-img {
    height: 250px;
    object-fit: cover;
}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 99;
}

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

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--light-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--light-color);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--light-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-color) transparent transparent;
}

.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-color);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::before {
        left: 60px;
        border: medium solid var(--light-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--light-color) transparent transparent;
    }
    
    .left::after, .right::after {
        left: 15px;
    }
    
    .right {
        left: 0%;
    }
}

/* Gallery Styles */
.gallery-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-card {
    height: 100%;
    transition: box-shadow 0.3s;
}

.gallery-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.8)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.blog-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
}

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

.blog-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.blog-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.blog-author {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.author-name {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.read-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.card-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

/* Blog Detail Styles */
.blog-detail-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.blog-content h2, 
.blog-content h3, 
.blog-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.tag {
    display: inline-block;
    background-color: #f8f9fa;
    color: var(--dark-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.social-share {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.social-share a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f8f9fa;
    color: var(--dark-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: white;
}

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

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

.related-post-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Comment Section */
.comment-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comment {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.comment-reply {
    margin-left: 90px;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
}

/* Comment Form */
.comment-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.recent-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.recent-post-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.search-form {
    position: relative;
}

.search-input {
    padding-right: 40px;
    border-radius: 30px;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: none;
    border: none;
    color: var(--primary-color);
}

.pagination {
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 5px !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}