html, body {
    background-color:rgb(17, 62, 129)!important;
    min-height: 100%;
}

body {
    color: inherit;
}

/* Force root service background transparent so body blue shows through */
.service,
.container-fluid.service {
    background-color: transparent !important;
}

/* Reduce overall sizes */
.display-3 {
    font-size: 2.5rem !important;
}

.h4 {
    font-size: 1.25rem !important;
}

.service-item {
    padding: 1rem !important;
}

/* Reduce padding */
.pb-5 {
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* MS Word hover effect */
.ms-word-hover {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.ms-word-hover:hover {
    color: var(--bs-primary) !important;
    transform: scale(1.07);
}

/* Experience Timeline Styles */
.experience .timeline {
    position: relative;
    width: 100%;
}

.experience .timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #EF233C;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.experience .timeline .timeline-item {
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 30px;
}

.experience .timeline .timeline-item.left {
    left: 0;
    padding-right: 30px;
}

.experience .timeline .timeline-item.right {
    left: 50%;
    padding-left: 30px;
}

.experience .timeline .timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 48px;
    right: -8px;
    background: #ffffff;
    border: 2px solid #EF233C;
    border-radius: 16px;
    z-index: 1;
}

.experience .timeline .timeline-item.right::after {
    left: -8px;
}

.experience .timeline .timeline-item::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 46px;
  right: 11px;
  z-index: 1;
  border: 10px solid;
  border-color: transparent transparent transparent #dddddd;
}

.experience .timeline .timeline-item.right::before {
  left: 11px;
  border-color: transparent #dddddd transparent transparent;
}

.experience .timeline .timeline-date {
    position: absolute;
    width: 100%;
    top: 44px;
    font-size: 16px;
    font-weight: 600;
    color: #EF233C;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.experience .timeline .timeline-item.left .timeline-date {
    text-align: left;
    left: calc(100% + 55px);
}

.experience .timeline .timeline-item.right .timeline-date {
    text-align: right;
    right: calc(100% + 55px);
}

.experience .timeline .timeline-text {
    padding: 30px;
    background: #ffffff;
    position: relative;
    border-right: 5px solid #dddddd;
    box-shadow: 0 0 60px rgba(0, 0, 0, .08);
}

.experience .timeline .timeline-item.right .timeline-text {
    border-right: none;
    border-left: 5px solid #dddddd;
}

.experience .timeline .timeline-text h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 600;
}

.experience .timeline .timeline-text h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
}

.experience .timeline .timeline-text p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 767.98px) {
    .experience .timeline::after {
        left: 8px;
    }

    .experience .timeline .timeline-item {
        width: 100%;
        padding-left: 38px;
    }
    
    .experience .timeline .timeline-item.left {
        padding-right: 0;
    }
    
    .experience .timeline .timeline-item.right {
        left: 0%;
        padding-left: 38px;
    }

    .experience .timeline .timeline-item.left::after, 
    .experience .timeline .timeline-item.right::after {
        left: 0;
    }
    
    .experience .timeline .timeline-item.left::before,
    .experience .timeline .timeline-item.right::before {
        left: 18px;
        border-color: transparent #dddddd transparent transparent;
    }
    
    .experience .timeline .timeline-item.left .timeline-date,
    .experience .timeline .timeline-item.right .timeline-date {
        position: relative;
        top: 0;
        right: auto;
        left: 0;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .experience .timeline .timeline-item.left .timeline-text,
    .experience .timeline .timeline-item.right .timeline-text {
        border-right: none;
        border-left: 5px solid #dddddd;
    }
}

/* MS Word modal grow effect */
.modal .modal-dialog {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-backdrop.show {
    opacity: 0.65;
}

.ms-word-hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ms-word-hover:hover::after {
    width: 100%;
}

/* Modal animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Tooltip styling */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: var(--bs-primary);
    color: white;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

/*** Service Start ***/
.service-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    bottom: 0;
    border-radius: 10px;
    background: rgb(255, 244, 244);
    transition: 0.5s;
    z-index: 1;
}

.service-item:hover::after {
    width: 100%;
    height: 100%;
}

.service-item:hover .service-content,
.service-item:hover .service-btn {
    position: relative;
    z-index: 2;
}

.service-item .service-content a,
.service-item .service-content p {
    transition: 0.5s;
}

.service-item:hover .service-content a:hover {
    color: var(--bs-secondary);
}

.service-item:hover .service-content p {
    color: var(--bs-white);
} 

.service-item .service-btn {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    transition: 0.5s;
}

.service-item .service-btn i {
    transition: 0.5s;
}

/* Service button image styling */
.service-btn .service-icon {
    width: 100%;
    height: auto;
    max-width: 50px;
    transition: 0.5s transform;
}

.service-item:hover .service-btn {
    background: var(--bs-white);
}

.service-item:hover .service-btn i {
    transform: rotate(360deg);
    color: var(--bs-primary) !important;
}

.service-item:hover .service-btn .service-icon {
    transform: rotate(360deg);
}

/* Text truncation and hover expand */
.service-content p,
.service-content ul {
    max-height: 2.5rem;
    overflow: hidden;
    transition: max-height 0.4s ease;
    line-height: 1.25rem;
}

.service-content ul,
.service-content li {
    color: white !important;
}



.service-item:hover .service-content p,
.service-item:hover .service-content ul {
    max-height: 500px;
    overflow: visible;
}

.service-item:hover .service-content ul,
.service-item:hover .service-content li {
    color: black !important;
}

/* Two-step hover visual feedback */
.service-icon.hover-enabled {
    border-color: #28a745 !important; /* Green border when enabled */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.service-icon.hover-enabled:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5) !important;
}

/* Video toggle button */
.video-toggle-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #007bff;
    color: white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-toggle-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.video-toggle-btn.active {
    background: #28a745;
}

.video-toggle-btn.active:hover {
    background: #218838;
}

.video-toggle-btn.inactive {
    background: #dc3545;
}

.video-toggle-btn.inactive:hover {
    background: #c82333;
}

.service-btn {
    position: relative;
    display: inline-block;
    order: 1; /* icon on left */
    margin-right: 1rem;
}

.service-item .d-flex {
    display: flex;
    align-items: flex-start;
}

.service-item .service-content {
    order: 2;
    flex: 1;
}

.service-item .service-btn {
    order: 1;
}

.service-item .pe-4,
.service-item .ps-4 {
    padding-left: 0;
    padding-right: 0;
}

/*** Service End ***/

/* Timeline Logo Placeholder */
.timeline-logo {
    position: absolute;
    top: 30px;
    right: 12px;
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.8;
}

/* Modal Styles */
.details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.details--open {
    opacity: 1;
    pointer-events: auto;
}

.details__bg {
    background: #2c2a35;
    padding: 50px;
    max-width: 800px;
    width: 90%;
    position: relative;
    border-radius: 10px;
    color: white;
}

.details__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.details__description h2 {
    margin-bottom: 20px;
    color: #fff;
}

.details__description p {
    line-height: 1.6;
}


