/**
 * KVK Homepage Styles
 */

:root {
    --home-dark: #161514;
    --home-dark-overlay: rgba(19, 18, 17, 0.50);
    --home-border-radius: 32px;
    --home-card-radius: 50px;
    --home-image-radius: 32px;
    --home-pill-padding: 28px 39px;
    
    /* Colors */
    --home-hashtag: #B3C6FE;
    --home-title: #F7EFEB;
    --home-points: #B3C6FF;
    --home-btn-primary-bg: #FDFD6A;
    --home-btn-primary-text: #121212;
    --home-btn-outline-text: #FFF;
    
    /* Glows */
    --glow-blue: rgba(0, 98, 201, 0.57);
    --glow-purple: rgba(119, 71, 201, 0.42);
}

.section-title,
.hero-title,
.news-title,
.event-title,
.faculty-pill,
.faculty-title{
    font-family: 'Funnel Display';
}

body.home{
    background-color: #131211;
}

/* ============================================
   HERO SECTION
   ============================================ */

#home-hero {
    position: relative;
    padding: 8vh 0 80px;
    overflow: hidden;
    background-color: var(--home-dark);
}

#home-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/themes/kvk/img/home-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

#home-hero > .container {
    position: relative;
    gap: 60px;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

/* Hero Content */
.hero-content {
    max-width: 960px;
    text-align: center;
}

.hero-hashtag {
    display: inline-block;
    color: var(--home-hashtag);
    font-size: 18px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    border: 1px solid var(--home-hashtag);
    padding: .5em 1em;
    border-radius: 40px;
    line-height: 1;
}

.hero-title {
    color: var(--home-title);
    font-size: clamp(70px, 5vw, 89px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    justify-content: center;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--home-points);
    font-size: 14px;
}

.point-emoji {
    font-size: 22px;
    background: #ffffff8f;
    aspect-ratio: 1/1;
    padding: 5px;
    border-radius: 100%;
    width: 37px;
    display: flex;
    align-content: center;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-btn {
    display: inline-block;
    padding: 1em 1.5em;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background-color: var(--home-btn-primary-bg);
    color: var(--home-btn-primary-text);
}

.hero-btn-primary:hover {
    background-color: #e8e85a;
}

.hero-btn-outline {
    background-color: transparent;
    color: var(--home-btn-outline-text);
    border: 1px solid var(--home-btn-outline-text);
}

.hero-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
}

.hero-slide-overlay,
.hero-slide-btn{
    color: white;
}

h2.hero-slide-title{
    margin-bottom: 0.2em;
    max-width: 760px;
}

.hero-slider-frame {
    position: relative;
    border-radius: 32px;
    backdrop-filter: blur(3px);
    background: linear-gradient(109deg, rgba(255, 255, 255, 0.22) 1.36%, rgba(212, 165, 174, 0.22) 86.08%);
    box-shadow: 5px -7px 22.4px 0 rgba(0, 0, 0, 0.27);
    overflow: hidden;
    padding: 16px;
}

.hero-slider-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px; /* border thickness */
    border-radius: 31px;
    background: linear-gradient(180deg, #001C4A 0%, #D3FB5B 49%, #0073ED 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-slider-track {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    object-fit: cover;
}

.hero-slider-controls {
    position: absolute;
    bottom: 32px;
    right: 32px;
    display: flex;
    gap: 8px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #090909;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.slider-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* ============================================
   STUDIJŲ PROGRAMOS SECTION
   ============================================ */

#home-programs {
    position: relative;
    padding: 80px 0;
    background: var(--home-dark-overlay);
}

#home-programs .section-title {
    color: #fff;
}

#home-programs .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 500px;
    margin: 0 0 48px;
    line-height: 1.6;
}

.programs-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* Faculty Pills Navigation */
.programs-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faculty-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--home-pill-padding);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;

    background-color: var(--home-dark);
    box-shadow: inset 0px 0 90px -50px var(--faculty-color);
    border: 1px solid var(--faculty-color);
}

.faculty-pill:hover,
.faculty-pill.active {
    box-shadow: inset 0px 0 150px -50px var(--faculty-color);
}

.faculty-pill:hover::before,
.faculty-pill.active::before {
    filter: blur(35px);
    opacity: 0.7;
}

