/* ==========================================================================
   Homepage CSS — Styles specific to front-page.php sections
   ========================================================================== */

/* ── 1. Hero Section ── */
/* Stilleri hero.css içinde tanımlandı (ortak kullanım için) */

/* ── 2. Info Cards ── */
.info-cards-section {
    padding: var(--space-4xl) 0;
    margin-top: -60px;
    /* Hero'nun üzerine hafifçe bindir */
    position: relative;
    z-index: 10;
}


.info-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    /* Info Card Padding Adjustments */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    min-height: 390px;
    text-align: left;
    /* Left Aligned Info Cards */
}

.info-card:hover {
    transform: translateY(-4px);
    /* Softer hover lift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-circle);
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 28px;
    margin-bottom: var(--space-md);
}

.info-card__title {
    font-size: var(--h4-size);
    margin-bottom: var(--space-md);
    font-weight: var(--fw-bold);
    color: var(--color-heading, var(--color-text));
}

.info-card__content {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: 1.8;
    /* Increased line-height */
}

/* Info Card Check List Styles */
.info-card__content ul.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card__content ul.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.info-card__content ul.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    /* Blue checkmark */
    font-weight: bold;
    font-size: 16px;
}

/* ── 3. News Grid ── */
.news-section {
    padding: var(--space-3xl) 0;
    padding-top: 10px;
}

.section-header__row {
    display: flex;
    align-items: center;
    /* Center horizontally to match link properly */
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-header__row .section-title {
    margin-bottom: 0;
    font-size: var(--h3-size);
    font-weight: var(--fw-bold);
    color: var(--color-heading, var(--color-text));
}

.section-header__row .link-arrow {
    color: var(--color-text-link, var(--color-accent));
    font-weight: var(--fw-medium);
    text-transform: none;
    /* In case it was uppercase anywhere */
}

/* CV PRO Wrapper (if used) */
.cv-pro-wrapper {
    margin-top: var(--space-lg);
}


/* Post card base styles are in base.css */
.news-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Matched minimal shadow */
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    /* Softer lift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.news-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__date {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card__title {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-heading);
    margin-bottom: var(--space-md);
}

.news-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
    margin-top: auto;
}

/* ── 4. Feature Panels ── */
.feature-panels {
    width: 100%;
    overflow: hidden;
}


.feature-panel {
    position: relative;
    display: block;
    height: 750px;
    overflow: hidden;
    color: var(--color-white);
    text-decoration: none;
}

.feature-panel__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.feature-panel:hover .feature-panel__bg {
    transform: scale(1.05);
}

.feature-panel__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 40, 50, 0.4) 0%, rgba(30, 40, 50, 0.9) 100%);
    transition: background var(--transition-base);
}

.feature-panel:hover .feature-panel__overlay {
    background: linear-gradient(to bottom, rgba(40, 55, 66, 0.4), rgba(40, 55, 66, 0.9));
}

.feature-panel__bg--gradient {
    opacity: 0.8;
}

.feature-panel__bg--1 {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.feature-panel__bg--2 {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.feature-panel__bg--3 {
    background: linear-gradient(135deg, #4583B4 0%, #283742 100%);
}

.feature-panel__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--space-3xl);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}



.feature-panel__label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
}

.feature-panel__title {
    font-size: var(--h2-size);
    /* Increased size */
    color: var(--color-white);
    margin-bottom: auto;
    /* Pushes everything below it down */
}

.feature-panel__desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 80%;
}

.feature-panel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-circle);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    transition: all var(--transition-base);
    position: absolute;
    bottom: var(--space-3xl);
    right: var(--space-3xl);
    /* Arrow seems to be on left below description in reference */
}

.feature-panel-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

.feature-panel:hover .feature-panel__arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-white);
    transform: translateX(5px);
}

/* ── 5. Blog Section ── */
.blog-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-section-bg);
}

.blog-section__inner {
    align-items: center;
}

.blog-section__left .section-label {
    margin-bottom: var(--space-md);
}

.blog-section__left .section-title {
    margin-bottom: var(--space-xl);
}


.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 15px var(--color-shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--color-shadow-hover);
}

.blog-card__image {
    aspect-ratio: 16/9;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__title {
    font-size: var(--font-size-lg);
    margin-bottom: 0;
}

/* ── 6. Events Section ── */
.events-section {
    padding: var(--space-3xl) 0;
    padding-top: 10px;
}

.events-section .feature-panel {
    height: 500px;
}

.events-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

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

.event-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 15px var(--color-shadow);
    display: flex;
    flex-direction: column;
}

.event-card__image {
    aspect-ratio: 4/3;
    position: relative;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-section-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card__label {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.event-card__content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

.event-card__title {
    font-size: var(--font-size-lg);
    color: var(--color-heading, var(--color-text));
    margin-bottom: 0;
    transition: color var(--transition-fast);
}

.event-card:hover .event-card__title {
    color: var(--color-accent);
}

/* ── 7. CTA Section ── */
.cta-section {
    padding: var(--space-4xl) 0;
    background-color: transparent;
    padding-top: 0px
}

.cta-section__inner {
    width: 100%;
    margin: 0;
    background-color: var(--color-accent-light, #eaf2f8);
    padding: var(--space-4xl) var(--space-4xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    text-align: left;
}

.cta-section__content {
    flex: 1;
}

.cta-section__action {
    flex-shrink: 0;
}

.cta-section__title {
    font-size: var(--h2-size);
    margin: var(--space-sm) 0;
    color: var(--color-heading, var(--color-text));
}

.cta-section__subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ── 8. Stats Counter ── */
.stats-section {
    position: relative;
    background-color: var(--color-text);
    background-position: center;
    background-size: cover;
    color: var(--color-white);
    padding: 0;
    /* Handled by min-height and flex-end in inline style */
}

.stats-section__gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.stats-floating-box {
    background: rgba(14, 21, 30, 0.95);
    /* Deep dark blue like the mockup */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    padding: var(--space-2xl) var(--space-4xl);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* Only top corners rounded if sitting on bottom edge */
    gap: var(--space-3xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligned instead of centered */
}

.stat-item__icon {
    display: block;
    font-size: 24px;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

.stat-item__number-wrap {
    display: flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-item__number {
    font-size: 36px;
    font-weight: var(--fw-bold);
    color: var(--color-white);
}

.stat-item__suffix {
    font-size: 24px;
    color: var(--color-white);
    font-weight: var(--fw-bold);
    margin-left: 2px;
}

.stat-item__label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--fw-medium);
}

/* ── 9. Newsletter Section ── */
.newsletter-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg-white);
}

.newsletter-section__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4xl);
    padding: var(--space-2xl) 0;
}

.newsletter-section__content {
    flex: 1 1 500px;
}

.newsletter-section__title {
    font-size: var(--h2-size);
    margin-bottom: var(--space-sm);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.newsletter-section__desc {
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-lg);
}

.newsletter-section__social {
    flex: 0 0 auto;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.newsletter-section__right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-section__social {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-circle);
    background: var(--color-white);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.newsletter-social-icon:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(69, 131, 180, 0.3);
}

.newsletter-social-icon svg {
    width: 20px;
    height: 20px;
}