/*
 Theme Name:   Envo Royal Child
 Template:     envo-royal
 Description:  Child theme for Envo Royal with custom HTML Header
 Version:      1.0.2
*/
:root {
    --pu-font-family: "Roboto", Sans-serif;
    --pu-primary-color: #0b3c5d;
    --pu-secondary-color: #0c28ff;
}

body {
    font-family: var(--pu-font-family) !important;
}

/* Reset/Base Styles */
.custom-header-wrapper {
    font-family: var(--pu-font-family);
}

.custom-header-wrapper * {
    box-sizing: border-box;
}

/* Custom Container for wider layout */
.ch-container {
    width: 100%;
    max-width: 1300px;
    /* Wider than standard 1140px to reduce side gaps */
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.ch-top-bar {
    background-color: #0d3b5b;
    color: #ffffff;
    padding: 12px 0;
    /* Slightly taller to match look */
    font-size: 13px;
    /* Slightly smaller for top bar text */
    font-weight: 600;
}

.ch-top-bar .ch-container {
    display: flex;
    justify-content: center;
    /* Keep centered as per ref */
    align-items: center;
    gap: 40px;
    /* More space between phone and email */
}

@media (max-width: 467px) {
    .ch-top-bar .ch-container {
        flex-direction: column;
        gap: 10px;
    }
}

.ch-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-contact-item i {
    color: #fff;
    font-size: 16px;
    vertical-align: middle;
}

.ch-contact-item span,
.ch-contact-item a {
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Main Navbar */
.ch-main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    padding: 10px 0;
    /* Adjusted padding */
}

.ch-main-nav .ch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.ch-logo img {
    height: 65px;
    /* Adjusted to match proportion */
    width: auto;
    display: block;
}

/* Desktop Menu */
.ch-desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    /* Adjusted gap */
}

.ch-desktop-menu ul li a {
    text-decoration: none;
    color: #0d3b5b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    font-family: var(--pu-font-family);
}

.ch-desktop-menu ul li a:hover {
    color: #337ab7;
}

/* Mobile Toggle */
.ch-mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #0d3b5b;
}

/* Mobile Menu Dropdown */
.ch-mobile-menu {
    display: none;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 0;
}

.ch-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ch-mobile-menu ul li {
    border-bottom: 1px solid #f0f0f0;
}

.ch-mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #0d3b5b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

@media (max-width: 991px) {
    .ch-desktop-menu {
        display: none;
    }

    .ch-mobile-toggle {
        display: block;
    }
}


/* FOOTER STYLES */
.ch-footer-main {
    background-color: #f7f9fb;
    /* Exact match provided */
    padding: 70px 0;
    font-family: var(--pu-font-family);
    color: #4a4a4a;
}

.custom-footer-wrapper * {
    box-sizing: border-box;
}

.ch-footer-row {
    display: flex;
    justify-content: space-between;
    /* Spread them out */
    flex-wrap: nowrap;
    /* Force single line on desktop */
    gap: 30px;
}



/* Col 1: Logo */
.ch-footer-logo-col {
    width: 30%;
    padding-right: 15px;
    display: flex;
    justify-content: center;
}

.ch-footer-logo-col img {
    height: 70px;
    width: auto;
    display: block;
}

/* Col 2: About Text */
.ch-footer-about-col {
    width: 20%;
}

.ch-footer-about-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #444444;
    margin: 0;
    font-weight: 500;
}

/* Col 3: Quick Links */
.ch-footer-links {
    width: 15%;
    flex-shrink: 0;
}

/* Col 4: Contact Info */
.ch-footer-contact {
    width: 25%;
    flex-shrink: 0;
}

/* Footer Headings */
.ch-footer-col h3 {
    color: #0d3b5b;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: capitalize;
    margin-top: 0;
}

/* Footer Links */
.ch-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-footer-links ul li {
    margin-bottom: 12px;
}

.ch-footer-links ul li a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-weight: 500;
}

.ch-footer-links ul li a:before {
    content: "\f105";
    /* angle-right */
    font-family: "Line Awesome Free";
    font-weight: 900;
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.ch-footer-links ul li a:hover {
    color: #0d3b5b;
    padding-left: 5px;
}


/* Footer Contact */
.ch-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.ch-footer-contact-item i {
    color: #0d3b5b;
    font-size: 20px;
    margin-top: 1px;
}

.ch-footer-contact-item a,
.ch-footer-contact-item span {
    color: #444;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

/* Footer Bottom */
.ch-footer-bottom {
    background-color: #0d3b5b;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    font-family: var(--pu-font-family);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ch-footer-bottom p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .ch-footer-row {
        flex-wrap: wrap;
        gap: 40px;
    }

    .ch-footer-logo-col {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .ch-footer-logo-col img {
        margin: 0 auto;
    }

    .ch-footer-about-col {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .ch-footer-links {
        width: 45%;
    }

    .ch-footer-contact {
        width: 45%;
    }
}

@media (max-width: 576px) {
    .ch-footer-links {
        width: 100%;
    }

    .ch-footer-contact {
        width: 100%;
    }
}

/* =========================================
   Single Post Hero Section
   ========================================= */
.ch-hero-section {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #222;
    /* Fallback color */
}

.ch-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 1;
    background-color: #222;
    /* Fallback color */
}

.ch-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.ch-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    background: #000000ab;
    width: auto;
    padding: 20px;
}

.ch-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 15px 0;
    text-transform: capitalize;
    line-height: 1.2;
}

