/* Import the utilities css file in the same directory */
@import "utilities.css";
@import "nav.css";
@import "lets_go_crazy.css";
@import "articles.css";

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#currency-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    color: #09101ea3;
}

#currency-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Main header */
#main_header {
    position: relative;

    padding-top: 60px !important;
    padding-bottom: 60px !important;

    .header_price {
        margin-top: 16px;

        span {
            color: var(--text-light);
        }

        h2 {
            font-weight: 700;
        }
    }

    h1 {
        font-size: 48px;
        font-weight: 600;
    }

    ul {
        li {
            color: var(--text-light);
            margin-bottom: 8px;
        }
    }

    .sub_title {
        font-size: 16px;
        color: var(--text-80);
    }

    .col-md-7 {
        position: relative;

        .apps {
            position: absolute;
            left: -200px;
            bottom: 30px;
            z-index: 10;
            height: 135px;
            /* outline: 1px solid var(--stroke); */

            &#g_workspace_apps {
                bottom: 0;
            }

            &#reseller_apps {
                bottom: 30%;
                height: 220px;
                left: -40px;
            }

            &#ssl_apps {
                bottom: 40%;
                height: 90px;
                left: 18%;
            }
        }
    }
}

.floating_cards_container {
    margin-top: -140px;

    &#register_domain_cards {
        margin-top: -75px;
    }

    .col-md-3,
    .col-md {
        padding-left: 0;
        padding-right: 0;
    }

    .card {
        border-radius: 0 !important;
        height: 100%;

        &#first_card {
            border-top-left-radius: var(--border-radius) !important;
            border-bottom-left-radius: var(--border-radius) !important;
        }

        &#first_card,
        &#second_card,
        &#third_card,
        &#fourth_card {
            border-right: none;
        }

        &#last_card {
            border-top-right-radius: var(--border-radius) !important;
            border-bottom-right-radius: var(--border-radius) !important;
        }

        .card-body {
            text-align: center;
            padding-top: 28px;
            padding-bottom: 22px;

            font-size: 16px;

            h3 {
                font-weight: 700;
                font-size: 20px;
            }

            span.text_light {
                display: inline-block;
                font-size: 12px;
                line-height: 18px;
            }

            .price {
                font-weight: 700;
                font-size: 20px;

                .mo {
                    font-weight: 400;
                }
            }

            .btn {
                margin-top: 6px;
                padding: 4px 16px;
            }
        }
    }
}

#redirectModal {
    .modal-header {
        display: flex;
        justify-content: center;

        img {
            height: 45px !important;
        }
    }

    .modal-footer {
        border-top: none !important;
        padding-top: 1em !important;
        display: flex;
        justify-content: space-between;
    }
}

/* features Rows */
#features_items {
    .feature_item {
        padding-bottom: 2.4em;

        &.pb-0 {
            padding-bottom: 0;
        }

        h3 {
            font-size: 16px;
            font-weight: 600;
        }

        p {
            font-size: 14px;
            line-height: 22px;
        }

        .image {
            width: 70px !important;
            height: 70px !important;
            height: auto;
            background-color: #0078c814;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 250px;
            margin: 0 auto;
            margin-bottom: 1.4em;
            border: 1px solid #0078c814;

            img {
                width: 30px;
                height: 30px;
                filter: invert(28%) sepia(100%) saturate(2096%) hue-rotate(182deg) brightness(91%) contrast(101%);
            }

            &.accent-2 {
                background-color: #f0edff;

                img {
                    filter: brightness(0) saturate(100%) invert(60%) sepia(18%) saturate(1205%) hue-rotate(222deg) brightness(97%) contrast(94%);
                }
            }

            &.accent-3 {
                background-color: #fbfffe;
                border: 1px solid #e7f2f0;

                img {
                    filter: brightness(0) saturate(100%) invert(91%) sepia(11%) saturate(1547%) hue-rotate(105deg) brightness(88%) contrast(88%);
                }
            }

            &.accent-4 {
                background-color: #fefaf4;
                border: 1px solid #fff2eb;

                img {
                    filter: brightness(0) saturate(100%) invert(78%) sepia(18%) saturate(6576%) hue-rotate(343deg) brightness(98%) contrast(100%);
                }
            }

            &.muted {
                background-color: #ffffff;
                border: 1px solid #09101e14;

                img {
                    filter: brightness(0) saturate(100%) invert(76%) sepia(8%) saturate(123%) hue-rotate(174deg) brightness(93%) contrast(90%);
                }
            }
        }
    }
}

