/* Partnerships Page Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --background-dark: #1a1a1a;
    --background-card: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --border-radius: 0px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Hero Section */
.page-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    line-height: 1.6;
}

/* Partnerships Overview Section */
.section-content .overview-content {
    margin: var(--space-xxl) 0;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xxl);
    align-items: center;
    position: relative;
}

.overview-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1) 0%, rgba(231, 76, 60, 0.1) 50%, rgba(46, 204, 113, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.overview-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #3498db 50%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overview-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.overview-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.overview-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.overview-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.overview-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--space-xl);
    color: white;
}

.overlay-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Overview Stats */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.stat-item .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e74c3c 50%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cooperation Directions */
.cooperation-directions {
    margin: var(--space-xl) 0;
}

.cooperation-directions h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
}

.cooperation-directions h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 1px;
}

.direction-item {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.direction-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.direction-item h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.direction-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Info Sections */
.info-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, #000000 0%, var(--primary-color) 50%, #000000 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

/* Partnerships Specific Styles */
.partnerships-section {
    margin: var(--space-xl) 0;
}

.partnerships-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.partnership-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.partnership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: height 0.3s ease;
}

.partnership-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: var(--accent-color);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.partnership-card:hover::before {
    height: 6px;
}

.partnership-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.partnership-card:hover .partnership-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.partnership-card h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.partnership-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.partnership-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partnership-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: var(--space-md);
}

.partnership-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .partnerships-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .partnership-card {
        padding: var(--space-lg);
    }
    
    .partnerships-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .partnership-card {
        padding: var(--space-md);
    }
    
    .partnership-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Tab Navigation Styles */
.partnerships-nav {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg) 0;
    margin: var(--space-xl) 0;
    backdrop-filter: blur(10px);
}

.nav-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}


.tab-link {
    flex: 1;
    padding: var(--space-md) var(--space-sm);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-link:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.tab-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.tab-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}


/* Content Section Styles */
.content-section {
    display: none;
    padding: var(--space-xxl) 0;
    position: relative;
}

.content-section:first-of-type {
    display: block;
}

.theme-blue {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.02) 100%);
}

.theme-red {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(192, 57, 43, 0.02) 100%);
}

.theme-green {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(39, 174, 96, 0.02) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design for Overview */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .overview-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .overview-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .overview-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .overview-image img {
        height: 350px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .nav-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .tab-link {
        padding: var(--space-md);
        font-size: 0.9rem;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        white-space: normal;
        text-align: left;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* School Cards Styles - Horizontal Layout */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(3, 450px);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    justify-content: center;
}

.school-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 230px;
    width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.school-logo {
    width: 230px;
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.school-card:hover .school-logo img {
    transform: scale(1.05);
}

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

.school-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.school-location {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.school-description {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .schools-grid {
        grid-template-columns: repeat(2, 450px);
    }
}

@media (max-width: 1000px) {
    .schools-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .school-card {
        height: 200px;
        width: 100%;
        max-width: 450px;
    }
    
    .school-logo {
        width: 200px;
    }
    
    .school-info {
        padding: var(--space-md);
    }
    
    .school-info h3 {
        font-size: 1.3rem;
    }
    
    .school-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .school-card {
        height: 180px;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    .school-logo {
        width: 100%;
        height: 60%;
    }
    
    .school-info {
        flex: 1;
        padding: var(--space-sm);
    }
    
    .school-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .school-location {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .school-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-xs);
    }
    
    .overview-text h2 {
        font-size: 1.8rem;
    }
    
    .overview-image img {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}
