/* Tech Interview Homepage */
.ti-homepage { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.ti-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.ti-section { padding: 50px 0; }
.ti-section:nth-child(even) { background: #f8f9fa; }

/* Hero */
.ti-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 70px 0 60px; text-align: center; }
.ti-hero h1 { font-size: 2.8em; font-weight: 800; margin: 0 0 16px; line-height: 1.15; }
.ti-hero-sub { font-size: 1.15em; color: #b0bec5; max-width: 680px; margin: 0 auto 30px; line-height: 1.6; }
.ti-search { max-width: 600px; margin: 0 auto 28px; display: flex; gap: 0; }
.ti-search input { flex: 1; padding: 14px 18px; font-size: 1em; border: 2px solid rgba(255,255,255,0.2); border-right: none; border-radius: 8px 0 0 8px; background: rgba(255,255,255,0.1); color: #fff; outline: none; }
.ti-search input::placeholder { color: rgba(255,255,255,0.5); }
.ti-search input:focus { border-color: #4fc3f7; background: rgba(255,255,255,0.15); }
.ti-search button { padding: 14px 28px; font-size: 1em; font-weight: 600; background: #4fc3f7; color: #1a1a2e; border: none; border-radius: 0 8px 8px 0; cursor: pointer; transition: background 0.2s; }
.ti-search button:hover { background: #81d4fa; }
.ti-hero-stats { display: flex; justify-content: center; gap: 40px; font-size: 0.95em; color: #90a4ae; }
.ti-hero-stats strong { color: #4fc3f7; font-size: 1.3em; display: block; }

/* Cards */
.ti-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ti-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 28px; text-decoration: none; color: #333; transition: box-shadow 0.2s, transform 0.15s; display: block; }
.ti-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.ti-card h2, .ti-card h3 { margin: 0 0 10px; color: #1a1a2e; font-size: 1.25em; }
.ti-card p { margin: 0 0 12px; color: #666; font-size: 0.92em; line-height: 1.5; }
.ti-card-icon { font-size: 2em; margin-bottom: 12px; }
.ti-card-count { font-size: 0.85em; color: #4fc3f7; font-weight: 600; }
.ti-card-sd { border-top: 3px solid #4fc3f7; }
.ti-card-coding { border-top: 3px solid #66bb6a; }
.ti-card-company { border-top: 3px solid #ffa726; }
.ti-card-beginner { border-left: 4px solid #66bb6a; }
.ti-card-intermediate { border-left: 4px solid #ffa726; }
.ti-card-advanced { border-left: 4px solid #ef5350; }

/* Grid of topics */
.ti-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.ti-grid-item { display: block; padding: 14px 18px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; text-decoration: none; color: #333; font-weight: 500; font-size: 0.93em; transition: all 0.15s; text-align: center; }
a.ti-grid-item:hover { background: #4fc3f7; color: #fff; border-color: #4fc3f7; }

/* Section headers */
.ti-section h2 { font-size: 1.7em; margin: 0 0 8px; color: #1a1a2e; }
.ti-section-sub { color: #666; margin: 0 0 20px; font-size: 1em; }
.ti-view-all { display: inline-block; margin-top: 16px; color: #4fc3f7; font-weight: 600; text-decoration: none; font-size: 0.95em; }
.ti-view-all:hover { text-decoration: underline; }

/* Company chips */
.ti-company-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ti-company-chip { display: inline-block; padding: 8px 18px; background: #fff; border: 1px solid #e0e0e0; border-radius: 20px; text-decoration: none; color: #333; font-size: 0.9em; font-weight: 500; transition: all 0.15s; }
.ti-company-chip:hover { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

/* Latest posts */
.ti-latest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ti-latest-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; text-decoration: none; color: #333; transition: border-color 0.15s; }
.ti-latest-item:hover { border-color: #4fc3f7; }
.ti-latest-title { font-weight: 500; font-size: 0.9em; flex: 1; margin-right: 12px; }
.ti-latest-date { color: #999; font-size: 0.82em; white-space: nowrap; }

/* Responsive */
@media (max-width: 768px) {
    .ti-hero h1 { font-size: 1.9em; }
    .ti-cards-3 { grid-template-columns: 1fr; }
    .ti-grid { grid-template-columns: repeat(2, 1fr); }
    .ti-latest-grid { grid-template-columns: 1fr; }
    .ti-hero-stats { flex-direction: column; gap: 16px; }
    .ti-search { flex-direction: column; }
    .ti-search input { border-right: 2px solid rgba(255,255,255,0.2); border-radius: 8px; margin-bottom: 8px; }
    .ti-search button { border-radius: 8px; }
}
