/* ============================================
   TelFind Public UI Styles
   ============================================ */

:root {
    --tf-red: #DC3545;
    --tf-red-dark: #B02A37;
    --tf-red-light: #FFF0F1;
    --tf-gray-900: #1a1a2e;
    --tf-gray-600: #6c757d;
    --tf-gray-200: #f0f0f5;
    --tf-white: #ffffff;
    --tf-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --tf-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --tf-radius: 12px;
    --tf-radius-lg: 20px;
}

* { box-sizing: border-box; }

body.public-body {
    font-family: 'Nunito', sans-serif;
    color: var(--tf-gray-900);
    background: linear-gradient(180deg, var(--tf-white) 0%, var(--tf-red-light) 35%, var(--tf-white) 100%);
    background-attachment: fixed;
    margin: 0;
    overflow-x: hidden;
}

/* ---- Navbar ---- */
.tf-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.tf-navbar .container { display: flex; align-items: center; justify-content: space-between; }
.tf-navbar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.tf-navbar-brand img.logo-icon { height: 40px; width: auto; }
.tf-navbar-brand img.logo-text { height: 22px; width: auto; }
.tf-navbar-nav { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.tf-navbar-nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tf-gray-600);
    transition: color 0.2s;
    padding-bottom: 2px;
}
.tf-navbar-nav a:hover,
.tf-navbar-nav a.active {
    color: var(--tf-red);
    border-bottom: 2px solid var(--tf-red);
}

/* ---- Hero ---- */
.tf-hero {
    background: transparent;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tf-hero .container { position: relative; z-index: 2; }
.tf-hero .badge-pill {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
    animation: tf-fadeInDown 0.6s ease;
}
.tf-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; animation: tf-fadeInUp 0.7s ease; }
.tf-hero h1 span {
    background: linear-gradient(135deg, var(--tf-red), #3d1288);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tf-hero p { color: var(--tf-gray-600); font-size: 1rem; max-width: 500px; margin: 0 auto 30px; animation: tf-fadeInUp 0.8s ease; }

/* ---- Hero Decorative Elements ---- */

/* Gradient Blob - Top Right */
.tf-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(220,53,69,0.12) 0%, rgba(220,53,69,0.04) 50%, transparent 70%);
    border-radius: 50%;
    animation: tf-float1 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Gradient Blob - Bottom Left */
.tf-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(220,53,69,0.08) 0%, rgba(255,160,170,0.04) 40%, transparent 65%);
    border-radius: 50%;
    animation: tf-float2 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Dot Grid Pattern */
.tf-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(220,53,69,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Rings */
.tf-hero-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.tf-hero-ring-1 {
    top: 12%;
    right: 8%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(220,53,69,0.12);
    animation: tf-float1 7s ease-in-out infinite;
}
.tf-hero-ring-2 {
    bottom: 18%;
    left: 6%;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(220,53,69,0.10);
    animation: tf-float2 9s ease-in-out infinite;
}

/* Floating Dots */
.tf-hero-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.tf-hero-dot-1 { top: 18%; left: 12%; width: 8px; height: 8px; background: rgba(220,53,69,0.25); animation: tf-float1 5s ease-in-out infinite; }
.tf-hero-dot-2 { top: 30%; right: 15%; width: 6px; height: 6px; background: rgba(220,53,69,0.20); animation: tf-float2 6s ease-in-out infinite; }
.tf-hero-dot-3 { bottom: 25%; left: 20%; width: 10px; height: 10px; background: rgba(220,53,69,0.15); animation: tf-float1 7s ease-in-out infinite; }
.tf-hero-dot-4 { top: 40%; left: 5%; width: 5px; height: 5px; background: rgba(220,53,69,0.30); animation: tf-float2 4s ease-in-out infinite; }
.tf-hero-dot-5 { bottom: 35%; right: 10%; width: 7px; height: 7px; background: rgba(220,53,69,0.20); animation: tf-float1 8s ease-in-out infinite; }
.tf-hero-dot-6 { top: 55%; right: 22%; width: 4px; height: 4px; background: rgba(220,53,69,0.35); animation: tf-float2 5s ease-in-out infinite; }

/* Floating Cross/Plus Shapes */
.tf-hero-cross {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}
.tf-hero-cross::before,
.tf-hero-cross::after {
    content: '';
    position: absolute;
    background: var(--tf-red);
}
.tf-hero-cross::before { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.tf-hero-cross::after { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.tf-hero-cross-1 { top: 22%; right: 18%; width: 16px; height: 16px; animation: tf-spin 15s linear infinite; }
.tf-hero-cross-2 { bottom: 28%; left: 14%; width: 12px; height: 12px; animation: tf-spin 20s linear infinite reverse; }

/* ---- Hero Animations ---- */
@keyframes tf-float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes tf-float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-2deg); }
}
@keyframes tf-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes tf-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes tf-fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll Entrance Animations ---- */
.tf-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.tf-animate.tf-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger delays for children */
.tf-animate-delay-1 { transition-delay: 0.1s; }
.tf-animate-delay-2 { transition-delay: 0.2s; }
.tf-animate-delay-3 { transition-delay: 0.3s; }