.ch-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 25px;
}

.ch-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ch-meta-item i {
    font-size: 18px;
}

.ch-hero-scroll {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 4;
    animation: chBounce 2s infinite;
}

.ch-hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.ch-hero-scroll a:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.ch-hero-scroll i {
    font-size: 20px;
}

@keyframes chBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .ch-hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .ch-hero-title {
        font-size: 32px;
    }

    .ch-hero-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================
   SIDEBAR BASE
========================================= */
#sidebar {
    padding-top: 30px;
}

#sidebar .widget {
    margin-bottom: 50px;
}

/* =========================================
   WIDGET TITLE (Block Heading)
========================================= */
#sidebar .wp-block-heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--pu-primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    font-family: var(--pu-font-family), sans-serif;
    letter-spacing: -0.5px;
}

#sidebar .wp-block-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--pu-secondary-color);
}

/* =========================================
   LATEST POSTS (IMAGE STYLE)
========================================= */
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-latest-posts li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: start;
    /* Top align mainly */
    margin-bottom: 25px;
    position: relative;
}

/* Fallback image box (Only if NOT .has-thumb) */
.wp-block-latest-posts li:not(.has-thumb)::before {
    content: "\f0f6";
    /* File icon */
    font-family: "LineAwesome";
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 6px;
}

/* Ensure ::before is hidden if has-thumb is present */
.wp-block-latest-posts li.has-thumb::before {
    display: none !important;
    content: none !important;
}

/* Real Image Style */
.wp-block-latest-posts li img.post-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Post Content Wrapper */
.wp-block-latest-posts__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
}

/* Post title */
.wp-block-latest-posts__post-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 0;
    display: block;
}

.wp-block-latest-posts__post-title:hover {
    color: #3182ce;
}

/* Date */
.wp-block-latest-posts__post-date {
    font-size: 13px;
    color: #718096;
    display: block;
    margin-top: 3px;
    font-weight: 500;
}

/* =========================================
   SEARCH WIDGET CLEAN
========================================= */
.wp-block-search__inside-wrapper {
    display: flex !important;
    gap: 0 !important;
}

.wp-block-search__input {
    flex: 1;
    height: 44px;
    border: 1px solid #ddd !important;
    border-right: none !important;
    border-radius: 6px 0 0 6px;
    padding: 0 14px;
    font-size: 14px;
}

.wp-block-search__button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--pu-primary-color) !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0;
    background: var(--pu-primary-color);
    padding: 0;
    position: relative;
    font-size: 0;
}

/* CSS magnifier */
.wp-block-search__button::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 11px;
    left: 11px;
}

.wp-block-search__button::after {
    content: "";
    width: 8px;
    height: 2px;
    background: #fff;
    position: absolute;
    top: 25px;
    left: 24px;
    transform: rotate(45deg);
}

/* ===============================
   CATEGORIES – CLEAN CARD STYLE
================================ */
.wp-block-categories {
    padding: 0px;
}

.wp-block-categories li {
    list-style: disc;
    padding: 10px 0;
}

.wp-block-categories a {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
}

.wp-block-categories a:hover {
    color: #3182ce;
}

/* =========================================
   SINGLE POST NAVIGATION & META
========================================= */

/* Meta container (Categories/Tags) */
.cat-links,
.tags-links {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    background: #f1f5f9;
    color: #0d3b5b;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    margin: 0 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.cat-links a:hover,
.tags-links a:hover {
    background: #0d3b5b;
    color: #fff;
}

/* Edit link */
.post-edit-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #ff4757;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

/* Post Navigation (Next/Prev) */
.navigation.post-navigation {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.navigation.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.navigation.post-navigation .nav-previous:hover,
.navigation.post-navigation .nav-next:hover {
    border-color: #0d3b5b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Label (Previous/Next) */
.navigation.post-navigation .nav-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0aec0;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

/* Post Title in Nav */
.navigation.post-navigation .nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.4;
}

.navigation.post-navigation a {
    text-decoration: none;
}

/* Icons for directions */
.navigation.post-navigation .nav-previous:before {
    content: "\f104";
    /* angle-left */
    font-family: "Line Awesome Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    /* Larger icon */
    color: #cbd5e0;
    opacity: 0.5;
    /* Subtle */
}

.navigation.post-navigation .nav-next:before {
    content: "\f105";
    /* angle-right */
    font-family: "Line Awesome Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #cbd5e0;
    opacity: 0.5;
}

/* Add padding for icons */
.navigation.post-navigation .nav-previous {
    padding-left: 50px;
    /* Space for arrow */
    text-align: left;
}

.navigation.post-navigation .nav-next {
    padding-right: 50px;
    /* Space for arrow */
    text-align: right;
    align-items: flex-end;
    /* Align content to right */
}

/* Remove default arrows if theme adds simple ones */
.nav-previous .meta-nav,
.nav-next .meta-nav {
    display: none;
}