#reseller_features_section {
    h3 {
        font-size: 18px;
        font-weight: 600;
    }

    .item {
        p {
            line-height: 1.8em;
            color: #09101e99;
        }
    }

    #payment_methods {
        display: flex;
        flex-wrap: wrap;
        margin-top: 1.5em;

        .one {
            border-radius: 8px;
            margin-right: 10px;
            margin-bottom: 10px;

            transition: all 0.3s ease;
            padding: 0px;

            cursor: pointer;

            width: 85px;
        }
    }
}

#jetpack_features_section {
    .item {
        display: block;
        width: 100%;
        text-align: left;
        padding: 16px 0;
        border-bottom: 1px solid rgb(212, 212, 212);
    }

    h3 {
        font-size: 18px;
        font-weight: 600;
    }
}

#domain_search_section {
    .item {
        color: var(--text-light);
        padding: 12px 16px;
        border-radius: 250px;
        transition: all 0.5s ease-in-out;
        cursor: pointer;
        margin-bottom: 4px;
        color: #09101ecc;

        &.active,
        &:hover {
            background-color: var(--accent-1);

            color: var(--text);
        }
    }

    .table_container {
        max-height: 700px;
        overflow-y: scroll;
    }

    .card {
        border: 2px solid #0078c829;
    }

    .col-md-3 {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;

        .card {
            height: 100%;
            border-radius: var(--border-radius) 0 0 var(--border-radius);
            border-right: none;
        }
    }

    .col-md-9 {
        flex: 1;
        display: flex;
        flex-direction: column;
        .card {
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
        }
    }
}

/* Got questions */
#got_questions_section {
    .col-md-4 {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .card {
            flex: 1;
            border-radius: var(--border-radius);
            border: 1px solid #0078c820;
            padding: 18px 16px 12px 16px;

            &:first-child {
                margin-bottom: 1em;
            }

            &#gold_card {
                background-color: transparent;
                border: none;
                display: flex;
                flex-direction: column;
                justify-content: center;

                #gold {
                    display: block;
                    margin: 0 auto;
                }
            }

            /* make the cards grow to fill the vertical space */

            .card-body {
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                h3 {
                    font-size: 16px;
                    font-weight: 500;
                }
            }

            span {
                color: var(--text-light);
                display: inline-block;
                padding-top: 6px;
                padding-bottom: 0px;
                font-size: 14px;
            }
        }

        #girl {
            border-radius: var(--border-radius);
            max-height: 500px;
        }
    }
}

/* customers_love_section */
#customers_love_section {
    .inner {
        #quote_icon {
            width: 40px;
            height: auto;
            margin-bottom: 1em;
            filter: invert(28%) sepia(100%) saturate(2096%) hue-rotate(182deg) brightness(91%) contrast(101%);
            transform: rotate(180deg);
        }

        h3 {
            /* fonts */
            font-size: 28px;
            line-height: 40px;
            font-weight: 400;
        }

        h4 {
            font-size: 24px;
        }

        .job_title {
            font-size: 20px;
        }

        .dude_side {
            position: relative;

            .dude {
                position: absolute;
                bottom: 0;
                filter: grayscale(100%);
                max-height: 485px;
                transition: all 0.4s ease-in-out;

                &:hover {
                    filter: grayscale(0%);
                }
            }
        }
    }
}

