/**
 * @file components.css
 * @description Bluedot Consulting - Reusable Component Styles
 * Contains styles for news cards, service items, decorative lines, buttons,
 * and other reusable UI components used across the Bluedot Consulting website.
 *
 * @version 1.0.0
 */

/* ============================================================================
   Hero Media Elements
   ============================================================================ */

.top-video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.top-image {
    width: 100%;
    height: auto;
}

/* ============================================================================
   Decorative Vertical Lines
   ============================================================================ */

.add-line::after {
    content: "";
    position: absolute;
    top: -150px;
    left: -1.5px;
    height: 1000px;
    z-index: 0;
    width: 3px;
    background-color: #e6e6e6;
}

.add-line2::after {
    height: 2000px;
    top: -1000px;
}

.add-line3::after {
    height: 500px;
}

.add-line4::after {
    height: 2200px;
    top: -1700px;
}

.add-line6::after {
    height: 1320px;
    top: -150px;
}

.add-line-service::after {
    content: "";
    position: absolute;
    top: -150px;
    left: -10%;
    height: calc(100% + 150px);
    z-index: 0;
    width: 3px;
    background-color: #e6e6e6;
}

.add-line-service2::after {
    content: "";
    position: absolute;
    top: -150px;
    left: -10%;
    height: calc(100% + 250px);
    z-index: 0;
    width: 3px;
    background-color: #e6e6e6;
}

/* ============================================================================
   News Card Components
   ============================================================================ */

.new-text {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.5;
    max-height: 0;
    transition: max-height 0.5s ease;
}

.new-top-content:hover .new-text {
    max-height: 100px;
}

.new-img img {
    transition: all 0.5s ease;
}

.new-img:hover img {
    transform: scale(1.1);
}

.new-item {
    margin-bottom: 130px;
}

.new-item .new-content {
    height: calc(100% + 130px);
}

.new-item:hover img {
    transform: scale(1.1);
}

.new-item:hover .new-text {
    max-height: 100px;
}

/* ============================================================================
   About Section Components
   ============================================================================ */

.about-item {
    margin-bottom: 130px;
}

.about-box {
    height: calc(100% + 130px);
}

/* ============================================================================
   Button Components
   ============================================================================ */

.c-button {
    position: relative;
}

.c-button::after {
    content: "";
    width: 100%;
    height: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    transform: translateY(100%);
    background-color: #505050;
    transition: transform 0.15s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.c-button:hover::after {
    transform: translateY(0);
}

.a-link {
    border-radius: 50%;
    border: 1px solid #000;
    transition: background-color 0.5s ease;
}

.a-link:hover {
    background-color: #f6f600;
}

.add-new {
    border-radius: 50%;
    border: 1px solid #000;
    transition: background-color 0.5s ease;
}

/* ============================================================================
   Service Components
   ============================================================================ */

.services-img img {
    transition: all 0.5s ease;
}

.services-img:hover img {
    transform: scale(1.1);
}

.services-item {
    margin-bottom: 150px;
}

.services-item .services-content {
    height: calc(100% + 150px);
}

.services-text {
    overflow: hidden;
    line-height: 1.5;
    max-height: 0;
    transition: max-height 0.5s ease;
}

.services-item:hover img {
    transform: scale(1.1);
}

.services-item:hover .services-text {
    max-height: 100px;
}

/* ============================================================================
   Decorative Elements
   ============================================================================ */

.over-line::after {
    content: '';
    width: 50px;
    height: 4px;
    position: absolute;
    left: calc(50% - 25px);
    bottom: 6px;
    background-color: #000;
    z-index: 10;
}

.title-after::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    left: calc(-10% - 1.5px);
    border-radius: 50%;
    background: #000;
    top: calc(50% - 4px);
    box-shadow: 0 0 0 8px #fff;
    z-index: 11;
}

/* ============================================================================
   Responsive Styles - Tablet (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {
    .top-video {
        object-fit: cover;
    }

    .add-line::after {
        top: -150px;
        left: -5%;
    }

    .add-line2::after {
        height: 2000px;
        top: -1000px;
    }

    .add-line5::after {
        height: 3200px;
        top: -800px;
    }

    .over-line::after {
        content: '';
        width: 50px;
        height: 4px;
        position: absolute;
        left: 0;
        bottom: 6px;
        background-color: #000;
        z-index: 10;
    }

    .services-item {
        margin-bottom: 120px;
    }

    .services-item .services-content {
        height: calc(100% + 120px);
    }

    .top-image {
        width: auto;
        height: 100%;
    }

    .add-line-service::after {
        content: "";
        position: absolute;
        top: -150px;
        left: -5%;
        height: calc(100% + 150px);
        z-index: 0;
        width: 3px;
        background-color: #e6e6e6;
    }

    .add-line-service2::after {
        content: "";
        position: absolute;
        top: -150px;
        left: -5%;
        height: calc(100% + 250px);
        z-index: 0;
        width: 3px;
        background-color: #e6e6e6;
    }

    .title-after::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        left: calc(-5% - 1.5px);
        border-radius: 50%;
        background: #000;
        top: calc(50% - 4px);
        box-shadow: 0 0 0 8px #fff;
        z-index: 11;
    }
}

/* ============================================================================
   Responsive Styles - Mobile (max-width: 700px)
   ============================================================================ */

@media (max-width: 700px) {
    .top-video {
        width: auto;
        height: 100%;
        object-fit: cover;
    }
}
