/* static/css/home.css */

/* ============= Enhanced Spacing and Layout ============= */

/* Section Spacing - Add vertical margins between sections */
.hero-section,
.nav-tiles-section,
.projects-section,
.partners-section {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-section,
    .nav-tiles-section,
    .projects-section,
    .partners-section {
        margin-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .hero-section,
    .nav-tiles-section,
    .projects-section,
    .partners-section {
        margin-bottom: 8rem;
    }
}

/* Hero Container - Increase gap for better separation */
.hero-container {
    gap: 3rem;
}

@media (min-width: 1024px) {
    .hero-container {
        gap: 4rem;
    }
}

/* Navigation Tiles Grid - Add gap and margin to cards */
.tiles-grid {
    gap: 2rem;
}

@media (min-width: 640px) {
    .tiles-grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .tiles-grid {
        gap: 3rem;
    }
}

.tile-card {
    margin: 0.5rem;
}

@media (min-width: 640px) {
    .tile-card {
        margin: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .tile-card {
        margin: 1rem;
    }
}

/* Projects Grid - Increase gap for better spacing */
.projects-grid {
    gap: 3rem;
}

@media (min-width: 768px) {
    .projects-grid {
        gap: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        gap: 4rem;
    }
}

.project-card {
    margin: 0.5rem;
}

@media (min-width: 768px) {
    .project-card {
        margin: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .project-card {
        margin: 1rem;
    }
}

/* Partners Grid - Add spacing */
.partners-grid {
    gap: 2rem;
}

@media (min-width: 640px) {
    .partners-grid {
        gap: 2.5rem;
    }
}

.partner-card {
    margin: 0.5rem;
}

@media (min-width: 640px) {
    .partner-card {
        margin: 0.75rem;
    }
}

/* Career Items - Add spacing */
.careers-list {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .careers-list {
        gap: 2rem;
    }
}

.career-item {
    margin: 0.5rem;
}

@media (min-width: 640px) {
    .career-item {
        margin: 0.75rem;
    }
}

/* News List - Increase gap */
.news-list {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .news-list {
        gap: 2rem;
    }
}

.news-item {
    margin: 0.5rem 0;
}

@media (min-width: 768px) {
    .news-item {
        margin: 0.75rem 0;
    }
}

/* General Container Spacing */
.container-default {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container-default {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container-default {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1280px) {
    .container-default {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Enhanced Section Headers */
.section-header {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 5rem;
    }
}

/* ================= PROJECTS HEADER ================= */
.projects-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.projects-header-left {
    flex: 1;
    min-width: 280px;
}

.projects-title {
    font-size: 32px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.projects-subtitle {
    font-size: 17px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* Link */
.projects-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563EB;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    padding-top: 6px;           /* ← маленький отступ сверху */
    transition: color 0.25s ease;
}

.projects-link:hover {
    color: #1E40AF;
}

.projects-link .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.projects-link:hover .arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 640px) {
    .projects-header {
        flex-direction: column;
        gap: 16px;
    }

    .projects-link {
        padding-top: 0;
        align-self: flex-start;
    }
}

/* Partners Header */
.partners-header {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .partners-header {
        margin-bottom: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .partners-header {
        margin-bottom: 4rem;
    }
}

/* News Header */
.news-header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .news-header {
        margin-bottom: 2.5rem;
    }
}

/* Mobile Optimizations - Reduce spacing on small screens */
@media (max-width: 640px) {
    .hero-section,
    .nav-tiles-section,
    .projects-section,
    .partners-section {
        margin-bottom: 3rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .tiles-grid {
        gap: 1.5rem;
    }

    .projects-grid {
        gap: 2rem;
    }

    .partners-grid {
        gap: 1.5rem;
    }

    .careers-list {
        gap: 1rem;
    }

    .news-list {
        gap: 1rem;
    }

    .tile-card,
    .project-card,
    .partner-card,
    .career-item {
        margin: 0.25rem;
    }

    .container-default {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-header,
    .projects-header,
    .partners-header {
        margin-bottom: 2rem;
    }
}

/* Section Padding */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Hero Section */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--bg-light);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

/* Main Slider */
.main-slider {
    position: relative;
    background-color: var(--ita-dark-blue);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .main-slider {
        height: 500px;
        border-radius: 2rem;
    }
}

.slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 100%;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
}

/* Плавное изменение фона при переходе слайдов */
.swiper-slide-active .slide::before {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active .slide:hover .slide-image {
    transform: scale(1.05);
}

/* Плавная анимация слайдов с fade + slide эффектом */
.swiper-slide {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.7s ease-in-out;
}

.swiper-slide-active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 3;
    text-align: center;
    flex-direction: column;
}

@media (min-width: 768px) {
    .slide-content {
        padding: 3rem;
    }
}

.slide-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.8));
    backdrop-filter: blur(12px);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2);
    animation: slideInDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-title {
    color: white;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .slide-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
}

.slide-description {
    color: #e0f2fe;
    font-size: 0.875rem;
    max-width: 40rem;
    opacity: 0;
    transition: opacity 0.7s ease-in-out 0.2s;
    display: none;
    animation: slideInUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .slide-description {
        display: block;
        font-size: 1.1rem;
    }
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: slideInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 0.625rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ita-blue), #3b82f6);
    color: white;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.02);
}

/* Slider Controls */
.slider-pagination {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.slider-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.slider-pagination-bullet-active {
    background-color: white;
    width: 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.slider-nav {
    display: none;
}

@media (min-width: 768px) {
    .slider-nav {
        display: flex;
    }
}

.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.slider-nav-button::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.slider-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.3);
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.main-slider:hover .slider-nav-button {
    opacity: 1;
}

.slider-nav-prev {
    left: 1.5rem;
}

.slider-nav-next {
    right: 1.5rem;
}

@media (min-width: 1024px) {
    .slider-nav-button {
        width: 4rem;
        height: 4rem;
    }

    .slider-nav-prev {
        left: 2rem;
    }

    .slider-nav-next {
        right: 2rem;
    }
}

/* Swiper Button Styles */
.swiper-button-prev,
.swiper-button-next {
    --swiper-navigation-size: 2rem;
    --swiper-navigation-color: white;
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.swiper-button-prev::before,
.swiper-button-next::before {
    font-size: 1.25rem;
    font-weight: 600;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.3);
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: '';
}

.swiper-button-prev:disabled,
.swiper-button-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Swiper Pagination Styles */
.swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.swiper-pagination-bullet-active {
    background-color: white;
    width: 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Улучшенное отображение активного слайда */
.swiper-slide {
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

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

/* News Section */
.news-section {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-main);
    padding: 2rem;
    height: 500px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.news-section:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-main);
}

.news-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.news-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ita-blue);
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.news-all-link:hover {
    color: var(--ita-blue-hover);
}

.news-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 1rem;
    margin-right: -1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-item {
    display: block;
    text-decoration: none;
    position: relative;
}

.news-item-dot {
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: var(--ita-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover .news-item-dot {
    opacity: 1;
}

.news-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 0.375rem;
}

.news-item-title {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
    color: var(--ita-blue);
}

/* Navigation Tiles */
.nav-tiles-section {
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -8rem;
    margin-top: -8rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.05);
    filter: blur(48px);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tiles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.tile-card {
    display: block;
    text-decoration: none;
    padding: 2rem;
    background-color: white;
    border: 1px solid var(--border-main);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.tile-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.tile-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ita-blue);
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tile-card:hover .tile-icon-wrapper {
    background-color: var(--ita-blue);
    color: white;
}

.tile-icon {
    width: 2rem;
    height: 2rem;
}

.tile-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.tile-description {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

/* Projects Section */
.projects-section {
    background-color: var(--bg-light);
    position: relative;
}

.projects-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .projects-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.projects-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

@media (min-width: 768px) {
    .projects-title {
        font-size: 2.5rem;
    }
}

.projects-subtitle {
    color: var(--text-tertiary);
}

.projects-link {
    display: none;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ita-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .projects-link {
        display: inline-flex;
    }
}

.projects-link:hover {
    color: var(--ita-blue-hover);
}

.projects-link-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.projects-link:hover .projects-link-arrow {
    transform: translateX(4px);
}

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

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background-color: white;
    border: 1px solid var(--border-main);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.project-image-wrapper {
    height: 14rem;
    background-color: var(--bg-lighter);
    overflow: hidden;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.project-tag {
    background-color: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.project-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.project-card:hover .project-name {
    color: var(--ita-blue);
}

.project-name-link {
    text-decoration: none;
    color: inherit;
}

.project-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ita-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card:hover .project-link {
    color: var(--ita-blue-hover);
}

.project-link-arrow {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-link-arrow {
    transform: translateX(4px);
}

.projects-mobile-link {
    margin-top: 2.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .projects-mobile-link {
        display: none;
    }
}

.mobile-link-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--ita-blue);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.mobile-link-btn:hover {
    background-color: var(--ita-blue-hover);
}

/* Partners Section */
.partners-section {
    background-color: var(--bg-main);
    position: relative;
}

.partners-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .partners-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem;
    }
}

.partners-header,
.careers-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 1rem;
}

.partners-title,
.careers-title {
    color: var(--text-primary);
    font-size: 2rem;
}

@media (min-width: 768px) {
    .partners-title,
    .careers-title {
        font-size: 2.5rem;
    }
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .partners-grid {
        gap: 1.5rem;
    }
}

.partner-card {
    height: 8rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-main);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-card:hover {
    filter: grayscale(0%);
    border-color: var(--ita-blue);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.partner-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.partner-card:hover .partner-name {
    color: var(--ita-blue);
}

.partner-link {
    margin-top: 2rem;
}

.partner-link-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ita-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.partner-link-btn:hover {
    color: var(--ita-blue-hover);
}

.partner-link-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.partner-link-btn:hover .partner-link-icon {
    transform: translateX(4px);
}

.careers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.careers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.career-item {
    display: block;
    text-decoration: none;
    background-color: var(--bg-light);
    border: 1px solid var(--border-main);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.career-item:hover {
    background-color: var(--ita-blue);
    border-color: var(--ita-blue);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.career-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .career-header {
        flex-direction: row;
        align-items: center;
    }
}

.career-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.career-item:hover .career-title {
    color: white;
}

.career-deadline {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
    background-color: white;
    border: 1px solid var(--border-main);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    white-space: nowrap;
    align-self: flex-start;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .career-deadline {
        align-self: auto;
    }
}

.career-item:hover .career-deadline {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: transparent;
}

.career-description {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.career-item:hover .career-description {
    color: #dbeafe;
}

.career-link {
    margin-top: 2rem;
}

.career-link-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ita-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.career-link-btn:hover {
    color: var(--ita-blue-hover);
}

/* ============= Animations ============= */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 20px;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
}

