/*=====================================================================================
    Custom CSS Stylesheet
    Author: [Your Name]
    Description: Custom styles for layout, header, navigation, scroll to top button,
                 search form, logo, and article content.
======================================================================================*/

/*=====================================================================================
    1. Core Wrap CSS
======================================================================================*/
section.main-wrap {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

section.main-wrap-head {
    width: 100%;
    margin: 0 auto;
}

.wrap {
    width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0;
}

/*=====================================================================================
    2. Scroll To Top Button CSS
======================================================================================*/
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #1f6459 !important;
    color: white !important;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#myBtn:hover {
    background-color: #555 !important;
}

/*=====================================================================================
    3. Header & Logo CSS
======================================================================================*/
section.main_wrap.mnavbg {
    display: none;
}

.aj-square-logo {
    width: 20%;
    float: left;
}

.aj-square-logo a {
    color: #ff6e00 !important;
    text-decoration: none;
    font-weight: bold;
}

.custom-logo-widget {
    height: auto;
    width: 200px;
    overflow: hidden;
}

.custom-logo-widget img {
    height: 90px;
    width: auto;
}

span.site-title {
    font-size: 30px;
}

/*=====================================================================================
    4. Navigation Bar CSS
======================================================================================*/
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar {
    transition: background-color 0.3s ease;
    width: 99%;
    margin: 0 auto;
    position: relative !important;
    overflow: visible !important;
    z-index: 1050;
}

.navbar.sticky-top {
    overflow: visible !important;
    padding: 0;
}

.navbar .navbar-brand {
    font-size: 1.5rem;
    padding: 0;
}

.navbar .navbar-nav {
    margin-left: auto;
    display: flex;
    position: relative;
}

.navbar-collapse {
    overflow: visible !important;
}

.navbar-collapse li {
    list-style-type: none;
}

.navbar-collapse li a {
    text-decoration: none;
    color: #222 !important;
}

.navbar-collapse li a:hover,
a#searchIcon:hover {
    color: #3191c1 !important;
}

.nav-class.justify-content-left ul li a {
    padding: 40px 0;
}

.nav-class.justify-content-left ul li ul li a {
    padding: 0.5rem 1rem;
}

div#navbarSupportedContent {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}
/* Change the hamburger icon color */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ff0000' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  .navbar-toggler {
    border: none;
  }  
  /* Optional: Tweak the button itself */
  .navbar-toggler {
    border: none; /* remove default border */
    padding: 0.25rem 0.5rem;
  }
  
  /* Optional: Add hover effect */
  .navbar-toggler:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
  }
  
  
div#myLinks a {
    color: #fff !important;
    text-decoration: none;
}

div#myLinks li {
    list-style-type: none;
    padding: 5px 0;
    text-align: center;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 5px;
}

