/*
Theme Name: Kuchikomi Job
Author: Antigravity
Description: Custom WordPress theme for Job Review Media "Kuchikomi Job" (Good Code Style)
Version: 4.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ==========================================================================
   X. Star Rating UI
   ========================================================================== */

.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 3rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: var(--accent);
    transform: scale(1.15) translateY(-2px);
    text-shadow: 0 4px 10px rgba(255, 184, 0, 0.4);
}

.star-rating-input input[type="radio"]:checked~label {
    color: var(--accent);
}

/* Make sure hovered stars take precedence over checked state */
.star-rating-input:hover label {
    color: #e2e8f0;
}

.star-rating-input:hover label:hover,
.star-rating-input:hover label:hover~label {
    color: var(--accent);
}

/* ==========================================================================
   1. Design Tokens & Reset
   ========================================================================== */

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFF0E8;
    --accent: #FFB800;
    --accent-light: #FFF8E1;
    --accent-red: #FF3366;
    --navy: #1B2A4A;
    --navy-dark: #111D35;
    --navy-gradient: linear-gradient(135deg, #1B2A4A 0%, #2D4373 100%);
    --pop-gradient: linear-gradient(135deg, #FF6B35 0%, #FFB800 100%);
    --pop-gradient-hover: linear-gradient(135deg, #E55A2B 0%, #E5A500 100%);
    --cool-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success: #00C853;
    --info: #2196F3;
    --text-main: #2D3748;
    --text-sub: #718096;
    --text-light: #A0AEC0;
    --bg-body: #F7F8FC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --border-light: #EDF2F7;
    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-pop: 0 4px 15px rgba(255, 107, 53, 0.25);
    --transition: 0.3s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   2. Layout
   ========================================================================== */

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.layout-flex {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.main-column {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   3. Header - Pop Style
   ========================================================================== */

.site-header {
    background: var(--navy-gradient);
    color: var(--white);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(27, 42, 74, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 65px;
    gap: 10px;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
}

.site-logo a span,
.site-logo a .logo-accent {
    background: var(--pop-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.main-nav li a {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: var(--radius-m);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-icon span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.is-active .hamburger-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    transition: right var(--transition);
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-nav-overlay.show {
    display: block;
}

.drawer-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-body);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    transition: all var(--transition);
}

.drawer-close-btn:hover {
    background: var(--accent-light);
    color: var(--primary);
}

.drawer-header {
    padding: 25px 20px 15px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
}

.drawer-nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.drawer-nav li a {
    display: block;
    padding: 14px 25px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}

.drawer-nav li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 30px;
}

/* ==========================================================================
   4. Hero Section - Pop & Vibrant (Round 3 Redesign)
   ========================================================================== */

.hero-search {
    background: #fdfcf9;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 184, 0, 0.08) 0%, transparent 40%);
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-logo-wrapper {
    margin-bottom: 25px;
}

.hero-catchphrase {
    font-size: clamp(1.4rem, 4vw + 0.5rem, 2.2rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 35px;
    letter-spacing: -0.02em;
}

.hero-catchphrase .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-catchphrase .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 184, 0, 0.4);
    z-index: -1;
    border-radius: 4px;
}

.hero-search-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.hero-complex-search {
    display: flex;
    flex-direction: column;
}

.modern-search-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.modern-search-group .search-field {
    flex: 2;
    min-width: 250px;
}

.modern-search-group .search-select {
    flex: 1;
    min-width: 150px;
}

.modern-search-group .search-field,
.modern-search-group .search-select {
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
}

.modern-search-group .search-field:focus,
.modern-search-group .search-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.btn-search {
    background: var(--pop-gradient);
    color: var(--white);
    border: none;
    padding: 14px 34px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.popular-keywords {
    margin-top: 25px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-keywords span {
    color: var(--text-sub);
    font-weight: bold;
}

.popular-keywords a {
    color: var(--navy);
    background: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.popular-keywords a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==========================================================================
   5. Buttons - Pop gradients
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pop-gradient);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-m);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-pop);
    text-decoration: none;
}

.btn:hover {
    background: var(--pop-gradient-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
    opacity: 1;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius-s);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-pop);
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-s);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: none;
}

.btn-outline-sm:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   6. Cards & Content
   ========================================================================== */

.card {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 30px;
    margin-bottom: 25px;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.section-title {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-weight: 900;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--pop-gradient);
    border-radius: 2px;
}

/* Page Title */
.page-title,
.entry-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
}

/* ==========================================================================
   7. Ranking Cards - Pop Style
   ========================================================================== */

.ranking-item {
    display: flex;
    gap: 25px;
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
    /* overflow: hidden removed to fix badge clipping */
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--pop-gradient);
    border-top-left-radius: var(--radius-l);
    border-bottom-left-radius: var(--radius-l);
}

.ranking-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.rank-badge {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--white);
    background: var(--text-light);
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #8E8E8E);
    box-shadow: 0 3px 12px rgba(158, 158, 158, 0.4);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    box-shadow: 0 3px 12px rgba(205, 127, 50, 0.4);
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.ranking-thumb {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--bg-body);
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-content h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.ranking-content h3 a:hover {
    color: var(--primary);
}

.ranking-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   7b. Top 3 Ranking Cards (Grid)
   ========================================================================== */

.ranking-top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 15px;
    padding-left: 15px;
}

