/* General page styling */
:root {
    --primary-color: #003366;
    --secondary-color: #4CAF50;
    --accent-color: #007bff;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
    background: linear-gradient(135deg, #f2fcfe 0%, #e6e6ff 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header section */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Profile image */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-right: 20px;
}

.header-content {
    flex: 1;
}

/* Main title */
h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
    left: 50%;
    transform: translateX(-50%);
}

h2 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    font-size: 1.5rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 i {
    color: var(--accent-color);
}

/* Media section */
.media-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.media-item {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.media-item h3 {
    margin-bottom: 10px;
}

audio, video {
    width: 100%;
    border-radius: 8px;
}

/* Content box */
.content-box {
    background-color: var(--card-bg);
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

/* Links */
.university-link {
    margin: 15px 0;
}

a {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Lists */
.courses-section {
    margin: 25px 0;
}

ol {
    background-color: var(--card-bg);
    padding: 20px 20px 20px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 15px 0;
}

ol li {
    margin-bottom: 8px;
    padding: 5px 0;
}

/* Table styling - Keeping original color */
.grades-section {
    margin: 25px 0;
}

.grades-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-header th {
    background-color: yellow;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
}

.grades-table th, .grades-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.grades-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.grades-table tr:hover {
    background-color: #f1f1f1;
}

/* Forms section */
.forms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.form-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Input fields */
input[type="text"], input[type="email"], input[type="file"], 
input[type="date"], input[type="search"], input[list] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Radio buttons */
input[type="radio"] {
    margin-right: 8px;
}

/* Submit button */
input[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Special text styling */
#special-text {
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    font-size: 1.5rem;
    font-family: "Times New Roman", serif;
    text-align: center;
    background-color: green;
    color: red;
    padding: 15px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    text-shadow: 2px 2px 3px #000;
    animation: pulse 2s infinite;
    box-shadow: var(--shadow);
}

/* Animation */
@keyframes pulse {
    0% { transform: scale(1); background-color: green; }
    50% { transform: scale(1.02); background-color: limegreen; }
    100% { transform: scale(1); background-color: green; }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        margin: 0 0 15px 0;
    }
    
    .media-section {
        flex-direction: column;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .forms-container {
        grid-template-columns: 1fr;
    }
}