/* Import Google Fonts - Moved to HTML */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Colors */
    --white-color: #ffffff;
    --dark-color: #252525;
    --primary-color: #3a5a40;
    /*2e7d32*/
    --secondary-color: #fb8500;
    --light-bg-color: #f9f9f9;
    /* Replaced light-pink */
    --medium-gray-color: #ccc;

    /* Font Size */
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.25rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;

    /* Font Weight */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /* Site max width*/
    --site-max-width: 1300px;

    --header-height: 0px;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white-color);
}

main {
    flex: 1;
    padding-top: 80px;
    /* Header height offset */
    display: flex;
    flex-direction: column;
}

.footer-section {
    margin-top: auto;
}

/* Styling for whole site */
ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    width: 100%;
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

section[id] {
    scroll-margin-top: 120px;
}

/* Navbar Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    background: var(--white-color);
}

header {
    background: var(--white-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}


header .navbar {
    display: flex;
    padding: 15px 20px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo .logo-text {
    color: var(--primary-color);
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .nav-menu {
    display: flex;
    gap: 20px;
}

.navbar .nav-menu .nav-link {
    padding: 6px 12px;
    color: var(--dark-color);
    font-size: var(--font-size-n);
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover {
    color: var(--primary-color);
    background: transparent;
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;
}


/* Hero Section Styling */
/* Hero Section Styling */
.hero-section {
    min-height: calc(100vh - 80px);
    background: linear-gradient(to right, #f0fdf4, #e0f7fa);
    /* padding-top: 80px; removed as main has padding */
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
    color: var(--dark-color);
    justify-content: space-between;
    gap: 50px;
}

.hero-section .hero-details {
    flex: 1;
}

.hero-section .hero-details .title {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.hero-section .hero-details .subtitle {
    margin-top: 20px;
    max-width: 95%;
    font-size: var(--font-size-n);
    font-weight: var(--font-weight-normal);
    color: #555;
    line-height: 1.8;
}

.hero-section .hero-details .buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-section .hero-details .button {
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    transition: 0.3s ease;
    font-size: var(--font-size-n);
}


/* The buttons styling */
.hero-section .hero-details .primary-btn {
    background: #00c853;
    /* Bright green like reference */
    color: var(--white-color);
    border-color: #00c853;
}

.hero-section .hero-details .primary-btn:hover {
    background: #00a844;
    border-color: #00a844;
}

.hero-section .hero-details .secondary-btn {
    background: transparent;
    color: #00c853;
    border-color: #00c853;
}

.hero-section .hero-details .secondary-btn:hover {
    background: rgba(0, 200, 83, 0.1);
}

.hero-section .hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 600px;
}

.hero-section .hero-image-wrapper img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}



/* Info-section Styling */
.info {
    padding: 60px 20px;
    background: var(--white-color);
    /* Changed from light-pink */
}

.info .section-title {
    text-align: center;
    font-size: var(--font-size-xxl);
    margin-bottom: 40px;
    color: var(--primary-color);
}

.info .section-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.info-details {
    flex: 1;
}