.faculty-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: var(--faculty-color);
    filter: blur(25px);
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

.pill-arrow {
    transition: transform 0.3s ease;
    display: flex;
}

.pill-arrow svg{
    height: 100%;
    width: auto;
}

.pill-arrow .theme-arrow{
    fill: var(--faculty-color);
}

.pill-arrow .theme-arrow-stroke{
    stroke: var(--faculty-color);
}

/* Faculty Content Panel */
.programs-content {
    position: relative;
    min-height: 400px;
}

.faculty-content {
    position: absolute;
    inset: 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--home-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    height: fit-content;
}

.faculty-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.faculty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.faculty-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.faculty-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
}

.faculty-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 16px;
}

/* Program Pills */
.faculty-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.program-pill {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.program-pill:hover {
    background: var(--home-btn-primary-bg);
    color: var(--home-btn-primary-text);
    border-color: var(--home-btn-primary-bg);
}

/* ============================================
   NAUJIENOS SECTION
   ============================================ */

#home-news {
    position: relative;
    padding: 100px 0;
    background: var(--home-dark);
    overflow: hidden;
}

.news-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    border-radius: 1424px;
    background: radial-gradient(50% 50% at 50% 50%, var(--glow-blue) 0%, rgba(22, 21, 20, 0.00) 100%);
    filter: blur(109.25px);
    pointer-events: none;
    z-index: 0;
}

#home-news > .container {
    position: relative;
    z-index: 1;
}

/* Gradient Titles */
.section-title{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: clamp(48px, 6vw, 68px);
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 32px;
}

.section-title-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 3em;
}

.section-title-wrapper .section-title{
    margin: 0;
}