.menu {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

.menu ul {
    width: 100%;
    margin: 0 auto;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu > li {
    font-size: 1.5em;
    font-weight: bold;
}

.dropdown-menu {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu > li {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}

.second-sub-blog-category {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.second-sub-blog-category li {
    display: block;
    padding: 5px;
    border-top: 1px solid #ddd;
}

.second-sub-blog-category span {
    font-weight: bold;
    display: block;
}

.second-sub-blog-category p {
    font-size: 0.9em;
    color: #555 !important;
}

.nav-class.navserve {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-content: center;
    align-items: center;
}

/* Navbar Button Left */
.custom-header-widget .wp-block-button__link {
    border: 1px solid #1961ac !important;
    background-color: transparent;
    color: #1961ac !important;
}

.header-widget-container {
    display: flex;
    justify-content: space-between;
}

.custom-header-widget {
    margin: 0 0 0 25px;
}

.custom-header-widget a {
    text-decoration: none;
    color: #e2e2e2 !important;
}

.custom-header-widget:hover a {
    color: #ffffff !important;
}

.custom-header-widget .wp-block-button__link:hover {
    background: #1961ac;
}

.wp-block-button__link {
    padding: calc(0.47em + 2px) calc(1.333em + 2px);
}

#navbarSupportedContent {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

#navbarSupportedContent.show {
    display: block;
    max-height: 500px; /* Adjust as needed */
}

/* Dropdown & Menu Styling */
.navbar-nav .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    min-width: 200px;
    white-space: nowrap;
    z-index: 1000;
    background-color: #fff !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.navbar-nav .dropdown:hover > .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    background-color: #fff !important;
}

.navbar-nav .dropdown > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #62bfee;
    vertical-align: middle;
}

.navbar-nav .dropdown > ul li a::after {
    content: normal;
}

.navbar-nav ul li a {
    font-weight: 900;
}

.navbar-nav ul li ul li a {
    font-weight: normal;
}

.sub-dropdown-menu {
    min-width: 200px;
    white-space: nowrap;
    width: 300px;
}

.navbar-nav .dropdown-menu .menu-item-description {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    padding: 0px 10px;
    color: #242424 !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: transparent !important;
}

ul.dropdown-menu li {
    padding: 5px 0;
}

li.menu-item.menu-item-type-taxonomy.menu-item-object-category a {
    color: #0079c2 !important;
}

li.menu-item.menu-item-type-taxonomy.menu-item-object-category a:hover {
    color: #050e14 !important;
}

/*========================================================================================
   5. Hero Secrion CSS
==========================================================================================*/
.homepage-content {
    text-align: center;
    margin: 50px auto;
}

.homepage-content h1 {
    font-size: 2.5em;
    font-weight: bold;
}

.homepage-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.homepage-content .button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.homepage-content img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Hero Section CSS Start*/
.herobg{
    background-color: #f8f9fa;
}
.herosec{
    padding: 20px;
    box-sizing: border-box;
    }
.heroimg{
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.heroimg img {
    width: 300px;
}
.herosec-widget {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}
.herosec-widget a {
    font-weight: bold;
}
.herosec-widget a:hover {
    color: #f1f1f1;
}
.col-sm-6.herosec {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: larger;
    align-content: center;
    text-align: center;
}
.col-sm-6.herosec a {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #767676;
    font-weight: bold;
}
.col-sm-6.herosec a:hover {
    background-color: #0073aa;
    color: #fff !important;
    border: 1px solid #0073aa;
}
/*=====================================================================================
    6. Search Box CSS
======================================================================================*/
#searchForm {
    display: none;
    position: absolute;
    top: 111px;
    right: 20px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.5s ease;
}
#searchForm.show {
    max-height: 300px; /* adjust based on form height */
    opacity: 1;
}
/* Toggle Icon */
.css-toggle-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
  }
  
  .css-toggle-bar {
    height: 2px;
    background-color: #000; /* You can change to white or custom color */
    border-radius: 1px;
    transition: 0.3s ease-in-out;
  }
/*=====================================================================================
    7. Content & Article CSS
======================================================================================*/
.main_wrap.aj-square-content-search {
    width: 100%;
    overflow: hidden;
}

div#aj-square-content {
    overflow: hidden;
}
.post-wrap.entry-content {
    padding: 0 15px;
    overflow: hidden;
    width: 100%;
}
h1.entry-title {
    font-size: xx-large;
    line-height: 45px;
}
.post-head-as h1 a {
    color: #212529;
}
.post-wrap.entry-content h2 {
    padding: 15px 0 10px 0;
    font-size: x-large;
    font-weight: 900;
}
.post-wrap.entry-content h3 {
    padding: 15px 0 10px 0;
    font-size: large;
    font-weight: 900;
}
.entry-content p {
    text-align: justify;
    font-size: 1.2rem;
}
.latest-content-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #d5d5d5;
    align-content: space-around;
    height: 100%;
    padding: 10px;
    border-radius: 10px;
}
h2.latest-post-content.text-center {
    padding: 30px 0;
    font-weight: bold;
}
/* Post tags css*/
.post-tags {
    font-size: 14px;
    margin-top: 15px;
    color: #666;
}

.post-tags a {
    color: #007bff;
    text-decoration: none;
    margin-right: 8px;
}

.post-tags a:hover {
    text-decoration: underline;
}

/*=====================================================================================
    8. Sidebar Css
=====================================================================================*/
.sidebar {
    display: flex;
    margin: 0;
}
.sidebar {
    padding: 20px 0;
}
.sidebar h2 {
    padding: 25px 10px 10px 10px;
    border-bottom: 1px solid #000;
}
.sidebar ul li, .sidebar ul li a {
    list-style-type: none;
    color: #212529;
    padding: 7px 0;
    font-size: large;
}
.sidebar ul li a{
    text-decoration: none;
}
.sidebar ul li a:hover{
    text-decoration: underline;
}


