/*
Theme Name: Hydroblok Theme
Author: Hydroblok
Description: A custom theme built with ACF support.
Version: 1.0
*/

/* =================Basic theme style================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    font-family: 'Aeonik Regular';
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #509e2e;
    --text-color: #171717;
    --border-grey: #00000033;
}

a,
button {
    cursor: pointer;
}

.page-id-690 header.site-header {
    display: none !important;
}

/* body {
    max-width: 1400px;
    margin: 0 auto;
} */

/* =================Header style================= */
.home.page-template {
    background: var(--primary-color) !important;
}

header.hydro-site-header {
    background: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
}

header.hydro-site-header .hydro-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 25px 10px;
    max-width: 1400px;
    margin: 0 auto;
}

header.hydro-site-header .hydro-header-container .hydro-contact {
    display: flex;
    align-items: center;
    gap: 5px;
}

header.hydro-site-header .hydro-header-container .hydro-logo a img,
footer.hydro-site-footer .hydro-footer-container .hydro-footer-col ul .hyrdo-footer-logo a img {
    width: 200px;
    height: auto;
    object-fit: cover;
}

.hydro-header-container .hydro-main-nav ul#menu-secondary-menu {
    display: flex;
    gap: 50px;
    list-style: none;
}

.hydro-header-container .hydro-main-nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hydro-header-container .hydro-main-nav ul#menu-secondary-menu>li>a::after {
    content: "›";
    display: inline-block;
    font-size: 0.8em;
    margin-left: 10px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hydro-header-container .hydro-main-nav ul#menu-secondary-menu>li:nth-child(3)>a::after {
    content: none;
}


.hydro-header-container .hydro-main-nav ul#menu-secondary-menu>li.active a::after {
    transform: rotate(-90deg);
}

.hydro-header-container .hydro-main-nav ul#menu-secondary-menu>li:last-child a::after {
    content: none;
}


.hydro-header-container .hydro-main-nav ul#menu-secondary-menu li a {
    color: var(--text-color) !important;
}

.hydro-header-container .hydro-main-nav ul#menu-secondary-menu li a:hover {
    color: var(--secondary-color) !important;
}

.hydro-header-container .hydro-main-nav ul li:last-child {
    margin-left: 240px;
    background: var(--secondary-color);
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.hydro-header-container .hydro-main-nav ul#menu-secondary-menu li:last-child a {
    color: var(--primary-color) !important;
}

/* .hydro-header-container .hydro-main-nav ul li:last-child::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 2px;
    vertical-align: middle;
    background: url('/wp-content/themes/hydroblok-theme/assets/images/Line.png') no-repeat center/contain;
} */

/* header.hydro-site-header .hydro-header-container .hydo-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

header.hydro-site-header .hydro-header-container .hydo-contact a {
    color: var(--text-color);
} */

header.hydro-site-header .hydro-header-container .hydro-mobile-menu {
    display: none;
}

header.hydro-site-header .hydro-header-container .hydo-contact a:hover {
    color: var(--secondary-color);
}



/* megamenu starts */

header .hydro-megamenu-wrap {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: absolute;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    width: 100%;
    transform: none;
    transform-origin: 50% 50% 0px;

    /* HIDDEN STATE */
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(.4, 0, .2, 1),
        visibility 0.4s;
}

/* VISIBLE */
header .hydro-megamenu-wrap.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

/* 
@media (max-width: 1160px) {

    .hydro-megamenu-wrap {
        position: relative;
        top: 0;
        transform: none;
        width: 100%;
    }

    .hydro-megamenu-wrap.show {
        display: flex !important;
        z-index: 9999;
    }

} */

header .hydro-megamenu-wrap a {
    position: relative;
    transition: transform 0.3s ease;
}

header .hydro-megamenu-wrap a:hover {
    transform: scale(0.95);
}

header .hydro-megamenu-wrap a .hydro-mm-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

header .hydro-megamenu-wrap a .hydro-mm-text {
    position: absolute;
    bottom: 25px;
    left: 10px;
}

header .hydro-megamenu-wrap a .hydro-mm-text p {
    color: #fff;
    font-size: 24px;
    line-height: 29px;
    font-weight: 400;
}

