/*
 Theme Name:   ProSite Theme
 Theme URI:    https://prosite.dev
 Description:  A corporate minimalist theme with clean, professional design. Dark navy and white palette with Inter typography.
 Author:       ProSite Dev Team
 Author URI:   https://prosite.dev
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  prosite-theme
*/

/* ==========================================================================
   Google Fonts - Inter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --ps-primary: #1B2A4A;
    --ps-secondary: #FFFFFF;
    --ps-accent: #3B82F6;
    --ps-accent-hover: #2563EB;
    --ps-text: #1B2A4A;
    --ps-text-light: #64748B;
    --ps-border: #E2E8F0;
    --ps-bg-light: #F8FAFC;
    --ps-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ps-transition: 0.2s ease;
}

/* ==========================================================================
   Global Reset & Base Typography
   ========================================================================== */

body,
body.et-tb,
body.et-tb-has-header,
#page-container {
    font-family: var(--ps-font) !important;
    color: var(--ps-text);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_slide_description .et_pb_slide_title,
.et_pb_fullwidth_header_container h1,
.et_pb_fullwidth_header_container h2 {
    font-family: var(--ps-font) !important;
    color: var(--ps-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1, .et_pb_slide_description .et_pb_slide_title {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p,
.et_pb_text_inner p,
.et_pb_blurb_description,
.et_pb_toggle_content,
.et_pb_tab_content {
    font-family: var(--ps-font) !important;
    color: var(--ps-text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Links
   ========================================================================== */

a,
.et_pb_module a {
    color: var(--ps-accent);
    text-decoration: none;
    transition: color var(--ps-transition);
}

a:hover,
.et_pb_module a:hover {
    color: var(--ps-accent-hover);
    text-decoration: none;
}

/* ==========================================================================
   Remove Divi Decorative Elements (shadows, gradients, rounded corners)
   ========================================================================== */

.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module,
.et_pb_blog_grid .et_pb_post,
.et_pb_portfolio_item,
.et_pb_gallery_item,
.et_pb_team_member,
.et_pb_pricing_table,
.et_pb_toggle,
.et_pb_accordion,
.et_pb_tab_active,
.et_pb_all_tabs,
.et_pb_slide,
.et_pb_cta_button,
.et_pb_button,
.et_pb_contact_submit,
.et_pb_newsletter_button {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
    text-shadow: none !important;
}

.et_pb_section {
    background-image: none !important;
}

.et_pb_module.et-waypoint {
    opacity: 1 !important;
}

/* Remove default Divi animations for cleaner feel */
.et-waypoint:not(.et_pb_counters) {
    opacity: 1 !important;
}

/* ==========================================================================
   Navigation / Header
   ========================================================================== */

#main-header,
#top-header,
.et-fixed-header#main-header {
    background-color: var(--ps-secondary) !important;
    box-shadow: 0 1px 0 var(--ps-border) !important;
    border-bottom: none;
}

#main-header .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

#logo {
    max-height: 40px !important;
}

/* Navigation links */
#top-menu li a,
.et-menu li a,
#top-menu-nav > ul > li > a {
    font-family: var(--ps-font) !important;
    color: var(--ps-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    padding-bottom: 0 !important;
    transition: color var(--ps-transition);
}

#top-menu li a:hover,
.et-menu li a:hover {
    color: var(--ps-accent) !important;
    opacity: 1 !important;
}

/* Active menu item */
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
    color: var(--ps-accent) !important;
    font-weight: 600 !important;
}

/* Dropdown menus */
#top-menu li ul.sub-menu,
.et-menu li ul.sub-menu,
.nav li ul {
    background-color: var(--ps-secondary) !important;
    border: 1px solid var(--ps-border) !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07) !important;
    padding: 8px 0 !important;
}

#top-menu li ul.sub-menu li a,
.nav li ul li a {
    font-size: 13px !important;
    padding: 8px 20px !important;
    color: var(--ps-text) !important;
}

#top-menu li ul.sub-menu li a:hover {
    background-color: var(--ps-bg-light) !important;
    color: var(--ps-accent) !important;
}

