/*
 Theme Name: Dibbini Law
 Theme URI: https://dibbinilaw.com/
 Author: Kousik Manna
 Author URI: https://dibbinilaw.com/
 Description: A custom WordPress theme for Dibbinilaw, designed to showcase legal services and content.
 Version: 1.0
 Text Domain: dibbinilaw
*/

/* ========================================== */

:root {
    --bs-primary: #084a79 !important;
    --bs-primary-rgb: 8, 74, 121 !important;
}

.btn-primary {
    background-color: #084a79 !important;
}

.text-primary {
    color: #084a79;
}

.body-dl {
    font-family: "Open Sans", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cormorant Garamond", serif !important;
}

.sp-font {
    font-family: "Cormorant Garamond", serif;
}

a {
    text-decoration: none;
}

.page-content a {
    text-decoration: none;
    color: #0066ff !important;
}

/* HERO BASE */
.hero {
    position: relative;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #084a79;
    opacity: 0.6;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-gradient-blue {
    background: linear-gradient(180deg, #0b5c8e 0%, #084a79 100%);
}

.bg-gradient-dark {
    background: linear-gradient(180deg, #083b5f 0%, #062f4b 100%);
}

/* ===================== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.divider-line {
    width: 10%;
    border-top: 1px solid #000;
    margin: 0;
}

.divider-img {
    height: 30px;
    vertical-align: middle;
}

/* =================== */
.fixed-img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.btn-gold {
    background-color: #cc9537;
    color: #fff;
}

.btn-gold:hover {
    background-color: #d2aa65;
    color: #ffffff;
}

/* ================== */

.aoe-card {
    background: linear-gradient(180deg, #0b5c8e 0%, #084a79 100%);
}

.aoe-card .btn {
    align-self: center;
}

/* =========================== */

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #084a79;
    color: #fff;
    font-size: 1.25rem;
    border-radius: 50%;
    margin: 0 5px 10px 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background-color: #084298;
    color: #fff;
}

/* ========================== */

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.75);
}


/* ============================== */

@media (min-width: 1400px) {

    .current_page_item>a,
    .current-menu-item>a,
    .current-menu-ancestor>a {
        color: #084a79 !important;
        font-weight: 600;
    }

    .navbar-nav {
        position: relative;
    }

    .navbar-nav,
    .navbar-nav ul,
    .navbar-nav li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .navbar-nav>li {
        position: relative;
    }

    .navbar-nav>li>a {
        padding: 10px 15px;
        color: #212529;
        text-decoration: none;
        display: block;
        white-space: nowrap;
    }

    .navbar-nav>li>a:hover {
        color: #0d6efd;
    }

    .navbar-nav li .sub-menu {
        position: absolute;
        top: 100%;
        left: 50px;
        min-width: 260px;
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
        padding: 5px 0;
        display: none;
        z-index: 999;
    }

    .navbar-nav li:hover>.sub-menu {
        display: block;
    }

    .sub-menu li {
        position: relative;
    }

    .sub-menu li a {
        padding: 8px 15px;
        display: block;
        color: #212529;
        text-decoration: none;
        font-size: 14px;
    }

    .sub-menu li a:hover {
        background: #f8f9fa;
        color: #0d6efd;
    }

    .sub-menu .sub-menu {
        top: 0;
        left: 100%;
    }

    .menu-item-has-children>a::after {
        content: "▾";
        font-size: 11px;
        margin-left: 6px;
    }

    .sub-menu .menu-item-has-children>a::after {
        content: "▸";
        float: right;
    }
}

@media (max-width: 1399px) {

    .current_page_item>a,
    .current-menu-item>a,
    .current-menu-ancestor>a {
        color: #084a79 !important;
        font-weight: 600;
    }

    .navbar-nav,
    .navbar-nav ul,
    .navbar-nav li {
        list-style: none;
        padding: 10px;
        background-color: #ddd;
        border-radius: 8px;
    }

    .navbar-nav a {
        color: #212529;
        text-decoration: none;
    }

    .navbar-nav a:hover {
        color: #0d6efd;
    }

    #mainNavbar {
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
    }

    /* Sub-menu styling */
    .navbar-nav li .sub-menu {
        background-color: #ffffff;
        border-radius: 8px;
        padding: 10px;
        margin-top: 8px;
    }

    .navbar-nav li .sub-menu li {
        margin: 6px 8px;
        border-radius: 6px;
    }

    .navbar-nav li .sub-menu li a {
        display: block;
        font-size: 14px;
    }

    .navbar-nav li .sub-menu li:hover {
        background-color: #e9ecef;
    }

    .navbar-nav .menu-item-has-children {
        background-color: #c5c5c5;
        margin: 10px;
    }

    .search-icon {
        display: inline-block;
        padding: 8px 12px;
        background-color: #084a79;
        color: #fff !important;
        border-radius: 6px;
        text-decoration: none;
        font-size: 16px;
        transition: background 0.3s ease;
        margin: 20px;
    }

    .search-icon i {
        vertical-align: middle;
    }

    .search-icon:hover {
        background-color: #5dbafc;
        color: #fff !important;
    }

}



/* ============================= */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    display: inline-block;
    margin: 0 10px;
}

.footer-links a {
    color: #084298;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0065ad;
    font-weight: 600;
}

/* ===================== */
iframe {
    border: 2px solid rgb(0, 0, 0);
    width: -webkit-fill-available;
    height: 465px;
}

/* ================== */
.page-content img,
.page-content table {
    max-width: 100%;
    height: auto;
}

.page-content {
    overflow-wrap: break-word;
    /* handles long words */
}