header .hydro-megamenu-wrap a .hydro-mm-text p.hydro-additional-text {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 20px;
    line-height: 27px;
    margin-bottom: 5px;
    background: #509e2ecc;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}

/* megamenu ends */

/* MOBILE ACCORDION MEGAMENU */
@media (max-width: 1217px) {

    header .hydro-megamenu-wrap {
        position: static !important;
        width: 100%;
        transform: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.35s ease;
        flex-direction: row;
        gap: 12px;
        padding: 0 10px;
    }

    header .hydro-megamenu-wrap.show {
        opacity: 1;
        max-height: 500px;
        visibility: visible;
        pointer-events: auto;
        margin-top: 10px;
    }

    .hydro-main-nav ul li {
        display: flex;
        flex-direction: column;
        position: relative;
        /* padding-right: 30px; */
    }

    .hydro-main-nav ul li::after {
        position: absolute;
        right: 10px;
        top: 16px;
        transform: rotate(90deg);
        transition: transform .3s ease;
    }

    .hydro-main-nav ul li.active::after {
        transform: rotate(-90deg);
    }

    .hydro-megamenu-wrap a img {
        width: 100% !important;
        max-width: 100%;
        border-radius: 5px !important;
    }

    .hydro-header-container .hydro-main-nav ul#menu-secondary-menu {
        gap: 10px !important;
    }
}

@media (max-width: 999px) {

    header .hydro-megamenu-wrap a .hydro-mm-text p,
    header .hydro-megamenu-wrap a .hydro-mm-text p.hydro-additional-text {
        font-size: 14px;
        line-height: 24px;
    }
}

@media (max-width: 535px) {

    header .hydro-megamenu-wrap a .hydro-mm-text p {
        font-size: 11px;
        line-height: 20px;
    }

    header .hydro-megamenu-wrap a .hydro-mm-text p.hydro-additional-text {
        font-size: 10px;
        line-height: 15px;
    }
}

@media (max-width:499px) {
    header .hydro-megamenu-wrap a .hydro-mm-text {
        max-width: 100px;
    }
}


.hydro-megamenu-wrap.is-mobile {
    position: static !important;
    transform: none !important;
}


/* =================Footer style================= */

footer.hydro-site-footer {
    max-width: 1400px;
    margin: 0 auto;
}

footer.hydro-site-footer .hydro-footer-container {
    padding: 50px 0;
    border-top: 1px solid var(--border-grey);
}

footer.hydro-site-footer .hydro-footer-container .hydro-footer-columns {
    /* display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: flex-start;
    gap: 60px; */
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
}


.hydro-footer-container .hydro-footer-columns .hydro-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hydro-site-footer .hydro-footer-container .hydro-footer-columns .hydro-footer-col:first-child ul {
    gap: 60px !important;
}

.hydro-footer-container .hydro-footer-columns .hydro-footer-col ul li a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.hydro-footer-container .hydro-footer-columns .hydro-footer-col.column5 ul li a {
    font-weight: 600;
    font-size: 16px;
}

.hydro-footer-container .hydro-footer-columns .hydro-footer-col.column5 ul li.hydro-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hydro-footer-container .hydro-footer-columns .hydro-footer-col.column5 ul {
    gap: 20px;
}

.hydro-footer-container .hydro-footer-columns .hydro-footer-col ul li p {
    padding: 10px 0;
}

.hydro-footer-container .hydro-footer-columns .hydro-footer-col ul li p a {
    font-weight: 400 !important;
}

.hydro-footer-container .hydro-footer-columns .hydro-footer-col ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* =================Hero section style================= */

section.hyrdo-hero-section-wrapper {
    padding: 50px 20px;
}

.hyrdo-hero-section-wrapper .hydro-hero-section {
    max-width: 1200px;
    margin: 0 auto;
}

.hyrdo-hero-section-wrapper .hydro-hero-section .hydro-logo-info-wrap,
.hydro-hero-section .hydro-logo-info-wrap .hydro-info-center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hyrdo-hero-section-wrapper .hydro-hero-section .hydro-logo-info-wrap {
    gap: 50px;
    margin-top: 30px;
}

.hydro-hero-section .hydro-logo-info-wrap .hydro-info-center-container h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 63px;
    color: #010101;
    text-align: center;
}

.hydro-hero-section .hydro-logo-info-wrap .hydro-info-center-container h2 {
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    color: var(--text-color);
    max-width: 360px;
    text-align: center;
    padding: 20px 0px;
}

