/*
Theme Name: Tosh.jp
Theme URI: https://tosh.jp
Author: Tosh
Author URI: https://tosh.jp
Description: Custom WordPress theme for Tosh.jp Japanese Language Tutor landing page and blog.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tosh-jp
*/

/* =============================================
   CSS Reset & Base Styles
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-hover: #e55a2b;
    --secondary: #2d3748;
    --text-dark: #1a202c;
    --text-gray: #718096;
    --text-light: #a0aec0;
    --bg-light: #f7fafc;
    --bg-theme: #534092;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #48bb78;
    --warning: #ecc94b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-theme);
    line-height: 1.6;
}

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

/* =============================================
   Header
   ============================================= */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--text-dark);
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* =============================================
   Main Layout
   ============================================= */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

.left-column {
    min-width: 0;
}

.right-column {
    position: relative;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

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

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

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

.btn-full {
    width: 100%;
    margin-top: 16px;
}

/* =============================================
   Section Base
   ============================================= */
.section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 90px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* =============================================
   Profile Section
   ============================================= */
.profile-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.play-button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.profile-video-text {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.9;
}

/* YouTube iframe styling - responsive within the 16:9 container */
.profile-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

.profile-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(
        135deg,
        #000000, /* light gold */
        #d4af37, /* gold */

        #000000  /* highlight */
    );
    box-shadow:
        0 0 6px rgba(212,175,55,0.4),
        0 0 14px rgba(212,175,55,0.25),
        0 0 28px rgba(212,175,55,0.15);
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}

.highlight-red {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.2em;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-tagline {
    color: var(--text-black);
    font-size: 16px;
    margin-bottom: 12px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.badge-verified {
    background: #e6fffa;
    color: #319795;
}

.profile-bio {
    color: var(--text-black);
    line-height: 1.8;
}

.profile-bio-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.profile-bio-content.collapsed {
    max-height: 120px;
}

.profile-bio-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-white));
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* =============================================
   Problem / Solution Section - Visual Redesign
   ============================================= */
