/* Latest News Section Styles */
.latest-news-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/rail-pattern.svg');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    z-index: 0;
}

.section-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a3a6d;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.rail-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #50afee, transparent);
}

.rail-dot {
    width: 12px;
    height: 12px;
    background-color: #50afee;
    border-radius: 50%;
    margin: 0 10px;
    position: relative;
}

.rail-dot::before,
.rail-dot::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #50afee;
    border-radius: 50%;
    top: 3px;
}

.rail-dot::before {
    left: -20px;
}

.rail-dot::after {
    right: -20px;
}

.news-container {
    position: relative;
    z-index: 1;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image-container {
    position: relative;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #50afee;
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-top-right-radius: 8px;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.news-title,
.news-title a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3a6d;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: #50afee;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.news-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-read-more:hover {
    color: #c1272d;
}

.news-read-more:hover i {
    transform: translateX(5px);
}

.news-featured .news-image {
    height: 300px;
}

.news-featured .news-title a {
    font-size: 1.4rem;
    -webkit-line-clamp: 2;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #1a3a6d;
    border: 2px solid #1a3a6d;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover {
    background-color: #1a3a6d;
    color: #fff;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .news-featured {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }

    .news-item {
        margin-bottom: 1.5rem;
    }

    .news-featured .news-image,
    .news-image {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}


/* Services Section Styles */
.services-section {
    position: relative;
    padding: 100px 0;
    background-color: #f8fafc;
    overflow: hidden;
}

/* SVG Background */
.train-tracks-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 1;
    opacity: 0.15;
}

.train {
    animation: trainMove 30s linear infinite;
}

@keyframes trainMove {
    0% {
        transform: translateX(-300px);
    }

    100% {
        transform: translateX(1500px);
    }
}

.clouds {
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }
}

/* Section Header */
.section-header {
    position: relative;
    margin-bottom: 60px;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #264d80;
    max-width: 700px;
    margin: 0 auto 25px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 300px;
}

.divider-line {
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(to right, transparent, #264d80, transparent);
}

.divider-icon {
    padding: 0 15px;
    color: #264d80;
    font-size: 1.2rem;
}

/* Services Container */
.services-container {
    position: relative;
    z-index: 3;
}

/* Tab Navigation and Content */
.services-tabs {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background-color: #fff;
    overflow: hidden;
}

.tab-navigation {
    width: 25%;
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 30px 0;
    border-radius: 12px 0 0 12px;
}

.tab-item {
    padding: 15px 25px;
    cursor: pointer;
    color: #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    border-left: 3px solid transparent;
}

.tab-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #3b82f6;
}

.tab-icon {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-item.active .tab-icon i {
    color: #3b82f6;
}

.tab-title {
    font-weight: 500;
    font-size: 1rem;
}

.tab-content-container {
    width: 75%;
    position: relative;
    overflow: hidden;
}

.tab-content {
    padding: 40px;
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Card */
.service-card {
    position: relative;
}

.service-card-inner {
    display: flex;
    gap: 30px;
}

.service-image {
    width: 280px;
    min-width: 280px;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #e2e8f0, #f8fafc);
    color: #94a3b8;
    font-size: 3rem;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    position: relative;
    /* padding-bottom: 15px; */
}


.service-attributes {
    margin-top: 20px;
}

.service-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-feature-list {
    margin: 20px 0;
}

.service-feature-list h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-attribute {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #475569;
}

.service-attribute strong {
    color: #1e293b;
}

.service-action {
    margin-top: 25px;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.service-btn:hover {
    background: linear-gradient(45deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
    color: white;
}

.service-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-btn:hover i {
    transform: translateX(3px);
}

/* No Services */
.no-services {
    text-align: center;
    padding: 80px 0;
    color: #64748b;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-tabs {
        flex-direction: column;
    }

    .tab-navigation {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 15px;
        border-radius: 12px 12px 0 0;
    }

    .tab-item {
        white-space: nowrap;
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .tab-item.active {
        border-left: none;
        border-bottom: 3px solid #3b82f6;
    }

    .tab-content-container {
        width: 100%;
    }

    .service-card-inner {
        flex-direction: column;
    }

    .service-image {
        width: 100%;
        min-width: auto;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .tab-content {
        padding: 25px;
    }

    .section-divider {
        width: 200px;
    }

    .services-section {
        padding: 32px 0;
    }

    /* Section Header */
    .section-header {
        position: relative;
        margin-bottom: 20px;
        z-index: 2;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-image {
        height: 200px;
    }
}





.card-expand {
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    align-self: center;
}

.card-expand .item {
    flex-grow: 1;
    height: 420px;
    position: relative;
    transition: all 500ms ease-in-out;
    text-align: center;
    /* align-content: stretch; */
    color: #fff;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-expand .item img {
    width: 160px;
    margin-top: 20px;
}

.card-expand .item h3 {
    font-size: 24px;
    color: #fff;
    /* align-self: center; */
    width: 200px;
    /* text-align: center; */
    left: 0;
    right: 0;
    margin: 16px auto;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.6);
}

.card-expand .item:hover {
    flex-grow: 2;
    /* background-color: #f10000; */
}

.card-expand .item:hover .btn-discovery {
    opacity: 1;
}

.card-expand .item:hover::after {
    /* content: attr(data-order); */
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* transform: translate(-50%, -50%); */
    background: linear-gradient(105deg,
            rgba(6, 203, 250, 0.46) 0%,
            rgba(0, 92, 172, 0.5) 98.46%);
}

.card-expand .item1 {
    background-image: url('../images/dv1.jpg');
}

.card-expand .item2 {
    background-image: url('../images/dv2.jpg');
}

.card-expand .item3 {
    background-image: url('../images/dv3.jpg');
}

.card-expand .item4 {
    background-image: url('../images/dv4.jpg');
}



.btn-discovery {
    opacity: 0;
    background: #fff;
    padding: 12px 24px;
    display: inline-block;
    font-size: 14px;
}

.card-expand .item:hoverr .btn-discovery {
    opacity: 1;
}