@use "../abstracts/variables" as vars;

// Blog1
.blog1 {
    &__card {
        position: relative;

        &::before {
            position: absolute;
            content: "";
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, rgba(25, 24, 37, 0) 0%, #191825 100%);
            z-index: 2;
            border-radius: 15px;
        }

        &-thumb {
            position: relative;
            border-radius: 15px;

            img {
                border-radius: 15px;
                width: 100%;
            }
        }

        &-content {
            position: absolute;
            bottom: 30px;
            left: 30px;
            right: 30px;
            z-index: 3;
        }

        &-top {
            display: flex;
            gap: 20px;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;

            @media (max-width: 1399px) {
                flex-direction: column;
                align-items: flex-start;
                margin-bottom: 20px;
            }

            @media (max-width: 575px) {
                margin-bottom: 10px;
                gap: 5px;
            }
        }

        &-date {
            width: 65px;
            height: 90px;
            border-radius: 50px;
            font-family: vars.$font-family-base;
            font-weight: 700;
            font-style: Bold;
            font-size: 24px;
            line-height: 22px;
            letter-spacing: -2%;
            text-align: center;
            color: #0073E6;
            background-color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            flex: none;

            @media (max-width: 1399px) {
                width: 50px;
                height: 70px;
                font-size: 18px;
            }

            @media (max-width: 1399px) {
                width: 50px;
                height: 70px;
                font-size: 18px;
            }

            span {
                font-family: vars.$font-family-base;
                font-weight: 600;
                font-style: SemiBold;
                font-size: 16px;
                line-height: 22px;
                letter-spacing: -2%;
                text-align: center;
                color: #000;

                @media (max-width: 1399px) {
                    font-size: 12px;
                    line-height: 18px;
                }
            }
        }

        &-right {}

        &-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        &-metaitem {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;

            i {
                color: #fff;
                font-size: 14px;
            }

            span {
                font-family: vars.$font-family-base;
                font-weight: 600;
                font-size: 14px;
                line-height: 34px;
                letter-spacing: -2%;
                color: #fff;

                
            @media (max-width: 767px) {
                font-size: 12px; 
            }
            }
        }

        &-title {
            font-family: vars.$font-family-base;
            font-weight: 600; 
            font-size: 24px;
            line-height: 34px;
            letter-spacing: -2%;
            color: #fff;
            margin-bottom: 18px;

            @media (max-width: 1199px) { 
                margin-bottom: 5px;
                font-size: 23px;
            }

            @media (max-width: 767px) {
                font-size: 20px;
                line-height: 1.3;
            }
        }

        &-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fff;
            border-radius: 50px;
            padding: 8px 8px 8px 14px;
            margin-inline-end: 22px;

            @media (max-width: 767px) {
                margin-right: 10px;
            }
        }

        &-profile {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        &-profilethumb {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 50%;
            }
        }

        &-profileinfo {
            display: flex;
            flex-direction: column;
        }

        &-profiledesignation {
            font-family: vars.$font-family-base;
            font-weight: 500;
            font-size: 11px;
            line-height: 1.3;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #888;

            @media (max-width: 767px) {
                font-size: 10px;
            }
        }

        &-profilename {
            font-family: vars.$font-family-base;
            font-weight: 700;
            font-size: 15px;
            line-height: 1.4;
            color: #191825;

            @media (max-width: 767px) {
                font-size: 12px;
            }
        }

        &-readmore {
            margin-right: -30px;

            @media (max-width: 767px) {
                margin-right: -20px;
            }


            a {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 70px;
                height: 48px;
                border-radius: 100px;
                background: #0073E6;
                color: #fff;
                font-size: 16px;
                transition: background 0.3s ease;
                flex-shrink: 0;

                @media (max-width: 767px) {
                    width: 60px;
                    height: 40px;
                    font-size: 14px;
                }

                &:hover {
                    background: #0059b3;
                }

                i {
                    line-height: 1;
                }
            }
        }
    }
}