/* ---- Search Box ---- */
.tf-search-box {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow-lg), 0 0 80px rgba(220,53,69,0.05);
    padding: 28px 32px;
    max-width: 580px;
    margin: 0 auto 28px;
    animation: tf-fadeInUp 0.9s ease;
}
.tf-search-box .search-input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tf-search-box .search-input:focus { border-color: var(--tf-red); box-shadow: 0 0 0 4px rgba(220,53,69,0.08); }
.tf-search-box .search-row { display: flex; gap: 12px; margin-top: 14px; }
.tf-search-box .search-row select,
.tf-search-box .search-row input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    background: var(--tf-white);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tf-search-box .search-row select:focus,
.tf-search-box .search-row input:focus { border-color: var(--tf-red); box-shadow: 0 0 0 4px rgba(220,53,69,0.08); }

/* ---- Buttons ---- */
.btn-tf-red {
    background: linear-gradient(135deg, var(--tf-red), var(--tf-red-dark));
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-tf-red:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,53,69,0.35); color: #fff; text-decoration: none; }
.btn-tf-red.btn-block { width: 100%; justify-content: center; }

.btn-tf-outline {
    background: var(--tf-white);
    color: var(--tf-gray-900) !important;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 11.5px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-tf-outline:hover { border-color: var(--tf-red); color: var(--tf-red) !important; text-decoration: none; }

.btn-tf-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 16px;
}
.btn-tf-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); color: #fff; text-decoration: none; }

.tf-hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- School Image ---- */
.tf-school-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin: 40px 0 0;
    border-radius: 0;
}

/* ---- Stats Counter ---- */
.tf-stats {
    padding: 0 0 20px;
    margin-top: -10px;
}
.tf-stats-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}
.tf-stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--tf-radius);
    padding: 28px 32px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    box-shadow: var(--tf-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.tf-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tf-shadow-lg);
}
.tf-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tf-red), var(--tf-red-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    color: #fff;
}
.tf-stat-icon.helped {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}
.tf-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--tf-gray-900);
    line-height: 1;
    margin-bottom: 6px;
}
.tf-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tf-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Latest Items (Homepage) ---- */
.tf-latest {
    background: transparent;
    padding: 60px 0;
    text-align: center;
}
.tf-latest h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.tf-latest-subtitle { color: var(--tf-gray-600); font-size: 14px; margin-bottom: 32px; }

