/* Corporate Contact Page Styles */

/* Subnav Styling - Vertical Sidebar */
.corporate-subnav {
    position: fixed;
    left: 0;
    top: 80px;
    width: 220px;
    height: calc(100vh - 80px);
    background: transparent;
    padding: 2rem 0;
    z-index: 90;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
}

.corporate-subnav .container {
    padding: 0;
    width: 100%;
    max-width: none;
    pointer-events: auto;
}

.corporate-subnav__nav {
    background: #fff;
    border-right: 1px solid var(--color-border);
    border-radius: 0 24px 24px 0;
    padding: 1.5rem 1.5rem 1.5rem 0.5rem;
    box-shadow: 4px 8px 30px rgba(0, 0, 0, 0.05);
}

.corporate-subnav__nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0 1rem;
    margin: 0;
}

.corporate-subnav__nav a {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-muted);
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
    border: none;
}

.corporate-subnav__nav a:hover {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

#haberler.corporate-section {
    padding: 2rem 0;
    margin-top: 8rem;
    /* Increased margin to push cards down even further */
}

#haberler > .container {
    width: min(1520px, calc(100vw - 280px));
    max-width: none;
    margin-left: auto;
    margin-right: clamp(2rem, 4vw, 4rem);
}

.corporate-section:last-child {
    border-bottom: none;
}

.corporate-section .section-heading {
    margin-bottom: 3rem;
}

.corporate-section .eyebrow {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.corporate-section h2 {
    font-size: 2.5rem;
    color: var(--color-highlight);
    margin-bottom: 1.5rem;
}

.corporate-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-muted);
    max-width: 800px;
}

.container.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 992px) {
    #haberler > .container {
        width: min(1120px, 92vw);
        margin-right: auto;
    }

    .container.two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .corporate-subnav {
        position: sticky;
        top: 60px;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: none;
        padding: 0.6rem 0;
        overflow-y: visible;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        z-index: 95;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .corporate-subnav__nav {
        border-radius: 0;
        border-right: none;
        padding: 0.5rem 0.75rem;
        box-shadow: none;
        background: transparent;
    }

    .corporate-subnav__nav ul {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem 0;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .corporate-subnav__nav ul::-webkit-scrollbar {
        display: none;
    }

    .corporate-subnav__nav li {
        flex-shrink: 0;
    }

    .corporate-subnav__nav a {
        display: inline-flex;
        align-items: center;
        padding: 0.45rem 1rem;
        white-space: nowrap;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--color-muted);
        background: rgba(28, 78, 128, 0.06);
        border: 1px solid rgba(28, 78, 128, 0.1);
        transition: all 0.25s ease;
    }

    .corporate-subnav__nav a:hover {
        background: rgba(28, 78, 128, 0.12);
        color: var(--color-primary);
        border-color: rgba(28, 78, 128, 0.2);
    }


    body.page-corporate-contact main {
        margin-left: 0;
    }
}

.corporate-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.corporate-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-text);
}

.corporate-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.corporate-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.corporate-columns article {
    background: var(--color-surface-alt);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.corporate-columns article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.corporate-columns h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-highlight);
}

.corporate-columns p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.news-slider {
    position: relative;
    padding: 0 3rem;
}

/* Corporate news slider wrapper */
.corporate-news-slider {
    position: relative;
}

/* Desktop: arrows visible */
.corp-news-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(28, 78, 128, 0.15);
    color: var(--color-primary);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.corp-news-arrow:hover {
    background: var(--color-primary);
    color: #fff;
}

.corp-news-arrow--prev {
    left: -20px;
}

.corp-news-arrow--next {
    right: -20px;
}

.corporate-news-grid {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
}

.corporate-news-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.corporate-news-grid .news-card {
    flex: 0 0 calc((100% - 4.5rem) / 4);
    min-width: calc((100% - 4.5rem) / 4);
    max-width: calc((100% - 4.5rem) / 4);
    flex-shrink: 0;
    scroll-snap-align: start;
}

@media (max-width: 1200px) {
    .corporate-news-grid .news-card {
        flex-basis: calc((100% - 3rem) / 3);
        min-width: calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
    }
}