.info-details .subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-details .info-text {
    font-size: var(--font-size-n);
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.info-image {
    max-width: 400px;
    border-radius: var(--border-radius-m);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Articles Section Styling */
.articles-section {
    padding: 50px 20px;
    background: var(--light-bg-color);
    /* Changed to light-bg */
}

.articles-section .section-title {
    text-align: center;
    font-size: var(--font-size-xxl);
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Container -> alt alta dizilsin */
.articles-section .section-content {
    display: flex;
    flex-direction: column;
    /* alt alta */
    gap: 30px;
    align-items: stretch;
}

/* Kartların default hali (desktop için yatay) */
.article-card {
    display: flex;
    flex-direction: row;
    /* resim solda, yazı sağda */
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--white-color);
    /* Changed to white */
    border-radius: var(--border-radius-m);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    width: 100%;
    transition: transform 0.2s ease;
}

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

/* Resim */
.article-card img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: var(--border-radius-s);
}

/* İçerik alanı */
.article-card .article-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Başlık */
.article-card h3 {
    font-size: var(--font-size-l);
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Yazı alanı */
.article-card .article-text {
    font-size: var(--font-size-n);
    color: var(--dark-color);
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-text .more-text {
    display: none;
}

.article-text .more-text.show {
    display: inline;
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    margin-top: 5px;
    display: inline-block;
    font-size: var(--font-size-s);
    text-decoration: underline;
}

.read-more-btn:hover {
    color: var(--secondary-color);
}


/* ✅ Responsive (mobilde dikey görünüm) */
@media screen and (max-width: 768px) {
    .article-card {
        flex-direction: column;
        /* resim üstte, yazı altta */
        text-align: center;
        align-items: center;
    }

    .article-card img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }

    .article-card .article-content-wrapper {
        align-items: center;
    }
}



/* Appointment Form Styling */

.appointment-section {
    padding: 60px 20px;
    background: var(--white-color);
}

.appointment-section .section-title {
    text-align: center;
    font-size: var(--font-size-xxl);
    margin-bottom: 30px;
    color: var(--primary-color);
}

.appointment-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--light-bg-color);
    /* Changed to light-bg */
    padding: 30px;
    border-radius: var(--border-radius-m);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appointment-form label {
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
}

.appointment-form input,
.appointment-form textarea {
    padding: 12px;
    border: 1px solid var(--medium-gray-color);
    border-radius: var(--border-radius-s);
    font-size: var(--font-size-n);
    resize: vertical;
}

.appointment-form button {
    background: #00c853;
    /* Match hero button */
    color: var(--white-color);
    font-weight: var(--font-weight-semibold);
    padding: 12px;
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.appointment-form button:hover {
    background: #00a844;
    color: var(--white-color);
}


/* Contact Section Styling*/
.contact-section {
    padding: 50px 0 100px;
    background: var(--light-bg-color);
    /* Changed to light-bg */
}

.contact-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-section .section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.contact-section .contact-info-list {
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section .contact-info-list .contact-info {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.contact-section .contact-info-list .contact-info i {
    font-size: var(--font-size-m)
}

.contact-link {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--dark-color);
    transition: 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-section .section-content {
    align-items: center;
    flex-direction: column-reverse;
}

/* Footer Section Styling*/
.footer-section {
    padding: 20px 0;
    background: var(--dark-color);
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-section :where(.copyright-text, .social-link, .policy-link, .fa-solid.fa-envelope) {
    color: var(--white-color);
    transition: 0.2s ease;
}

.footer-section .social-link-list {
    display: flex;
    gap: 25px;
}

.footer-section .social-link-list .social-link {
    font-size: var(--font-size-l);
}

.footer-section .social-link-list .social-link i {
    font-size: 1.25rem;
}


.footer-section .social-link-list .fa-solid.fa-envelope {
    font-size: var(--font-size-l);
}

.footer-section .social-link-list .social-link:hover,
.footer-section .policy-text .policy-link:hover,
.footer-section .social-link-list .fa-solid.fa-envelope:hover {
    color: var(--secondary-color);
}

.footer-section .policy-text .separator {
    margin: 0 5px;
    color: var(--white-color);
}

/* Responsive */
@media screen and (max-width: 900px) {

    :root {
        --font-size-m: 1rem;
        --font-size-l: 1.3rem;
        --font-size-xl: 1.5rem;
        --font-size-xxl: 1.8rem;
    }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }


    .navbar :where(#menu-close-button, #menu-open-button) {
        display: block;
        font-size: var(--font-size-l);
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .navbar #menu-open-button {
        color: var(--dark-color);
    }

    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
    }

    body.show-mobile-menu .navbar .nav-menu {
        left: 0;
    }

    .navbar .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .hero-section .section-content {
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-details :is(.subtitle) {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

    .hero-section .hero-image-wrapper img {
        width: 100%;
        height: auto;
        width: 270px;
        /* Fixed size for mobile consistency */
        height: 270px;
    }

    .footer-section .section-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Responsive adjustments for expanded state */
@media screen and (max-width: 768px) {

    /* Adjust breakpoint as needed */
    .article-card.expanded {
        flex-direction: column;
        /* Stack image and text vertically on smaller screens */
        align-items: center;
    }

    .article-card.expanded img {
        width: 100%;
        /* Image takes full width */
        max-width: 300px;
        /* Limit image width */
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 768px) {
    .article-card {
        flex-direction: column;
        /* resim üstte, yazı altta */
        text-align: center;
        align-items: center;
    }

    .article-card img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }

    .article-card .article-content-wrapper {
        align-items: center;
        max-width: 90%;
        /* metin alanı ekranın %90’ı ile sınırlı */
    }

    .article-card .article-text {
        text-align: justify;
        /* satır hizalama */
        max-width: 600px;
        /* çok uzun satır olmasın */
    }
}


/* Responsive */
@media screen and (max-width: 900px) {
    .info .section-content {
        flex-direction: column;
        text-align: center;
    }

    .info-image {
        max-width: 300px;
        margin-top: 20px;
    }
}