/* Remove menu item separator dots/bars */
#top-menu li::before,
#top-menu li::after {
    display: none !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.et_pb_button,
.et_pb_cta_button,
.et_pb_contact_submit,
.et_pb_newsletter_button,
.et_pb_pricing_table_button,
.et_pb_promo_button,
.et_pb_more_button,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce .button,
.et_pb_slide_description .et_pb_button {
    font-family: var(--ps-font) !important;
    background-color: var(--ps-accent) !important;
    color: var(--ps-secondary) !important;
    border: 2px solid var(--ps-accent) !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 12px 28px !important;
    transition: all var(--ps-transition) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.et_pb_button:hover,
.et_pb_cta_button:hover,
.et_pb_contact_submit:hover,
.et_pb_newsletter_button:hover,
.et_pb_pricing_table_button:hover,
.et_pb_promo_button:hover,
.et_pb_more_button:hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
.et_pb_slide_description .et_pb_button:hover {
    background-color: var(--ps-accent-hover) !important;
    border-color: var(--ps-accent-hover) !important;
    color: var(--ps-secondary) !important;
}

/* Outline / ghost button variant */
.et_pb_button.et_pb_bg_layout_light,
.et_pb_module .et_pb_button.et_pb_bg_layout_light {
    background-color: transparent !important;
    color: var(--ps-accent) !important;
    border: 2px solid var(--ps-accent) !important;
}

.et_pb_button.et_pb_bg_layout_light:hover {
    background-color: var(--ps-accent) !important;
    color: var(--ps-secondary) !important;
}

/* Remove Divi button arrow icon */
.et_pb_button::after,
.et_pb_cta_button::after,
.et_pb_contact_submit::after,
.et_pb_newsletter_button::after,
.et_pb_promo_button::after,
.et_pb_more_button::after {
    display: none !important;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.et_pb_contact_form input[type="text"],
.et_pb_contact_form input[type="email"],
.et_pb_contact_form input[type="tel"],
.et_pb_contact_form input[type="url"],
.et_pb_contact_form textarea,
.et_pb_contact_form select,
.et_pb_newsletter_form input[type="text"],
.et_pb_newsletter_form input[type="email"],
.input[type="text"],
.input[type="email"],
.input[type="password"],
.input[type="search"],
textarea,
select {
    font-family: var(--ps-font) !important;
    background-color: var(--ps-secondary) !important;
    border: 1px solid var(--ps-border) !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--ps-text) !important;
    box-shadow: none !important;
    transition: border-color var(--ps-transition) !important;
    outline: none !important;
}

.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--ps-accent) !important;
    box-shadow: 0 0 0 1px var(--ps-accent) !important;
}

