.landing-slider {
    position: relative;
    width: 100%;
    height: 650px;
    min-height: 650px;
    padding: 0;
    overflow: hidden;
}

.landing-slider .swiper-wrapper,
.landing-slider .swiper-slide,
.landing-slider .slider-item,
.landing-slider .flat-slider {
    height: 100%;
}
.slider.home, .landing-slider, .landing-slider .swiper-wrapper {
    margin-top: 0 !important;
}
.landing-slider .img-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    --slide-image: url("https://uni-lab-vista.lovable.app/assets/device-pcr-BTwVHIoP.jpg");
    background-image: linear-gradient(135deg, rgba(0, 59, 92, 0.92), rgba(0, 59, 92, 0.88)), var(--slide-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: saturate(105%);
}

.landing-slider .img-slider .img-item,
.landing-slider .img-slider .overlay {
    display: none;
}

.landing-search {
    background: #f9fbfe;
    padding: 48px 16px 64px;
}

.landing-search-wrapper {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.landing-search-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    font-family: system-ui, sans-serif;
    margin: 0;
    text-transform: none;
}

.landing-search-form {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.landing-search-field {
    flex: 1 1 auto;
    position: relative;
}

.landing-search-input {
    height: 3rem;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d6dee8;
    border-radius: 0.5rem;
    padding: 0 16px 0 25px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-search-input:focus-within {
    border-color: #074d78;
}

.landing-search-input input {
    width: 100%;
    border: none;
    outline: none;
    line-height: 3rem;
    font-size: 0.875rem;
    color: #1f2937;
    font-family: system-ui, sans-serif;
    background: transparent;
    padding: 0 0 0 20px;
    margin-top: 12px;
    height: 100%;
    align-self: center;
    text-transform: none;
}

.landing-search-input input::-webkit-input-placeholder {
    text-transform: none;
}

.landing-search-input input::-moz-placeholder {
    text-transform: none;
}

.landing-search-input input:-ms-input-placeholder {
    text-transform: none;
}

.landing-search-input input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    text-transform: none;
}

.landing-search-icon {
    position: absolute;
    /*left: 10px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.landing-search-button {
    height: 3rem;
    flex: 0 0 auto;
    padding: 14px 32px;
    border-radius: 0.5rem;
    background: #074d78;
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-search-button:hover {
    background: #053a5a;
}

.landing-search-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 77, 120, 0.35);
}

.landing-stats {
    padding: 52px 16px 68px;
    background: #ffffff;
}

.landing-stats-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.landing-stat-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(7, 40, 70, 0.14);
    border-color: rgba(7, 77, 120, 0.35);
}

.landing-stat-top {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(7, 77, 120, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #074d78;
}

    .landing-stat-icon i {
        font-size: 20px;
    }

.landing-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #074d78;
    font-family: system-ui, sans-serif;
}

.landing-stat-title {
    font-size: 1.25rem;
    line-height: 1.75;
    font-weight: 600;
    color: #16223b;
    margin: 0;
    font-family: system-ui, sans-serif;
}

.landing-stat-desc {
    margin: -6px 0 10px 0;
    color: #737b8c;
    font-size: 1rem;
    line-height: 1.25;
    font-family: system-ui, sans-serif;
}

.landing-stat-link {
    font-size: 1rem;
    line-height: 1.25;
    margin-top: auto;
    align-self: stretch;
    width: 100%;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    font-family: system-ui, sans-serif;
    gap: 8px;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 0.5rem;
    justify-content: center;
    transition: color 0.2s ease, gap 0.2s ease, background 0.2s ease;
}

.landing-stat-link span {
    transition: transform 0.2s ease;
}

.landing-stat-link:hover {
    color: #0f172a;
    gap: 10px;
    background: #facc14;
}

.landing-stat-link:hover span {
    transform: translateX(2px);
}

.landing-featured {
    padding: 68px 16px 80px;
    background: #f1f5f94d;
}

.landing-featured-header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-featured-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-family: system-ui, sans-serif;
}

.landing-featured-subtitle {
    margin: 0;
    color: #737b8c;
    font-size: 1rem;
    line-height: 1.25;
    font-family: system-ui, sans-serif;
}

.landing-featured-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.landing-featured-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 27px rgba(15, 23, 42, 0.14);
}

.landing-featured-name {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 600;
    color: #111827;
    font-family: system-ui, sans-serif;
}

.landing-featured-faculty {
    letter-spacing: 0.02em;
    line-height: 1.25;
    font-size: 0.95rem;
    color: #64748b;
    font-family: system-ui, sans-serif;
}

.landing-featured-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #074d78;
    font-family: system-ui, sans-serif;
    padding: 20px 0 0 0;
}

.landing-featured-meta span {    
    font-size: 1rem;
    color: #737b8c;
}

.landing-summary-stats {
    padding: 60px 16px 72px;
    background: #ffffff;
}

.landing-summary-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    text-align: center;
}

.landing-summary-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.landing-summary-value {
    font-size: 3rem;
    line-height: 1rem;
    font-weight: 700;
    color: #074d78;
    letter-spacing: 0.01em;
    font-family: system-ui, sans-serif;
}

.landing-summary-label {
    font-size: 1rem;
    line-height: 1.25;
    color: #737b8c;
    font-weight: 500;
    font-family: system-ui, sans-serif;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .landing-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
    }
}

@media (max-width: 520px) {
    .landing-summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .landing-summary-value {
        font-size: 2.25rem;
    }
}

.landing-autocomplete {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 120px 0 96px;
    max-width: 1050px;
    margin: 1rem auto;
    min-height: 434px;
    height: 434px;
}

.landing-hero-left {
    flex: 1 1 50%;
    max-width: 1024px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
    /*margin-right: 40px;*/
}

.landing-title {
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    font-family: system-ui,sans-serif;
    text-transform: none;
}

.landing-subtitle {
    font-size: 1.25rem;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    font-family: system-ui,sans-serif;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    justify-content: flex-start;
}

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-family: system-ui,sans-serif;
}

