/* 1. Hide Featured Images ONLY on the Front Page */
.home .post-item-image,
.home .post-thumbnail,
.home .wp-post-image {
    display: none !important;
}

/* 2. Hide Upper Right Header Distortion */
.top-header .right-side,
.top-header .social-icons {
    display: none !important;
}


/* Fallback: Strip list dots and border lines from the header area */
header ul,
.site-header ul {
    list-style: none !important;
    border: none !important;
}

header li,
.site-header li {
    list-style-type: none !important;
    border: none !important;
}


/* 1. Center container and stack all buttons */
.wp-block-jetpack-subscriber-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}

/* 2. Unified sizing and styling across all 3 buttons */
.wp-block-jetpack-subscriber-login button,
.wp-block-jetpack-subscriber-login .is-subscribed,
.wp-block-jetpack-subscriber-login a[href*="subscription"],
.wp-block-jetpack-subscriber-login a[href*="logout"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    /* Fixed sizing ensures all 3 buttons match perfectly */
    width: 240px;
    height: 48px;
    box-sizing: border-box;
    
    background-color: #000000;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.wp-block-jetpack-subscriber-login button:hover,
.wp-block-jetpack-subscriber-login a:hover {
    opacity: 0.85;
}

/* 3. Icon definitions (SVG Data URIs) */

/* Checkmark Icon for "Subscribed" */
.wp-block-jetpack-subscriber-login .is-subscribed::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Gear Icon for "Manage subscription" */
.wp-block-jetpack-subscriber-login a[href*="subscription"]::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Logout Icon for "Log out" */
.wp-block-jetpack-subscriber-login a[href*="logout"]::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Hover effects */
.wp-block-jetpack-subscriber-login button:hover,
.wp-block-jetpack-subscriber-login a[href*="subscription"]:hover {
    opacity: 0.85;
}

/* 3. Add White Gear Icon to "Manage subscription" */
.wp-block-jetpack-subscriber-login a[href*="subscription"]::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* No official footer */
.site-footer .bottom-footer,
.site-footer .site-info,
.site-footer .menu-footer-container,
.site-footer nav {
  display: none !important;
}

/* Financial Times Theme for Jetpack Subscriptions */

/* 1. Email input field (Ivory Linen background) */
.wp-block-jetpack-subscriptions input[type="email"],
.jetpack_subscription_widget input[type="email"] {
    background-color: #F2DFCE !important;
    color: #262a33 !important;
    border: 1px solid #e0c8b6 !important;
    border-radius: 4px !important;
}

/* Placeholder text color inside the input */
.wp-block-jetpack-subscriptions input[type="email"]::placeholder {
    color: #666666 !important;
}

/* 2. Subscribe Button (FT Trendy Teal background) */
.wp-block-jetpack-subscriptions .wp-block-jetpack-subscriptions__button,
.wp-block-jetpack-subscriptions button[type="submit"],
.jetpack_subscription_widget button,
.jetpack_subscription_widget input[type="submit"] {
    background-color: #0D7680 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 18px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

/* 3. Button Hover State (Darker Teal) */
.wp-block-jetpack-subscriptions .wp-block-jetpack-subscriptions__button:hover,
.wp-block-jetpack-subscriptions button[type="submit"]:hover,
.jetpack_subscription_widget button:hover,
.jetpack_subscription_widget input[type="submit"]:hover {
    background-color: #095a62 !important;
    color: #ffffff !important;
}

/* Force Jetpack Subscribed Button Text to White */
.wp-block-jetpack-subscriptions #subscribe-submit.is-link a,
.wp-block-jetpack-subscriptions a.wp-block-button__link,
.wp-block-jetpack-subscriptions__button,
.jetpack_subscription_widget button {
    color: #ffffff !important;
}

/* Keep Copyright text, hide Theme Author Credit */
.bottom-footer-info .site-info span {
    font-size: 0 !important; /* Hide all default inline text nodes */
}

.bottom-footer-info .site-info span a:first-child,
.bottom-footer-info .site-info span:first-line {
    font-size: 14px !important; /* Restore font size for your site name/link */
}

/* Hide the theme author link explicitly */
.bottom-footer-info .site-info a[href*="adorethemes.com"],
.bottom-footer-info .site-info a[href*="wordpress.org"] {
    display: none !important;
}


/* Completely remove the Jetpack Infinite Scroll footer bar */
#infinite-footer {
    display: none !important;
}


/* Target links in the header widget area specifically */
.site-header .widget a, 
.header-widgets a, 
#header-widgets a {
    color: #ffffff !important; /* Change #ffffff to your desired color, e.g., yellow or white */
    text-decoration: none !important;
}

/* Ensure no underline on hover either */
.site-header .widget a:hover, 
.header-widgets a:hover, 
#header-widgets a:hover {
    color: #f0f0f0 !important; /* Slightly dimmer color on hover if desired */
    text-decoration: none !important;
}


/* Apply Microsoft YaHei globally for Traditional Chinese (Taiwan/Hong Kong/Standard) */
html[lang="zh-TW"] body,
html[lang="zh-TW"] h1,
html[lang="zh-TW"] h2,
html[lang="zh-TW"] h3,
html[lang="zh-TW"] h4,
html[lang="zh-TW"] h5,
html[lang="zh-TW"] h6,
html[lang="zh-TW"] p,
html[lang="zh-TW"] a,
html[lang="zh-TW"] span,
html[lang="zh-TW"] div,
html[lang="zh-TW"] li,
html[lang="zh-HK"] body,
html[lang="zh-HK"] h1,
html[lang="zh-HK"] h2,
html[lang="zh-HK"] h3,
html[lang="zh-HK"] h4,
html[lang="zh-HK"] h5,
html[lang="zh-HK"] h6,
html[lang="zh-HK"] p,
html[lang="zh-HK"] a,
html[lang="zh-HK"] span,
html[lang="zh-HK"] div,
html[lang="zh-HK"] li,
html[lang^="zh-Hant"] body,
html[lang^="zh-Hant"] h1,
html[lang^="zh-Hant"] h2,
html[lang^="zh-Hant"] h3,
html[lang^="zh-Hant"] h4,
html[lang^="zh-Hant"] h5,
html[lang^="zh-Hant"] h6,
html[lang^="zh-Hant"] p,
html[lang^="zh-Hant"] a,
html[lang^="zh-Hant"] span,
html[lang^="zh-Hant"] div,
html[lang^="zh-Hant"] li {
    font-family: "Microsoft YaHei", "微軟雅黑", "Microsoft JhengHei", sans-serif !important;
}