/* --- redesign.css (Luxury Version) --- */

/* -- 1. Variables & Base Styles -- */
:root {
    --primary-dark-blue: #0D204D; /* สีน้ำเงินเข้มหลัก */
    --primary-accent-gold: #FFC107; /* สีทองสำหรับเน้น */
    --light-grey-bg: #F7F9FC; /* สีพื้นหลังเทาอ่อนมากๆ */
    --text-dark: #212529;
    --text-light: #6c757d;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
}

body {
    background-color: var(--light-grey-bg);
    font-family: 'IBM Plex Sans Thai', sans-serif;
    color: var(--text-dark);
}

/* -- 2. Search Area -- */
.search-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.search-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    opacity: 0.9;
}

.search-title {
    color: var(--primary-dark-blue);
    font-weight: 600;
}

.search-box-wrapper {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: none;
    margin-top: 2rem;
}

.search-form .form-label {
    font-weight: 500;
    color: var(--text-light);
}

.search-form .input-group .form-control {
    border-right: 0;
}

    .search-form .input-group .form-control:focus {
        box-shadow: none;
        border-color: var(--primary-accent-gold);
    }

.search-form .input-group .btn-primary {
    background-color: var(--primary-accent-gold);
    border-color: var(--primary-accent-gold);
    color: var(--primary-dark-blue);
    font-weight: bold;
    transition: all 0.3s ease;
}

    .search-form .input-group .btn-primary:hover {
        background-color: #ffca2c;
        border-color: #ffca2c;
        transform: scale(1.02);
    }

/* -- 3. Info & Result Card -- */
.info-box {
    display: flex;
    align-items: center;
    background-color: #EBF2FF; /* Light blue background */
    color: var(--primary-dark-blue);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 2rem;
    border: 1px solid #d6e3ff;
}

.info-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
}

.scholarship-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    margin-top: 2rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .scholarship-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    }

    .scholarship-card .card-header {
        background: linear-gradient(135deg, #0d44c7, #17a5e1);
        color: white;
        padding: 25px 30px;
    }

        .scholarship-card .card-header h3 {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .scholarship-card .card-header p {
            opacity: 0.8;
        }

    .scholarship-card .card-body {
        padding: 30px;
    }

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

    .details-grid p {
        margin: 0;
        padding: 10px;
    }

        .details-grid p span {
            color: var(--primary-dark-blue);
            font-weight: 500;
        }

.work-announcement {
    margin: 1.5rem 0;
}

    .work-announcement a {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        color: var(--text-dark);
        background-color: #F7F9FC;
        padding: 10px 15px;
        border-radius: 25px;
        transition: all 0.3s ease;
    }

        .work-announcement a:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
        }

    .work-announcement img {
        width: 16px;
        margin-right: 10px;
    }

.financial-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.financial-section {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    padding: 20px;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

    .financial-section:hover {
        border-color: #e0e0e0;
    }

    .financial-section h5 i {
        color: var(--primary-dark-blue);
        margin-right: 12px;
    }

    .financial-section .amount-total {
        font-weight: bold;
        color: #1E8449;
    }

.scholarship-card .card-footer {
    background-color: #F7F9FC;
    padding: 25px 30px;
    text-align: right;
    border-top: 1px solid #f0f0f0;
}

.card-footer h4 {
    margin: 0;
    color: var(--primary-dark-blue);
}

.card-footer .final-total {
    color: var(--primary-accent-gold);
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* -- 4. Accordion (Conditions) -- */
.conditions-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    border-radius: var(--border-radius-md) !important;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
}

    .accordion-button:not(.collapsed) {
        color: var(--primary-dark-blue);
        background-color: #f0f5ff;
        box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    }

.accordion-body a img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