/*  trust Pilot */
#trust_pilot_section {
    .based {
        font-weight: 300;
        font-size: 14px;
    }

    .img_and_text {
        img {
            width: 120px;
        }
    }

    .hr {
        border-bottom: 1px solid rgb(223, 223, 223);
        width: 80px;
        margin: 12px 0;
    }
}

/* Pricing section */
#choose_plan_section {
    h3 {
        margin-bottom: 0;
        font-size: 20px;
        font-weight: 600;
    }

    .card {
        height: 100%;
        border: 2px solid #0078c829;

        &.popular {
            border: 2px solid var(--primary-color) !important;
            border-right: 2px solid var(--primary-color) !important;
            position: relative;

            &.orange {
                border: 2px solid var(--accent-4-dark) !important;
                border-right: 2px solid var(--accent-4-dark) !important;
            }
        }

        &#first_card {
            border-radius: 16px 0 0 16px;
        }

        &#last_card {
            border-radius: 0 16px 16px 0;
        }

        &#center_card {
            border-left: none;
            border-right: none;
            border-radius: 0;
        }

        .popular_thingy {
            position: absolute;
            top: -48px;
            left: -2px;
            width: calc(100% + 4px);
            background-color: var(--primary-color);
            padding: 9px;
            border-radius: var(--border-radius) var(--border-radius) 0 0;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 19px;

            &.orange {
                background-color: var(--accent-4-dark) !important;
            }
        }
    }

    .description {
        font-size: 14px;
        color: var(--text-light);
        margin-bottom: 1.5em;
    }

    .discount {
        margin-top: 30px;
        margin-bottom: 4px;

        display: flex;
        align-items: center;

        .old_price {
            padding-bottom: 0;
            color: var(--text-light) !important;
            text-decoration: line-through !important;
            font-size: 14px;
        }

        .badge {
            background-color: #0078c814;
            color: #0078c8;
            padding: 7px 16px;
            border-radius: 250px;
            font-weight: normal;
            margin-bottom: 0;
            margin-left: 8px;
            font-size: 14px;
            font-weight: 500 !important;
        }
    }

    .name {
        min-height: 5em;
    }

    .price {
        display: flex;
        align-items: baseline;
        margin-top: 28px !important;
        position: relative;

        &.with_from {
            margin-top: 22px !important;
        }

        &.mt-0 {
            margin-top: 0 !important;
        }

        .main_price {
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .from {
            position: absolute;
            top: -14px;
            left: 0;
            font-size: 12px;
            color: #09101e99;
        }
    }

    .renewal {
        color: var(--text-light);
        font-size: 12px;
    }

    .hr {
        border-top: 1px solid #d3e6f5;
        margin: 40px 0px;
    }

    .features {
        .feature {
            display: flex;
            padding: 6px 0;
            color: var(--text-light);
            cursor: pointer;

            span {
                font-size: 14px;
                color: #09101ecc;
            }

            img {
                width: 16px;
                height: 16px;
                margin-right: 12px;
                filter: brightness(0) saturate(100%) invert(51%) sepia(99%) saturate(627%) hue-rotate(122deg) brightness(94%) contrast(95%);
                transition: all 0.5s ease-in-out;
            }

            &:hover {
                img {
                    filter: none;
                }
            }
        }
    }

    #two_cards_row {
        .card {
            &#first_card {
                border-right: none !important;
                position: relative;
            }

            &#last_card {
                position: relative;
                border: 2px solid var(--primary-color);
                border-radius: 0px 0px 16px 0;
            }
        }
    }

    #five_cards_row {
        #first_card {
            border-right: none;
        }

        .center_card {
            border-right: none;
            border-radius: 0;
        }
    }

    /* Copying cards from HA  */
    #email_hosting_cards {
        .card {
            &.popular {
                border: 2px solid var(--primary-color);
                position: relative;

                .popular_thingy {
                    background-color: var(--primary-color);
                    border-radius: 250px;
                    text-align: center;
                    padding: 12px 4px;
                    position: absolute;
                    top: -22px;
                    left: 50%;
                    width: 60%;
                    transform: translateX(-50%);
                    color: white;
                    font-weight: 600;
                    font-size: 15px;
                }
            }

            .card-body {
                position: relative;

                .features_img {
                    width: 180px;
                    position: absolute;
                    right: -100px;
                    top: 240px;

                    &#premium {
                        right: -140px;
                    }
                }
            }
        }
    }
}

