required {
    color: #dc3545;
    font-weight: 600;
}

.required {
    margin: 4px;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

:root {
    --primary: #c41e3a;
    --secondary: #1a1a2e;
    --accent: #c0392b;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --cream: #ffffff;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* universityhero Section */
.universityhero {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(26, 26, 46, 0.9)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231a1a2e" width="1200" height="800"/><path fill="%23c41e3a" opacity="0.1" d="M0 400 Q300 200 600 400 T1200 400 V800 H0 Z"/></svg>');
    color: white;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.universityhero::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" opacity="0.05"/></svg>');
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

.universityhero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.university-name {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.university-tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.universityhero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.universitystat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.universitystat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

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

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    inset-inline: 0;
    margin-inline: auto;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-card-list {
    list-style: none;
}

.info-card-list li {
    padding: 0.5rem 0;
    padding-inline-start: 1.5rem;
    position: relative;
    color: #555;
}

.info-card-list li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary);
    font-weight: bold;
}

.programs-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.programs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.program-category {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 1.5rem 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.faculty-name {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.programs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Prevents table from shrinking too much */
}

.programs-table thead {
    background: #f8f9fa;
}

.programs-table th {
    padding: 1.2rem 1.5rem;
    text-align: start;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    white-space: nowrap; /* Prevents header text from wrapping */
}

.programs-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.programs-table tbody tr {
    transition: background 0.2s;
}

.programs-table tbody tr:hover {
    background: #f9f9f9;
}

.program-name {
    font-weight: 500;
    color: #2c3e50;
}

.tuition-fee {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.scholarship-fee {
    color: #27ae60;
    font-weight: 600;
    font-size: 1rem;
}


.language-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-en {
    background: #e3f2fd;
    color: #1976d2;
}

.lang-tr {
    background: #fce4ec;
    color: #c2185b;
}

/* Requirements Section */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.requirement-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirement-list {
    list-style: none;
}

.requirement-list li {
    padding: 0.6rem 0;
    padding-inline-start: 2rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.requirement-list li::before {
    content: '📄';
    position: absolute;
    inset-inline-start: 0;
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 52%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-inline-start: 52%;
}


/* Timeline Container */
.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Timeline Card */
.timeline-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Timeline Header */
.timeline-header {
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spring-term {
    background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
}

.fall-term {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.timeline-icon {
    font-size: 2.5rem;
}

.timeline-term-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Timeline Body */
.timeline-body {
    padding: 2rem;
}

.timeline-date-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.spring-term + .timeline-body .timeline-date-badge {
    background: linear-gradient(135deg, #16a085 0%, #2ecc71 100%);
}

.timeline-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.timeline-event-description {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Timeline Note */
.timeline-note {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid #ffc107;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.note-content {
    color: #856404;
    line-height: 1.6;
    font-size: 1rem;
}

.note-content strong {
    color: #533f03;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        padding: 1.5rem;
    }

    .timeline-icon {
        font-size: 2rem;
    }

    .timeline-term-title {
        font-size: 1.2rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid;
}

.btn-primary {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .university-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .universityhero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-table th,
    .programs-table td {
        padding: 0.8rem;
    }


    .programs-table-wrapper {
        position: relative;
    }

    .programs-table-wrapper::after {
        content: '→';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        color: var(--primary);
        opacity: 0.5;
        pointer-events: none;
        animation: slideHint 1.5s ease-in-out infinite;
    }

    @keyframes slideHint {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50% { transform: translateY(-50%) translateX(5px); }
    }
}
