/*
Theme Name: HPRCA Professional
Theme URI: https://hprca.in
Description: Professional GeneratePress Child Theme for HPRCA with modern UI, dark mode, and advanced features
Author: HPRCA Team
Author URI: https://hprca.in
Template: generatepress
Version: 2.0
License: GPL v2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hprca-child
*/

/* =========================================
   CSS VARIABLES & THEME COLORS
   ========================================= */
:root {
    /* Primary Colors */
    --primary: #05C3DD;
    --primary-dark: #04a8bf;
    --primary-light: #7ee5f5;
    
    /* Accent Colors */
    --accent: #FF6B6B;
    --success: #51CF66;
    --warning: #FFD93D;
    
    /* Neutral Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8a8aa3;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f0f2f8;
    
    /* Border & Shadow */
    --border-color: #e8eaf2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Header */
    --header-height: 70px;
    --header-bg: rgba(255, 255, 255, 0.92);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-primary: #f0f0f5;
    --text-secondary: #b8b8d1;
    --text-muted: #6a6a8a;
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252542;
    --border-color: #2a2a45;
    --header-bg: rgba(15, 15, 26, 0.95);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* =========================================
   BASE RESET & GLOBAL STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

/* =========================================
   READING PROGRESS BAR
   ========================================= */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 10001;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.1s ease;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.custom-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.custom-site-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-md);
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding a {
    display: flex;
    align-items: center;
}

