/*
Theme Name: Ariva - Child Theme
Version: 1.0
Author: SAKTHI KUMARAN
Author URI: http://userthemes.com
Description: Ariva is a unique, simple and stylish text-based WordPress theme designed for the dedicated bloggers. It is a perfect SEO-optimized responsive template that has clean codes, loads super fast and supports JSON LD Schema, AMP features.
Theme URI: https://userthemes.com/ariva-demo/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-columns, right-sidebar, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments,editor-style
Text Domain: ariva
Template: ariva

/* Theme customization starts here
-------------------------------------------------------------- */

.ariva_active_sidebar .ariva_maincontainer {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
    -ms-transform: none !important;
}
.ariva_active_sidebar .ariva_maincontainer:before {
    opacity: 0;
}
.ariva_active_sidebar .ariva_primarymenu_style {
    opacity: 1;
    visibility: visible;
    z-index: 99999;
}
.ariva_primarymenu_style:hover {
    overflow-y: unset;
}


.ariva_search_input {
  width: 20% !important;
  opacity: 0;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  transition: width 0.4s ease, opacity 0.3s ease;
  position: absolute;
  right: 40px;
  height: 35px;
  border-radius: 35px;
  top: 7px;
}

.ariva_search_input.active {
    width: 180px;
    opacity: 1;
}

.ariva_top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1;
}

span.ariva_menuactive {
    display: none;
}
.ariva_sidebaralt {
    display: none;
}




/* Mobile Hamburger Menu Styles - Right Side */
.ariva_mobile_hamburger {
    position: relative;
    top: 3px;
    right: -116px;
    z-index: 1001;
    background: #AD9458;
    border-radius: 100%;
    padding: 8px;
    cursor: pointer;
    float: right;
}

.ariva_hamburger_btn {
    width: 14px;
    height: 14px;
    position: relative;
    cursor: pointer;
}

.ariva_hamburger_btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.ariva_hamburger_btn span:nth-child(1) {
    top: 0px;
}

.ariva_hamburger_btn span:nth-child(2) {
    top: 6px;
}

.ariva_hamburger_btn span:nth-child(3) {
    top: 12px;
}

/* Right Side Menu Overlay */
.ariva_mobile_menu_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ariva_mobile_menu_overlay.active {
    opacity: 1;
}

/* Right Side Menu Sidebar */
.ariva_mobile_menu_sidebar {
    position: fixed;
    top: 0;
    right: -320px; /* Changed from left to right */
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease; /* Changed from left to right */
    box-shadow: -2px 0 10px rgba(0,0,0,0.1); /* Shadow on left side now */
}

.ariva_mobile_menu_sidebar.active {
    right: 0; /* Changed from left to right */
}

.ariva_mobile_menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px 10px 14px;
    border-bottom: 1px solid #000;
    background: #000000;
}

.ariva_mobile_menu_logo img {
    max-height: 40px;
    width: auto;
}