.hydro-hero-section .hydro-search-course-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hydro-hero-section .hydro-search-course-wrap .hydro-hero-courses-wrap {
    display: flex;
    gap: 20px;
    background: var(--primary-color);
    padding: 20px 15px;
    border-radius: 8px;
}

.hydro-hero-section .hydro-search-course-wrap .hydro-hero-search-bar-wrap {
    display: none !important;
    width: 760px;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    padding: 0 10px;
    border-radius: 10px;
}

.hydro-hero-section .hydro-search-course-wrap .hydro-hero-search-bar-wrap input {
    width: 100%;
    padding: 22px 10px;
    border: none;
    border-radius: 10px;
}

.hydro-hero-section .hydro-search-course-wrap .hydro-hero-search-bar-wrap button {
    width: 150px;
    padding: 14px 20px;
    border-radius: 10px;
    border: none;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
}

.hydro-search-course-wrap .hydro-hero-courses-wrap .hydro-single-course a img {
    width: 270px;
    height: auto;
    object-fit: cover;
}

.hydro-search-course-wrap .hydro-hero-courses-wrap .hydro-single-course {
    position: relative;
}

.hydro-search-course-wrap .hydro-hero-courses-wrap .hydro-single-course p.hydro-text-overlay {
    position: absolute;
    top: 86px;
    left: 68px;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -70%); */
    background: #509e2ecc;
    padding: 12px 20px;
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: bold;
    /* width: 100%; */
    text-align: center;
    text-transform: uppercase;
    /* background: var(--secondary-color);
    background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%,  #509e2ed2 50%,#5a9ae4c4 100%); */
}


.hydro-search-course-wrap .hydro-single-course .single-course-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 10px;
    padding: 5px;
}

.hydro-search-course-wrap .hydro-single-course .single-course-info .course-down-arrow {
    transform: rotate(-90deg);
}

.hydro-single-course .single-course-info .course-icon-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hydro-single-course .single-course-info .course-icon-title-wrap p a {
    font-size: 18px;
}

/* =================Courses section style================= */

section.hyrdo-course-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.hydro-single-course-wrapper {
    /* max-width: 1600px; */
    margin: 50px auto;
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    padding: 25px;
}

.hydro-single-course-wrapper .hydo-sc-heading-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hydro-single-course-wrapper .hydo-sc-heading-wrap h1 {
    font-size: 25px;
    font-weight: 400;
    line-height: 30px;
    color: var(--text-color);
}

.hydro-single-course-wrapper .hydro-single-course-img {
    padding: 25px 0;
}

.hydro-single-course-wrapper .hydro-single-course-img img {
    width: 100%;
}

.hydro-single-course-wrapper .hydro-single-course-data-wrap {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    /* display: flex;
    flex-wrap: wrap;*/
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    /* gap: 20px; */
    justify-items: center;
}

@media (max-width:1228px) {

    .hydro-single-course-wrapper .hydro-single-course-data-wrap {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }
}

