body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fffaf5;
}

header {
    background: #ff7a00;
    color: white;
    text-align: center;
    padding: 40px 0;
}

header p {
    opacity: 0.9;
}

.container {
    width: 85%;
    margin: 40px auto;
}

.card {
    display: flex;
    background: white;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 260px;
    object-fit: cover;
}

.content {
    padding: 20px;
    flex: 1;
}

.content h2 {
    margin-top: 0;
    color: #ff7a00;
}

.position {
    font-weight: bold;
    margin: 5px 0;
}

.date {
    color: gray;
    margin-bottom: 15px;
}

button {
    background: #ff7a00;
    border: none;
    padding: 8px 15px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #e66900;
}

.detail {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
}

.detail ul {
    margin-top: 15px;
    padding-left: 20px;
}
/* ===============================
   RESPONSIVE DESIGN - INTERNSHIP PAGE
================================ */

/* Tablet */
@media (max-width: 992px){
    .container{
        width:95%;
    }

    .card img{
        width:200px;
    }
}

/* Mobile */
@media (max-width: 768px){

    header{
        padding:25px 0;
    }

    header h1{
        font-size:22px;
    }

    .container{
        width:95%;
        margin:20px auto;
    }

    /* เปลี่ยนจากแนวนอนเป็นแนวตั้ง */
    .card{
        flex-direction:column;
    }

    .card img{
        width:100%;
        height:220px;
        object-fit:cover;
    }

    .content{
        padding:15px;
    }

    .content h2{
        font-size:18px;
    }

    button{
        width:100%;
        margin-top:10px;
    }
}