.landing-button.primary {
    background: #facc14;
    color: #0f172a;
}

.landing-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(250, 204, 20, 0.45);
}

.landing-button.ghost {
    background: #facc14;
    color: #0f172a;
}

.landing-button.ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(250, 204, 20, 0.45);
}

.landing-hero-right {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-left: 40px;
    position: relative;
    /*padding: 28px;*/
    border-radius: 34px;
    overflow: visible;
}

.landing-hero-right::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(5px);
    box-shadow: 0 28px 70px rgba(7, 40, 70, 0.28);
    pointer-events: none;
    z-index: 0;
}

.featured-device-card {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    border-radius: 0.5rem;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 22px;
}

.featured-device-image {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 18px 40px rgba(7, 40, 70, 0.28);
}

.featured-device-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-device-body {
    margin-top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: system-ui,sans-serif;
}

.featured-device-tag {
    align-self: flex-start;
    background: rgba(248, 250, 252, 0.18);
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.featured-device-title {
    margin: 0;
    font-family: system-ui,sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: none;
    /*line-height: 2;*/
}

.featured-device-meta {
    margin: 0;
    font-family: system-ui,sans-serif;
    font-size: 0.875rem;
    line-height: 1.25;
    color: #fffc;
}

.featured-device-link {
    font-size: 0.875rem;
    font-family: system-ui,sans-serif;
    line-height: 1.25;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 0.5rem;
    background: rgba(248, 250, 252, 0.16);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.featured-device-link:hover {
    transform: translateY(-2px);
    /*box-shadow: 0 18px 32px rgba(7, 77, 120, 0.35);*/
    background: rgba(248, 250, 252, 0.24);
    color: #f8fafc;
}

.landing-swiper {
    position: relative;
}

/*.landing-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}*/

.landing-swiper .landing-nav {
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 42px rgba(7, 40, 70, 0.28);
}

.landing-swiper .landing-nav.swiper-button-disabled {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    color: inherit;
}

.landing-swiper .landing-nav::after {
    font-size: 1rem;
}

.landing-swiper .landing-nav:hover::after {
    color: #2b303b;
}

.landing-swiper .landing-nav:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 48px rgba(7, 40, 70, 0.32);
}

.landing-swiper .landing-pagination {
    display: none;
}

.landing-swiper .landing-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.landing-swiper .landing-pagination .swiper-pagination-bullet-active {
    background: #facc14;
}

.slider.home .slider-item,
.slider.home .flat-slider {
    padding: 0 !important;
}

@media (max-width: 1024px) {
    .landing-hero {
        flex-direction: column;
        gap: 40px;
        padding: 60px 0 84px;
        align-items: center;
    }

    .landing-hero-left,
    .landing-hero-right {
        flex: 1 1 auto;
    }

    .landing-hero-right {
        margin-left: 0;
        padding: 0 16px;
        width: 100%;
        justify-content: center;
    }

    .featured-device-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .landing-stats-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    /* Mobile: avoid clipping hero text inside fixed-height slider */
    .landing-slider {
        height: auto;
        min-height: 100svh;
    }

    .landing-hero {
        height: auto;
        min-height: 0;
        margin: 0 auto;
        align-items: flex-start;
        padding-top: calc(88px + env(safe-area-inset-top));
        padding-bottom: 72px;
    }

    .landing-title {
        font-size: 2rem;
    }

    .landing-subtitle {
        font-size: 1rem;
    }

    .landing-actions {
        width: 100%;
    }

    .landing-button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .landing-hero-right {
        padding: 0;
    }

    .landing-button.primary,
    .landing-button.ghost {
        width: 100%;
    }

    .landing-search-form {
        flex-direction: column;
        gap: 16px;
    }

    .landing-search-button {
        width: 100%;
    }

    .landing-search-input {
        padding: 0 16px 0 44px;
    }

    .landing-autocomplete {
        right: auto;
    }

    .landing-stats-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-device-card {
        padding: 24px 20px;
    }
}

@media (max-width: 700px) {
    .landing-featured-grid {
        grid-template-columns: 1fr;
    }

    .landing-featured-title {
        font-size: 1.8rem;
    }

    .landing-featured-card {
        padding: 24px;
    }
}