@media (max-width:1135px) {

    .hydro-single-course-wrapper .hydro-single-course-data-wrap {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

@media (max-width:859px) {

    .hydro-single-course-wrapper .hydro-single-course-data-wrap {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width:591px) {

    .hydro-single-course-wrapper .hydro-single-course-data-wrap .hyrdo-left-line {
        display: none;
    }

    .hydro-single-course-wrapper .hydro-single-course-data-wrap {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}

.hydro-single-course-wrapper .hydro-single-course-data-wrap .hyrdo-left-line {
    width: 1px;
    height: auto;
    background: #00000026;
}

.hydro-single-course-wrapper .hydro-single-course-data-wrap .hydro-sc-data {
    min-width: 220px;
    max-width: 220px;
    /* border-right: 1px solid #00000026; */
    padding: 0 10px;
}

.hydro-single-course-wrapper .hydro-single-course-data-wrap .hydro-sc-data:last-child {
    border-right: none;
}

.hydro-single-course-data-wrap .hydro-sc-data .sc-heading,
.hydro-single-course-data-wrap .hydro-sc-data .sc-list {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hydro-single-course-data-wrap .hydro-sc-data .sc-heading h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    color: var(--text-color);
    word-break: break-all;
}

.hydro-single-course-data-wrap .hydro-sc-data .sc-heading {
    margin-bottom: 6px;
}

.hydro-single-course-data-wrap .hydro-sc-data .sc-list {
    padding: 20px 0;
}

.hydro-sc-data .sc-list:not(:last-child) {
    border-bottom: 1px solid #00000026;
}

.hydro-single-course-data-wrap .hydro-sc-data .sc-list a,
.hydro-single-course-data-wrap .hydro-sc-data p {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #535862;
}

/* =================Video section style================= */

.hydro-vid-container {
    padding: 30px 0px;
    max-width: 1400px;
    margin: 0 auto;
}

.hydro-vid-container .hyrdo-vid-heading-wrap {
    padding: 20px;
}

.hydro-vid-container .hyrdo-vid-heading-wrap h3 {
    color: var(--text-color);
    font-size: 25px;
    line-height: 30px;
    font-weight: 700;
    padding: 30px 0px;
}

.hydro-vid-container .hydro-vid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 20px;
}

/* =================Contact Form section style================= */

.hydro-contact-form-wrapper {
    position: relative;
    height: 70svh;
    min-height: 630px;
    margin-top: 100px;
}

.hydro-contact-form-wrapper img {
    width: 100%;
}

.hydro-contact-form-wrapper .wpcf7.js {
    background: #fff;
    max-width: 780px;
    padding: 30px;
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 100%;
}

.hydro-contact-form-wrapper .wpcf7.js form h2 {
    font-size: 50px;
    line-height: 58px;
    text-align: center;
}

.hydro-contact-form-wrapper .wpcf7.js form h2 span {
    color: var(--secondary-color);
}

.hydro-contact-form-wrapper .wpcf7.js form p {
    text-align: center;
    font-size: 16px;
    line-height: 26px;
    padding: 10px;
    color: #535862;
}

.hydro-contact-form-wrapper .wpcf7.js form p span input {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--border-grey);
}

.hydro-contact-form-wrapper .wpcf7.js form .fields-wrap .form-row {
    display: flex;
    gap: 20px;
}

.hydro-contact-form-wrapper .wpcf7.js form .fields-wrap .form-row p label {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.hydro-contact-form-wrapper .wpcf7.js form .form-submit {
    padding: 10px 0px;
}

.hydro-contact-form-wrapper .wpcf7.js form .form-submit input.wpcf7-submit {
    width: 150px;
    padding: 14px 20px;
    border-radius: 10px;
    border: none;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
}

/*========================== Responsive CSS==========================*/


@media (max-width:1360px) {
    .hydro-vid-container .hydro-vid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:1217px) {

    .hydro-vid-container .hydro-vid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .hydro-main-nav {
        display: none;
        transition: all 0.3s ease;
    }

    .hydro-site-header .hydro-header-container .hydro-logo-mobmenu-wrap {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .hydro-header-container .hydro-main-nav ul#menu-secondary-menu {
        flex-direction: column;
    }

    header.hydro-site-header .hydro-header-container .hydro-mobile-menu {
        display: block;
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        z-index: 9999;
        background: #fff;
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav a {
        display: block;
        padding: 14px 5px;
        color: #fff;
        text-decoration: none;
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav li:last-child a {
        padding: 0;
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav a:hover {
        background-color: #ddd;
        color: #000;
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav ul li:last-child {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding-right: 0;
        margin: 0 20px 20px 20px;
    }

    /* .hydro-site-header .hydro-header-container .hydro-main-nav ul li:last-child a {
        color: var(--primary-color) !important;
        background-color: var(--secondary-color);
        text-decoration: none;
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
    } */

    .hydro-site-header .hydro-header-container .hydro-main-nav ul li:last-child::before {
        display: none;
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav ul li:last-child a:hover {
        color: var(--secondary-color);
    }

    .hydro-site-header .hydro-header-container .hydro-main-nav.show,
    .hydro-site-header .hydro-header-container .hydro-main-nav ul li:last-child .show {
        display: block !important;
    }

    .hydro-mobile-menu {
        cursor: pointer;
        position: relative;
    }

    .hydro-mobile-menu .icon-close {
        display: none;
    }

    .hydro-mobile-menu.active .icon-bars {
        display: none;
    }

    .hydro-mobile-menu.active .icon-close {
        display: inline;
    }

}

@media (max-width:930px) {
    .hydro-hero-section .hydro-search-course-wrap .hydro-hero-courses-wrap {
        flex-direction: column;
    }
}

@media (max-width:680px) {

    .hydro-vid-container .hydro-vid-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}