.et_pb_contact_form label,
.et_pb_newsletter_form label {
    font-family: var(--ps-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--ps-text) !important;
    margin-bottom: 6px !important;
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */

.et_pb_section {
    padding: 80px 0 !important;
}

.et_pb_section.et_pb_section_first {
    padding-top: 80px !important;
}

.et_pb_row {
    max-width: 1200px !important;
    padding: 0 !important;
}

.et_pb_with_background .et_pb_row {
    padding: 0 !important;
}

/* Alternate section background */
.et_pb_section:nth-child(even) {
    background-color: var(--ps-bg-light);
}

/* ==========================================================================
   Blurb Module
   ========================================================================== */

.et_pb_blurb_container h4,
.et_pb_blurb_container .et_pb_module_header {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

.et_pb_blurb_description {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
}

.et_pb_main_blurb_image .et-pb-icon {
    color: var(--ps-accent) !important;
    font-size: 40px !important;
}

/* ==========================================================================
   CTA / Promo Module
   ========================================================================== */

.et_pb_promo,
.et_pb_cta {
    background-color: var(--ps-primary) !important;
    border: none !important;
    padding: 60px !important;
}

.et_pb_promo h2,
.et_pb_cta h2 {
    color: var(--ps-secondary) !important;
}

.et_pb_promo .et_pb_promo_description p,
.et_pb_cta .et_pb_promo_description p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ==========================================================================
   Blog Module
   ========================================================================== */

.et_pb_blog_grid .et_pb_post {
    border: 1px solid var(--ps-border) !important;
    background: var(--ps-secondary) !important;
}

.et_pb_post .entry-title a,
.et_pb_post h2 a {
    color: var(--ps-primary) !important;
    font-weight: 600 !important;
}

.et_pb_post .entry-title a:hover,
.et_pb_post h2 a:hover {
    color: var(--ps-accent) !important;
}

.et_pb_post .post-meta,
.et_pb_post .post-meta a {
    color: var(--ps-text-light) !important;
    font-size: 13px !important;
}

/* ==========================================================================
   Pricing Tables
   ========================================================================== */

.et_pb_pricing_table {
    border: 1px solid var(--ps-border) !important;
    background: var(--ps-secondary) !important;
    margin: 0 !important;
}

.et_pb_pricing_heading {
    background: transparent !important;
    border-bottom: 1px solid var(--ps-border) !important;
    padding: 30px !important;
}

.et_pb_pricing_heading h2 {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--ps-text) !important;
}

.et_pb_sum {
    color: var(--ps-primary) !important;
    font-weight: 700 !important;
}

.et_pb_pricing_table.et_pb_featured_table {
    border-color: var(--ps-accent) !important;
    border-width: 2px !important;
}

/* ==========================================================================
   Toggle / Accordion Module
   ========================================================================== */

.et_pb_toggle {
    border: 1px solid var(--ps-border) !important;
    border-bottom: none !important;
    background: var(--ps-secondary) !important;
}

.et_pb_toggle:last-child {
    border-bottom: 1px solid var(--ps-border) !important;
}

.et_pb_toggle_title {
    font-family: var(--ps-font) !important;
    font-weight: 600 !important;
    color: var(--ps-primary) !important;
    font-size: 1rem !important;
}

.et_pb_toggle_open .et_pb_toggle_title {
    color: var(--ps-accent) !important;
}

/* ==========================================================================
   Tabs Module
   ========================================================================== */

.et_pb_tabs .et_pb_tab_active a {
    color: var(--ps-accent) !important;
    border-bottom: 2px solid var(--ps-accent) !important;
}

.et_pb_all_tabs {
    border: 1px solid var(--ps-border) !important;
}

.et_pb_tabs_controls li {
    background: transparent !important;
}

/* ==========================================================================
   Testimonial Module
   ========================================================================== */

.et_pb_testimonial {
    background: var(--ps-bg-light) !important;
    border: none !important;
    padding: 40px !important;
}

.et_pb_testimonial_author {
    font-weight: 600 !important;
    color: var(--ps-primary) !important;
}

.et_pb_testimonial_meta {
    color: var(--ps-text-light) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#main-footer,
#footer-info,
.et-l--footer {
    background-color: var(--ps-primary) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

#footer-widgets .footer-widget h4,
#main-footer .footer-widget h4 {
    color: var(--ps-secondary) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 20px !important;
}

#footer-widgets .footer-widget li a,
#main-footer .footer-widget li a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px !important;
}

#footer-widgets .footer-widget li a:hover,
#main-footer .footer-widget li a:hover {
    color: var(--ps-secondary) !important;
}

#footer-bottom {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

#footer-info {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

#sidebar .et_pb_widget {
    border: none !important;
    border-bottom: 1px solid var(--ps-border) !important;
    padding-bottom: 30px !important;
    margin-bottom: 30px !important;
}

#sidebar .et_pb_widget h4,
#sidebar .et_pb_widget .widgettitle {
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    color: var(--ps-primary) !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--ps-accent) !important;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.et_mobile_menu {
    background-color: var(--ps-secondary) !important;
    border-top: 1px solid var(--ps-border) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07) !important;
}

.et_mobile_menu li a {
    font-family: var(--ps-font) !important;
    color: var(--ps-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--ps-border) !important;
    padding: 14px 20px !important;
}