.problem-solution-section {
    background: var(--bg-white);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* Section Title */
.problem-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Problem Cards Container */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Individual Problem Card */
.problem-card {
    background: #fafbfc;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Problem Icon */
.problem-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon svg {
    width: 32px;
    height: 32px;
    color: #dc2626;
}

/* Problem Text */
.problem-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Solution Subheading */
.solution-subheading {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.solution-subheading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Solution Blocks Container */
.solution-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Individual Solution Block */
.solution-block {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.solution-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Solution Image Wrapper */
.solution-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.solution-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.solution-block:hover .solution-image {
    transform: scale(1.05);
}

/* Solution Label (Colored Title Bar) */
.solution-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.solution-label-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.solution-label-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.solution-label-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Solution Content */
.solution-content {
    padding: 20px;
}

.solution-description {
    font-size: 14px;
    color: var(--text-black);
    line-height: 1.7;
}

/* Problem Solution CTA */
.problem-solution-cta {
    text-align: center;
    padding-top: 16px;
}

/* CTA Button (shared styles) */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

/* =============================================
   Problem / Solution Section - Responsive
   ============================================= */

/* Tablet */
@media (max-width: 900px) {
    .problem-solution-section {
        padding: 40px 24px;
    }

    .problem-section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .problem-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-card {
        padding: 24px 20px;
    }

    .solution-blocks {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .solution-image-wrapper {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .problem-solution-section {
        padding: 32px 20px;
        border-radius: var(--radius-md);
    }

    .problem-section-title {
        font-size: 20px;
        margin-bottom: 28px;
    }

    .problem-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .problem-icon svg {
        width: 28px;
        height: 28px;
    }

    .problem-text {
        font-size: 14px;
    }

    .solution-subheading {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .solution-image-wrapper {
        height: 160px;
    }

    .solution-content {
        padding: 16px;
    }

    .solution-description {
        font-size: 13px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .problem-section-title {
        font-size: 18px;
    }

    .solution-subheading {
        font-size: 16px;
    }
}

/* =============================================
   Pricing Section - Updated with CTA Buttons
   ============================================= */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Base Pricing Card - Active styling for all plans */
.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

/* All active pricing cards have white background */
.pricing-card.pricing-card-active {
    background: var(--bg-white);
    border-color: var(--border);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

/* Recommended card - Slightly larger with primary border */
.pricing-card.recommended {
    background: var(--bg-white);
    border-color: var(--primary);
    border-width: 2px;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.2);
}

/* Recommended Badge */
.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-plan {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.pricing-lessons {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.pricing-per {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Pricing CTA Button */
.pricing-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    margin-top: 8px;
}

.pricing-cta-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-1px);
}

/* Primary CTA Button (for recommended plan) */
.pricing-cta-btn.pricing-cta-btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pricing-cta-btn.pricing-cta-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Pricing Info Section */
.pricing-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.pricing-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-black);
    font-size: 15px;
}

.pricing-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

/* =============================================
   Pricing Section - Responsive
   ============================================= */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.recommended {
        transform: none;
        /* Mobile order: Light -> Standard -> Intensive (follows DOM order) */
    }

    .pricing-card.recommended:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .pricing-cta-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* =============================================
   Reviews Section
   ============================================= */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.reviews-header .section-title {
    margin-bottom: 0;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-score {
    font-size: 32px;
    font-weight: 700;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--warning);
}

.star svg {
    width: 20px;
    height: 20px;
}

.rating-count {
    color: var(--text-gray);
    font-size: 14px;
}

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

.review-card {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.reviewer-avatar--green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.reviewer-avatar--orange {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.reviewer-avatar--purple {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.reviewer-country {
    color: var(--text-gray);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars svg {
    width: 16px;
    height: 16px;
    color: var(--warning);
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
}

/* =============================================
   User Review Features - New Styles
   ============================================= */

/* Show More Reviews Button */
.show-more-reviews-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.show-more-reviews-btn:hover {
    background: var(--border);
    color: var(--text-dark);
    border-style: solid;
}

.show-more-reviews-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.show-more-reviews-btn.expanded svg {
    transform: rotate(180deg);
}

/* Review Card Animation for New Reviews */
.review-card.new-review {
    animation: slideInReview 0.5s ease forwards;
}

@keyframes slideInReview {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User-generated review indicator */
.review-card.user-generated {
    border-left: 3px solid var(--primary);
}

/* Star Rating Input in Modal */
.star-rating-input {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.star-input {
    cursor: pointer;
    color: var(--border);
    transition: all 0.15s;
}

.star-input svg {
    width: 32px;
    height: 32px;
}

.star-input:hover,
.star-input.hover {
    color: var(--warning);
    transform: scale(1.1);
}

.star-input.active {
    color: var(--warning);
}

.rating-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.rating-hint.selected {
    color: var(--success);
}

/* Character Counter */
.char-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.limit {
    color: #e53e3e;
}

/* Form Buttons Row */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-buttons .btn {
    flex: 1;
}

/* Required Indicator */
.required {
    color: #e53e3e;
}

/* Avatar Colors for User Reviews */
.reviewer-avatar--blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.reviewer-avatar--cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.reviewer-avatar--pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.reviewer-avatar--indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.reviewer-avatar--teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

/* Review Modal Specific Styles */
#reviewModal .modal-body p {
    text-align: center;
    color: var(--text-black);
    margin-bottom: 24px;
}

/* Empty State for Reviews */
.reviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-black);
}

.reviews-empty svg {
    width: 48px;
    height: 48px;
    color: var(--border);
    margin-bottom: 16px;
}

.reviews-empty p {
    font-size: 15px;
}

/* Review Timestamps */
.review-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

/* Mobile Responsive for Review Modal */
@media (max-width: 480px) {
    .star-rating-input {
        justify-content: center;
    }

    .star-input svg {
        width: 28px;
        height: 28px;
    }

    .form-buttons {
        flex-direction: column-reverse;
    }

    .form-buttons .btn {
        width: 100%;
    }
}

/* =============================================
   Career Section
   ============================================= */
.career-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.career-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.career-tab:hover {
    color: var(--text-dark);
}

.career-tab.active {
    color: var(--primary);
}

.career-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.career-content {
    display: none;
}

.career-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.career-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.career-year {
    color: var(--text-dark);
    font-size: 14px;
    min-width: 80px;
}

.career-details h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.career-details p {
    color: var(--text-gray);
    font-size: 14px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--secondary);
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
}

.footer-logo span {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-copyright {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* =============================================
   Mobile Bottom Bar
   ============================================= */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-bottom-bar .btn {
    width: 100%;
}

.mobile-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mobile-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* =============================================
   Modal Styles
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

.modal.active {
    display: block;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: var(--text-black);
    margin-bottom: 20px;
}

/* =============================================
   Form Styles
   ============================================= */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

/* =============================================
   Latest Blog Posts (Front Page Section)
   ============================================= */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.latest-post-card {
    display: block;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.latest-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.latest-post-thumb {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.latest-post-card:hover .latest-post-thumb img {
    transform: scale(1.05);
}

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

.latest-post-thumb-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.latest-post-body {
    padding: 16px;
}

.latest-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-card:hover .latest-post-title {
    color: var(--primary);
}

.latest-post-excerpt {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-date {
    font-size: 12px;
    color: var(--text-light);
}

.latest-posts-cta {
    text-align: center;
}

.latest-posts-btn {
    display: inline-flex;
}

/* Responsive: Latest Posts */
@media (max-width: 900px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .latest-post-card {
        display: grid;
        grid-template-columns: 140px 1fr;
    }

    .latest-post-thumb {
        height: 100%;
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .latest-post-card {
        grid-template-columns: 1fr;
    }

    .latest-post-thumb {
        height: 160px;
    }
}

/* =============================================
   Blog Styles (for index.php, single.php)
   ============================================= */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-post-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    overflow: hidden;
}

.blog-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-post-thumb-link {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .blog-post-thumb-img {
    transform: scale(1.03);
}

.blog-post-card-body {
    padding: 28px 32px 32px;
}

.blog-post-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-post-card h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-card h2 a:hover {
    color: var(--primary);
}

.blog-post-meta {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.blog-post-excerpt {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.blog-read-more:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Single Post */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-post-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.single-post-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.single-post-content .post-meta {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.single-post-content .post-body {
    line-height: 1.8;
    color: var(--text-dark);
}

.single-post-content .post-body p {
    margin-bottom: 16px;
}

.single-post-content .post-body h2,
.single-post-content .post-body h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.single-post-content .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Page template */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.page-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.page-content p {
    margin-bottom: 16px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.no-posts p {
    color: var(--text-gray);
    font-size: 16px;
}

/* =============================================
   Responsive - Tablet
   ============================================= */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }

    .badge {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 14px;
    }
    /* Note: Pricing responsive styles moved to Pricing Section */
}

/* =============================================
   Responsive - Mobile
   ============================================= */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .main-layout {
        grid-template-columns: 1fr;
        padding-bottom: 140px;
    }

    .right-column {
        display: none;
    }

    .mobile-bottom-bar {
        display: block;
    }

    .section {
        padding: 24px;
        margin-bottom: 16px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .badge {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 14px;
    }

    .reviews-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .career-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .single-post-content {
        padding: 24px;
    }

    .page-content {
        padding: 24px;
    }
}

/* =============================================
   Responsive - Small Mobile
   ============================================= */
@media (max-width: 480px) {
    .profile-name {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .pricing-price {
        font-size: 28px;
    }

    .career-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
}
