/* contacts.css */

.contacts-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contacts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path fill="rgba(255,255,255,0.1)" d="M0,100 C150,150 350,0 500,100 C650,200 850,50 1000,100 L1000,300 L0,300 Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 300;
}

.contacts-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.section-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #3498db;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-item h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-details {
    color: #666;
}

.contact-details i {
    color: #3498db;
    width: 18px;
    margin-right: 8px;
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
}

.about-department {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    padding: 4rem;
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.08),
        0 8px 25px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.about-department::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    animation: gradientShift 3s ease-in-out infinite;
}

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

.about-department .section-title {
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.about-department .section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #667eea, transparent);
    margin-left: 1rem;
}

.about-department .section-title i {
    color: #667eea;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

/* History Block */
.history-block {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3.5rem;
    border-left: 6px solid #667eea;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.06);
}

.history-block::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.history-block::after {
    content: '🏛️';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.8rem;
    opacity: 0.6;
}

.history-block p {
    margin-bottom: 0;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #2d3748;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.history-block strong {
    color: #667eea;
    font-weight: 700;
}

/* Section Headings */
.programs-section h3,
.partnerships-section h3,
.international-section h3 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 2rem;
    padding-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.programs-section h3::after,
.partnerships-section h3::after,
.international-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
    to { transform: scaleX(1); }
}

/* Subsection Headings */
.programs-section h4,
.partnerships-section h4,
.international-section h4 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.programs-section h4::before,
.partnerships-section h4::before,
.international-section h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Certificate Program */
.certificate-program {
    background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%);
    padding: 2.5rem;
    border-radius: 18px;
    margin-top: 2.5rem;
    border-left: 6px solid #38a169;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-program:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(56, 161, 105, 0.12);
}

.certificate-program::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.certificate-program::after {
    content: '🌱';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.8rem;
    opacity: 0.7;
}

.certificate-program h4 {
    color: #38a169;
    margin-top: 0;
    font-weight: 700;
    font-size: 1.4rem;
}

.certificate-program p {
    color: #2f855a;
    font-weight: 500;
    line-height: 1.7;
}

/* Partners Groups */
.partners-group {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 18px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partners-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.partners-group:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.partners-group:hover::before {
    width: 8px;
}

.partners-group h4 {
    color: #2d3748;
    margin-top: 0;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Lists */
.partners-group ul,
.programs-section ul,
.international-section ul {
    padding-left: 0;
    list-style: none;
    margin: 1rem 0;
}

.partners-group li,
.programs-section li,
.international-section li {
    margin-bottom: 1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 2rem;
    color: #4a5568;
    transition: all 0.3s ease;
    font-weight: 500;
}

.partners-group li::before,
.programs-section li::before,
.international-section li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.partners-group li:hover,
.programs-section li:hover,
.international-section li:hover {
    color: #2d3748;
    padding-left: 2.5rem;
    font-weight: 600;
}

.partners-group li:hover::before,
.programs-section li:hover::before,
.international-section li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

/* Mobility Programs */
.mobility-programs {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 2.5rem;
    border-radius: 18px;
    margin-top: 2.5rem;
    border-left: 6px solid #f59e0b;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobility-programs:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.12);
}

.mobility-programs::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.mobility-programs::after {
    content: '✈️';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.8rem;
    opacity: 0.7;
}

.mobility-programs h4 {
    color: #92400e;
    margin-top: 0;
    font-weight: 700;
    font-size: 1.4rem;
}

.mobility-programs p {
    color: #b45309;
    font-weight: 500;
    line-height: 1.7;
}

/* Section Paragraphs */
.programs-section > p,
.partnerships-section > p,
.international-section > p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Strong text styling */
.about-department strong {
    color: #667eea;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-department {
        padding: 2.5rem;
    }
    
    .history-block {
        padding: 2rem;
    }
    
    .certificate-program,
    .mobility-programs,
    .partners-group {
        padding: 2rem;
    }
    
    .about-department .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .about-department .section-title::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .about-department {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .history-block,
    .certificate-program,
    .mobility-programs,
    .partners-group {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .about-department .section-title {
        font-size: 1.6rem;
    }
    
    .programs-section h3,
    .partnerships-section h3,
    .international-section h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1280px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}
