/*
Theme Name: 港湾 (Gangwan) Theme
Theme URI: https://www.gangwan123.com
Author: 林刚 (Lin Gang)
Author URI: https://www.gangwan123.com
Description: 港湾项目定制WordPress主题，提供专业的投标信息、行业新闻、指南、科技工具、团队介绍和联系方式。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gangwan
*/

/* Custom styles for gradients, shadows, etc. */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}
.btn-primary {
    background: linear-gradient(to right, #4CAF50, #8BC34A); /* Example gradient */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.card-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.text-gradient {
    background: linear-gradient(to right, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.icon-box {
    background-color: #e0f2fe; /* Light blue background for icons */
    color: #2563eb; /* Darker blue for icon */
}
.footer-link:hover {
    text-decoration: underline;
}

/* Scrolling Announcement Bar */
.announcement-bar {
    background-color: #1e40af; /* Dark blue background */
    /* color: #fff;  -- Removed this line to allow dynamic color from Customizer */
    padding: 0.5rem 0; /* py-2 */
    font-size: 0.875rem; /* text-sm */
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 60; /* Higher than header's z-index 50 */
    text-align: center; /* Center the text within the bar */
}

.announcement-text {
    display: inline-block;
    padding-left: 100%; /* Start off-screen to the right */
    animation: marquee 15s linear infinite; /* Adjust duration as needed */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* Header Specific Styles */
.header-transparent {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
}

/* Dropdown Menu Styles for Header Navigation */
.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav ul li {
    position: relative;
}

.header-nav ul li a {
    display: block;
    padding: 0.5rem 1rem; /* Adjust padding as needed */
    text-decoration: none;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

/* Hide sub-menus by default */
.header-nav ul ul {
    display: none;
    position: absolute;
    top: 100%; /* Position below the parent item */
    left: 0;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly less transparent for readability */
    min-width: 160px; /* Adjust as needed */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100; /* Ensure dropdown is above other content */
    border-radius: 0.5rem; /* Rounded corners for dropdown */
    padding: 0.5rem 0;
}

/* Show sub-menus on hover */
.header-nav ul li:hover > ul {
    display: block;
}

/* Style for sub-menu items */
.header-nav ul ul li {
    border-bottom: 1px solid #eee; /* Separator for dropdown items */
}

.header-nav ul ul li:last-child {
    border-bottom: none;
}

.header-nav ul ul li a {
    color: #333;
    padding: 0.75rem 1rem;
}

.header-nav ul ul li a:hover {
    background-color: #f0f0f0;
    color: #2563eb;
}


/* Mobile Menu Overlay */
#mobile-menu-overlay {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%); /* Start off-screen */
}
#mobile-menu-overlay.open {
    transform: translateX(0); /* Slide in */
}

/* Pagination Styling */
.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem; /* Space between page numbers */
}

.page-numbers li {
    margin: 0;
    padding: 0;
}

.page-numbers a,
.page-numbers span.current,
.page-numbers span.dots {
    display: block;
    padding: 0.75rem 1rem; /* Generous padding for touch targets */
    border-radius: 0.5rem; /* Rounded corners */
    border: 1px solid #d1d5db; /* Light gray border */
    color: #4b5563; /* Darker gray text */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: 500; /* Medium font weight */
}

.page-numbers a:hover {
    background-color: #e5e7eb; /* Lighter gray on hover */
    color: #1f2937; /* Darker text on hover */
    border-color: #9ca3af; /* Darker border on hover */
}

.page-numbers span.current {
    background-color: #2563eb; /* Blue background for current page */
    color: #ffffff; /* White text for current page */
    border-color: #2563eb;
    cursor: default;
}

.page-numbers span.dots {
    background-color: transparent;
    border-color: transparent;
    cursor: default;
}

/* Previous and Next links */
.page-numbers .prev,
.page-numbers .next {
    font-size: 0.875rem; /* text-sm */
    padding: 0.75rem 1.25rem;
}