.ariva_mobile_site_title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.ariva_mobile_menu_close {
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.ariva_mobile_menu_close:hover {
    color: #333;
}

.ariva_mobile_menu_content {
    padding: 20px 15px;
}

.custom-close-icon {
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.custom-close-icon:before,
.custom-close-icon:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 80%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.custom-close-icon:before {
    transform: rotate(45deg);
}

.custom-close-icon:after {
    transform: rotate(-45deg);
}

.custom-close-icon:hover:before,
.custom-close-icon:hover:after {
    background: #ccc;
}

/* Mobile Navigation */
.ariva_mobile_nav {
    margin-bottom: 20px;
    display: none;
}

.ariva_mobile_nav ul {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.ariva_mobile_nav ul li {
    margin-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.ariva_mobile_nav ul li:last-child {
    border-bottom: none;
}

.ariva_mobile_nav ul li a {
    display: block;
    padding: 5px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ariva_mobile_nav ul li a:hover {
    background: #f5f5f5;
    color: #007cba;
    padding-right: 15px; /* Changed from left to right */
}

/* Mobile Search */
.ariva_mobile_search {
    margin-bottom: 0px;
    padding: 0;
    border-bottom: none;
}

.ariva_mobile_search .search-form {
    display: flex;
    position: relative;
}

.ariva_mobile_search_input {
    flex: 1;
    padding: 12px 45px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.ariva_mobile_search_input:focus {
    border-color: #007cba;
}

.ariva_mobile_search_submit {
    position: absolute;
    right: 5px;
    top: 34%;
    transform: translateY(-50%);
    background: #000;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ariva_mobile_search_submit i {
    padding: 0;
}

/* Mobile Social Icons */
.ariva_mobile_social h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.ariva_mobile_social_icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ariva_mobile_social_icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.ariva_mobile_social_icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Social icon colors */
.ariva_socialiconfb { background: #3b5998; }
.ariva_socialicontwt { background: #1da1f2; }
.ariva_socialicongle { background: #dd4b39; }
.ariva_socialiconin { background: #0077b5; }
.ariva_socialiconpin { background: #bd081c; }
.ariva_socialiconig { background: #e4405f; }

/* Show hamburger only on mobile */
@media (max-width: 768px) {

    
    /* Prevent body scroll when menu is open */
    body.mobile_menu_open {
        overflow: hidden;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ariva_mobile_menu_sidebar {
        width: 280px;
        right: -280px; /* Changed from left to right */
    }
}

/* Hamburger animation when menu is open */
.ariva_mobile_hamburger.active .ariva_hamburger_btn span:nth-child(1) {
    transform: rotate(45deg);
    top: 6px;
}

.ariva_mobile_hamburger.active .ariva_hamburger_btn span:nth-child(2) {
    opacity: 0;
}

.ariva_mobile_hamburger.active .ariva_hamburger_btn span:nth-child(3) {
    transform: rotate(-45deg);
    top: 6px;
}


.ariva_mobile_menu_header a.ariva_mobile_site_title {
    color: #fff;
}







/* Mobile Recent Posts Section */
.ariva_mobile_recent_posts {
    margin-bottom: 30px;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.ariva_mobile_recent_posts h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffffff;
}

.ariva_recent_posts_list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ariva_recent_post_item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.ariva_recent_post_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007cba;
}

.ariva_recent_post_link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    gap: 12px;
}

.ariva_recent_post_thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.ariva_recent_post_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ariva_recent_post_item:hover .ariva_recent_post_thumb img {
    transform: scale(1.1);
}

.ariva_recent_post_content {
    flex: 1;
    min-width: 0;
}

.ariva_recent_post_title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ariva_recent_post_item:hover .ariva_recent_post_title {
    color: #007cba;
}

.ariva_recent_post_date {
    font-size: 12px;
    color: #000;
    display: block;
}

/* Fallback for posts without thumbnails */
.ariva_recent_post_link:not(:has(.ariva_recent_post_thumb)) .ariva_recent_post_content {
    width: 100%;
}

/* Responsive adjustments for recent posts */
@media (max-width: 480px) {
    .ariva_recent_post_thumb {
        width: 50px;
        height: 50px;
    }
    
    .ariva_recent_post_title {
        font-size: 13px;
    }
    
    .ariva_recent_post_link {
        padding: 8px;
        gap: 10px;
    }
}

/* Update mobile menu content spacing */
.ariva_mobile_menu_content {
    padding: 20px 15px;
}

/* Ensure proper spacing between sections */


.ariva_mobile_recent_posts {
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.ariva_mobile_social {
    margin-bottom: 10px;
    padding-top: 20px;
}

.ariva_slide_containeralt1 {
    background: #AD9458;
}
.arivahdr_alt1 .ariva_search, .arivahdr_alt1 .ariva_sidebaralt, .arivahdr_alt1 .ariva_share {
    background-color: #AD9458;
}
.ariva_header {
    border-bottom: 1px solid #AD9458 !important;
}

.ariva_sldfstbln a {
    color: #ffffff;
}
.ariva_blogpostinnertext {
    color: #AD9458;
}

.ariva_entrymeta a, .ariva_gridentry .ariva_entrymetablne a:hover, .ariva_breadcrumb a, .ariva_entrybyline a, .ariva_aboutreadmore {
    color: #AD9458 !important;
}

@media (max-width: 1200px) {
    .ariva_mobile_hamburger {
        top: 3px !important;
        right: -100px !important;
    }
}

@media (max-width: 1024px) {
    .ariva_header .ariva_hdwtscl .ariva_menuactive {
        right: 140px;
    }
    .ariva_search_input {
        margin-top: -16px !important;
        margin-right: -78px !important;
    }
    .ariva_mobile_hamburger {
        top: -14px !important;
        right: -136px !important;
    }
    .ariva_mobile_nav {
        display: block !important;
    }
}

@media screen and (max-width: 500px) {
    .ariva_header .ariva_hdwtscl .ariva_headerright .ariva_search, .ariva_header .ariva_hdwtsrc .ariva_headerright .ariva_share {
        right: -48px !important;
    }
    .ariva_search_input {
        margin-top: -5px !important;
        margin-right: -91px !important;
        width: 36% !important;
    }
    .page.ariva_spdsgnlayt1 .ariva_ppgecontentinner {
        margin: 0em auto 0 !important;
    }
    .ariva_main_container {
        padding: 0px 1em 2em 0 !important;
    }
    .ariva_archiveheader {
        padding: 5em 0 1em 2em;
    }
    .ariva_mobile_hamburger {
        top: -2px !important;
        right: -148px !important;
    }
    .ariva_mobile_menu_header {
        padding: 8px 14px;
    }
}