.site-branding img {
    height: auto;
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* =========================================
   SEARCH BAR
   ========================================= */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.search-form-ai {
    width: 100%;
    position: relative;
}

.input-box-ai {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.input-box-ai:focus-within {
    background: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 195, 221, 0.15);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-field-ai {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0 10px;
}

.search-field-ai::placeholder {
    color: var(--text-muted);
}

.search-submit {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* Live Search Results */
.live-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.live-search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-search-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.live-search-item:hover {
    background: var(--bg-secondary);
}

.live-search-item:last-child {
    border-bottom: none;
}

/* =========================================
   DESKTOP NAVIGATION
   ========================================= */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.nav-btn.active {
    background: rgba(5, 195, 221, 0.1);
    color: var(--primary);
}

.nav-icon {
    font-size: 1rem;
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* =========================================
   HEADER ACTIONS
   ========================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--primary);
    color: white !important;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.user-menu-toggle:hover .user-avatar {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.user-menu-wrapper:hover .user-dropdown,
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-greeting {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.user-dropdown a {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.user-dropdown a:hover {
    color: var(--primary);
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: var(--border-color);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   NAVIGATION OVERLAY
   ========================================= */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   SIDE NAVIGATION PANEL
   ========================================= */
.side-nav-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-nav-panel.active {
    left: 0;
}

.side-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.menu-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.close-btn:hover {
    background: var(--border-color);
}

/* Side Nav User Section */
.side-nav-user {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.nav-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.nav-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Side Nav Content */
.side-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-md);
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.nav-link.active {
    background: rgba(5, 195, 221, 0.1);
    color: var(--primary);
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* Side Nav Footer */
.side-nav-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.nav-social-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.social-icon.telegram:hover {
    background: #0088cc;
}

.social-icon.facebook:hover {
    background: #1877F2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--border-color);
}

.theme-icon.dark {
    display: none;
}

body.dark-mode .theme-icon.light {
    display: none;
}

body.dark-mode .theme-icon.dark {
    display: inline;
}

/* =========================================
   BREADCRUMB
   ========================================= */

.breadcrumb-wrapper {
    width: 95%;
    max-width: 1200px;
    margin: var(--space-md) auto;
    padding: 0 var(--space-md);
}

.hprca-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hprca-breadcrumb a {
    color: var(--text-secondary);
}

.hprca-breadcrumb a:hover {
    color: var(--primary);
}

.hprca-breadcrumb .sep {
    color: var(--text-muted);
}

.hprca-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* --- NEW CODE BELOW --- */
/* Hide breadcrumbs on screens wider than 768px (Tablets and Desktops) */
@media (min-width: 768px) {
    .breadcrumb-wrapper {
        display: none !important;
    }
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.footer-widgets-section {
    background: var(--bg-secondary);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-color);
}

.footer-widgets-inner {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.site-footer {
    background: var(--bg-secondary);
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.custom-footer-inner {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Footer Navigation */
.footer-nav-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.footer-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-btn.active {
    background: var(--primary);
    color: white;
}

.footer-btn .icon {
    font-size: 1rem;
}

/* Footer Info */
.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-xl);
}

.footer-brand .custom-logo,
.footer-brand .footer-logo-text {
    max-height: 40px;
    margin-bottom: var(--space-sm);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-quick-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-quick-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-quick-links li,
.footer-contact li {
    margin-bottom: var(--space-sm);
}

.footer-quick-links a,
.footer-contact a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-quick-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: var(--space-lg);
}

.footer-copyright p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-credits {
    margin-top: var(--space-sm) !important;
    font-size: 0.8rem !important;
}

/* =========================================
   MOBILE BOTTOM NAVIGATION
   ========================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 998;
    justify-content: space-around;
    align-items: center;
    padding: 0 var(--space-sm);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
    flex: 1;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-icon {
    font-size: 1.3rem;
}

.bottom-icon-main {
    font-size: 1.5rem;
}

.bottom-nav-main {
    position: relative;
    top: -15px;
}

.bottom-nav-main .bottom-icon-main {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.bottom-badge {
    position: absolute;
    top: 2px;
    right: 15px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 700;
}

/* =========================================
   COMMENTS STYLING
   ========================================= */
.comments-area {
    width: 95%;
    max-width: 800px;
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-md);
}

.comment-reply-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.comment-form {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: none !important;
}

.comment-form-comment {
    margin-bottom: var(--space-md);
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 60px;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    transition: all var(--transition-fast);
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary);
    min-height: 120px;
    border-radius: var(--radius-md);
}

.comment-form-comment textarea::placeholder {
    color: var(--text-muted);
}

.form-submit {
    text-align: right;
    margin: 0;
}

.submit-btn {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   POST LIST SHORTCODE STYLES
   ========================================= */
.hprca-post-list {
    width: 95%;
    max-width: 1200px;
    margin: var(--space-xl) auto;
}

.hprca-post-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hprca-post-list li {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.hprca-post-list li:hover {
    background: var(--bg-secondary);
}

.hprca-post-list li a {
    color: var(--text-primary);
    font-weight: 500;
}

.hprca-post-list li a:hover {
    color: var(--primary);
}

.post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Grid Style */
.hprca-post-list.style-grid .post-grid,
.hprca-post-list.style-card .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.hprca-post-list.style-grid .post-item,
.hprca-post-list.style-card .post-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-fast);
}

.hprca-post-list.style-card .post-item {
    box-shadow: var(--shadow-sm);
}

.hprca-post-list.style-grid .post-item:hover,
.hprca-post-list.style-card .post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-thumb img {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.hprca-more-btn-wrapper {
    text-align: center;
    margin-top: var(--space-xl);
}

.hprca-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.hprca-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.hprca-more-btn .arrow {
    transition: transform var(--transition-fast);
}

.hprca-more-btn:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .search-wrapper {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .header-inner {
        gap: var(--space-sm);
    }
    
    .site-branding img {
        max-height: 35px;
    }
    
    .search-wrapper {
        max-width: none;
        flex: 1;
    }
    
    .input-box-ai {
        padding: 8px 12px;
    }
    
    .search-field-ai {
        font-size: 0.9rem;
    }
    
    .search-submit {
        display: none;
    }
    
    .login-btn span {
        display: none;
    }
    
    .breadcrumb-wrapper {
        margin: var(--space-sm) auto;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .footer-nav-buttons {
        gap: var(--space-sm);
    }
    
    .footer-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-quick-links ul,
    .footer-contact ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
    
    .side-nav-panel {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .search-wrapper {
        position: static;
    }
    
    .live-search-results {
        position: fixed;
        top: var(--header-height);
        left: 10px;
        right: 10px;
    }
    
    .hprca-post-list.style-grid .post-grid,
    .hprca-post-list.style-card .post-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   FULL WIDTH POSTS (Desktop)
   ========================================= */

/* Desktop: Full width posts */
@media (min-width: 769px) {
    /* Remove container max-width for posts */
    .single-post .site-content .content-area,
    .single-post .inside-article,
    .single-post .entry-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Main content container full width */
    .single-post .site.grid-container,
    .single-post .container.grid-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Entry content padding */
    .single-post .inside-article {
        padding: 30px 40px;
    }
    
    /* Featured image full width */
    .single-post .post-image img,
    .single-post .featured-image img {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
    }
    
    /* Post title full width */
    .single-post .entry-header {
        max-width: 100%;
    }
    
    /* Remove sidebar on posts */
    .single-post .widget-area,
    .single-post .sidebar {
        display: none !important;
    }
    
    /* Make content area take full width */
    .single-post .content-area {
        width: 100% !important;
    }
}

/* Mobile: Keep original layout */
@media (max-width: 768px) {
    .single-post .inside-article {
        padding: 15px;
    }
}