.section-title.gradient-blue,
.section-title.gradient-purple{
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title.gradient-blue {
    background-image: linear-gradient(180deg, #FFF 10.94%, #5483B5 100%);
}

.section-title.gradient-purple {
    background-image: linear-gradient(180deg, #FFF 10.94%, #A472F9 100%);
}

.title-icon {
    font-size: 0.6em;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.news-card,
.event-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    padding: 24px;
    border-radius: var(--home-card-radius);
    transition: all 0.3s ease;
}

.news-card {
    border: 1px solid rgba(139, 171, 205, 0.51);
    background: rgba(86, 147, 245, 0.16);
}

.news-card:hover {
    box-shadow: 0 16px 48px rgba(0, 98, 201, 0.2);
}

.news-image {
    overflow: hidden;
    border-radius: calc(var(--home-card-radius) - 16px);
}


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

.news-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.news-title,
.event-title {
    color: #fff;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.15;
    margin: 16px 0 16px;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
    margin: 16px 0 16px!important;
}

.news-link,
.event-link {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-link:hover,
.event-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Section Footer */
.section-footer {
    text-align: center;
}

.more-link {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.more-link-blue {
    background: linear-gradient(135deg, #0062C8 0%, #5483B5 100%);
    color: #fff;
}

.more-link-blue:hover {
    box-shadow: 0 8px 24px rgba(0, 98, 201, 0.4);
}

.more-link-purple {
    background: linear-gradient(135deg, #7747C9 0%, #A472F9 100%);
    color: #fff;
}

.more-link-purple:hover {
    box-shadow: 0 8px 24px rgba(119, 71, 201, 0.4);
}

/* ============================================
   RENGINIAI SECTION
   ============================================ */

#home-events {
    position: relative;
    padding: 100px 0;
    background: var(--home-dark);
    backdrop-filter: blur(15.25px);
    -webkit-backdrop-filter: blur(15.25px);
    overflow: hidden;
}

.events-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
    border-radius: 1424px;
    background: radial-gradient(50% 50% at 50% 50%, var(--glow-purple) 0%, rgba(22, 21, 20, 0.00) 100%);
    filter: blur(109.25px);
    pointer-events: none;
    z-index: 0;
}

#home-events > .container {
    position: relative;
    z-index: 1;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.event-card {
    border: 1px solid rgba(139, 171, 205, 0.3);
    background: rgba(119, 71, 201, 0.1);
}

.event-card:hover {
    box-shadow: 0 8px 32px rgba(119, 71, 201, 0.2);
}

.event-image {
    border-radius: var(--home-image-radius);
    overflow: hidden;
}

.event-image img {
    height: 100%;
    width: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.event-date .dashicons,
.event-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.event-link {
    width: fit-content;
    padding: 10px 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

   @media (max-width: 767px) {
    .hero-slider-frame {
        display: flex;
        flex-direction: column;
    }
    
    .hero-slider-track {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .hero-slide-image {
        max-height: fit-content;
    }
    
    .hero-slide-image img {
        aspect-ratio: 4/3;
        object-fit: cover;
    }
    
    .hero-slide-overlay {
        position: relative;
    }

    .hero-slide.active{
        position: relative!important;
    }
    
    .hero-slide-blur {
        display: none;
    }
    
    .hero-slide-overlay-content {
        padding: 1.25rem 1.5rem;
    }

    h2.hero-slide-title{
        font-size: 22px
    }

    .hero-slide-image img,
    .hero-slide-image {
        border-radius: 20px;
    }
}

@media (min-width: 768px) {
    .hero-slide img {
        height: 100%;
    }

    .hero-slide-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;

        padding: 2rem;
    }

    .hero-slide-overlay-content {
        position: relative;
        z-index: 2;
    }

    .hero-slide-blur {
        position: absolute;
        height: 100%;
        bottom: 0;
        left: 0;
        right: 0;

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
        -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
    }

    .hero-slider-track {
        aspect-ratio: 16/10;
    }
}

@media (pointer: fine) {
    .news-card:hover .news-image img,
    .event-card:hover .event-image img {
        transform: scale(1.05);
    }

    .more-link-blue:hover,
    .more-link-purple:hover
    .hero-btn-primary:hover,
    .hero-btn-outline:hover{
        transform: translateY(-2px);
    }

    .faculty-pill:hover {
        transform: translateX(8px);
    }

    .faculty-pill:hover .pill-arrow,
    .faculty-pill.active,
    .faculty-pill.active .pill-arrow {
        transform: translateX(4px);
    }

    .program-pill:hover {
        transform: translateY(-2px);
    }

    .news-card:hover {
        transform: translateY(-8px);
    }
}

@media (min-width: 1440px) {
    #home-hero > .container {
        max-width: 1280px;
    }
}


@media (max-width: 992px) {
    #home-hero > .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-points {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .programs-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .programs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .programs-nav .pill-arrow{
        display: none;
    }
    
    .faculty-pill {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    .programs-content {
        min-height: auto;
    }
    
    .faculty-content {
        position: relative;
        display: none;
        text-align: center;
    }

    .faculty-programs{
        justify-content: center;
    }
    
    .faculty-content.active {
        display: block;
    }

    .news-grid,
    .events-list{
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .news-card,
    .event-card{
       display: flex;
        flex-direction: column;
        height: fit-content;
    }

    .news-link,
    .event-link,
    .section-footer a{
        width: 100%;
        font-weight: bold;
        text-transform: uppercase;
        text-align: center
    }

    .event-content{
        padding: 0;
    }
}

@media (max-width: 768px) {
    #home-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-slider-frame {
        padding: 12px;
    }
    
    .hero-slider-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    
    .slider-btn .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    #home-programs,
    #home-news,
    #home-events {
        padding: 60px 0;
    }
    
    .faculty-pill {
        width: 100%;
    }
    
    .faculty-content {
        padding: 24px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        border-radius: 32px;
    }
    
    .news-image {
        margin: 12px;
        border-radius: 20px;
    }
    
    .event-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-image {
        aspect-ratio: 16/9;
    }
    
    .event-content {
        padding: 0 8px 8px;
    }
    
    .section-title.gradient-blue,
    .section-title.gradient-purple {
        justify-content: center;
    }
    
    .news-glow,
    .events-glow {
        width: 500px;
        height: 500px;
        left: 50%;
        right: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .faculty-pill {
        padding: 20px;
        font-size: 14px;
    }
    
    .pill-arrow {
        display: none;
    }
    
    .program-pill {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .news-content {
        padding: 0 16px 24px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .event-title {
        font-size: 18px;
    }
}

@media (min-width: 480px) {
    .news-title,
    .event-title {
        padding-right: 20px;
    }

    .news-excerpt{
        max-width: 95%;
        text-wrap: balance;
    }
}