/* =========================================
   1. Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #F9F9F9; /* พื้นหลังสีเทาอ่อนมาก สบายตา */
    color: #333333; /* ตัวอักษรสีชาร์โคล ไม่อ่านแล้วปวดตาแบบสีดำสนิท */
    line-height: 1.6;
}

/* =========================================
   2. Navigation Bar
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #1A2B4C; /* Navy Blue */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.navbar nav a {
    text-decoration: none;
    color: #333333;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar nav a:hover {
    color: #1A2B4C;
}

/* =========================================
   3. Buttons
========================================= */
.btn-primary {
    background-color: #1A2B4C;
    color: #FFFFFF !important;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #111D33;
}

.btn-outline {
    background-color: transparent;
    color: #1A2B4C;
    border: 1.5px solid #1A2B4C;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #1A2B4C;
    color: #FFFFFF;
}

/* =========================================
   4. Hero & Search Section (หน้าแรก)
========================================= */
.hero {
    background-color: #E8EEF2;
    padding-bottom: 50px;
    border-bottom: 1px solid #E0E0E0;
}

.search-container {
    max-width: 850px;
    margin: 40px auto 0;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.search-form {
    display: flex;
    gap: 15px;
}

.search-form select, .search-form input {
    flex: 1;
    padding: 14px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-form select:focus, .search-form input:focus {
    border-color: #1A2B4C;
}

/* =========================================
   5. Results Grid & Profile Cards
========================================= */
.results-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.results-section h2 {
    margin-bottom: 25px;
    color: #1A2B4C;
    font-size: 28px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.profile-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F0F0F0;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.profile-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid #F0F0F0;
}

.card-content {
    padding: 20px;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.title-row h3 {
    font-size: 20px;
    color: #222222;
}

.badge-verified {
    font-size: 16px;
    cursor: help;
}

.meta-info {
    color: #666666;
    font-size: 14px;
    margin-bottom: 12px;
}

.price {
    font-size: 15px;
}

.price strong {
    font-size: 18px;
    color: #1A2B4C;
}

/* =========================================
   6. Ribbon Tags (Niche Audience)
========================================= */
.ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.male-ribbon {
    background-color: #1A2B4C; /* Navy Blue */
}

.female-ribbon {
    background-color: #D4AF37; /* Gold */
}

/* =========================================
   7. Dashboard & Admin Forms
========================================= */
.dashboard-container {
    max-width: 800px;
    margin: 40px auto;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

form input, form select, form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 15px;
    border-bottom: 1px solid #EEEEEE;
    text-align: left;
}

.admin-table th {
    background: #1A2B4C;
    color: #FFFFFF;
    font-weight: 500;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: #F8F9FA;
}