/* ==========================================
   Do it! khmer365 - Sub-Pages Common Styles
   Startup / Education / Support / Facilities / Community
   ========================================== */

/* --- Page Hero --- */
.page-hero {
    padding-top: 64px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: -40%; right: -10%;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,0.12) 0%, transparent 70%);
}
.page-hero-container {
    max-width: 900px; margin: 0 auto; padding: 3rem 2rem 0;
    text-align: center; position: relative; z-index: 1;
}
.page-hero-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--secondary-light);
    margin: 0 auto 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.page-hero h1 {
    font-size: 2.2rem; font-weight: 700; color: white;
    margin-bottom: 0.6rem;
}
.page-hero p {
    font-size: 1.05rem; color: rgba(255,255,255,0.8);
    max-width: 600px; margin: 0 auto;
}

/* --- Content Sections --- */
.content-section {
    padding: 4rem 0;
    background: var(--bg-white);
}
.content-section.alt {
    background: var(--bg-light);
}
.content-container {
    max-width: 1100px; margin: 0 auto; padding: 0 2rem;
}

/* --- Section Header --- */
.section-header {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 2rem;
}
.section-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.section-icon.blue { background: rgba(27,75,138,0.1); color: var(--primary); }
.section-icon.green { background: rgba(46,204,113,0.1); color: var(--accent-green); }
.section-icon.purple { background: rgba(142,68,173,0.1); color: var(--accent-purple); }
.section-icon.orange { background: rgba(232,168,56,0.1); color: var(--secondary); }
.section-header h2 {
    font-size: 1.5rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.section-header p {
    font-size: 0.92rem; color: var(--text-light);
}

/* --- Card Grids --- */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* --- Info Cards --- */
.info-card {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: var(--transition);
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.info-card.horizontal {
    display: flex; gap: 1.2rem; align-items: flex-start;
}
.info-card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--bg-blue); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    margin-bottom: 1rem;
}
.info-card.horizontal .info-card-icon { margin-bottom: 0; }
.info-card h3 {
    font-size: 1.05rem; font-weight: 600; color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.info-card p {
    font-size: 0.88rem; color: var(--text-medium); line-height: 1.6;
}
.info-list {
    list-style: none; margin-top: 0.5rem;
}
.info-list li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.3rem 0; font-size: 0.88rem; color: var(--text-medium);
}
.info-list li i { color: var(--accent-green); font-size: 0.75rem; margin-top: 0.3rem; }
.card-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--primary); font-size: 0.85rem; font-weight: 600;
    margin-top: 0.75rem;
}
.card-link:hover { gap: 0.6rem; }
.ext-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--primary); font-size: 0.82rem; font-weight: 500;
    margin-top: 0.5rem;
}
.ext-link:hover { color: var(--primary-light); }

/* --- Trend Box --- */
.trend-box {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    margin-top: 2rem;
}
.trend-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.trend-box h3 i { color: var(--accent-red); }
.trend-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.trend-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
    background: var(--bg-light); font-size: 0.88rem;
}
.trend-rank {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.trend-tag {
    margin-left: auto; padding: 0.15rem 0.5rem;
    border-radius: 4px; font-size: 0.7rem; font-weight: 700;
    background: var(--bg-light); color: var(--text-light);
}
.trend-tag.hot { background: rgba(231,76,60,0.1); color: var(--accent-red); }
.trend-tag.up { background: rgba(46,204,113,0.1); color: var(--accent-green); }

/* --- Process Steps --- */
.process-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.process-step {
    display: flex; gap: 1.2rem; align-items: flex-start;
    padding: 1.5rem; background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.process-step:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}
.process-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.process-content h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.process-content p { font-size: 0.88rem; color: var(--text-medium); margin-bottom: 0.5rem; }
.process-detail { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.detail-tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.6rem; border-radius: 4px;
    background: var(--bg-light); font-size: 0.78rem; color: var(--text-medium);
}
.detail-tag i { color: var(--primary); font-size: 0.72rem; }

/* --- Cost Summary --- */
.cost-summary {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    margin-top: 2rem;
}
.cost-summary h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.cost-summary h3 i { color: var(--secondary); }
.cost-table { display: flex; flex-direction: column; gap: 0; }
.cost-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0.8rem; font-size: 0.88rem;
    border-bottom: 1px solid var(--bg-light);
}
.cost-row.total {
    font-weight: 700; color: var(--primary);
    background: var(--bg-blue); border-radius: var(--radius-sm);
    border-bottom: none; margin-top: 0.5rem;
}
.cost-note {
    font-size: 0.8rem; color: var(--text-light); margin-top: 0.75rem;
}
.cost-note i { color: var(--secondary); }

