/* Color Palette & Variables */
:root {
    --primary-color: #1a365d; /* Academic Navy Blue */
    --accent-color: #2b6cb0;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a4365 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero h1 {
    color: white;
    font-size: 2.2rem;
    margin: 1rem 0;
}

.hero .tag {
    background-color: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .institution {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections & Cards */
.card-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.card-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.card-section h2 i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* Poster */
.poster-container {
    margin-top: 1.5rem;
    text-align: center;
}

.poster-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-container img:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Presentation Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-top: 1.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Resources Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.resource-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.resource-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 1rem;
}

.resource-info h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-main);
}

.resource-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Team Section */
.team-category {
    margin-top: 1.5rem;
}

.team-category h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}

.supervisor-card {
    background: #f0f4f8;
    border-left: 4px solid var(--accent-color);
}

.profile-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
}

.profile-info .role {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-color);
}

.profile-info .department {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links a {
    font-size: 1.2rem;
    margin-left: 12px;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary-color);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal / Lightbox for Poster */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .card-section { padding: 1.5rem; }
    .profile-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .social-links { margin-left: -12px; }
}

/* Presentation Slide Preview & Download Buttons */
.slide-preview-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.slide-preview-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.download-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

/* PPTX Button Style */
.btn-pptx {
    background-color: #d24726; /* PowerPoint Brand Color */
}

.btn-pptx:hover {
    background-color: #b03a1e;
}

/* PDF Button Style */
.btn-pdf {
    background-color: #e53e3e; /* PDF Brand Red */
}

.btn-pdf:hover {
    background-color: #c53030;
}