/* Typography & Color Variables */
:root {
    /* Colors - refined academic palette */
    --primary: #1a1a2e;
    --secondary: #2d3561;
    --accent: #8b6f47;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --bg: #fafafa;
    --bg-secondary: #ffffff;
    --border: #e0e0e0;
    
    /* Typography */
    --font-display: 'Crimson Pro', 'Georgia', serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    border-bottom-color: var(--accent);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.main-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(250, 250, 250, 0.95);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    border: none;
}

.logo:hover {
    color: var(--accent);
    border: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: 0.3px;
    border: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 111, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 111, 71, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.institution {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    margin-top: var(--spacing-md);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.card li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.profiles-label {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profiles a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.profiles a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Highlights Section */
.highlights {
    padding: var(--spacing-lg) 0;
    background: var(--bg);
}

.highlights h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
}

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

.highlight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.highlight-card h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.highlight-card p {
    flex: 1;
    color: var(--text-light);
    font-size: 0.95rem;
}

.highlight-card .arrow {
    font-size: 1.5rem;
    color: var(--accent);
    align-self: flex-end;
    transition: transform 0.3s ease;
}

.highlight-card:hover .arrow {
    transform: translateX(4px);
}

/* Page Header (for subpages) */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Section (for subpages) */
.content-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.content-section h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

/* Original Footer Styling */
/* footer {
    background: var(--primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
} */

/* Footer Styling */
footer {
    margin-top: 5rem;
    padding: 2.5rem 0 2rem;
    background: var(--primary);
    border-top: 1px solid #e8e8e8;
}

footer .container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

footer .container.footer-custom {
    margin-top: 0.5rem;
}

footer p {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
}