.showcase-top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.ranking-card-top {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.ranking-card-top:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.ranking-card-top .rank-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    z-index: 10;
}

.ranking-top-thumb {
    width: 100%;
    height: 180px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.ranking-top-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ranking-top-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-top-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ranking-top-title a:hover {
    color: var(--primary);
}

.rank-badge.rank-other {
    background: var(--text-sub);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7c. Ranking Archive Cards
   ========================================================================== */

.ranking-archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-archive-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 24px;
    position: relative;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.ranking-archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--pop-gradient);
}

.ranking-archive-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.ranking-archive-thumb {
    width: 160px;
    min-height: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--bg-body);
}

.ranking-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-body), var(--accent-light));
}

.ranking-placeholder .material-icons {
    font-size: 2.5rem;
    color: var(--accent);
}

.ranking-archive-body {
    flex: 1;
    min-width: 0;
}

.ranking-archive-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ranking-archive-title a:hover {
    color: var(--primary);
}

.ranking-archive-service {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ranking-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-light);
    color: #9A6700;
    padding: 3px 10px;
    border-radius: var(--radius-s);
    font-size: 0.8rem;
    font-weight: 600;
}

.ranking-archive-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.rating-score {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.rating-count {
    color: var(--text-sub);
    font-size: 0.8rem;
}

.ranking-archive-excerpt {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 12px;
}

.ranking-archive-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag-pill {
    display: inline-block;
    background: var(--bg-body);
    color: var(--text-sub);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   7c. Service Archive Cards
   ========================================================================== */

.service-archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-archive-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 24px;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

.service-archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--pop-gradient);
}

.service-archive-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.service-archive-thumb {
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-m);
    overflow: hidden;
}

.service-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-archive-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border-radius: var(--radius-m);
}

.service-archive-placeholder .material-icons {
    font-size: 2.5rem;
    color: var(--primary);
}

.service-archive-body {
    flex: 1;
    min-width: 0;
}

.service-archive-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.service-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-badge.type {
    background: var(--accent-light);
    color: #9A6700;
}

.service-archive-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.service-archive-title a:hover {
    color: var(--primary);
}

.service-archive-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.service-archive-meta .material-icons {
    vertical-align: text-bottom;
}

.service-archive-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.service-archive-excerpt {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 12px;
}

.service-archive-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ==========================================================================
   8. Sidebar
   ========================================================================== */

.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 85px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget .filter-group {
    margin-bottom: 18px;
}

.sidebar-widget .filter-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 8px 0;
    padding: 4px 10px;
    background: var(--bg-body);
    border-radius: var(--radius-s);
}

.sidebar-widget .filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-sub);
    cursor: pointer;
    transition: color var(--transition);
}

.sidebar-widget .filter-group label:hover {
    color: var(--primary);
}

