/* ===================== accordion ===================== */

.acc-wrap {
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: 0;
}

.acc-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.accordion {
    display: flex;
    height: 600px;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.panel {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    flex: 1;
    min-width: 0;
}

.panel.active {
    flex: 4.5;
    cursor: default;
}

.accordion .panel:not(.active):hover .panel-bg {
    filter: brightness(0.9);
}

.accordion .panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: filter 0.5s ease;
    filter: brightness(0.9);
}

.accordion .panel.active .panel-bg {
    filter: brightness(1.05);
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, transparent 65%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.panel.active::before {
    opacity: 0.6;
}

.panel.active::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
}

.panel-label {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    transform-origin: center center;
    z-index: 2;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.25s ease;
}

.panel.active .panel-label {
    opacity: 0;
    pointer-events: none;
}

.panel-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
    pointer-events: none;
    max-width: 600px;
}

.panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    background: #232f60;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.panel-content h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.panel-content p {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 20px;
}

.panel-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 4px;
}

.panel-content a svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.plus-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #c0392b;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.panel.active .plus-btn {
    opacity: 0;
}

.plus-btn svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

.panel+.panel {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.arr-btn {
    display: none;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 14px;
}

.accordion .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(35, 47, 96, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.accordion .dot.active {
    background: #232f60;
    width: 18px;
    border-radius: 3px;
}

@media (max-width: 1200px) {
    .accordion {
        height: 480px;
    }

    .panel-content {
        padding: 36px;
    }

    .panel-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .accordion {
        height: 450px;
    }

    .panel-content {
        padding: 30px;
    }

    .panel-content h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .accordion {
        flex-direction: column;
        height: auto;
    }

    .panel {
        flex: none !important;
        width: 100%;
        height: 80px;
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .panel.active {
        height: 400px;
    }

    .panel-label {
        transform: none;
        left: 24px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.9rem;
    }

    .panel-content {
        padding: 24px;
        max-width: 100%;
        opacity: 0;
        transform: translateY(20px);
    }

    .panel.active .panel-content {
        opacity: 1;
        transform: translateY(0);
    }

    .panel-content h2 {
        font-size: 1.4rem;
    }

    .panel-content p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .plus-btn {
        left: auto;
        right: 24px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
    }

    .panel.active .plus-btn svg {
        transform: rotate(45deg);
    }

    .arr-btn {
        display: none;
    }

    .dots {
        display: none;
    }
}

@media (max-width: 576px) {
    .panel {
        height: 70px;
    }

    .panel.active {
        height: 380px;
    }

    .panel-content {
        padding: 20px;
    }

    .panel-content h2 {
        font-size: 1.2rem;
    }

    .panel-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .panel-label {
        font-size: 0.85rem;
        left: 20px;
    }

    .tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .plus-btn {
        width: 28px;
        height: 28px;
        right: 20px;
    }
}

/* ===================== admissions ===================== */


.admissions-section {
    padding: 40px 0;
    background: #fff;
    display: flex;
    justify-content: center;
}

.admissions-container {
    position: relative;
    width: 100%;
    /* allow card to breathe beyond standard site width */
    max-width: calc(var(--site-max-width) + 800px);
    display: flex;
    height: 720px;
}

.admissions-photo {
    flex: 1;
    overflow: hidden;
}

.admissions-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admissions-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: var(--navy);
    color: #fff;
    width: 540px;
    padding: 60px 56px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.admissions-emblem {
    width: 56px;
    height: 56px;
}

.admissions-card h2 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 2rem;
    letter-spacing: 0.01em;
    color: #fff;
}

.admissions-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-light);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.admissions-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.admissions-buttons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.admissions-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.admissions-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

@media (max-width: 1200px) {
    .admissions-container {
        height: 660px;
    }

    .admissions-card {
        width: 500px;
        padding: 50px 46px;
    }

    .admissions-card h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .admissions-container {
        height: 600px;
    }

    .admissions-card {
        width: 460px;
        padding: 40px 36px;
    }

    .admissions-card h2 {
        font-size: 1.6rem;
    }

    .admissions-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .admissions-container {
        height: 500px;
    }

    .admissions-card {
        width: 85%;
        padding: 32px 28px;
    }

    .admissions-card h2 {
        font-size: 1.6rem;
    }

    .admissions-card p {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .admissions-container {
        height: 420px;
    }

    .admissions-card {
        width: 90%;
        padding: 24px 20px;
    }

    .admissions-card h2 {
        font-size: 1.5rem;
    }

    .admissions-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .admissions-btn {
        font-size: 1rem;
        padding: 10px 16px;
    }
}


/* ===================== carousel ===================== */


.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f0f 0%, var(--navy-dark) 100%);
    flex-shrink: 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

.slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

.video-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background: linear-gradient(135deg, var(--red) 0%, #c0392b 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    z-index: 10;
    animation: slideDown 0.6s ease-out 0.3s backwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 40px;
}

.slide-content {
    color: white;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #d4d4d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-description {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 1200px;
    line-height: 1.6;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
    left: 30px;
}

.nav-button.next {
    right: 30px;
}

.dots-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

@media (max-width: 1200px) {
    .carousel-container {
        height: 100vh;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-description {
        font-size: 1.3rem;
    }

    .slide-overlay {
        padding: 50px 35px;
    }

    .video-badge {
        top: 30px;
        right: 30px;
        padding: 8px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .carousel-container {
        height: 100vh;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-description {
        font-size: 1.2rem;
        max-width: 900px;
    }

    .slide-overlay {
        padding: 40px 30px;
    }

    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .nav-button.prev {
        left: 20px;
    }

    .nav-button.next {
        right: 20px;
    }

    .dots-container {
        bottom: 30px;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 100vh;
        min-height: 100vh;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-description {
        font-size: 1.2rem;
        max-width: 600px;
    }

    .slide-overlay {
        padding: 30px 24px;
    }

    .nav-button {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .nav-button.prev {
        left: 15px;
    }

    .nav-button.next {
        right: 15px;
    }

    .video-badge {
        top: 20px;
        right: 20px;
        padding: 6px 14px;
        font-size: 0.9rem;
    }

    .dots-container {
        bottom: 24px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        height: 100vh;
        min-height: 100vh;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .slide-description {
        font-size: 1.1rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .slide-overlay {
        padding: 24px 20px;
    }

    .nav-button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .nav-button.prev {
        left: 10px;
    }

    .nav-button.next {
        right: 10px;
    }

    .video-badge {
        top: 15px;
        right: 15px;
        padding: 5px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .dots-container {
        bottom: 20px;
        gap: 6px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 20px;
    }
}

@media (max-width: 400px) {
    .carousel-container {
        height: 100vh;
        min-height: 100vh;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .slide-overlay {
        padding: 20px 16px;
    }
}


/* ===================== intro ===================== */


.intro {
    background: var(--off-white);
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 10vw, 12rem);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.intro__label {
    font-weight: 700;
    font-size: clamp(1.85rem, 3.2vw, 2.4rem);
    line-height: 1.2;
}

.intro__text {
    font-weight: 300;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.65;
    color: var(--text-body);
}

.intro__cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.4rem;
    font-weight: 400;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, .35);
    border-radius: 999px;
    padding: .55rem 1.15rem;
    text-decoration: none;
    transition: background .25s, color .25s;
}

.intro__cta:hover {
    background: var(--text-dark);
    color: #fff;
}

.intro__cta svg {
    width: 12px;
    height: 12px;
    transition: transform .25s;
}

.intro__cta:hover svg {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 520px) {
    .intro {
        padding: 2.5rem 1.5rem;
    }
}

.button,
.btn {
    display: inline-block;
    width: auto;
    margin-top: 1em;
    padding: 12px 22px;
    border: 2px solid #e85a5a;
    border-radius: 30px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    align-self: flex-start;
}

.button:hover,
.btn:hover {
    background: #e85a5a;
    color: white;
}

/* ===================== masonry ===================== */


.masonry-wrapper {
    padding: 40px 32px;
    background: #f7f5f2;
}

.masonry {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
}

.photo.h-sm img {
    height: 160px;
    object-fit: cover;
}

.photo.h-md img {
    height: 220px;
    object-fit: cover;
}

.photo.h-lg img {
    height: 300px;
    object-fit: cover;
}

.photo.h-xl img {
    height: 380px;
    object-fit: cover;
}

.logo-card {
    width: 100%;
    border-radius: 6px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 24px;
    gap: 16px;
    height: 300px;
}

.logo-card img {
    max-width: 100%;
    width: 180px;
    height: auto;
    display: block;
    object-fit: contain;
}

.logo-card p {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: var(--fw-regular);
    font-size: 1rem;
    color: #fff;
    line-height: 1.35;
}

.logo-card .year {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .masonry-wrapper {
        padding: 32px 24px;
    }

    .masonry {
        gap: 8px;
    }

    .col {
        gap: 8px;
    }
}

@media (max-width: 992px) {
    .masonry {
        flex-wrap: wrap;
    }

    .col {
        flex: 0 0 calc(50% - 5px);
    }
}

@media (max-width: 768px) {
    .masonry-wrapper {
        padding: 24px 20px;
    }

    .masonry {
        flex-direction: column;
    }

    .col {
        width: 100%;
        flex: 0 0 100%;
    }

    .photo.h-md img {
        height: 200px;
    }

    .photo.h-lg img {
        height: 260px;
    }

    .logo-card {
        height: 260px;
        padding: 36px 20px;
    }
}

@media (max-width: 576px) {
    .masonry-wrapper {
        padding: 20px 16px;
    }

    .photo.h-sm img {
        height: 140px;
    }

    .photo.h-md img {
        height: 180px;
    }

    .photo.h-lg img {
        height: 220px;
    }

    .logo-card {
        height: 240px;
        padding: 32px 18px;
    }

    .logo-card img {
        width: 150px;
    }

    .logo-card p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .masonry-wrapper {
        padding: 16px 12px;
    }

    .masonry {
        gap: 6px;
    }

    .col {
        gap: 6px;
    }
}

/* ===================== news ===================== */


/* ── Home News Section ───────────────────────────────────────────────── */

.home-news {
    /* Reduced horizontal padding to make side gutters smaller on wide screens */
    padding: clamp(2rem, 4vw, 3rem) clamp(.75rem, 2.5vw, 1.5rem);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.home-news__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.home-news__title {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #232f60;
    line-height: 1.2;
}

.home-news__all {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #232f60;
    text-decoration: none;
    border-bottom: 1px solid #232f60;
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}

.home-news__all:hover {
    color: #c0392b;
    border-color: #c0392b;
}

.home-news__all svg {
    width: 12px;
    height: 12px;
    transition: transform .2s;
}

.home-news__all:hover svg {
    transform: translateX(3px);
}

/* ── Ana layout: Hero sol, 2×2 grid sağ ────────────── */

.home-news__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* ── Hero kart (sol sütun, görsel üst + metin alt) ── */

.hn-card--hero {
    /* CSS Grid: image column sets the row height via aspect-ratio;
       text column stretches to the same height automatically */
    display: grid;
    grid-template-columns: 50% 50%;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .25s ease;
}

.hn-card--hero:hover {
    transform: translateY(-4px);
}

.hn-card--hero .hn-card__img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #e8e8e8;
}

.hn-card--hero .hn-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.hn-card--hero:hover .hn-card__img img {
    transform: scale(1.04);
}

.hn-card--hero .hn-card__body {
    /* flex column + justify-content:center reliably centers content
       because the grid row height equals the image height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 1.6rem;
    background: #f6f6f8;
}

.hn-card--hero .hn-card__content {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

/* ── Yan grid (4 kart, 2×2) ─────────────────────────── */

.hn-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

/* ── Yan kart (görsel sol, metin sağ) ───────────────── */

.hn-card--side {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .25s ease;
}

.hn-card--side:hover {
    transform: translateY(-3px);
}

.hn-card--side .hn-card__img {
    width: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 0;
    aspect-ratio: unset;
}

.hn-card--side .hn-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.hn-card--side:hover .hn-card__img img {
    transform: scale(1.05);
}

.hn-card--side .hn-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem;
    flex: 1;
    background: #f6f6f8;
    overflow: hidden;
}

/* ── Paylaşılan kart öğeleri ─────────────────────────── */

.hn-card__date {
    display: block;
    font-size: .75rem;
    color: #888;
    letter-spacing: .05em;
    margin-bottom: 0;
    flex-shrink: 0;
}

.hn-card__title {
    font-size: clamp(.9rem, 1.4vw, 1.1rem);
    font-weight: 600;
    line-height: 1.35;
    color: #111;
    margin: 0;
    transition: color .2s;
    flex-shrink: 0;
}

.hn-card--hero .hn-card__title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.hn-card--hero:hover .hn-card__title,
.hn-card--side:hover .hn-card__title {
    color: #c0392b;
}

.hn-card__read {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #111;
    margin-top: .25rem;
    padding-top: 0;
    flex-shrink: 0;
    transition: color .2s;
}

.nl-card__summary {
    margin: 0;
}

.hn-card--hero:hover .hn-card__read,
.hn-card--side:hover .hn-card__read {
    color: #c0392b;
}

.hn-card__read svg {
    transition: transform .2s;
}

.hn-card--hero:hover .hn-card__read svg,
.hn-card--side:hover .hn-card__read svg {
    transform: translateX(4px);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1100px) {
    .home-news__grid {
        grid-template-columns: 1fr;
    }

    .hn-card--hero {
        grid-template-columns: 45% 55%;
    }

    .hn-side-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }

    .hn-card--side {
        flex-direction: column;
    }

    .hn-card--side .hn-card__img {
        width: 100%;
        aspect-ratio: 16/10;
    }
}

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

    /* Tighten mobile horizontal padding */
    .home-news {
        padding: 1.5rem .75rem;
    }
}

@media (max-width: 500px) {

    /* stack image above text on very small screens */
    .hn-card--hero {
        grid-template-columns: 1fr;
    }

    .hn-card--hero .hn-card__img {
        aspect-ratio: 16/10;
        width: 100%;
    }

    .hn-side-grid {
        grid-template-columns: 1fr;
    }
}

.news-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: var(--fw-bold);
    color: var(--ink);
    letter-spacing: -0.02em;
}

.news-section {
    padding: 5rem 0;
    background-color: #fff;
}

.news-all-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.news-all-link:hover {
    color: var(--red);
    border-color: var(--red);
}

.news-all-link svg {
    transition: transform 0.2s;
}

.news-all-link:hover svg {
    transform: translateX(4px);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2.5rem;
}

.card-featured {
    grid-row: 1 / 3;
}

.card-featured .card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 1.4rem;
}

.card-featured .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-featured:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-featured .card-category {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--red);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
}

.card-featured .card-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3.0vw, 2.0rem);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.card-featured:hover .card-title {
    color: var(--red);
}

.card-featured .card-desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: var(--fw-light);
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.4rem;
    max-width: 52ch;
}

.card-side {
    display: flex;
    flex-direction: column;
}

.card-side .card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-side .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-side:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-side .card-category {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--blue);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
}

