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

:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --dark-blue: #1e3a8a;
    --light-blue: #dbeafe;
    --completed: #10b981;
    --ongoing: #3b82f6;
    --planned: #6b7280;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark-blue);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--light-blue);
}

.university-info {
    margin-bottom: 2rem;
}

.uni-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dept-name {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.accreditation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.accreditation-badge i {
    color: #fbbf24;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.overview-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.program-details {
    list-style: none;
}

.program-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.program-details li:before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
}

/* Accreditation */
.accreditation-section {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.accreditation-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.accreditation-desc {
    margin-bottom: 2rem;
    color: var(--text-light);
}

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

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.timeline-item .year {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 60px;
}

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

.semester-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.semester-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.semester-card.completed {
    border-top: 4px solid var(--completed);
}

.semester-card.ongoing {
    border-top: 4px solid var(--ongoing);
}

.semester-card.planned {
    border-top: 4px solid var(--planned);
}

.semester-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-badge.completed {
    background-color: #d1fae5;
    color: var(--completed);
}

.status-badge.ongoing {
    background-color: #dbeafe;
    color: var(--ongoing);
}

.status-badge.planned {
    background-color: #f3f4f6;
    color: var(--planned);
}

.semester-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.credit-info {
    color: var(--primary-blue);
    font-weight: 600;
}

.course-list {
    list-style: none;
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.course-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-code {
    font-weight: 600;
    color: var(--primary-blue);
    font-family: 'Courier New', monospace;
}

.course-name {
    flex: 1;
    margin: 0 1rem;
    color: var(--text-dark);
}

.course-credits {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.semester-footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Performance Section */
.performance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.performance-graph {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.graph-caption {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.performance-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.gpa-summary {
    margin-top: 2rem;
}

.gpa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.gpa-label {
    color: var(--text-light);
}

.gpa-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.gpa-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.gpa-status.honors {
    background-color: #d1fae5;
    color: var(--completed);
}

/* Grading System */
.grading-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.grading-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.grading-table th {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem;
    text-align: left;
}

.grading-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.grading-table tr:last-child td {
    border-bottom: none;
}

.grading-table tr:hover {
    background-color: #f9fafb;
}

/* Academic Standing */
.standing-list {
    margin-bottom: 2rem;
}

.standing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.standing-item.high-honors {
    background-color: #fef3c7;
    color: #92400e;
}

.standing-item.honors {
    background-color: #d1fae5;
    color: #065f46;
}

.standing-item.good {
    background-color: #dbeafe;
    color: #1e40af;
}

.standing-item.fair {
    background-color: #f3e8ff;
    color: #5b21b6;
}

.standing-item.satisfactory {
    background-color: #fce7f3;
    color: #9d174d;
}

.standing-range {
    font-weight: 600;
}

.calculation-info {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.calculation-info h4 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* Facilities */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.facility-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.facility-item:hover {
    transform: translateY(-3px);
}

.facility-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.facility-item h3 {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .performance-content,
    .grading-content {
        grid-template-columns: 1fr;
    }
    
    .semesters-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .course-list li {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .course-name {
        margin: 0;
    }
}