/* Reviews */
#hello_peter {
    .card {
        background-color: #e9f0f5;
        border: none;
        height: 100%;

        .card-body {
            padding: 32px;
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            p {
                line-height: 1.6em;
            }

            .logo {
                height: 30px;
                margin-bottom: 16px;
            }

            .bottom {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .stars {
                display: flex;

                img {
                    height: 30px;
                    margin-right: 6px;
                    filter: brightness(0) saturate(100%) invert(48%) sepia(91%) saturate(346%) hue-rotate(119deg) brightness(92%) contrast(91%);
                    transition: all 0.5s ease-in-out;
                }
            }

            .chevron {
                width: 40px;
                height: 40px;
                border: 2px solid black;
                border-radius: 50%;
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    width: 30px;
                    height: 30px;
                }
            }
        }
    }
}

/* FAQ */
#faq_section {
    .card {
        border: none !important;
        margin-bottom: 2em;
        padding-left: 0 !important;
        border-bottom: 1px solid var(--stroke) !important;
        border-radius: 0 !important;

        .card-header {
            background-color: white !important;
            border-bottom: none !important;
            padding-left: 0;
            cursor: pointer;
            position: relative;
            padding-right: 40px;

            &::after {
                content: "";
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 18px;
                height: 18px;
                background-image: url("../images/icons/down_arrow.svg");
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
                transition: transform 0.3s ease;
            }

            &[aria-expanded="true"]::after {
                transform: translateY(-50%) rotate(180deg);
                filter: invert(28%) sepia(100%) saturate(2096%) hue-rotate(182deg) brightness(91%) contrast(101%);
            }

            h3 {
                font-size: 18px;
                font-weight: 500;
            }
        }

        /* .card-header,
        .card-body {
            outline: 1px solid red;
        } */

        .card-body {
            color: var(--text-light);
            padding-top: 0 !important;

            a {
                color: var(--primary-color);
            }
        }

        .card-body,
        .btn {
            padding-left: 0 !important;
        }

        .btn {
            font-weight: 600 !important;
        }
    }
}

/* Transfer Accordion */
.collapsible_accordion {
    .card {
        border: none !important;
        margin-bottom: 1em;
        border-radius: var(--border-radius) !important;
        overflow: hidden;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--stroke) !important;
        margin-bottom: 32px;

        .card-header {
            background-color: white !important;
            border-bottom: none !important;
            padding: 0;

            .btn {
                position: relative;
                width: 100%;
                text-align: left;
                padding: 16px 20px;
                font-weight: 600 !important;
                text-decoration: none;
                color: var(--text);
                border: none;
                background: none;
                font-size: 18px;

                &:after {
                    content: "";
                    position: absolute;
                    right: 20px;
                    top: 50%;
                    transform: translateY(-50%);
                    transition: transform 0.3s ease;
                    width: 18px;
                    height: 18px;
                    background-image: url("../images/icons/down_arrow.svg");
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: center;
                }

                &:not(.collapsed):after {
                    transform: translateY(-50%) rotate(180deg);
                    filter: invert(28%) sepia(100%) saturate(2096%) hue-rotate(182deg) brightness(91%) contrast(101%);
                }

                &:hover {
                    background-color: var(--accent-1-light);
                }
            }

            h3 {
                font-size: 18px;
            }
        }

        .card-body {
            padding: 16px 20px;
            color: #09101e99;
            text-align: left;
        }
    }
}