/* --- Education Cards --- */
.edu-card {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    position: relative; transition: var(--transition);
}
.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.edu-card-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--accent-red); color: white;
    padding: 0.2rem 0.6rem; border-radius: 4px;
    font-size: 0.7rem; font-weight: 700;
}
.edu-card-img {
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--bg-blue); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1rem;
}
.edu-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.edu-card p { font-size: 0.85rem; color: var(--text-medium); margin-bottom: 0.8rem; }
.edu-meta {
    display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-light);
    margin-bottom: 0.8rem;
}
.edu-meta i { color: var(--primary); margin-right: 0.2rem; }
.edu-price {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
}
.edu-price small { font-size: 0.78rem; color: var(--text-light); font-weight: 400; }

/* --- Schedule Box --- */
.schedule-box {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    margin-top: 2rem;
}
.schedule-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.schedule-box h3 i { color: var(--primary); }
.schedule-grid { display: flex; flex-direction: column; gap: 0.4rem; }
.schedule-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
    background: var(--bg-light); font-size: 0.88rem;
}
.sch-date {
    font-weight: 700; color: var(--primary);
    min-width: 40px;
}
.sch-status {
    margin-left: auto; padding: 0.15rem 0.5rem;
    border-radius: 4px; font-size: 0.7rem; font-weight: 700;
}
.sch-status.open { background: rgba(46,204,113,0.1); color: var(--accent-green); }
.sch-status.soon { background: rgba(232,168,56,0.1); color: var(--secondary); }

/* --- Support Cards --- */
.support-card {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: var(--transition);
}
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.support-badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    border-radius: 4px; font-size: 0.7rem; font-weight: 700;
    margin-bottom: 0.75rem;
}
.support-badge.gov { background: rgba(27,75,138,0.1); color: var(--primary); }
.support-badge.private { background: rgba(46,204,113,0.1); color: var(--accent-green); }
.support-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.support-card p { font-size: 0.85rem; color: var(--text-medium); line-height: 1.6; margin-bottom: 0.6rem; }
.support-tags {
    display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem;
}
.support-tags span {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; color: var(--accent-green);
}

/* --- Mentor Cards --- */
.mentor-card {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    text-align: center; transition: var(--transition);
}
.mentor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.mentor-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-blue), #D6E9FF);
    color: var(--primary); display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.mentor-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.mentor-card p { font-size: 0.85rem; color: var(--text-medium); margin-bottom: 0.8rem; }
.mentor-stats {
    display: flex; justify-content: center; gap: 1rem;
    font-size: 0.82rem; color: var(--text-light);
    margin-bottom: 1rem;
}
.mentor-stats i { color: var(--secondary); margin-right: 0.2rem; }
.btn-consult {
    background: var(--primary); color: white; border: none;
    padding: 0.55rem 1.5rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: var(--transition);
}
.btn-consult:hover {
    background: var(--primary-light); transform: translateY(-2px);
}

/* --- Facility Cards --- */
.facility-card {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: var(--transition);
}
.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.facility-img {
    width: 100%; height: 120px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--bg-blue), #D6E9FF);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.3rem; margin-bottom: 1rem;
    font-size: 2rem; color: var(--primary);
}
.facility-img span { font-size: 0.8rem; font-weight: 600; color: var(--text-medium); }
.facility-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.facility-features { list-style: none; margin-bottom: 1rem; }
.facility-features li {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.25rem 0; font-size: 0.85rem; color: var(--text-medium);
}
.facility-features li i { color: var(--accent-green); font-size: 0.72rem; }
.facility-price { margin-bottom: 1rem; }
.price-main { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.price-main small { font-size: 0.82rem; font-weight: 400; color: var(--text-light); }
.price-sub { display: block; font-size: 0.78rem; color: var(--text-light); margin-top: 0.2rem; }
.btn-reserve {
    width: 100%; background: var(--primary); color: white; border: none;
    padding: 0.55rem; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: var(--transition);
}
.btn-reserve:hover {
    background: var(--primary-light);
}

/* --- Coworking Cards --- */
.cowork-card {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: var(--transition);
}
.cowork-card:hover {
    box-shadow: var(--shadow-sm);
}
.cowork-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.cowork-card h3 i { color: var(--primary); margin-right: 0.3rem; }
.cowork-card > p { font-size: 0.88rem; color: var(--text-medium); margin-bottom: 1rem; }
.cowork-pricing { display: flex; flex-direction: column; gap: 0.4rem; }
.cowork-price-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.6rem; background: var(--bg-light);
    border-radius: var(--radius-sm); font-size: 0.85rem;
}
.cowork-price-item strong { color: var(--primary); }

