.page-body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.hrd-logo {
    width: 100px;
    height: 25px;
    position: absolute;
    top: 0;
    left: 0;
}

.main-header {
    padding: 20px 60px 0 60px;
    background-image: url("./insurance/assets/bg.png");
    margin-bottom: 40px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-bottom: 20px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.logo-icon {
    color: #1abc9c;
}

.nav-title {
    text-align: center;
    flex: 1;
    font-size: 32px;
    font-weight: 500;
}

.nav-tabs {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 20px;
}

.nav-btn {
    width: 160px;
    height: 45px;
    padding: 0;
    border: 1px solid #8F8F8F33;
    background-color: #fff;
    border-radius: 3px;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Roboto';
}

.nav-btn.active {
    background-color: #00648E;
    color: #fff;
    font-weight: 600;
    border-color: #00648E;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 80%;
    margin: auto;
    height: calc(100vh - 225px);
}

.main-content {
    flex: 2;
}

.main-video {
    background-color: #D9D9D9;
    border-radius: 7px;
    height: calc(100vh - 315px);
    margin-bottom: 20px;
}

.watch-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: unset;
}

.watch-icon {
    color: red;
}

.main-info {
    display: flex;
    justify-content: space-between;
    align-items: self-start;
}

.video-title {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
}

.video-tag {
    margin: 5px 0 0;
    color: #8F8F8F;
    font-size: 18px;
    font-weight: 600;
}

.thmb-img {
    width: 100%;
    height: 100%;
}

.side-list {
    flex: 1;
    border-left: 1px solid #8F8F8F80;
    padding-left: 20px;
    height: calc(100vh - 225px);
    overflow-y: auto;
}

.side-item {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #8F8F8F4D;
    margin-bottom: 15px;
    cursor: pointer;
}

.side-thumb {
    width: 142px;
    height: 80px;
    background-color: #D9D9D9;
    border-radius: 3px;
    flex-shrink: 0;
}

.side-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    cursor: pointer;
}

.video-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #8F8F8F80;
    width: 400px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.video-card:hover {
    box-shadow: 0 0 0 1px #8F8F8F80, 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    background-color: #D9D9D9;
    height: 220px;
    width: 100%;
    cursor: pointer;
}

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

.card-info {
    padding: 20px;
    background: #fff;
}

.card-title {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 10px;
    color: #000;
}

.pdt-watch-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.youtube-lnk {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
}

.side-tag {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #8F8F8F;
}

.nav-btn.disabled {
    cursor: not-allowed;
}

.tab-content {
    display: none;
    padding-bottom: 40px;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    background-color: #000;
}

.modal-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.close-modal {
    position: absolute;
    top: -30px;
    right: -30px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.modal.active {
    display: flex;
}

.search-wrapper {
    position: relative;
    width: 200px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 3px 8px;
    transition: box-shadow 0.3s ease;
}

.search-wrapper:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-icon:hover {
    transform: scale(1.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
    background: transparent;
    color: #333;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: #ccc;
}



/* Responsive */
@media screen and (max-width: 1600px) {
    .main-header {
        padding: 20px 40px 0 40px;
    }

    .nav-title {
        font-size: 32px;
    }

    .hrd-logo {
        width: 100px;
        height: 25px;
    }

    .nav-btn {
        height: 40px;
        font-size: 14px;
    }

    .header {
        margin-bottom: 20px;
    }

    .container {
        /* margin: 0 40px 0 140px;
        gap: 40px; */
        max-width: 80%;
        height: calc(100vh - 275px);
    }

    .side-list {
        height: calc(100vh - 238px);
    }

    .main-video {
        height: calc(100vh - 275px);
    }

    .video-title {
        font-size: 16px;
    }

    .video-tag {
        font-size: 14px;
    }

    .watch-btn {
        font-size: 14px;
    }

    .side-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .side-tag {
        font-size: 14px;
    }

    .card-title {
        font-size: 16px;
    }

    .youtube-lnk {
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    .main-header {
        padding: 10px 20px;
        margin-bottom: 20px;
        background-size: cover;

        position: fixed;
        top: 0;
        left: 0;
        width: calc(100% - 40px);
        z-index: 999;
    }

    .tab-content {
        padding-top: 170px;
    }

    .hrd-logo {
        width: 60px;
        height: 15px;
        top: 3px;
    }

    .nav-title {
        font-size: 20px;
        text-align: center;
    }

    .nav-tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: unset;
    }

    .nav-btn {
        width: auto;
        flex: 1 1 45%;
        height: 35px;
        font-size: 12px;
        padding: 0 8px;
    }

    .container {
        flex-direction: column;
        /* margin: 0 16px;
        gap: 15px; */
        height: auto;
    }

    .watch-btn img {
        width: 24px;
        height: 18px;
        object-fit: contain;
        image-rendering: auto;
        display: block;
    }

    .pdt-watch-btn img {
        width: 24px;
        height: 18px;
        object-fit: contain;
        image-rendering: auto;
        display: block;
    }

    .main-content {
        width: 100%;
    }

    .main-video {
        height: auto;
        margin-bottom: 10px;
        background-color: unset;
    }

    .straight-video {
        border-radius: 5px;
    }

    .close-modal {
        right: 0;
    }

    .watch-btn {
        font-size: 12px;
    }

    .side-title {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .side-tag {
        font-size: 12px;
    }

    .side-list {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #8F8F8F33;
        padding-top: 15px;
        height: auto;
        overflow-x: unset;
    }

    .side-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: none;
        margin-bottom: 20px;
        padding-bottom: 0;
        gap: 5px;
    }

    .side-thumb {
        width: 100%;
        height: auto;
        background-color: unset;
    }

    .side-details {
        align-items: flex-start;
    }

    .thmb-img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

    .video-grid {
        flex-direction: column;
        align-items: center;
        margin: 0 16px;
    }

    .thumbnail {
        background-color: unset;
        height: 100%;
    }

    .video-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .card-info {
        padding: 16px;
        display: flex;
        justify-content: space-between;
    }

    .card-title {
        font-size: 14px;
        margin-bottom: unset;
    }

    .pdt-watch-btn {
        justify-content: center;
    }

    .watch-btn .watch-text {
        display: none;
    }

    .pdt-watch-btn .watch-text {
        display: none;
    }

    .header {
        justify-content: end;
    }

    .search-input {
        font-size: 12px;
        padding: 4px 0;
    }

    .search-icon {
        width: 15px;
        height: 15px;
    }

    .search-wrapper { 
        width: 115px;
    }
}
@media screen and (max-width : 500px) {
    .side-list{
        max-height: calc(100vh - 435px) !important;
        overflow-y: auto !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}