:root{
    --link-color: #ffffff;
    --bg-color-1: #d8e1d2;
    --bg-color-2: #f1ebe1;
    --text-color-1: #555;
    --text-color-2: #333;
    --rating-color: #ffcc00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'poppins', Sans-serif;
}

.navbar{
    background-color: var(--bg-color-2);
    padding-bottom: 40px;
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.navbar__layout {
    max-width: 80%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
    margin-bottom: 20px;
}

.navbar__logo {
    max-width: 300px !important;
    height: auto;
    margin-right: 30px;
    margin-bottom: 20px;
}

.navbar__menu {
    display: flex;
    gap: 35px;
}

.navbar__menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar__menu li {
    list-style-type: none;
}

.navbar__link {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    color: rgb(97, 93, 93);
    font-size: 1.4em;
}

.navbar__link:hover {
    color: var(--text-color-2);
}


.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1300px;
    width: 80%;
    margin: 0 auto;
    align-items: center;
    height: 100%;
    background-color: var(--bg-color-1);
    border-radius: 5px;
    padding: 35px;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero__slogan {
    font-family: 'Poppins', sans-serif;
    padding-bottom: 80px;
    line-height: 2em;
    color: rgb(84, 80, 80);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.hero__image img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
}

.treatments {
    max-width: 1100px;
    width: 70%;
    margin: 100px auto;
    display: grid;
    grid-template-columns: 1fr;
}

.treatments__header {
    font-family: 'Poppins', sans-serif;
    font-size: 2.1em;
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
}


.treatments__underline img {
    width: 80%;
    max-width: 250px;
    display: block;
    margin: 0 auto;
    padding-bottom: 60px;
}

.treatments__img-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: auto;
}

.treatments__img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 6px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.treatments__img-container:hover .treatments__img {
    opacity: 1;
    transform: scale(1.05);
}

.treatments__img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--link-color);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 6px;
}

.treatments__link {
    text-decoration: none;
    text-align: center;
    color: var(--link-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.6em;
    font-weight: 600;
}

.treatments__img-container:hover .treatments__img-overlay {
    opacity: 1;
}

.treatments__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    justify-items: center;
}

.feedbacks {
    max-width: 1300px;
    width: 80%;
    background-color: var(--bg-color-2);
    margin: 0 auto;
    padding: 30px;
    font-size: 1.3em;
    gap: 20px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-bottom: 60px;
}

.feedbacks__header {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 30px;
}

.feedbacks__source-logo {
    width: 60px;
    height: 60px;
}

.feedbacks__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
}

.feedbacks__item {
    background-color: #f4f4f4;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
}

.feedbacks__text {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.feedbacks__name {
    font-weight: 700;
    font-size: 18px;
}

.feedbacks__rating {
    gap: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.feedbacks__rating i {
    color: var(--rating-color);
    font-size: 16px;
}

.feedbacks__card {
    max-width: 500px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px;
    align-items: center;
}

.feedbacks__card-body {
    position: relative;
}

.feedbacks__avatar-section {
    display: flex;
    align-items: flex-start;
}

.feedbacks__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-right: 20px;
    margin-left: 10px;
}

.feedbacks__info-section {
    flex-grow: 1;
    padding-top: 5px;
}

.feedbacks__doctor-name {
    font-size: 1.1em;
    font-weight: bold;
}

.feedbacks__specialization {
    font-size: 14px;
    color: var(--text-color-1);
    margin: 5px 0;
}

.feedbacks__rating {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.feedbacks__stars {
    color: var(--rating-color);
    font-size: 20px;
}

.feedbacks__comments-count {
    font-size: 0.7em;
    color: var(--text-color-1);
    margin-left: 10px;
}

.feedbacks__comments-button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background-color: #156cc9;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 0.9em;
}

.feedbacks__comments-button:hover {
    background-color: #0559b4;
}

.feedbacks__doctors-logo img {
    width: 150px; 
    height: auto;
    text-align: left;
    margin-top: 15px;
}

:where(h1, h2, p, span, a) {
    caret-color: transparent;
}


:where(h1, h2, p, span, a):focus {
    outline: none;
}

p, span{
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.gallery {
    max-width: 1300px;
    width: 80%;
    padding: 50px 0;
    margin: auto;
    text-align: center;
    background-color: var(--bg-color-1);
    border-radius: 6px;
    margin-bottom: 50px;
}

.gallery__title {
    font-size: 1.7em;
    font-weight: 600;
    margin-bottom: 30px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 80%;
    margin: 0 auto;
}

.gallery__item {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

.gallery__item:hover .gallery__image {
    transform: scale(1.05);
}


.footer {
    background-color: #f2f2f2;
    padding: 40px 20px;
    color: var(--text-color-2);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-color-1);
    flex-wrap: wrap;
}

.footer__logo-image {
    max-width: 200px;
    height: auto;
}

.footer__center, .footer__right {
    display: flex;
    flex-direction: column;
    align-items:last baseline;
    gap: 10px;
    flex: 1;
}

.footer__info-item {
    display: flex;
    align-items: center;
}

.footer__icon {
    margin-right: 10px;
    font-size: 20px;
    color: #49a2c3;
}

.footer__link {
    color: var(--text-color-2);
    text-decoration: none;
}

.footer__link:hover {
    color: #96bae0;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    width: 100%;
}

.footer__menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 10px;
}

.footer__menu-item {
    display: inline-block;
}

.footer__menu-link {
    color: var(--text-color-2);
    text-decoration: none;
    font-weight: bold;
}

.footer__menu-link:hover {
    color: #96bae0;
}

.footer__copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #464545;
}