.sidebar-widget .filter-group input[type="checkbox"] {
    accent-color: var(--primary);
}

.sidebar-widget .filter-group input[type="text"],
.sidebar-widget .filter-group input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-s);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.sidebar-widget .filter-group input[type="text"]:focus,
.sidebar-widget .filter-group input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.sidebar-widget .filter-submit-btn {
    width: 100%;
    padding: 10px;
    background: var(--pop-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-m);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-pop);
    margin-top: 10px;
}

.sidebar-widget .filter-submit-btn:hover {
    background: var(--pop-gradient-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   9. Service Detail Page
   ========================================================================== */

.service-header {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.service-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.service-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info h1 {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 8px;
}

.service-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.service-stats .stat-item {
    text-align: center;
    min-width: 80px;
}

.service-stats .stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
}

.service-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-sub);
    display: block;
}

.review-summary-box {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-hover);
}

.review-card .reviewer-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.review-card .reviewer-meta {
    font-size: 0.8rem;
    color: var(--text-sub);
}

/* ==========================================================================
   10. Front Page sections
   ========================================================================== */

.section-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    transition: all var(--transition);
}

.section-nav a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    opacity: 1;
}

/* Category browse section */
.browse-section {
    margin: 50px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-m);
    padding: 18px 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.category-card .material-icons {
    display: block;
    margin-bottom: 8px;
    font-size: 1.8rem;
    color: var(--primary);
}

.category-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--primary);
}

.category-tile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.category-tile:hover .category-tile-icon {
    background: var(--pop-gradient);
    color: #fff;
}

.category-tile-icon .material-icons {
    font-size: 1.6rem;
}

/* ==========================================================================
   11. Stars
   ========================================================================== */

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating-stars .star {
    color: #CBD5E0;
}

.rating-stars .star.filled {
    color: #FFB800;
}

.rating-stars .star.half {
    color: #FFB800;
}

/* ==========================================================================
   12. Article / Post Styles
   ========================================================================== */

.entry-header .entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.entry-header .category-badge {
    display: inline-flex;
    align-items: center;
    background: var(--pop-gradient);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.entry-header h1.entry-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 20px;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.85;
}

.entry-content h2 {
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-top: 40px;
}

.entry-content h3 {
    position: relative;
    padding-bottom: 10px;
}

.entry-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.entry-tags {
    margin-top: 30px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.entry-tags span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-body);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-sub);
    transition: all var(--transition);
}

.entry-tags span:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.post-nav a {
    display: block;
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.post-nav a:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    opacity: 1;
}

.post-nav .nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   13. Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    opacity: 1;
}

.breadcrumbs .sep {
    color: var(--text-light);
    font-size: 0.7rem;
}

/* ==========================================================================
   14. 404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: clamp(30px, 6vw, 60px) 20px;
}

.error-code {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    background: var(--pop-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.error-404 h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 15px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.error-404 p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--text-sub);
    margin-bottom: 30px;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto 30px;
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   15. Footer - Warm tones
   ========================================================================== */

.site-footer {
    background: var(--navy-gradient);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 0;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-body);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--pop-gradient);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
    opacity: 1;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.site-info {
    text-align: center;
    padding: 30px 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

/* ==========================================================================
   16. Review Form
   ========================================================================== */

.review-form-section {
    max-width: 700px;
    margin: 0 auto;
}

.review-form-section .form-group {
    margin-bottom: 20px;
}

.review-form-section label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.review-form-section label .material-icons {
    color: var(--primary);
    font-size: 1.1rem;
}

.review-form-section input[type="text"],
.review-form-section select,
.review-form-section textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-m);
    font-size: 0.95rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all var(--transition);
    background: var(--white);
}

.review-form-section input:focus,
.review-form-section select:focus,
.review-form-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.star-rating-input {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
}

.star-rating-input .star-btn {
    color: #CBD5E0;
    cursor: pointer;
    transition: all var(--transition-bounce);
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0;
}

.star-rating-input .star-btn.active,
.star-rating-input .star-btn:hover {
    color: #FFB800;
    transform: scale(1.2);
}