/* ---- How It Works ---- */
.tf-how {
    background: transparent;
    padding: 60px 0;
    text-align: center;
}
.tf-how h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 40px; }
.tf-how-cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.tf-how-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius);
    padding: 32px 24px;
    width: 260px;
    text-align: center;
    box-shadow: var(--tf-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tf-how-card:hover { transform: translateY(-4px); }
.tf-how-card .icon {
    width: 56px;
    height: 56px;
    background: var(--tf-red-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: var(--tf-red);
}
.tf-how-card h5 { font-weight: 700; margin-bottom: 8px; }
.tf-how-card p { font-size: 13px; color: var(--tf-gray-600); margin: 0; }

/* ---- CTA Section ---- */
.tf-cta {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--tf-radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 800px;
    margin: 40px auto 60px;
    box-shadow: var(--tf-shadow);
}
.tf-cta h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.tf-cta p { color: var(--tf-gray-600); margin-bottom: 24px; font-size: 14px; }

/* ---- Page Header ---- */
.tf-page-header {
    background: transparent;
    padding: 48px 0 36px;
    text-align: center;
}
.tf-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.tf-page-header h1 span { color: var(--tf-red); }
.tf-page-header p { color: var(--tf-gray-600); max-width: 460px; margin: 0 auto; }

/* ---- Browse Section ---- */
.tf-browse { padding: 40px 0 60px; }
.tf-browse .row { display: flex; gap: 28px; }
.tf-browse .filters-col { flex: 0 0 240px; }
.tf-browse .items-col { flex: 1; }

.tf-filters {
    background: var(--tf-white);
    border-radius: var(--tf-radius);
    padding: 24px;
    box-shadow: var(--tf-shadow);
    position: sticky;
    top: 80px;
}
.tf-filters h4 { font-weight: 800; color: var(--tf-red); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.tf-filters label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 8px; color: var(--tf-gray-600); }
.tf-filters .filter-input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    outline: none;
    margin-bottom: 18px;
}
.tf-filters .filter-input:focus { border-color: var(--tf-red); }

.tf-category-list { list-style: none; padding: 0; margin: 0 0 18px; }
.tf-category-list li { margin-bottom: 4px; }
.tf-category-list a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--tf-gray-900);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.tf-category-list a:hover { background: var(--tf-red-light); color: var(--tf-red); }
.tf-category-list a.active { background: var(--tf-red); color: #fff; }

/* ---- Item Cards Grid ---- */
.tf-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.tf-item-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.tf-item-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow-lg); color: inherit; text-decoration: none; }
.tf-item-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.tf-item-card .card-body { padding: 16px; }
.tf-item-card .card-body h5 { font-weight: 700; font-size: 16px; margin: 0 0 10px; }
.tf-item-card .card-meta { display: flex; flex-direction: column; gap: 6px; }
.tf-item-card .card-meta .meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tf-gray-600); }
.tf-item-card .card-meta .meta-row i { color: var(--tf-red); font-size: 12px; width: 16px; text-align: center; }
.tf-item-card .card-date { font-size: 12px; color: #aaa; margin-top: 8px; }

/* ---- Detail Page ---- */
.tf-detail { padding: 30px 0 60px; }
.tf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--tf-gray-600);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.tf-back-link:hover { color: var(--tf-red); text-decoration: none; }