.mobile_menu_bar::before {
    color: var(--ps-primary) !important;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination a,
.wp-pagenavi a,
.wp-pagenavi span {
    font-family: var(--ps-font) !important;
    border: 1px solid var(--ps-border) !important;
    background: transparent !important;
    color: var(--ps-text) !important;
    border-radius: 0 !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
}

.pagination a:hover,
.wp-pagenavi a:hover {
    background: var(--ps-accent) !important;
    border-color: var(--ps-accent) !important;
    color: var(--ps-secondary) !important;
}

.wp-pagenavi span.current {
    background: var(--ps-accent) !important;
    border-color: var(--ps-accent) !important;
    color: var(--ps-secondary) !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.ps-text-center {
    text-align: center;
}

.ps-mt-0 {
    margin-top: 0 !important;
}

.ps-mb-0 {
    margin-bottom: 0 !important;
}

.ps-bg-primary {
    background-color: var(--ps-primary) !important;
}

.ps-bg-light {
    background-color: var(--ps-bg-light) !important;
}

.ps-text-white {
    color: var(--ps-secondary) !important;
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ps-bg-light);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ps-text-light);
}

/* ==========================================================================
   Selection Color
   ========================================================================== */

::selection {
    background-color: var(--ps-accent);
    color: var(--ps-secondary);
}

::-moz-selection {
    background-color: var(--ps-accent);
    color: var(--ps-secondary);
}

/* ==========================================================================
   ProSite Custom Templates - Standalone Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.ps-header {
    background-color: var(--ps-primary);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ps-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.ps-header-brand a,
.ps-site-title {
    color: var(--ps-secondary) !important;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.ps-header-brand img {
    max-height: 36px;
    width: auto;
}

/* Navigation */
.ps-header-nav {
    display: flex;
    align-items: center;
}

.ps-nav-menu,
.ps-fallback-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ps-nav-menu li,
.ps-fallback-menu li {
    position: relative;
}

.ps-nav-menu li a,
.ps-fallback-menu li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    text-decoration: none;
    transition: color var(--ps-transition), background-color var(--ps-transition);
    border-radius: 4px;
    display: block;
    white-space: nowrap;
}

.ps-nav-menu li a:hover,
.ps-nav-menu li.current-menu-item > a,
.ps-nav-menu li.current-cat > a,
.ps-fallback-menu li a:hover,
.ps-fallback-menu li.current-cat > a {
    color: var(--ps-secondary) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.ps-nav-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ps-secondary);
    border: 1px solid var(--ps-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 4px 0 0;
    padding: 8px 0;
    min-width: 200px;
    z-index: 100;
}

.ps-nav-menu li:hover > ul.sub-menu {
    display: block;
}

.ps-nav-menu li ul.sub-menu li a {
    color: var(--ps-text) !important;
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 0;
}

.ps-nav-menu li ul.sub-menu li a:hover {
    background-color: var(--ps-bg-light);
    color: var(--ps-accent) !important;
}

/* Hamburger toggle */
.ps-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.ps-hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ps-secondary);
    transition: transform var(--ps-transition), opacity var(--ps-transition);
}

.ps-toggle-active .ps-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ps-toggle-active .ps-hamburger-line:nth-child(2) {
    opacity: 0;
}

.ps-toggle-active .ps-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */

.ps-main {
    min-height: 60vh;
}

.ps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ps-container-narrow {
    max-width: 780px;
}

.ps-section {
    padding: 64px 0;
}

.ps-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ps-primary);
    margin: 0 0 40px;
    letter-spacing: -0.02em;
}

.ps-section-footer {
    text-align: center;
    margin-top: 48px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

.ps-hero {
    background-color: var(--ps-primary);
    padding: 100px 24px;
    text-align: center;
}

.ps-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.ps-hero-title {
    color: var(--ps-secondary);
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ps-hero-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 32px;
    font-weight: 400;
}

.ps-hero-btn {
    display: inline-block;
    background-color: var(--ps-accent);
    color: var(--ps-secondary) !important;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--ps-transition);
    border: none;
    letter-spacing: 0.01em;
}