.review-form-section .form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-message {
    padding: 15px 20px;
    border-radius: var(--radius-m);
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* ==========================================================================
   17. Review Detail Page
   ========================================================================== */

.review-detail-card {
    background: var(--white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    background: var(--pop-gradient);
    flex-shrink: 0;
    font-weight: 700;
}

.related-reviews {
    margin-top: 40px;
}

.related-reviews h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.mini-review-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-card);
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.mini-review-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   18. Pagination
   ========================================================================== */

.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    color: var(--text-main);
    border-radius: var(--radius-m);
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.nav-links a:hover {
    background: var(--pop-gradient);
    color: var(--white);
    transform: translateY(-2px);
    opacity: 1;
}

.nav-links .current {
    background: var(--pop-gradient);
    color: var(--white);
    box-shadow: var(--shadow-pop);
}

/* ==========================================================================
   19. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .layout-flex {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-top3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .header-inner {
        height: 56px;
    }

    .site-logo a {
        font-size: 1.2rem;
    }

    .hero-search {
        padding: 30px 0 45px;
    }

    .hero-search-box {
        padding: 20px;
    }

    .search-group {
        flex-direction: column;
    }

    .hero-complex-search .btn-search {
        width: 100%;
        justify-content: center;
    }

    .section-nav {
        flex-direction: column;
        align-items: center;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ranking-item {
        flex-direction: column;
    }

    .ranking-thumb {
        width: 100%;
        height: 160px;
    }

    .ranking-archive-card {
        flex-direction: column;
    }

    .ranking-archive-thumb {
        width: 100%;
        height: 150px;
    }

    .service-archive-card {
        flex-direction: column;
    }

    .service-archive-thumb {
        width: 100%;
        height: 120px;
    }

    .service-header {
        flex-direction: column;
        text-align: left;
    }

    .service-stats {
        justify-content: center;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }

    .showcase-top3-grid {
        grid-template-columns: 1fr;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
        margin-bottom: 10px;
    }

    .error-code {
        font-size: 5rem;
    }

    .section-title {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .card {
        padding: 20px;
    }

    .hero-search-box {
        padding: 15px;
        border-radius: var(--radius-m);
    }

    .ranking-archive-card {
        padding: 16px;
    }

    .service-archive-card {
        padding: 16px;
    }

    .entry-header h1.entry-title {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
}

/* ===========================
   Round 9: Category Dropdown Nav (PC)
   =========================== */
.nav-categories {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-shrink: 0;
}

.nav-categories,
.nav-categories li {
    list-style: none;
}

.nav-cat-item {
    position: relative;
}

.nav-cat-trigger {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: var(--radius-m);
    white-space: nowrap;
}

.nav-cat-trigger:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-cat-arrow {
    font-size: 1rem !important;
    transition: transform 0.3s;
}

.mega-nav-cat.is-open .nav-cat-arrow {
    transform: rotate(180deg);
}

/* ===========================
   Round 10: Category Mega Menu (PC)
   =========================== */
.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    list-style: none;
    z-index: 100;
    animation: dropdownFade 0.2s ease;
    flex-direction: column !important;
    gap: 0 !important;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-nav-cat.is-open .mega-dropdown {
    display: flex;
}

.mega-dropdown-item {
    position: relative;
    padding: 0;
}

.mega-dropdown-trigger {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.mega-dropdown-item:hover .mega-dropdown-trigger {
    background: rgba(255, 107, 53, 0.05);
    color: var(--primary);
}

.mega-sub-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 380px;
    width: max-content;
    max-width: 450px;
    max-height: 450px;
    overflow-y: auto;
    background: var(--white);
    border-radius: 0 10px 10px 10px;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    list-style: none;
    z-index: 101;
    animation: dropdownFade 0.2s ease;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: flex-start;
}

.mega-dropdown-item:hover .mega-sub-dropdown {
    display: flex;
}

.mega-sub-dropdown li {
    width: 50%;
}

.mega-sub-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mega-sub-dropdown li a:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 179, 0, 0.08));
    color: var(--primary);
}