#footer:target,
#footer:focus {
    display: block;
    outline: none;
    user-select: none;
}


/* side pages */
.main {
    width: 100%;
}

.more-info {
    max-width: 80%;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

.more-info__title {
    font-size: 2em;
    color: var(--text-color-2);
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.more-info__container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 50px;
    margin-bottom: 50px;
}

.more-info__image {
    max-width: 40%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.more-info__text-content {
    width: 55%;
    line-height: 1.8;
    color: var(--text-color-1);
    text-align: left;
    margin-bottom: 15px;
}

.more-info__text-content p {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.more-info ul {
    list-style-type: disc; 
    padding-left: 25px; 
    margin-bottom: 30px; 
    text-align: left; 
    font-size: 1.2em;
}

.more-info h3{
    font-family: 'poppins', sans-serif;
    font-size: 1.4em;
    text-align: center;
    padding: 20px;
}


/* Responsive Tasarım */
@media only screen and (max-width: 576px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 25px 15px;
        font-size: 0.6em;
        max-width: 100%;
    }

    .navbar__layout {
        width: 100%; 
        flex-direction: column;
        align-items: center;
    }

    .navbar__logo {
        max-width: 250px !important;
        margin: 0 0 20px;
    }

    .navbar__menu {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .navbar__link {
        text-align: center;
        font-size: 1.4em;
        white-space: nowrap;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        white-space: normal;
    }

    .hero {
        display: block;
        max-width: 100%;
        width: 85%;
        margin: 0 auto;
        padding: 25px;
        margin-top: 25px;
    }

    .hero__text {
        text-align: center;
        padding-top: 40px; 
    }

    .hero__slogan {
        padding-bottom: 30px;
        line-height: 1.8em;
        font-size: clamp(1rem, 2.5vw, 1.8rem);
        text-align: center;
    }

    .hero__image {
        display: flex;
        justify-content: center;
        margin-top: 25px;
    }

    .hero__image img {
        max-width: 85%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .treatments {
        width: 85%; 
        margin: 60px auto;
    }

    .treatments__header {
        font-size: 1.8em;
    }

    .treatments__underline {
        margin-bottom: 30px;
    }

    .treatments__underline img {
        width: 90%;
        max-width: 250px;
        display: block;
        margin: 0 auto;
    }

    .treatments__grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }

    .treatments__img {
        max-height: 300px; 
    }

    .treatments__link {
        font-size: 1.3em;
    }

    .feedbacks {
        width: 85%;
        padding: 25px;
    }

    .feedbacks__header {
        font-size: 1.4em; 
        margin-top: 25px;
    }

    .feedbacks__content {
        display: flex;
        flex-direction: column; 
    }

    .feedbacks__item {
        padding: 25px;
        font-size: 1.5em;
    }

    .feedbacks__text{
        font-size: 0.7em !important;
    }

    .feedbacks__card {
        max-width: 100%;
        margin: 15px;
        padding: 20px;
    }

    .feedbacks__avatar {
        width: 70px;
        height: 70px;
        margin-top: 10px;
    }

    .feedbacks__doctor-name {
        font-size: 0.9em;
    }
    
    .feedbacks__comments-count{
        font-size: 0.6em;
    }
    .feedbacks__specialization {
        font-size: 0.8em;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr); 
    }

    .footer__container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .footer__logo-image {
        max-width: 190px;
    }

    .footer__center, .footer__right {
        align-items: center;
        text-align: center;
    }

    .footer__info-item {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer__link {
        font-size: 15px;
    }

    .footer__menu {
        gap: 20px;
        flex-direction: column;
    }

    .footer__menu-link {
        font-size: 1.1em;
    }

    .more-info__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .more-info__image {
        max-width: 75%;
        margin-bottom: 25px;
    }

    .more-info__text-content {
        width: 85%;
        font-size: 1.1em;
    }
}


@media only screen and (min-width: 577px) and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 25px 15px;
        gap: 25px;
        font-size: 0.8em !important;
    }

    .navbar__layout {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 80%;
        margin: 20px auto;
        padding: 30px;
    }

    .hero__slogan {
        text-align: center;
        padding: 20px 0;
        line-height: 1.6em;
        font-size: 1.3em;
    }

    .hero__text {
        margin-bottom: 30px;
    }

    .hero__image img {
        max-width: 70%;
        padding-bottom: 20px;
    }

    .treatments__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px; 
    }

    .feedbacks {
        width: 90%;
        padding: 20px;
    }

    .feedbacks__content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .feedbacks__item {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr); 
    }

    .footer__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 40px;
    }
    
    .footer__logo-image {
        max-width: 190px; 
        margin-bottom: 10px;
    }
    
    .footer__info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 400px;
        gap: 10px;
    }
    
    .footer__info-item {
        display: flex;
        align-items: center; 
        gap: 10px;
    }
    
    .footer__info-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
    }

    .footer__link{
        padding: 8px;
    }
    
    .footer__menu {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        font-size: 1.3em;
    }
    
    .footer__bottom {
        margin-top: 10px;
        text-align: center;
        font-size: 0.9em;
    }
}


