/* ==========================================================
   Velki Baajiwala 9xbet9 Agent List - Exact Theme Clone
   Based on WordPress Graceful Theme v1.0.4
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* --- Reset & Normalize --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #ffffff;
    color: #010101;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: #010101;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: rgba(1, 1, 1, 0.75);
}

img {
    height: auto;
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

.clear-fix::after {
    content: "";
    display: table;
    clear: both;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.wrapped-content {
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* --- Header & Branding --- */
#site-header {
    background-color: #ffffff;
    width: 100%;
}

.entry-header {
    background-color: #ffffff;
    padding: 20px 0 10px;
    text-align: center;
}

.site-branding {
    display: inline-block;
    text-align: center;
}

.site-branding a.logo-img {
    display: inline-block;
    background-color: transparent !important;
}

.site-branding a.logo-img img {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* --- Main Navigation Bar --- */
#main-navigation {
    background-color: #f1f1f1;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 999;
}

#main-navigation .wrapped-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 46px;
}

.site-menu-wrapper {
    flex: 1;
}

#site-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#site-menu li {
    position: relative;
}

#site-menu li a {
    display: block;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

#site-menu li a:hover,
#site-menu li.current-menu-item>a {
    color: #010101;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Navigation Search */
.main-navigation-search {
    position: relative;
    margin-left: 10px;
}

.navigation-search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    font-size: 14px;
    padding: 12px 10px;
}

.graceful-search {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    z-index: 1000;
    min-width: 260px;
}

.graceful-search.active {
    display: block;
}

.graceful-search form {
    display: flex;
}

.graceful-search #s {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 13px;
    background-color: #f1f1f1;
}

.graceful-search #searchsubmit {
    background: #555555;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.graceful-search #searchsubmit:hover {
    background: #010101;
}

.close-graceful-search {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 11px;
}

/* Responsive Menu */
.responsive-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    font-size: 16px;
    padding: 12px;
}

.responsive-menu-wrapper {
    display: none;
    background-color: #f1f1f1;
    border-bottom: 1px solid #e8e8e8;
}

.responsive-menu-wrapper.active {
    display: block;
}

#responsive-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    border-bottom: 1px solid #e0e0e0;
}

#responsive-menu li.current-menu-item a {
    background: rgba(0, 0, 0, 0.05);
}

/* --- Layout: Main Content + Sidebar --- */
.main-content {
    display: flex;
    justify-content: space-between;
    padding-top: 35px;
    padding-bottom: 50px;
    background-color: #ffffff;
}

.content-wrap {
    width: calc(100% - 307px);
    padding-right: 30px;
}

.sidebar-right-wrap {
    width: 307px;
    flex-shrink: 0;
}

.sidebar-right {
    width: 100%;
}

/* --- Page Content Styling --- */
.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 52px !important;
    font-weight: 400 !important;
    color: #030303;
    letter-spacing: 0.5px;
}

/* Paragraph & Typography from Graceful Theme */
p {
    margin-bottom: 18px;
    font-size: 18.5px;
}

.post-page-content p {
    font-size: 18.5px !important;
    letter-spacing: 0.02em;
    line-height: 34px !important;
}

/* Headings Base */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Times', serif;
    font-weight: 500;
}

h1 {
    clear: both;
    font-size: 50px !important;
    line-height: normal;
    margin: 0;
}

h2 {
    clear: both;
    font-size: 42px !important;
    line-height: normal;
    margin: 0;
}

h3 {
    clear: both;
    font-size: 36px !important;
    line-height: normal;
    margin: 0;
}

h4 {
    clear: both;
    font-size: 30px !important;
    line-height: normal;
    margin: 0;
    text-align: center;
}

h5 {
    clear: both;
    font-size: 26px !important;
    line-height: normal;
    margin: 0;
}

h6 {
    clear: both;
    font-size: 23px !important;
    line-height: normal;
    margin: 0;
}

