/*
Theme Name: Divi Child
Theme URI: https://yourdomain.com
Description: Divi Child Theme
Author: Venkat
Template: Divi
Version: 1.0.0
*/

/* Header and menus */
#main-header {
    background-color: #000000;
}

#menu-main-menu li a {
    font-size: 18px;
    line-height: 32px;
}

#menu-main-menu ul>li>a:hover {
    color: #ff0000 !important;
}

#menu-main-menu ul.sub-menu {
    width: 290px;
    background-color: #000000;
}

#menu-main-menu ul.sub-menu li a {
    width: 250px;
}

#menu-main-menu ul.sub-menu li a:hover {
    background-color: #ffffff;
    color: #ff0000;
}

#menu-main-menu ul.sub-menu li.current-menu-item a {
    background-color: #7a7a7a;
}

#menu-main-menu ul.sub-menu li.current-menu-ancestor {
    background-color: #7a7a7a;
}

.nav li ul {
    border-color: #ff0000 !important;
}

.nav li li ul {
    left: 100%;
}

#main-header.et-fixed-header {
    padding: 8px 0;
    height: 90px;
}

#main-header.et-fixed-header #logo {
    height: 75px !important;
    max-height: 75px !important;
}

#main-header.et-fixed-header .nav li a {
    font-size: 14px;
}

#main-header.et-fixed-header #et-top-navigation {
    margin-top: 12px;
}

/* Smooth animation */
#main-header,
#main-header img,
#main-header .et_pb_row_0_tb_header {
    transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3em;
}

#main-content .wp-block-list {
    line-height: 1.5em;
}

/* Make the header sticky */
#main-header {
    position: fixed;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
}

/* Prevent page jump */
body {
    padding-top: 170px;
}

/* Normal top row */
#main-header .et_pb_row_0_tb_header {
    min-height: 110px;
    align-items: center;
    transform-origin: top center;
    transition: transform .3s ease;
}

#main-header.shrink .et_pb_row_0_tb_header {
    transform: scale(0.6);
    margin-top: 0;
    margin-bottom: -10px;
}

/* Scale both images proportionately */
#main-header .et_pb_image_0_tb_header img,
#main-header .et_pb_image_1_tb_header img {
    max-height: 100px;
    width: auto;
}

#main-header.shrink .et_pb_image_0_tb_header img,
#main-header.shrink .et_pb_image_1_tb_header img {
    max-height: 100px;
    width: auto;
}

.tablepress>:where(thead, tfoot)>tr>* {
    background-color: rgb(255, 0, 0);
}

.tablepress .dt-column-title {
    color: #ffffff;
    font-weight: bold !important;
}

.tablepress img.alignnone {
    max-width: 100px !important;
    height: auto !important;
}

/* Leave menu size unchanged */
#main-header.shrink .et_pb_row_1_tb_header {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -80px !important;
}

/* Card */
.card {
    min-height: 300px; /* adjust as needed */
    position: relative;
    transition: filter 0.3s ease;
    cursor: pointer;
}

.card:hover {
    filter: brightness(50%) !important;
}

/* Inner content layout */
.card .wp-block-cover__inner-container{
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
}

/* Center text horizontally and vertically */
.card .card-text{
    padding: 40px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    margin: 0;
    text-align: center;
}

/* Bottom-center plus icon */
.card img.vlb {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}


/* tablet */
@media (max-width: 1032px) and (min-width:441px) {
    .et_header_style_left #logo {
        max-height: 80%;
    }

    #copy-right {
        margin-left: -50px;
    }

    #credits {
        margin-right: -50px;
    }
}

.footer-links h4 {
    color: #ff0000;
}

.footer-links a,
#credits a {
    color: #ffffff;
}

.footer-links a:hover,
#credits a:hover {
    color: #ffffff;
}

#copy-right,
#credits {
    color: #ffffff;
    font-size: 18px;
}

#footer-social-icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#footer-social-icons .et_pb_icon {
    margin: 0 !important;
    flex: 0 0 auto;
}

.et_pb_scroll_top.et-pb-icon.et-visible {
    margin-right: 60px !important;
}