@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        font-size: 1em;
    }

    .navbar__layout {
        width: 100%; 
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .navbar__logo {
        max-width: 280px !important;
        margin-bottom: 10px;
    }

    .navbar__menu {
        gap: 15px;
     }

    .navbar__link {
        text-align: center;
    }

    .hero {
        display: flex;
        justify-content: space-between;
        max-width: 100%;
        width: 80%;
        margin: 0 auto;
        padding: 40px;
        margin-top: 40px;
    }

    .hero__text {
        text-align: center;
        padding-top: 30px;
        flex: 1;
    }

    .hero__slogan {
        padding-bottom: 25px;
        line-height: 1.6em;
        font-size: clamp(1.1rem, 2.5vw, 2rem);
        text-align: center; 
    }

    .hero__image {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        flex: 1;
    }

    .hero__image img {
        max-width: 75%;
        height: auto;
        object-fit: cover;
        border-radius: 5px;
    }

    .treatments {
        width: 80%;
        margin: 50px auto;
    }

    .treatments__header {
        font-size: em;
    }

    .treatments__underline img {
        width: 80%;
        max-width: 250px;
        display: block;
        margin: 0 auto;
    }

    .treatments__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }

    .treatments__img {
        max-height: 380px;
    }

    .treatments .treatments__link {
        font-size: 1.5em;
    }

    .feedbacks {
        width: 80%;
        padding: 25px;
    }

    .feedbacks__header {
        font-size: 1.5em;
        margin-top: 30px;
    }

    .feedbacks__content {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }

    .feedbacks__item {
        padding: 20px;
        font-size: 1.1em;
    }

    .feedbacks__card {
        display: flex;
        align-items: center; 
        gap: 15px;
    }
    
    .feedbacks__avatar {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        margin-top: 15px;
    }

    .feedbacks__specialization, .feedbacks__comments-count {
        font-size: 0.8em !important;
    }

    .feedbacks__specialization {
        font-size: 0.9em;
    }

    .footer__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px;
        font-size: 1.2em;
    }
    
    .footer__logo-image {
        max-width: 250px; 
        margin-bottom: 10px;
    }
    
    .footer__info {
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        width: 100%;
        max-width: 400px;
        gap: 10px;
    }
    
    .footer__info-item {
        display: flex;
        align-items: center; 
        gap: 5px; 
    }
    
    .footer__link{
        padding: 8px;
    }
    
    .footer__menu {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        font-size: 1.2em;
    }
    
    .footer__bottom {
        margin-top: 10px;
        text-align: center;
    }

    .footer__copyright {
        margin-top: 10px;
        font-size: 18px;
    }

    .more-info__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .more-info__image {
        max-width: 70%;
        margin-bottom: 30px;
    }

    .more-info__text-content {
        width: 80%;
        font-size: 1.2em;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1440px) {

    .hero {
        width: 80%;
        padding: 25px;
    }

    .hero__slogan{
        font-size: 1.5em;
        align-items: center;
        padding-right: 15px;
    }

    .hero__image {
        max-width: 450px;

    .treatments {
        width: 90%;

    .treatments__grid {
        grid-template-columns: repeat(2, 1fr);

    .feedbacks {
        width: 90%;
        font-size: 1.2em;
    }

    .gallery {
        width: 90%;
    }

    .more-info {
        max-width: 90%;
    }

    .more-info__container {
        flex-direction: column; 
        gap: 30px;
    }

    .more-info__image {
        max-width: 100%;
    }
}