.nav-cat-dropdown li a:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 179, 0, 0.08));
    color: var(--primary);
}

/* Hide category nav on mobile */
@media (max-width: 768px) {
    .nav-categories {
        display: none !important;
    }
}

/* ===========================
   Round 9: Drawer Accordion (Mobile)
   =========================== */
.drawer-categories {
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
}

.drawer-accordion {
    border-bottom: 1px solid #f0f0f0;
}

.drawer-accordion-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.drawer-accordion-arrow {
    margin-left: auto;
    font-size: 1.2rem !important;
    color: #999;
    transition: transform 0.3s;
}

.drawer-accordion-content {
    display: none;
    padding: 0 20px 10px 48px;
}

.drawer-accordion-content.open {
    display: block;
    animation: accordionSlide 0.3s ease;
}

@keyframes accordionSlide {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.drawer-accordion-content a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-sub);
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s;
}

.drawer-accordion-content a:last-child {
    border-bottom: none;
}

.drawer-accordion-content a:hover {
    color: var(--primary);
}

/* ===========================
   Round 9: Sort Buttons
   =========================== */
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
    background: var(--white);
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sort-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 53, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.sort-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.3);
}

.sort-btn.active:hover {
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .sort-buttons {
        gap: 6px !important;
    }

    .sort-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Hide duplicate review link in main-nav */
.main-nav li a[href*="review-submit"] {
    display: none !important;
}

/* Review Button Mobile Adjustments */
@media (max-width: 480px) {
    .header-review-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem;
    }

    .header-review-btn .material-icons {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Mobile & Responsive: Layout, Sidebar, Detail Pages
   ========================================================================== */

/* -- Layout Flex: Main + Sidebar -- */
.layout-flex {
    display: flex;
    gap: 30px;
}

.layout-flex .main-column {
    flex: 1;
    min-width: 0;
}

/* -- Widget Area (Sidebar) -- */
.widget-area {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .layout-flex {
        flex-direction: column;
    }

    .widget-area {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* -- Hero Search Layout Redesign -- */
.modern-search-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.modern-search-group .search-field,
.modern-search-group .search-select {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    padding: 12px 15px;
}

.modern-search-group .search-field::placeholder {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
}

/* -- Sort Buttons Base Styles -- */
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--white);
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.sort-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

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

.modern-search-group .search-field {
    grid-column: 1 / -1;
}

.modern-search-group .search-select {
    grid-column: span 1;
}

.modern-search-group .btn-search {
    grid-column: span 1;
}

/* 2nd row: 3 selects + button */
@media (min-width: 769px) {
    .modern-search-group {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
    }

    .modern-search-group .search-field {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .modern-search-group .search-select:nth-of-type(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .modern-search-group .search-select:nth-of-type(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .modern-search-group .search-select:nth-of-type(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .modern-search-group .search-select:nth-of-type(4) {
        grid-column: 4;
        grid-row: 1;
    }

    .modern-search-group .btn-search {
        grid-column: 4;
        grid-row: 2;
    }

    .modern-search-group .search-field {
        grid-column: 1 / 4;
    }
}

@media (max-width: 768px) {
    .modern-search-group {
        grid-template-columns: 1fr 1fr;
    }

    .modern-search-group .search-field {
        grid-column: 1 / -1;
    }

    .modern-search-group .btn-search {
        grid-column: 1 / -1;
    }
}

/* -- Service Detail Page Mobile -- */
@media (max-width: 768px) {
    .service-header {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 20px !important;
    }

    .service-header .service-logo {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto;
    }

    .service-header .service-content {
        min-width: 0 !important;
    }

    .service-header .service-content h1 {
        font-size: clamp(1.1rem, 4vw, 1.6rem) !important;
    }

    .service-header .service-actions {
        min-width: 0 !important;
    }

    /* Detail page h2 headings */
    .service-section h2 {
        font-size: clamp(1rem, 3.5vw, 1.3rem) !important;
    }

    /* Service table: stacked on mobile */
    .service-table tr {
        display: flex;
        flex-direction: column;
    }

    .service-table th {
        width: 100% !important;
        padding: 10px 12px !important;
    }

    .service-table td {
        padding: 10px 12px !important;
    }

    /* Service anchor nav */
    .service-anchor-nav ul {
        gap: 5px !important;
    }

    .service-anchor-nav a {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    /* CTA bottom section */
    .service-cta-bottom {
        padding: 30px 15px !important;
    }

    .service-cta-bottom h3 {
        font-size: clamp(1rem, 3.5vw, 1.3rem) !important;
    }

    .service-cta-bottom .btn {
        padding: 15px 25px !important;
        font-size: 1rem !important;
    }

    /* Card padding reduction */
    .card {
        padding: 15px !important;
    }

    .card h2 {
        font-size: clamp(1rem, 3vw, 1.2rem) !important;
    }

    /* Rating inline-flex wrap */
    .service-rating {
        padding: 8px 15px !important;
    }
}

/* -- Sort Buttons: horizontal scroll on mobile -- */
.sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .sort-buttons {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        gap: 6px !important;
    }

    .sort-buttons .sort-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* -- General mobile padding reduction -- */
@media (max-width: 480px) {
    .card {
        padding: 12px !important;
    }

    .service-header {
        padding: 15px !important;
    }

    section.card {
        padding: 15px !important;
    }
}

/* -- Service Detail Title (clamp) -- */
.service-detail-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
}

/* -- Review Section Header -- */
.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.review-section-header h2 {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
}

@media (max-width: 768px) {
    .review-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-section-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Rating: review count on its own line */
    .service-rating .review-count-link {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
}

/* -- Category Quick-Link Buttons -- */
.cat-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .cat-buttons-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cat-buttons-wrapper .btn {
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
        text-align: center;
        justify-content: center;
    }
}

/* -- Review Submit Button -- */
.review-submit-btn {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    padding: 14px 50px;
}

@media (max-width: 768px) {
    .review-submit-btn {
        padding: 12px 30px;
    }
}

/* ==========================================================================
   20. Front Page: Showcase Cards (refactored from inline styles)
   ========================================================================== */

.showcase-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    padding: 0;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.showcase-card--gold {
    border: 3px solid rgba(255, 215, 0, 0.5);
}

.showcase-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.showcase-badge--gold {
    background: #FFD700;
}

.showcase-badge--silver {
    background: #C0C0C0;
}

.showcase-badge--bronze {
    background: #CD7F32;
}

.showcase-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 17px 17px 0 0;
    background: linear-gradient(to bottom, #fff, #fafafa);
    overflow: hidden;
}

.showcase-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.showcase-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 17px 17px 0 0;
}

.showcase-thumb .material-icons {
    font-size: 4rem;
    color: #ddd;
}

.showcase-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
}

.showcase-body h2,
.showcase-body h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.4;
}

.showcase-body h2 a,
.showcase-body h3 a {
    color: inherit;
    text-decoration: none;
}

.showcase-rating {
    margin-bottom: 15px;
    background: #fefaf0;
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.showcase-rating .material-icons {
    color: #FFB800;
    font-size: 1.2rem;
}

.showcase-rating-score {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFB800;
}

.showcase-rating-count {
    font-size: 0.8rem;
    color: #666;
}

.showcase-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.6;
}

.showcase-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showcase-actions .btn,
.showcase-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
}

/* ==========================================================================
   21. Front Page: Article Cards (refactored from inline styles)
   ========================================================================== */

.article-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-link:hover .article-body h3 {
    color: var(--primary);
}

.article-thumb {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-thumb-placeholder .material-icons {
    font-size: 3rem;
    color: #ddd;
}

.article-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

.article-body {
    padding: 20px;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.article-body p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   22. Front Page: Service List Grid (refactored from inline styles)
   ========================================================================== */

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.service-list-item {
    display: block;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.service-list-item:hover {
    transform: translateY(-3px);
}

.service-list-thumb {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    overflow: hidden;
}

.service-list-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.service-list-thumb .material-icons {
    color: #ddd;
    font-size: 40px;
}

.service-list-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================================
   23. Front Page: misc (section spacing, category buttons)
   ========================================================================== */

.fp-section-title--icon {
    font-size: 1.5rem;
    margin-top: 80px;
}

.fp-section-title--icon .material-icons {
    color: var(--primary);
    vertical-align: bottom;
    margin-right: 8px;
}

.fp-section-top3 {
    margin-top: 40px;
}

.fp-section-top3 .section-title .material-icons {
    vertical-align: bottom;
    margin-right: 8px;
    color: #FFD700;
    font-size: 2.2rem;
}

.fp-cat-section {
    margin-top: 50px;
}

.fp-cat-section+.fp-cat-section {
    margin-top: 60px;
}

.fp-cat-section:last-of-type {
    margin-bottom: 60px;
}

.fp-view-all {
    text-align: center;
    margin-top: 30px;
}

.fp-view-all .btn-outline {
    padding: 12px 40px;
    font-weight: bold;
    border-width: 2px;
}

.fp-quick-links {
    margin-bottom: 40px;
    text-align: center;
}

.cat-buttons-wrapper .btn--cat {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   24. Front Page: News Grid (Recent Reviews)
   ========================================================================== */

.review-news-card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.review-news-stars {
    color: var(--accent);
    margin-bottom: 5px;
}

.review-news-title {
    font-size: 1rem;
    margin: 0 0 10px;
}

.review-news-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* ==========================================================================
   25. Search Page (refactored from inline styles)
   ========================================================================== */

.search-page-header {
    margin-bottom: 30px;
}

.search-page-title .material-icons {
    vertical-align: bottom;
    margin-right: 5px;
}

.search-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0;
}

.search-filters {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.sort-wrapper {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #fff;
    color: #333;
    cursor: pointer;
    min-width: 140px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.search-card .showcase-thumb {
    height: 200px;
}

.search-card .showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card .showcase-body h2 {
    font-size: 1.15rem;
}

.search-card .showcase-rating {
    padding: 6px 15px;
}

.search-card .showcase-rating .material-icons {
    font-size: 1.1rem;
}

.search-card .showcase-rating-score {
    font-size: 1rem;
}

.search-card .showcase-rating-count {
    font-size: 0.75rem;
}

.search-card .showcase-excerpt {
    font-size: 0.85rem;
}

.search-card .showcase-actions {
    gap: 8px;
}

.search-card .showcase-actions .btn,
.search-card .showcase-actions .btn-outline {
    padding: 10px;
    font-size: 0.9rem;
}

.search-pagination {
    margin-top: 40px;
}

/* ==========================================================================
   26. Service Detail Page (refactored from inline styles)
   ========================================================================== */

/* Service Hero Image (full-width banner, 16:9 ratio) */
.service-hero-image {
    width: 100%;
    aspect-ratio: 256 / 143;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(to bottom, #fff, #fafafa);
}

.service-hero-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
}

.service-header {
    background: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 30px 40px 40px;
    display: flex;
    gap: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
    border-top: none;
    align-items: flex-start;
    flex-wrap: wrap;
}

.service-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-logo img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-m);
}

.service-logo .material-icons {
    font-size: 5rem;
    color: #ddd;
}

.service-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.service-badges {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-badges:empty {
    display: none;
    margin: 0;
}

.service-badges .badge {
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary);
}

.service-detail-title {
    font-weight: 900;
    margin: 0 0 15px;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.03em;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    text-align: left;
}

.service-meta-line {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.service-meta-line .material-icons {
    font-size: 1.1rem;
    margin-right: 5px;
    vertical-align: text-bottom;
}

.service-meta-line strong {
    font-weight: bold;
    color: var(--text-main);
    margin-left: 5px;
}

.service-rating {
    background: #fefaf0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 16px;
    border: 1px solid #ffebc2;
    gap: 5px;
}

.service-rating .stars {
    color: var(--accent);
    font-size: 1.4rem;
    margin-right: 10px;
    letter-spacing: 2px;
}

.service-rating .score {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
}

.service-rating .review-count-link {
    font-size: 0.9rem;
    color: var(--text-sub);
    text-decoration: underline;
    font-weight: bold;
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 240px;
    width: 100%;
}

.service-actions .btn--cta {
    padding: 18px;
    font-size: 1.15rem;
    width: 100%;
    justify-content: center;
    border-radius: 15px;
    box-shadow: var(--shadow-pop);
}

.service-actions .btn--secondary {
    padding: 15px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    border-radius: 15px;
    background: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-main);
}

/* Anchor Navigation */
.service-anchor-nav {
    border-bottom: 1px solid #eee;
    margin: 0 0 40px;
    position: sticky;
    top: 64px;
    background: #fff;
    z-index: 900;
}

.service-anchor-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    overflow-x: auto;
}

.service-anchor-nav a {
    display: block;
    padding: 15px 20px;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    color: #666;
}

.service-anchor-nav a:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

/* Service Sections */
.service-section {
    scroll-margin-top: 120px;
}

.service-section--reviews {
    margin-bottom: 40px;
}

.service-section--price {
    margin-bottom: 40px;
}

.service-section .card {
    padding: 30px;
    margin-bottom: 30px;
}

.section-heading {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.content-body {
    line-height: 1.8;
}

/* Service Table */
.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table tr {
    border-bottom: 1px solid #eee;
}

.service-table th {
    padding: 15px;
    text-align: left;
    width: 30%;
    background: #f9f9f9;
}

.service-table td {
    padding: 15px;
}

/* Review cards in detail page */
.review-item {
    padding: 20px;
    margin-bottom: 20px;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-item-stars {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
}

.review-item-date {
    font-size: 0.85rem;
    color: #888;
}

.review-item h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.review-item-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.review-item-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}

.review-pending-badge {
    background: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    margin-top: 5px;
    font-size: 0.8rem;
}

/* CTA Bottom */
.service-cta-bottom {
    margin-top: 50px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, var(--bg-body));
    padding: 50px 30px;
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(255, 107, 53, 0.2);
}

.service-cta-bottom h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--navy);
}

.service-cta-bottom p {
    color: var(--text-sub);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.service-cta-bottom .btn--big {
    padding: 20px 50px;
    font-size: 1.25rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.service-cta-bottom .btn--big .material-icons {
    font-size: 1.4rem;
}

.service-cta-bottom .btn--disabled {
    padding: 15px 30px;
    border-radius: 50px;
    pointer-events: none;
    opacity: 0.5;
}

/* ==========================================================================
   27. Archive Ranking Page (refactored from inline styles)
   ========================================================================== */

.archive-page-header {
    margin-bottom: 30px;
}

.archive-page-title {
    display: inline-block;
}

.archive-page-title .material-icons {
    vertical-align: text-bottom;
    color: var(--accent);
}

.archive-page-desc {
    color: var(--text-sub);
    margin-top: 10px;
    font-size: 0.95rem;
}

.ranking-service-badge .material-icons {
    font-size: 0.85rem;
}

.archive-btn-icon {
    font-size: 0.9rem;
    vertical-align: text-bottom;
}

.archive-pagination {
    margin-top: 30px;
}

.archive-empty {
    padding: 40px;
    text-align: center;
}

.archive-empty .material-icons {
    font-size: 3rem;
    color: #ddd;
}

.archive-empty p {
    color: var(--text-sub);
    margin-top: 15px;
}

/* ==========================================================================
   28. Responsive updates for new classes
   ========================================================================== */

@media (max-width: 768px) {
    .service-logo {
        width: 100%;
        height: 200px;
        overflow: hidden;
        border-radius: var(--radius-l);
        background: linear-gradient(to bottom, #fff, #fafafa);
    }

    .service-logo img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover;
        border-radius: var(--radius-l);
    }

    .service-content {
        min-width: 0 !important;
    }

    .service-actions {
        min-width: 0 !important;
    }

    .showcase-top3-grid {
        padding-top: 25px;
    }

    .showcase-card {
        overflow: visible;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero logo image */
.hero-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    padding: 0 15px;
}