@media only screen and (max-width: 767px) {
    #footer-social-icons {
        margin-left: -96px;
    }
}

/* Proper Collapsable Mobile Menu */
/* Style the icon's placeholder */
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
    width: 44px;
    height: 100%;
    padding: 0px !important;
    max-height: 44px;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 999;
    background-color: transparent;
    border-bottom: 0;
    text-align: center;
}

ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
    position: relative;
}

.et_mobile_menu .menu-item-has-children>a {
    background-color: transparent;
}

/* Hide the Sub-menu */
ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
    display: none !important;
    visibility: hidden !important;
}

/* Show the sub-menu when the + icon is clicked */
ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
    display: block !important;
    visibility: visible !important;
}

/* Create the opening/closing icon using the SVG Icons */
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle .dt-icons {
    top: 10px;
    position: relative;
    color: #fff !important;
}

/* Hide the closing icon if the sub-menu is not open */
ul.et_mobile_menu li.menu-item-has-children:not(.dt-open) .mobile-toggle .dt-close-icon {
    display: none;
}

/* Hide the opening icon if the sub-menu is open */
ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle .dt-open-icon {
    display: none;
}

/* -------------- */
/* Mobile menu background */

/* Toggle icon */
.et_mobile_menu .mobile-toggle {
    color: #fff !important;
    fill: #fff !important;
}

/* SVG icons */
.et_mobile_menu .mobile-toggle svg {
    fill: #fff !important;
    color: #fff !important;
    width: 0.7em;
    height: 0.7em;
}

/* Position toggle neatly */
.et_mobile_menu .mobile-toggle {
    position: absolute;
    right: 15px;
    top: 12px;
    cursor: pointer;
    z-index: 10;
}

/* Submenu hover background */
.et_mobile_menu li a:hover {
    background: #666 !important;
    color: #fff !important;
}

/* Entire row hover */
.et_mobile_menu li:hover>a {
    background: #666 !important;
}

/* Active item and parent */
.et_mobile_menu .current-menu-item>a,
.et_mobile_menu .current-menu-ancestor>a {
    color: #ff0000 !important;
    background: #666 !important;
    font-weight: 600;
}

/* Keep active item red when hovered */
.et_mobile_menu .current-menu-item>a:hover,
.et_mobile_menu .current-menu-ancestor>a:hover {
    color: #ff0000 !important;
}

body p {
    text-align: justify;
    text-justify: inter-character;
    hyphens: auto;

    /* Browser support */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;

    overflow-wrap: break-word;
    word-wrap: break-word;
}

.page-links {
    margin-top: 30px !important;
}

.page-links:after {
    font-size: 24px;
    color: #ff0000 !important;
}

.page-links span,
.page-links a {
    margin: .5em !important;
    background-color: green !important;
    padding-left: .5em !important;
    padding-right: .5em !important;
    border-radius: 50% !important;
    font-size: 1.5em !important;
}

.page-links a {
    color: #ffffff !important
}

/* Gallery Section Two slide slider on hover*/
/* Container */
#sec-image-cards .et_pb_slider {
    position: relative;
    cursor: pointer;
}

/* Stack only the second slide */
#sec-image-cards .et_pb_slider .et_pb_slide:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
    display: flex !important;
}

/* Show overlay slide on hover */
#sec-image-cards .et_pb_slider:hover .et_pb_slide:nth-child(2) {
    opacity: 1;
}

#sec-image-cards .et_pb_slider,
#sec-image-cards .et_pb_slider .et_pb_container {
    min-height: 680px;
}

#sec-image-cards .et_pb_slider .et_pb_slide:nth-child(2) {
    background: rgba(0, 0, 0, .75);
}

/* Posts */
figure.wp-block-image img {
    aspect-ratio: auto !important;
}

.et_pb_contact_form .et_pb_contact_field {
    border: 1px solid black;
    color: black;
}

.et_pb_contact_form .et_pb_contact_field label,
.et_pb_contact_form .et_pb_contact_field input,
.et_pb_contact_form .et_pb_contact_field textarea {
    color: black !important;
}

.et_pb_contact_form .et_pb_contact_field_8,
.et_contact_bottom_container .et_pb_contact_field {
    border: none
}