@media (max-width: 992px) {
    .corporate-news-grid .news-card {
        flex-basis: calc((100% - 1.5rem) / 2);
        min-width: calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 768px) {
    #haberler > .container {
        width: min(600px, 92vw);
        margin-left: auto;
        margin-right: auto;
    }

    .corporate-news-slider {
        position: relative;
        display: block;
        padding: 0 2.75rem;
    }

    .corporate-news-grid {
        display: block;
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 320px;
    }

    .corporate-news-grid .news-card {
        position: absolute;
        inset: 0;
        flex: none;
        min-width: 100%;
        max-width: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(40px);
        transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
        pointer-events: none;
        width: 100%;
    }

    .corporate-news-grid .news-card.is-active {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Arrow buttons */
    .corp-news-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(28, 78, 128, 0.08);
        border: 1px solid rgba(28, 78, 128, 0.15);
        color: var(--color-primary);
        font-size: 1.4rem;
        cursor: pointer;
        transition: all 0.25s ease;
        z-index: 10;
        pointer-events: auto;
    }

    .corp-news-arrow--prev {
        left: 0;
    }

    .corp-news-arrow--next {
        right: 0;
    }

    .corp-news-arrow:hover {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
    }

    #haberler.corporate-section {
        margin-top: 2rem;
    }
}

.news-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
    z-index: 2;
}

.news-slider__nav:hover {
    background: var(--color-primary);
    color: #fff;
}

.news-slider__nav--prev {
    left: 0;
}

.news-slider__nav--next {
    right: 0;
}

/* Modern Compact News Card */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-primary);
    position: relative;
    height: auto;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.news-card__media {
    height: 150px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.08);
}

/* Date as a floating badge */
.news-card .date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    display: inline-block;
}

.news-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    color: var(--color-highlight);
}

.news-card p {
    padding: 0 1.2rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .more-link {
    margin: auto 0 0 0;
    padding: 1rem;
    width: 100%;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.news-card .more-link:hover {
    background-color: var(--color-highlight);
}

.news-card .more-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news-card .more-link:hover::after {
    transform: translateX(3px);
}

/* Modern Social Media Section Styles */

.social-media-showcase {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem !important;
    border: 1px solid rgba(28, 78, 128, 0.08);
}

.social-header {
    margin-bottom: 2.5rem;
}

.social-platforms {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.social-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.social-pill.instagram {
    color: #E1306C;
}

.social-pill.instagram:hover {
    border-color: #E1306C;
    background: #fff0f5;
}

.social-pill.facebook {
    color: #1877F2;
}

.social-pill.facebook:hover {
    border-color: #1877F2;
    background: #f0f7ff;
}

.social-pill.linkedin {
    color: #0077B5;
}

.social-pill.linkedin:hover {
    border-color: #0077B5;
    background: #e6f6ff;
}

.social-description {
    color: var(--color-muted);
    font-size: 1rem;
    margin: 0;
}

/* Uniform Social Feed Grid */
.social-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 equal columns */
    gap: 1.5rem;
    align-items: start;
    /* Stretch items to same height */
}

@media (max-width: 1200px) {
    .social-feed-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.feed-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.feed-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--color-text);
}

.instagram-feed .feed-icon {
    color: #E1306C;
    background: #fff0f5;
}

.facebook-feed .feed-icon {
    color: #1877F2;
    background: #f0f7ff;
}

.linkedin-feed .feed-icon {
    color: #0077B5;
    background: #e6f6ff;
}

.feed-header span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-highlight);
}

.feed-content {
    background: #ffffff;
    display: flex;
    justify-content: center;
    padding: 0;
    flex: 1;
    /* height: 600px; Remove fixed height */
    min-height: 480px;
    overflow-y: auto;
    /* Scroll if content overflows */
    scrollbar-width: thin;
}

.instagram-media {
    margin: 0 !important;
    min-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .social-media-showcase {
        padding: 1.5rem;
    }

    .feed-content iframe,
    .feed-content blockquote {
        max-height: 500px;
    }
}

/* Ad & Promo Video Styles */
.promo-video-container {
    margin: 3rem 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.4);
    aspect-ratio: 16 / 9;
    border: 4px solid #fff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-video-container:hover {
    transform: scale(1.01);
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.5);
}

.promo-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .promo-video-container {
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        margin: 1.5rem 0;
        border-width: 2px;
        transform: none;
    }
}