.ps-hero-btn:hover {
    background-color: var(--ps-accent-hover);
    color: var(--ps-secondary) !important;
}

/* --------------------------------------------------------------------------
   Posts Grid / Cards
   -------------------------------------------------------------------------- */

.ps-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ps-card {
    background: var(--ps-secondary);
    border: 1px solid var(--ps-border);
    overflow: hidden;
    transition: box-shadow var(--ps-transition), transform var(--ps-transition);
    display: flex;
    flex-direction: column;
}

.ps-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ps-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.ps-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ps-card:hover .ps-card-img {
    transform: scale(1.03);
}

.ps-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ps-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ps-accent) !important;
    margin-bottom: 8px;
    text-decoration: none;
}

.ps-card-cat:hover {
    color: var(--ps-accent-hover) !important;
}

.ps-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
}

.ps-card-title a {
    color: var(--ps-primary) !important;
    text-decoration: none;
}

.ps-card-title a:hover {
    color: var(--ps-accent) !important;
}

.ps-card-excerpt {
    font-size: 0.9rem;
    color: var(--ps-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.ps-card-excerpt p {
    margin: 0;
}

.ps-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ps-text-light);
    border-top: 1px solid var(--ps-border);
    padding-top: 14px;
    margin-top: auto;
}

.ps-card-meta time {
    color: var(--ps-text-light);
}

.ps-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-accent) !important;
    text-decoration: none;
}

.ps-read-more:hover {
    color: var(--ps-accent-hover) !important;
}

.ps-no-posts {
    text-align: center;
    color: var(--ps-text-light);
    font-size: 1.1rem;
    padding: 48px 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ps-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ps-transition);
    cursor: pointer;
    font-family: var(--ps-font);
    letter-spacing: 0.01em;
}

.ps-btn-outline {
    background: transparent;
    color: var(--ps-accent) !important;
    border: 2px solid var(--ps-accent);
}

.ps-btn-outline:hover {
    background: var(--ps-accent);
    color: var(--ps-secondary) !important;
}

/* --------------------------------------------------------------------------
   Archive Header (Category, Tag, etc.)
   -------------------------------------------------------------------------- */

.ps-archive-header {
    background-color: var(--ps-primary);
    padding: 56px 24px;
    text-align: center;
}

.ps-archive-title {
    color: var(--ps-secondary);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.ps-archive-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ps-archive-desc p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Pagination (WordPress default)
   -------------------------------------------------------------------------- */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 4px 12px;
    border: 1px solid var(--ps-border);
    font-size: 14px;
    font-weight: 500;
    color: var(--ps-text);
    text-decoration: none;
    transition: all var(--ps-transition);
    font-family: var(--ps-font);
}

.nav-links a:hover {
    background-color: var(--ps-accent);
    border-color: var(--ps-accent);
    color: var(--ps-secondary) !important;
}

.nav-links span.current {
    background-color: var(--ps-accent);
    border-color: var(--ps-accent);
    color: var(--ps-secondary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Single Post
   -------------------------------------------------------------------------- */

.ps-single-header {
    background-color: var(--ps-primary);
    padding: 64px 24px 56px;
    text-align: center;
}

.ps-single-cats {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ps-single-cats .ps-card-cat {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 11px;
    border-radius: 2px;
}

.ps-single-cats .ps-card-cat:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--ps-secondary) !important;
}

.ps-single-title {
    color: var(--ps-secondary);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.ps-single-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.ps-meta-sep {
    margin: 0 8px;
}

.ps-single-featured {
    margin: -32px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.ps-single-featured .ps-container {
    max-width: 960px;
}

.ps-single-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ps-single-content {
    padding: 48px 24px 32px;
}

.ps-single-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ps-text-light);
    margin-bottom: 1.5em;
}

.ps-single-content h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-size: 1.6rem;
}

.ps-single-content h3 {
    margin-top: 1.75em;
    margin-bottom: 0.5em;
    font-size: 1.3rem;
}

.ps-single-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.ps-single-content img {
    max-width: 100%;
    height: auto;
}

