/* Masaustu genel olcek ayari: daha sikisik ve sakin gorunum */
@media (min-width: 768px) {
    html {
        font-size: 96%;
    }

    body {
        line-height: 1.58;
    }

    .masthead__inner-wrap {
        align-items: center;
        padding-top: 0.9em;
        padding-bottom: 0.9em;
    }

    .masthead .site-title {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .masthead .site-logo img {
        width: 240px;
        height: auto;
        max-width: 240px;
        max-height: 58px;
        object-fit: contain;
    }

    .greedy-nav {
        align-items: center;
    }

    .masthead__menu-item,
    .greedy-nav .visible-links a,
    .greedy-nav .hidden-links a,
    .greedy-nav__toggle {
        font-size: 0.96em;
    }

    .greedy-nav .visible-links a,
    .greedy-nav .hidden-links a {
        font-weight: 600;
    }

    .sidebar {
        font-size: 0.96em;
    }

    .sidebar .author__avatar img {
        width: 140px;
        height: 140px;
        max-width: 140px;
        object-fit: cover;
        border-radius: 50%;
    }

    .author__name {
        font-size: 1.05em;
        line-height: 1.3;
    }

    .sidebar .author__bio {
        font-size: 0.88rem;
        font-weight: 500;
        color: #4b5563;
        line-height: 1.45;
    }

    .sidebar .author__urls {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .sidebar .author__urls li {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 0.25rem;
    }

    .sidebar .author__urls a {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .author__urls-wrapper .btn {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .page__content {
        font-size: 0.97em;
        line-height: 1.64;
    }

    .page .page__inner-wrap {
        margin-top: calc(1em + 56px);
    }

    .page__content p,
    .page__content li {
        line-height: 1.64;
    }

    .page__content h1,
    .page__content h2,
    .page__content h3,
    .page__content h4 {
        line-height: 1.28;
    }

    .archive,
    .archive__item,
    .archive__item-excerpt {
        font-size: 0.97em;
    }

    .page__share,
    .page__share .btn,
    .social-icons {
        font-size: 0.96em;
    }

    .page__share {
        margin-top: 1.6em;
        padding-top: 0.8em;
    }

    .page__share-title {
        margin-bottom: 8px;
        font-size: 0.68rem;
    }

    .page__share .btn {
        margin-inline-end: 0.25rem;
        padding: 0.45rem 0.65rem;
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .btn,
    .custom-project-card .custom-align-btn {
        padding-top: 0.58em;
        padding-bottom: 0.58em;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .masthead__menu,
    .greedy-nav {
        width: 100%;
    }

    .greedy-nav {
        align-items: center;
        display: flex;
    }

    .masthead .site-title {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .greedy-nav .visible-links {
        height: 1px;
        left: -9999px;
        overflow: hidden;
        position: absolute;
        top: auto;
        width: 1px;
    }

    .greedy-nav .visible-links .masthead__menu-item {
        min-width: 100vw;
    }

    .greedy-nav__toggle {
        margin-left: auto;
    }

    .masthead .site-logo img {
        width: 160px;
        height: auto;
        max-width: 160px;
        max-height: 44px;
        object-fit: contain;
    }

    .sidebar .author__avatar img {
        width: 88px;
        height: 88px;
        max-width: 88px;
        object-fit: cover;
        border-radius: 50%;
    }
}

/* Projeler Grid Yapısı */
.custom-projects-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
    align-items: start !important;
}

@media (min-width: 900px) {
    .custom-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Proje Kartı Tasarımı */
.custom-project-card {
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 220px !important;
    position: relative !important;
}

.custom-project-card-image {
    align-items: center !important;
    background: #f7f8fa !important;
    border: 1px solid #eef1f4 !important;
    border-radius: 6px !important;
    display: flex !important;
    height: 82px !important;
    justify-content: center !important;
    margin: 0 0 0.65rem !important;
    overflow: hidden !important;
    padding: 0.25rem !important;
}

.custom-project-card-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Kart İçeriği Esnekliği */
.custom-project-card .card-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
}

/* Özet Metni Alanı */
.custom-project-card-title {
    font-size: 1rem !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    margin-bottom: 0.3rem !important;
}

.custom-project-card-desc {
    margin-top: 0 !important;
    margin-bottom: 0.65rem !important;
    overflow: hidden !important;
    flex-grow: 0 !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

/* Proje karti butonu */
.custom-project-card .custom-align-btn {
    margin-top: auto !important;
    align-self: flex-start !important;
    padding: 5px 11px !important;
    font-size: 0.64rem !important;
    background-color: #002147 !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: bold !important;
}
/* CV download buttons */
.cv-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.4rem;
}

.cv-downloads__button {
    align-items: center;
    border: 1px solid #002147;
    border-radius: 5px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cv-downloads__button:hover,
.cv-downloads__button:focus {
    text-decoration: none;
}

.cv-downloads__button--primary {
    background-color: #fff;
    color: #002147;
}

.cv-downloads__button--primary:hover,
.cv-downloads__button--primary:focus {
    background-color: #f4f6f8;
    color: #002147;
}

.cv-downloads__button--secondary {
    background-color: #fff;
    color: #002147;
}

.cv-downloads__button--secondary:hover,
.cv-downloads__button--secondary:focus {
    background-color: #f4f6f8;
    color: #002147;
}
/* Blog index editorial cards */
.blog-index {
    margin-top: 0.2rem;
}

.blog-intro {
    margin-bottom: 1.2rem;
}

.blog-intro p {
    color: #4b5563;
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0 0 0.65rem;
}

.blog-intro__accent {
    background: #008c95;
    border-radius: 999px;
    display: block;
    height: 3px;
    width: 54px;
}

.blog-featured,
.blog-card {
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 33, 71, 0.06);
    overflow: hidden;
}

.blog-featured {
    display: grid;
    gap: 0;
    margin-bottom: 1.45rem;
}

.blog-featured__media,
.blog-card__media {
    background: #f4f6f8;
    display: block;
    overflow: hidden;
}

.blog-featured__media img,
.blog-card__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.blog-featured__content {
    padding: 1rem;
}

.blog-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.blog-pill {
    background: #eef7f8;
    border: 1px solid #d4ecef;
    border-radius: 999px;
    color: #005f67;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.28rem 0.48rem;
}

.blog-featured__title,
.blog-card__title,
.blog-section-title {
    color: #002147;
    line-height: 1.25;
}

.blog-featured__title {
    font-size: 1.26rem;
    margin: 0 0 0.55rem;
}

.blog-featured__title a,
.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-featured__title a:hover,
.blog-featured__title a:focus,
.blog-card__title a:hover,
.blog-card__title a:focus {
    color: #005f67;
    text-decoration: none;
}

.blog-featured__excerpt,
.blog-card__excerpt {
    color: #4b5563;
    line-height: 1.55;
    margin: 0 0 0.75rem;
}

.blog-featured__excerpt {
    font-size: 0.92rem;
}

.blog-meta {
    align-items: center;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    font-weight: 600;
    gap: 0.45rem 0.75rem;
    justify-content: space-between;
}

.blog-read-link {
    color: #002147;
    font-weight: 700;
    text-decoration: none;
}

.blog-read-link:hover,
.blog-read-link:focus {
    color: #005f67;
    text-decoration: none;
}

.blog-list-section {
    margin-top: 0.9rem;
}

.blog-section-title {
    border-bottom: 1px solid #e6eaef;
    font-size: 0.98rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.45rem;
}

.blog-list {
    display: grid;
    gap: 0.75rem;
}

.blog-card {
    display: grid;
}

.blog-card__media {
    min-height: 130px;
}

.blog-card__content {
    padding: 0.85rem;
}

.blog-card__title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.blog-card__excerpt {
    font-size: 0.86rem;
}

.blog-empty {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

@media (min-width: 720px) {
    .blog-featured {
        grid-template-columns: minmax(220px, 38%) 1fr;
    }

    .blog-featured__media {
        min-height: 245px;
    }

    .blog-featured__content {
        padding: 1.15rem 1.2rem;
    }

    .blog-card {
        grid-template-columns: 150px 1fr;
    }

    .blog-card__media {
        min-height: 100%;
    }
}

@media (max-width: 719px) {
    .blog-featured__media {
        max-height: 210px;
    }

    .blog-featured__content,
    .blog-card__content {
        padding: 0.85rem;
    }

    .blog-featured__title {
        font-size: 1.08rem;
    }

    .blog-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Contact page */
.contact-page {
    max-width: 560px;
}

.contact-page__intro {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.15rem;
}

.contact-form {
    border: 1px solid #e6eaef;
    border-radius: 8px;
    padding: 1rem;
}

.contact-form__field {
    margin-bottom: 0.8rem;
}

.contact-form__field label {
    color: #002147;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-form__field input,
.contact-form__field textarea {
    border: 1px solid #d7dde5;
    border-radius: 5px;
    color: #111827;
    font-size: 0.9rem;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.contact-form__field textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form__button {
    background-color: #002147;
    border: 1px solid #002147;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.6rem 0.9rem;
}

.contact-form__button:hover,
.contact-form__button:focus {
    background-color: #00366f;
    border-color: #00366f;
}

.contact-links {
    border-top: 1px solid #e6eaef;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.contact-links h2 {
    color: #002147;
    font-size: 1rem;
    margin: 0 0 0.65rem;
}

.contact-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.contact-links__list a {
    border: 1px solid #d7dde5;
    border-radius: 5px;
    color: #002147;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
}

.contact-links__list a:hover,
.contact-links__list a:focus {
    background-color: #f4f6f8;
    text-decoration: none;
}

/* Back-to-top control */
.back-to-top {
    align-items: center;
    appearance: none;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    bottom: 74px;
    box-shadow: 0 5px 14px rgba(0, 33, 71, 0.12);
    color: #002147;
    cursor: pointer;
    display: flex;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 0.28rem;
    min-height: 34px;
    justify-content: center;
    line-height: 1;
    opacity: 0;
    padding: 0.45rem 0.68rem;
    pointer-events: none;
    position: fixed;
    right: 18px;
    transform: translateY(6px);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
    visibility: hidden;
    white-space: nowrap;
    z-index: 999;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top__text {
    display: inline;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: #eef7f8;
    border-color: #9ccfd5;
    color: #002147;
}

.back-to-top:focus {
    outline: 2px solid rgba(0, 95, 103, 0.28);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .back-to-top__text {
        display: none;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        background-color: #002147;
        border-color: #002147;
        border-radius: 50%;
        color: #fff;
        font-size: 1rem;
        height: 42px;
        overflow: hidden;
        padding: 0;
        right: 12px;
        width: 42px;
    }
}
