.departments-page {
    padding: 0px 0 80px;
    background: #fff;
    font-family: "DM Sans", sans-serif;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #51678F;
    margin-bottom: 30px;
}

.department-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.department-filters input,
.department-filters select {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.alphabet-filter button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f5f6f8;
    font-size: 14px;
    color: #51678F;
    cursor: pointer;
    transition: all 0.3s;
}

.alphabet-filter button:hover {
    background: rgba(188, 0, 66, 0.06);
    color: #BC0042;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.department-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    background: #f5f6f8;
    color: #51678F;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.department-card:hover {
    background: rgba(188, 0, 66, 0.06);
    color: #BC0042;
}


/** bölüm medikal aletleri ***/

.medical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 100px;
}

.medical-card {
    position: relative;
    border-radius: 12px;
    height: 591px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #F5F6F8;
    padding: 10px;
    transition: .3s all linear;
}

.medical-card:hover {
    background-color: #BC0042;
}

.medical-card img {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    margin-bottom: 60px;
    object-fit: cover;
}

.medical-card h3 {
    color: #51678F;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    transition: .3s all linear;
    /* 133.333% */
    letter-spacing: -1px;
}

.medical-card:hover h3 {
    color: #fff;
}

.technologies-page {
    padding: 80px 0;
}

.tech-wrapper {
    display: flex;
    gap: 100px;
}

.tech-main {
    flex: 3;
}

.tech-main img {
    width: 60%;
    margin: 0px auto 20px;
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, .2);
}

.tech-sidebar {
    flex: 1;
}

.tech-bio p {
    color: #51678F !important;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px;
    /* 188.889% */
    margin-bottom: 18px;
}

.tech-summary {
    color: #51678F !important;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    line-height: 34px;
    /* 188.889% */
    margin-bottom: 18px;
}

.tech-sidebar h4 {
    color: #51678F;
    leading-trim: both;
    text-edge: cap;
    font-family: "DM Sans";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.tech-sidebar .medical-card {
    margin-bottom: 30px;
}

.accordion {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    border: none;
    background: #f9f9f9;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: background 0.3s, color 0.3s;
}

.accordion-header:hover {
    background: #f1f1f1;
}

.accordion-header.active {
    background: #BC0042;
    color: #fff;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #fff;
    padding: 0 20px;
}

.accordion-body p {
    margin: 15px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.accordion-item.open .accordion-body {
    max-height: 500px;
    /* içeriğe göre ayarla */
    padding: 15px 20px;
}

.second-opinion {
    padding: 60px 0;
    background: #f9f9fb;
    margin-bottom: 60px;
}

.second-opinion h2 {
    font-size: 28px;
    font-weight: 600;
    color: #51678F;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 50px;
    /* satır ve kolon arası boşluk */
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #51678F;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D9DEE7;
    border-radius: 8px;
    font-size: 14px;
    color: #51678F;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group textarea {
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #BC0042;
    box-shadow: 0 0 0 3px rgba(188, 0, 66, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #51678F;
}

.form-actions {
    grid-column: 1 / -1;
    /* tek satır, tüm genişlik */
    text-align: center;
    margin-top: 20px;
}

.form-actions .btn {
    padding: 14px 40px;
    border: none;
    border-radius: 30px;
    background: #51678F;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-actions .btn:hover {
    background: #3a4d72;
}


/* Responsive */

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-success-msg {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    background: #e6f9f0;
    /* açık yeşil arka plan */
    color: #2e7d32;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}