.tf-detail-card {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow-lg);
    overflow: hidden;
    display: flex;
    gap: 0;
}
.tf-detail-card .detail-img-wrap {
    flex: 0 0 340px;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.tf-detail-card .detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tf-detail-card .detail-img-wrap .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--tf-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 6px;
}
.tf-detail-card .detail-info { flex: 1; padding: 36px 32px; }
.tf-detail-card .detail-info h2 { font-weight: 800; font-size: 1.6rem; margin-bottom: 20px; }
.tf-detail-info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tf-detail-info-row .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tf-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-red);
    font-size: 14px;
    flex-shrink: 0;
}
.tf-detail-info-row .info-text small { display: block; font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
.tf-detail-info-row .info-text span { font-weight: 700; font-size: 15px; }

.tf-status-badge {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}
.tf-status-badge.pending { background: #fff3cd; color: #856404; }
.tf-status-badge.in_progress { background: #cce5ff; color: #004085; }
.tf-status-badge.completed { background: #d4edda; color: #155724; }

/* ---- Report Form ---- */
.tf-report-section { padding: 40px 0 60px; }
.tf-report-form {
    background: var(--tf-white);
    border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow-lg);
    padding: 36px 40px;
    max-width: 620px;
    margin: 0 auto;
}
.tf-form-group { margin-bottom: 20px; }
.tf-form-group label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}
.tf-form-group input,
.tf-form-group select,
.tf-form-group textarea {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.tf-form-group input:focus,
.tf-form-group select:focus,
.tf-form-group textarea:focus { border-color: var(--tf-red); }
.tf-form-row { display: flex; gap: 16px; }
.tf-form-row .tf-form-group { flex: 1; }

.tf-upload-area {
    border: 2px dashed #ddd;
    border-radius: var(--tf-radius);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.tf-upload-area:hover { border-color: var(--tf-red); background: var(--tf-red-light); }
.tf-upload-area .upload-icon { font-size: 36px; color: #ccc; margin-bottom: 10px; }
.tf-upload-area p { font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.tf-upload-area small { color: #aaa; font-size: 12px; }
.tf-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tf-upload-area .preview-img { max-width: 200px; max-height: 150px; object-fit: cover; border-radius: 8px; margin-top: 10px; }

/* ---- Footer ---- */
.tf-footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 48px 0 32px;
}
.tf-footer .footer-grid { display: flex; gap: 40px; flex-wrap: wrap; }
.tf-footer .footer-brand { flex: 1; min-width: 200px; }
.tf-footer .footer-brand img { height: 36px; margin-bottom: 12px; }
.tf-footer .footer-brand p { font-size: 13px; color: var(--tf-gray-600); margin: 0; line-height: 1.6; }
.tf-footer .footer-col { flex: 0 0 200px; }
.tf-footer .footer-col h5 { font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.tf-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.tf-footer .footer-col li { margin-bottom: 8px; }
.tf-footer .footer-col a { text-decoration: none; color: var(--tf-gray-600); font-size: 14px; transition: color 0.2s; }
.tf-footer .footer-col a:hover { color: var(--tf-red); }
.tf-footer .footer-col .contact-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--tf-gray-600); }
.tf-footer .footer-col .contact-row i { color: var(--tf-red); width: 16px; text-align: center; }

/* ---- Empty State ---- */
.tf-empty { text-align: center; padding: 60px 20px; color: var(--tf-gray-600); }
.tf-empty i { font-size: 48px; color: #ddd; margin-bottom: 16px; display: block; }

/* ---- Alert ---- */
.tf-alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.tf-alert-success { background: #d4edda; color: #155724; }
.tf-alert-danger { background: #f8d7da; color: #721c24; }

/* ---- Pagination ---- */
.tf-pagination { margin-top: 28px; display: flex; justify-content: center; }
.tf-pagination nav { display: flex; justify-content: center; }
.tf-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.tf-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    background: var(--tf-white);
    color: var(--tf-gray-900);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.tf-pagination .page-item .page-link:hover {
    border-color: var(--tf-red);
    color: var(--tf-red);
    background: var(--tf-red-light);
}
.tf-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--tf-red), var(--tf-red-dark));
    color: #fff;
    border-color: var(--tf-red);
}
.tf-pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    background: var(--tf-gray-200);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .tf-browse .row { flex-direction: column; }
    .tf-browse .filters-col { flex: 1; }
    .tf-detail-card { flex-direction: column; }
    .tf-detail-card .detail-img-wrap { flex: none; min-height: 240px; }
    .tf-search-box .search-row { flex-direction: column; }
    .tf-form-row { flex-direction: column; gap: 0; }
    .tf-hero h1 { font-size: 1.8rem; }
    .tf-stats-grid { flex-direction: column; align-items: center; }
    .tf-stat-card { min-width: unset; width: 100%; max-width: 280px; }
    .tf-navbar-nav { gap: 16px; }
    .tf-navbar-nav a { font-size: 12px; }
    .tf-footer .footer-grid { flex-direction: column; gap: 24px; }
}
