.login-section {
    padding: 80px 0;
    background: #f8fcfb;
}

.form-card, .profile-card {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.form-card h2,
.profile-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #096B68;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.submit-btn {
    background: #129990;
    color: white;
    padding: 12px;
    border: none;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
}

.submit-btn:hover {
    background: #096B68;
}

/* پروفایل */
.profile-header {
    text-align: center;
}

.profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.review-box {
    background: #FFFBDE;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.course-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.course-row input {
    flex: 1;
}

.add-course-btn {
    margin-top: 10px;
    background: #FFFBDE;
    border: 1px dashed #096B68;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.add-course-btn:hover {
    background: #e6f5f3;
}

/* PROFILE HEADER */

.profile-header{
    text-align:center;
    padding-bottom:25px;
    border-bottom:1px solid #eee;
    margin-bottom:30px;
}

.profile-header h2{
    margin:10px 0 8px;
}

.profile-meta{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    color:#666;
    font-size:14px;
}

.profile-meta .dot{
    width:5px;
    height:5px;
    background:#aaa;
    border-radius:50%;
}

.rating{
    margin-top:10px;
    color:#ffa41c;
    font-weight:bold;
}


/* SECTIONS */

.profile-section{
    margin-top:35px;
}

.profile-section h3{
    margin-bottom:15px;
    font-size:18px;
    color:#096B68;
    display:flex;
    align-items:center;
    gap:8px;
}


/* COURSES */

.courses{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.course-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f9f9f9;
    padding:12px 15px;
    border-radius:10px;
}

.course-item p{
    margin:3px 0 0;
    font-size:13px;
    color:#666;
}


/* STATUS */

.status-box{
    background:#e6f5f3;
    color:#096B68;
    padding:12px;
    border-radius:10px;
    text-align:center;
    font-weight:bold;
}


/* REVIEWS */

.review-box{
    background:#FFFBDE;
    padding:15px;
    border-radius:10px;
    margin-bottom:10px;
}

.review-box span{
    display:block;
    font-size:12px;
    color:#777;
    margin-bottom:5px;
}

.info-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(150px,1fr));

gap:15px;

margin-top:10px;

}

.info-grid div{

background:#f8f8f8;

padding:12px;

border-radius:10px;

text-align:center;

}

.profile-actions{

margin-top:30px;

display:flex;

gap:10px;

}

.profile-actions button{

flex:1;

padding:12px;

border:none;

border-radius:10px;

cursor:pointer;

background:#129990;

color:white;

}

.profile-actions .danger{

background:#ff5c5c;

}

/* ----- Responsive styles for Mobile ----- */

@media (max-width: 768px) { /* For tablets and mobile devices */

    /* Login Section and Form Card Responsive */
    .login-section {
        padding: 50px 0; /* Reduced padding */
    }

    .form-card, .profile-card {
        max-width: 90%; /* Increased max-width for smaller screens */
        padding: 25px; /* Reduced padding inside cards */
    }

    .form-card h2,
    .profile-card h2 {
        margin-bottom: 20px;
        font-size: 24px; /* Slightly smaller heading */
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }

    /* Profile Header Responsive */
    .profile-header img {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }

    .profile-header h2 {
        font-size: 22px;
    }

    .profile-meta {
        flex-direction: column; /* Stack meta info vertically */
        gap: 5px;
    }

    .rating {
        font-size: 14px;
    }

    /* Sections and Headings Responsive */
    .profile-section {
        margin-top: 25px;
    }

    .profile-section h3 {
        margin-bottom: 12px;
        font-size: 17px;
        gap: 6px;
    }

    /* Courses Responsive */
    .course-item {
        flex-wrap: wrap; /* Allow items to wrap */
        padding: 10px;
    }

    .course-item p {
        font-size: 12px;
        width: 100%; /* Take full width */
        text-align: right;
    }
    .course-row {
        flex-direction: column;
        gap: 8px;
    }
    .course-row input {
        flex: none; /* Reset flex */
        width: 100%;
    }
    .add-course-btn {
        width: 100%;
    }

    /* Status Box Responsive */
    .status-box {
        padding: 10px;
        font-size: 14px;
    }

    /* Review Box Responsive */
    .review-box {
        padding: 12px;
        font-size: 13px;
    }

    .review-box span {
        font-size: 11px;
    }

    /* Info Grid Responsive */
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Smaller minmax for grid items */
        gap: 10px;
    }

    .info-grid div {
        padding: 10px;
        font-size: 13px;
    }

    /* Profile Actions Responsive */
    .profile-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .profile-actions button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Media Query for very small screens (e.g., < 360px) */
@media (max-width: 360px) {
    .form-card, .profile-card {
        padding: 20px;
        max-width: 95%;
    }
    .form-card h2, .profile-card h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .profile-header h2 {
        font-size: 20px;
    }
    .profile-section h3 {
        font-size: 16px;
    }
    .info-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .profile-actions {
        gap: 8px;
    }
}
/* رسپانسیو شده */