/* --- Amenities Box --- */
.amenities-box {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    margin-top: 2rem;
}
.amenities-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.amenities-box h3 i { color: var(--secondary); }
.amenities-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.amenity-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.8rem; background: var(--bg-light);
    border-radius: var(--radius-sm); font-size: 0.85rem;
}
.amenity-item i { color: var(--primary); font-size: 0.92rem; }

/* --- Location Box --- */
.location-box {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    margin-top: 1.5rem;
}
.location-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.location-box h3 i { color: var(--accent-red); }
.location-box p { font-size: 0.88rem; color: var(--text-medium); }
.location-contact { margin-top: 0.5rem; }
.location-contact i { color: var(--primary); margin-right: 0.2rem; }

/* --- Story Cards --- */
.story-card {
    background: white; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
}
.story-card.success { border-left-color: var(--accent-green); }
.story-card.failure { border-left-color: var(--secondary); }
.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.story-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.6rem; border-radius: 4px;
    font-size: 0.72rem; font-weight: 700;
    margin-bottom: 0.6rem;
}
.story-card.success .story-badge { background: rgba(46,204,113,0.1); color: var(--accent-green); }
.story-card.failure .story-badge { background: rgba(232,168,56,0.1); color: var(--secondary); }
.story-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.story-card p { font-size: 0.85rem; color: var(--text-medium); line-height: 1.6; margin-bottom: 0.6rem; }
.story-meta {
    display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-light);
}
.story-meta i { margin-right: 0.2rem; }

/* --- Go Page Button --- */
.btn-go-page {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--primary); color: white;
    padding: 0.5rem 1.2rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.btn-go-page:hover { background: var(--primary-light); }
.edit-note {
    font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.75rem;
}

/* ==========================================
   RESPONSIVE - Sub Pages
   ========================================== */
@media (max-width: 1024px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .page-hero { padding-top: 58px; }
    .page-hero-container { padding: 2rem 1.2rem 0; }
    .page-hero-icon { width: 56px; height: 56px; font-size: 1.4rem; }
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero p { font-size: 0.92rem; }

    .content-section { padding: 2.5rem 0; }
    .content-container { padding: 0 1.2rem; }

    .section-header { flex-direction: column; gap: 0.6rem; }
    .section-header h2 { font-size: 1.3rem; }

    .card-grid-2 { grid-template-columns: 1fr; }
    .card-grid-3 { grid-template-columns: 1fr; }

    .info-card.horizontal { flex-direction: column; }

    .process-step { flex-direction: column; align-items: center; text-align: center; }
    .process-detail { justify-content: center; }

    .schedule-item { flex-wrap: wrap; gap: 0.5rem; }
    .sch-status { margin-left: 0; }

    .edu-meta { flex-wrap: wrap; }

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

@media (max-width: 480px) {
    .page-hero-container { padding: 1.5rem 1rem 0; }
    .page-hero-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .page-hero h1 { font-size: 1.35rem; }
    .page-hero p { font-size: 0.85rem; }

    .content-section { padding: 2rem 0; }
    .content-container { padding: 0 1rem; }

    .section-header h2 { font-size: 1.15rem; }

    .info-card { padding: 1.2rem; }
    .edu-card { padding: 1.2rem; }
    .support-card { padding: 1.2rem; }
    .facility-card { padding: 1.2rem; }
    .mentor-card { padding: 1.2rem; }
    .cowork-card { padding: 1.2rem; }

    .amenities-grid { grid-template-columns: 1fr; }

    .story-meta { font-size: 0.72rem; }
}