.ps-single-content blockquote {
    border-left: 3px solid var(--ps-accent);
    margin: 2em 0;
    padding: 16px 24px;
    background: var(--ps-bg-light);
}

.ps-single-content blockquote p {
    font-style: italic;
    color: var(--ps-text);
    margin-bottom: 0;
}

.ps-single-content ul,
.ps-single-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
    color: var(--ps-text-light);
}

.ps-single-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.ps-single-content pre {
    background: var(--ps-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 2em 0;
}

.ps-single-content code {
    font-size: 0.9em;
    background: var(--ps-bg-light);
    padding: 2px 6px;
    color: var(--ps-accent);
}

.ps-single-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.ps-page-links {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--ps-border);
    font-size: 14px;
    font-weight: 500;
}

/* Tags */
.ps-single-footer {
    padding: 0 24px 32px;
}

.ps-single-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--ps-border);
}

.ps-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ps-text-light) !important;
    border: 1px solid var(--ps-border);
    text-decoration: none;
    transition: all var(--ps-transition);
}

.ps-tag:hover {
    border-color: var(--ps-accent);
    color: var(--ps-accent) !important;
}

/* Post Navigation */
.ps-post-nav {
    border-top: 1px solid var(--ps-border);
    padding: 32px 24px;
    margin-top: 16px;
}

.ps-post-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.ps-post-nav-prev,
.ps-post-nav-next {
    flex: 1;
    min-width: 0;
}

.ps-post-nav-next {
    text-align: right;
}

.ps-post-nav-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ps-text-light);
    margin-bottom: 4px;
}

.ps-post-nav-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ps-primary) !important;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-post-nav-title:hover {
    color: var(--ps-accent) !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ps-footer {
    background-color: var(--ps-primary);
    padding: 32px 0;
    text-align: center;
}

.ps-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ps-footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Widget / Sidebar
   -------------------------------------------------------------------------- */

.ps-widget {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ps-border);
}

.ps-widget:last-child {
    border-bottom: none;
}

.ps-widget-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ps-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ps-accent);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet (max-width: 900px)
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .ps-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .ps-hero {
        padding: 72px 24px;
    }

    .ps-hero-title {
        font-size: 2.25rem;
    }

    .ps-single-title {
        font-size: 2rem;
    }

    .ps-section {
        padding: 48px 0;
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile (max-width: 640px)
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    /* Mobile menu toggle */
    .ps-menu-toggle {
        display: flex;
    }

    .ps-header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--ps-primary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        padding: 12px 0;
    }

    .ps-header-nav.ps-nav-open {
        display: block;
    }

    .ps-nav-menu,
    .ps-fallback-menu {
        flex-direction: column;
        gap: 0;
    }

    .ps-nav-menu li a,
    .ps-fallback-menu li a {
        padding: 12px 24px;
        border-radius: 0;
    }

    .ps-nav-menu li ul.sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.1);
        margin: 0;
        padding: 0;
    }

    .ps-nav-menu li ul.sub-menu li a {
        color: rgba(255, 255, 255, 0.7) !important;
        padding-left: 40px;
    }

    /* Grid */
    .ps-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Hero */
    .ps-hero {
        padding: 56px 20px;
    }

    .ps-hero-title {
        font-size: 1.75rem;
    }

    .ps-hero-tagline {
        font-size: 1rem;
    }

    /* Archive */
    .ps-archive-header {
        padding: 40px 20px;
    }

    .ps-archive-title {
        font-size: 1.6rem;
    }

    /* Single */
    .ps-single-header {
        padding: 40px 20px 36px;
    }

    .ps-single-title {
        font-size: 1.6rem;
    }

    .ps-single-content {
        padding: 32px 20px 24px;
    }

    .ps-single-content p {
        font-size: 1rem;
    }

    /* Post navigation */
    .ps-post-nav-inner {
        flex-direction: column;
        gap: 24px;
    }

    .ps-post-nav-next {
        text-align: left;
    }

    /* Section */
    .ps-section {
        padding: 40px 0;
    }

    .ps-section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }
}