#primary h1 a, #primary h1, #primary h2, #primary h3,
#primary h4, #primary h5, #primary h6, .post-page-content > p:first-child:first-letter,
#primary .author-info h4 a, #primary .related-posts h4 a, #primary .content-pagination .previous-page a,
#primary .content-pagination .next-page a, blockquote, #primary .post-share a {
    color: #030303;
}

.post-page-content h1 {
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', 'Times', serif;
    font-size: 50px !important;
    font-weight: 500;
    line-height: normal;
    color: #030303;
}

.post-page-content h2 {
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', 'Times', serif;
    font-size: 42px !important;
    font-weight: 500;
    line-height: normal;
    color: #030303;
}

.post-page-content h3 {
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', 'Times', serif;
    font-size: 36px !important;
    font-weight: 500;
    line-height: normal;
    color: #030303;
}

.post-page-content h4 {
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', 'Times', serif;
    font-size: 30px !important;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    color: #030303;
}

/* Card Form Container */
.post-page-content form {
    max-width: 440px;
    margin: 0 auto;
    padding: 22px 24px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.post-page-content label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #444444;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

.post-page-content input[type="text"],
.post-page-content select {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
    font-size: 16px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.post-page-content select {
    margin-bottom: 20px;
    cursor: pointer;
}

.post-page-content input[type="text"]:focus,
.post-page-content select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}

/* Submit Button */
.post-page-content input[type="submit"] {
    width: auto;
    min-width: 90px;
    background: transparent;
    color: #000000;
    padding: 8px 18px 2px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    display: block;
    margin: 6px auto 0;
    text-align: center;
    transition: opacity 0.2s;
}

.post-page-content input[type="submit"]:hover {
    opacity: 0.75;
    background: transparent;
}

/* Separator */
.wp-block-separator {
    border: none;
    border-bottom: 2px solid #757575;
    width: 120px;
    margin: 35px auto;
    opacity: 0.7;
}

.wp-block-separator.has-alpha-channel-opacity {
    opacity: 0.6;
}

/* Form 2: Phone Search Section with full outer border box */
.phone-search-section {
    width: 100%;
    margin: 0 auto;
    border: 1px solid #000000;
    padding: 32px 20px 28px;
    background-color: #ffffff;
}

.phone-search-section h4 {
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', 'Times', serif;
    font-size: 30px !important;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    color: #030303;
}

/* Bottom centered link */
.has-text-align-center {
    text-align: center;
    margin-top: 25px;
}

.has-text-align-center a {
    color: #010101;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.has-text-align-center a:hover {
    color: #0056b3;
}

/* --- Sidebar Widgets --- */
.graceful-widget {
    margin-bottom: 30px;
}

/* Ribbon Widget Title with Downward Arrow - Original Small Uppercase Style */
.graceful-widget h2.widget-title,
.widget-title {
    background-color: #f1f1f1 !important;
    color: #000000 !important;
    text-align: center;
    padding: 10px 15px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    position: relative;
    margin-bottom: 18px !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height: normal !important;
    clear: both;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #f1f1f1 transparent transparent;
}

/* Quick Agent Outer Black Border Box */
.quick-agent-outer-box {
    border: 1.5px solid #000000;
    padding: 10px;
    background-color: #ffffff;
}

.quick-agent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quick-agent-item {
    padding: 14px 14px;
    font-size: 14px !important;
    line-height: 1.85 !important;
    color: #000000;
    font-family: Arial, sans-serif;
}

.quick-agent-item:nth-child(odd) {
    background-color: #ededed;
}

.quick-agent-item:nth-child(even) {
    background-color: #ffffff;
}

.quick-agent-item strong {
    font-weight: 700;
    color: #000000;
    font-size: 14px !important;
}

.quick-agent-item a {
    color: #000000;
    font-weight: 700;
    font-size: 14px !important;
    text-decoration: underline !important;
}

.quick-agent-item a:hover {
    color: #333333;
}

.quick-agent-item .emoji-tick {
    font-size: 13px !important;
    margin: 0 3px 0 1px;
    display: inline-block;
    vertical-align: baseline;
}

.quick-agent-bottom-line {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

/* Chat With Us Widget Box */
.chat-widget-box {
    border: 1px solid #dcdcdc;
    padding: 6px;
    background: #ffffff;
    text-align: center;
}

.chat-widget-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Search Results Dropdown/Box --- */
.search-results {
    max-width: 500px;
    margin: 25px auto 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

.search-results h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.result-card {
    background: #ffffff;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* --- Table for Master/Super/Subadmin Pages --- */
.agent-list-table {
    overflow-x: auto;
    margin: 20px 0;
}

.agent-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.agent-table thead {
    background-color: #f1f1f1;
    border-bottom: 2px solid #ccc;
}

.agent-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.agent-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.agent-table tbody tr:hover {
    background-color: #f3f9f3;
}

/* --- Footer --- */
#site-footer {
    background-color: #f6f6f6;
    color: #333333;
    padding: 25px 0;
    border-top: 1px solid #e0dbdb;
    font-size: 13px;
}

.footer-bottom-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.footer-credits {
    color: #555555;
}

.footer-credits a {
    color: #222222;
    font-weight: 600;
}

.footer-credits a:hover {
    color: #000000;
}

/* Intercom Floating Button */
.intercom-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #081e3d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.intercom-launcher:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.intercom-launcher svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

/* Scroll To Top */
.scrolltop {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 36px;
    height: 36px;
    background-color: #555555;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999;
}

.scrolltop.visible {
    opacity: 0.85;
    visibility: visible;
}

.scrolltop:hover {
    opacity: 1;
    background-color: #000000;
}

/* --- Responsive Adjustments Matching Mobile Screenshot --- */
@media screen and (max-width: 960px) {
    #main-navigation .wrapped-content {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 42px;
        padding: 0 15px;
    }

    .site-menu-wrapper {
        display: none;
    }

    #site-menu {
        display: none;
    }

    .responsive-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background: none;
        border: none;
        color: #000000;
        font-size: 16px;
        padding: 10px 25px;
        cursor: pointer;
    }

    .main-navigation-search {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .navigation-search-button {
        padding: 8px 10px;
        font-size: 14px;
    }

    .wrapped-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .entry-header {
        padding: 15px 0 10px;
    }

    .site-branding a.logo-img img {
        max-width: 270px;
        width: 100%;
        height: auto;
    }

    .main-content {
        flex-direction: column;
        padding: 25px 15px 40px;
        gap: 30px;
    }

    .content-wrap {
        width: 100%;
        padding-right: 0;
    }

    .sidebar-right-wrap {
        width: 100%;
        max-width: 100%;
        margin: 10px auto 0;
    }

    .page-title {
        font-size: 36px !important;
        margin-bottom: 20px;
    }

    .post-page-content h4,
    .phone-search-section h4 {
        font-size: 24px !important;
        margin-bottom: 14px;
    }

    .post-page-content form {
        max-width: 100%;
        width: 100%;
        padding: 16px 14px;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
    }

    .phone-search-section {
        width: 100%;
        padding: 22px 10px 18px;
        border: 1px solid #000000;
    }

    .phone-search-section form {
        max-width: 100%;
        width: 100%;
    }

    .quick-agent-outer-box {
        border: 1px solid #000000;
        padding: 8px;
    }

    .chat-widget-box {
        border: 1px solid #000000;
        padding: 0;
        background: #ffffff;
    }

    .chat-widget-box img {
        width: 100%;
        height: auto;
        display: block;
    }

    .intercom-launcher {
        bottom: 18px;
        right: 14px;
        width: 48px;
        height: 48px;
    }

    .intercom-launcher svg {
        width: 22px;
        height: 22px;
    }

    .scrolltop {
        bottom: 75px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .site-branding a.logo-img img {
        max-width: 250px;
    }

    .page-title {
        font-size: 32px !important;
    }

    .post-page-content h4,
    .phone-search-section h4 {
        font-size: 22px !important;
    }

    .post-page-content label {
        font-size: 14.5px;
    }

    .post-page-content input[type="text"],
    .post-page-content select {
        height: 40px;
        font-size: 14.5px;
    }
}