.card-side .card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.card-side:hover .card-title {
    color: var(--blue);
}

.card-side .card-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: var(--fw-light);
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--muted);
    font-weight: var(--fw-regular);
}

.card-meta time {
    letter-spacing: 0.03em;
}

.card-meta span.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border);
    display: inline-block;
}

.card-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-medium);
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: auto;
    transition: color 0.2s;
}

.card-read-link:hover {
    color: var(--red);
}

.card-read-link svg {
    transition: transform 0.2s;
}

.card-read-link:hover svg {
    transform: translateX(3px);
}

.news-bottom {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-mini {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    cursor: pointer;
}

.card-mini__img {
    width: 90px;
    height: 68px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-mini__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-mini:hover .card-mini__img img {
    transform: scale(1.08);
}

.card-mini__cat {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 0.3rem;
}

.card-mini__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    transition: color 0.2s;
}

.card-mini:hover .card-mini__title {
    color: var(--red);
}

.card-mini__date {
    font-size: 0.72rem;
    color: var(--muted);
    display: block;
    margin-top: 0.35rem;
}

@media (max-width: 1200px) {
    .news-section {
        padding: 4rem 0 5rem;
    }

    .news-grid {
        gap: 2.2rem;
    }

    .card-featured .card-title {
        font-size: clamp(1rem, 2.8vw, 1.9rem);
    }

    .card-featured .card-desc {
        font-size: 1.1rem;
    }

    .card-side .card-title {
        font-size: clamp(1.2rem, 2vw, 1.6rem);
    }
}

@media (max-width: 992px) {
    .news-section {
        padding: 3.5rem 0 4.5rem;
    }

    .news-grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 2rem;
    }

    .card-featured .card-desc {
        font-size: 1.05rem;
    }

    .card-side .card-desc {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 3rem 0 4rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-featured {
        grid-row: auto;
    }

    .card-featured .card-title {
        font-size: 1.8rem;
    }

    .card-featured .card-desc {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .card-side .card-title {
        font-size: 1.6rem;
    }

    .card-side .card-desc {
        font-size: 1.05rem;
    }

    .news-bottom {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: 2.5rem 0 3.5rem;
    }

    .news-grid {
        gap: 1.6rem;
    }

    .card-featured .card-img-wrap {
        margin-bottom: 1.2rem;
    }

    .card-featured .card-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .card-featured .card-desc {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .card-featured .card-category {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
    }

    .card-side .card-img-wrap {
        margin-bottom: 0.8rem;
    }

    .card-side .card-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .card-side .card-desc {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .card-side .card-category {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

    .card-meta {
        font-size: 1rem;
        gap: 0.7rem;
    }

    .card-read-link {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .news-section {
        padding: 2rem 0 3rem;
    }

    .card-featured .card-title {
        font-size: 1.5rem;
    }

    .card-featured .card-desc {
        font-size: 1rem;
    }

    .card-side .card-title {
        font-size: 1.3rem;
    }

    .card-side .card-desc {
        font-size: 0.95rem;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-header {
    animation: fadeUp 0.6s ease both;
}

.card-featured {
    animation: fadeUp 0.6s 0.1s ease both;
}

.card-side:nth-of-type(1) {
    animation: fadeUp 0.6s 0.2s ease both;
}

.card-side:nth-of-type(2) {
    animation: fadeUp 0.6s 0.25s ease both;
}

.card-side:nth-of-type(3) {
    animation: fadeUp 0.6s 0.3s ease both;
}

.card-side:nth-of-type(4) {
    animation: fadeUp 0.6s 0.35s ease both;
}

.news-bottom {
    animation: fadeUp 0.6s 0.4s ease both;
}


/* ===================== split ===================== */


.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 620px;
    position: relative;
}

.split-panel {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.split-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1em;
    z-index: 2;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-panel:hover::before {
    height: 1.6em;
}

.split-panel--left::before {
    background: #e43c2f;
}

.split-panel--right::before {
    background: #232f60;
}

.panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    background-color: #0b0b0d;
}

.split-panel:hover .panel-bg {
    transform: scale(1.04);
}

.split-panel--left .panel-bg {
    background-image: linear-gradient(160deg, rgba(20, 20, 30, 0.72) 0%, rgba(20, 20, 30, 0.36) 100%), url('/images/Home/Index/split/20260313082140118.webp');
}

.split-panel--right .panel-bg {
    background-image: linear-gradient(160deg, rgba(10, 30, 50, 0.72) 0%, rgba(10, 30, 50, 0.36) 100%), url('/images/Home/Index/split/20260313081911119.webp');
}

.split-panel>.panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 520px;
    padding: 2.8rem 3rem 3rem;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
}

.panel-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.panel-tag,
.panel-title,
.panel-desc,
.panel-cta {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--fw-bold);
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.panel-title {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.panel-desc {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.92) !important;
    line-height: 1.65;
    font-size: 1.15rem;
    max-width: 90ch;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 1;
}

.panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.25s, gap 0.25s;
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

.panel-cta:hover {
    border-color: #fff;
    gap: 0.8rem;
}

.panel-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.panel-cta:hover svg {
    transform: translateX(3px);
}

.split-panel--left {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1600px) {
    .split-panel>.panel-content {
        padding: 2.5rem 2.8rem 2.8rem;
        min-height: 480px;
    }

    .panel-title {
        font-size: clamp(1.8rem, 2.8vw, 2.3rem);
    }
}

@media (max-width: 992px) {
    .split-section {
        min-height: 460px;
    }

    .split-panel>.panel-content {
        padding: 2.2rem 2.5rem 2.5rem;
        min-height: 420px;
    }

    .panel-title {
        font-size: clamp(1.6rem, 2.5vw, 2rem);
    }

    .panel-desc {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-panel--left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .split-panel>.panel-content {
        min-height: 380px;
        padding: 2rem 2rem 2.2rem;
    }

    .panel-title {
        font-size: 2rem;
    }

    .panel-desc {
        font-size: 1.1rem !important;
        line-height: 1.6;
    }

    .split-panel>.panel-content img {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .split-panel>.panel-content {
        min-height: 320px;
        padding: 1.6rem 1.5rem 1.8rem;
    }

    .panel-tag {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .panel-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .panel-desc {
        font-size: 1rem !important;
        line-height: 1.55;
        margin-bottom: 1.2rem;
    }

    .panel-cta {
        font-size: 1rem;
    }

    .split-panel>.panel-content img {
        max-width: 160px;
    }
}

@media (max-width: 400px) {
    .split-panel>.panel-content {
        min-height: 280px;
        padding: 1.4rem 1.2rem 1.6rem;
    }

    .panel-title {
        font-size: 1.6rem;
    }

    .panel-desc {
        font-size: 0.95rem !important;
    }
}

.split-section--full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    left: 0;
}

.split-section--full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 1;
    background: linear-gradient(to right, #C8392B calc(50% - 1px), #ffffff 2px, #1A5E8A calc(50% + 1px));
}

.split-section--full::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.18);
}

.split-panel--left>.panel-content {
    padding-left: 1.8rem;
}

.split-panel--right>.panel-content {
    padding-right: 1.8rem;
}

@media (max-width: 1100px) {

    .split-panel--left>.panel-content,
    .split-panel--right>.panel-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .split-section--full::after {
        top: 100%;
    }
}

.split-panel>.panel-content .panel-desc {
    font-size: 1.15rem !important;
    line-height: 1.7;
    max-width: 90ch;
    color: rgba(255, 255, 255, 0.95) !important;
}

.split-panel>.panel-content img {
    max-width: 250px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.split-panel:hover>.panel-content img {
    opacity: 0.85;
}