/* css/academic_service.css */

/* --- Page Layout --- */
.service-page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.service-page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid #1abc9c;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- Grid Layout for Cards --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* --- Service Card Styling --- */
.service-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --- Card Content --- */
.service-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* --- Card Image --- */
.service-card-image-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.service-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image {
    transform: scale(1.05);
}

/* --- Gallery Thumbnails --- */
.service-card-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-gallery-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-gallery-thumbnail:hover {
    transform: scale(1.1);
    border-color: #1abc9c;
}

/* --- Card Meta --- */
.service-card-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    border-left: 3px solid #bdc3c7;
    padding-left: 12px;
}

.service-card-meta p {
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
}

.service-card-meta i {
    margin-right: 10px;
    color: #1abc9c;
}

/* --- Card Buttons --- */
.service-card-buttons {
    margin-top: auto; /* ดันปุ่มไปอยู่ล่างสุด */
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-card-button {
    flex-grow: 1; /* ทำให้ปุ่มขยายเท่ากัน */
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: #1abc9c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.service-card-button.alt {
    background-color: #95a5a6;
}

.service-card-button:hover {
    background-color: #16a085;
}
.service-card-button.alt:hover {
    background-color: #7f8c8d;
}

.service-card-button i {
    margin-right: 8px;
}

/* --- No Service Message --- */
.no-service-message {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 15px;
    grid-column: 1 / -1; /* ทำให้ข้อความแสดงเต็มความกว้างของ grid */
}