/* Footer  */
footer {
    background-color: var(--accent-1-light);

    h5 {
        font-size: 18px;
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            padding-left: 0;
        }

        a {
            display: block;
            padding-top: 7px;
            padding-bottom: 7px;
            color: var(--text-light);
            text-decoration: none;
            font-size: 14px;
        }
    }

    #footer_socials_container {
        border-bottom: 1px solid var(--stroke);
        padding-bottom: 16px;

        display: flex;
        justify-content: space-between;

        #footer_socials {
            display: flex;
            justify-content: flex-end;

            a {
                width: 48px;
                height: 48px;
                margin-left: 6px;
                border-radius: 250px;
                display: flex;
                justify-content: center;
                align-items: center;
                /* border: 1px solid var(--stroke); */

                /* Lets do a very subtle box shadow  */
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

                img {
                    width: 30px;
                    height: 30px;
                }

                &#x {
                    img {
                        width: 20px;
                        height: 20px;
                    }
                }
            }
        }

        #footer_logo {
            max-height: 40px;
        }
    }

    #footer_bottom {
        color: var(--text-light) !important;
        font-size: 14px;

        .col-md-4 {
            padding-top: 8px;
        }

        ul {
            display: flex;
            justify-content: flex-end;
            align-items: center;

            li {
                padding-left: 0;
            }

            a {
                text-decoration: none;
                padding: 8px 16px;
            }
        }
    }
}

/* Misc */
.image_and_text {
    h2 {
        font-size: 48px;
        line-height: 60px;
        margin-bottom: 18px;
    }
}

/* Custom styles for Owl Carousel navigation */
.owl-carousel {
    position: relative;
}

.owl-nav {
    margin-top: 0 !important;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
}

.owl-nav button.owl-prev {
    left: -60px;
}

.owl-nav button.owl-next {
    right: -60px;
}

/* Make arrows more visible on hover */
.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Make sure images in nav buttons have proper size */
.owl-nav button img {
    width: 24px;
    height: auto;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .owl-nav button.owl-prev {
        left: -15px;
    }

    .owl-nav button.owl-next {
        right: -15px;
    }

    .owl-nav button img {
        width: 20px;
    }
}

/* Owl Carousel Template Slider */
.template-carousel {
    .item {
        text-align: center;

        img {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            margin-bottom: 15px;
            cursor: pointer;
        }

        &:hover img {
            transform: translateY(-5px);
        }
    }
}

/* Custom Owl Carousel navigation */
.owl-nav {
    text-align: center;
    display: flex;
    justify-content: end;

    .owl-prev,
    .owl-next {
        background-color: white !important;
        border-radius: 250px !important;
        width: 40px;
        height: 40px;
        margin: 0 10px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid black !important;

        img {
            width: 30px !important;
            height: 30px !important;
            filter: brightness(0) saturate(100%);
            transition: all 0.3s ease;
        }

        &:hover {
            border: 2px solid #0078c8 !important;

            img {
                transform: scale(1.1);
                filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(2680%) hue-rotate(184deg) brightness(97%) contrast(102%);
            }
        }
    }
}

/* Custom Owl Carousel dots */
.owl-dots {
    text-align: center;
    margin-top: 20px;

    .owl-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ddd;
        margin: 0 5px;
        transition: all 0.3s ease;

        &.active,
        &:hover {
            background: var(--primary-color);
        }
    }
}

/* Collapse Fetures */
/* Collapsible features styling */
/* .collapsible-features {
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
} */

.collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
    text-align: center;
}

.collapse-toggle:hover {
    color: var(--primary-color-dark);
}

.collapse-toggle .toggle-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

/* Bottom close button styling */
.close-features {
    font-size: 0.85rem;
    padding: 5px 15px;
    border-radius: 30px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.close-features:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