/*=====================================================================================
    9. Custom Block CSS
======================================================================================*/
/* Custom Block CSS Start*/
.custom-block-widget {
    display: flex;
    justify-content: center;
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
}
.custom-block-widget h2 {
    display: inline;
    background-image: linear-gradient(to right,green, blue, indigo, violet);
    background-size: 100% 4px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 5px;
  }
  .custom-block-widget p {
    padding: 30px 0;
    line-height: 30px;
    font-size: 18px;
    }
  /* Custom Block CSS End*/

/* Add New Hero Widget CSS Start*/
.addnewhero {
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: space-around;
    align-items: center;
}
  .addnew-hero-widget h2 {
    padding: 50px 0;
    text-decoration: underline;
}
/* Add New Hero Widget CSS End*/

/* Search Icon CSS Start*/
  .css-search-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
}

.css-search-icon::after {
    content: '';
    width: 10px;
    height: 2px;
    background: #333;
    position: absolute;
    top: 14px;
    left: 14px;
    transform: rotate(45deg);
    transform-origin: center;
}
.css-search-icon:hover {
    border-color: #007bff;
}

.css-search-icon:hover::after {
    background: #007bff;
}
/* Search Icon CSS End*/
/*=====================================================================================
    10. Footer CSS
======================================================================================*/
div#default-footer a {
    color: #fff;
}
/* Footer up CSS Start*/
.footerup-widget {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
}
.footerup-widget h2 {
    padding: 0 0 15px 0;
    border-bottom: 1px solid #ccc;
    font-size: 25px;
}
.footerup-widget li {
    list-style-type: none;
    color: #fff;
    font-size: large;
}
.footerup-widget li a{
    color: #fff;
}
.footerup-widget li a:hover{
    text-decoration: underline;
}
ul.wp-block-list, ul.wp-block-categories-list.wp-block-categories {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}
.wp-block-image img {
    padding-bottom: 15px;
}

/*---------------------------------------------------------
                Custom CSS End
---------------------------------------------------------*/



/*=====================================================================================
                            Responsive css start
=====================================================================================*/

/*------------------------------------------------------
                Media Queries 1199.98 Start
------------------------------------------------------*/
@media (max-width: 991.98px) {

    /* Header */
    header {
        position: relative;
    }

    /* Sidebar and content */
    div#aj-square-content {
        width: 100%;
    }

    div#sidebar {
        width: 100%;
    }

    /* Article image */
    article#aj-square-search-article img {
        height: 100%;
    }

    /* Main section visibility */
    section.main-wrap.wrap-desk {
        display: none;
    }

    section.main_wrap.mnavbg {
        display: block;
    }

    /* Site title style */
    span.site-title {
        padding: 5px;
    }

    /* Navbar structure */
    .navbar .navbar-nav {
        margin: 0;
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    button.navbar-toggler {
        display: block;
    }

    div#navbarSupportedContent {
        display: none;
        border-top: 1px solid #000;
    }

    .navbar-collapse li {
        padding: 5px 0;
    }

    /* Navbar container */
    .nav-container {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    /* Search form */
    div#searchForm {
        top: 100%;
        right: 0;
    }

    form.search-form {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    form.search-form label {
        width: 98%;
    }

    /* Header widgets */
    .header-widget-container {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    .custom-header-widget {
        margin: 0 0 35px 0;
    }

    /* Dropdown menu */
    .navbar-nav .dropdown:hover > .dropdown-menu {
        flex-direction: column;
    }

    .sub-dropdown-menu {
        width: 340px;
    }

    /* Nav class styles */
    .nav-class.navserve {
        display: flex;
        gap: 5px;
        flex-direction: column;
        align-items: center;
        padding: 20px 0 0 0;
    }

    .nav-class.justify-content-left ul li a {
        padding: 10px 0;
    }
    .addnewhero {
        overflow: hidden;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-content: space-around;
        align-items: center;
    }
    .footer-social-icons {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
/*------------------------------------------------------
                Media Queries 991.98 End
------------------------------------------------------*/

/*------------------------------------------------------
                Media Queries 650px Start
------------------------------------------------------*/
@media screen and (max-width: 650px) {
    header {position: relative;}

}
/*------------------------------------------------------
                Media Queries 650px End
------------------------------------------------------*/
