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

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fb;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ------------------------------
   Header
--------------------------------*/
.header {
    background: #0f172a; /* dark blue/black */
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

/* Navigation */
.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 10px;
    gap: 25px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    transition: 0.3s;
}

.nav-list a:hover {
    color: #38bdf8;
    text-shadow: 0 0 4px rgba(255,255,255,0.8);
}

/* ------------------------------
   Main Profile Section
--------------------------------*/
.main {
    margin: 50px auto;
}

.profile-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

/* Profile Picture */
.profile-picture img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.4s;
}

.profile-picture img:hover {
    transform: scale(1.05);
}

/* Introduction */
.intro {
    max-width: 600px;
}

.greeting {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    animation: fadeDown 1s ease;
}

.description {
    font-size: 1rem;
    margin-bottom: 20px;
}

.role-list {
    list-style: square;
    padding-left: 20px;
}

.role-list li {
    margin-bottom: 8px;
}

/* ------------------------------
   Footer
--------------------------------*/
.footer {
    text-align: center;
    padding: 20px 0;
    background: #0f172a;
    color: #fff;
    margin-top: 40px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ------------------------------
   Animations
--------------------------------*/
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------
   Responsive Design
--------------------------------*/
@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
        gap: 15px;
    }

    .profile-picture img {
        width: 180px;
        height: 180px;
    }

    .greeting {
        text-align: center;
    }

    .intro {
        text-align: center;
    }
}

/* Subpage Banner (same style as About) */
.subpage-banner {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    margin-bottom: 40px;
    border-radius: 12px;
}

.subpage-banner h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.subpage-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Active link highlight */
.nav-links a.active {
    color: #ffd700;
    font-weight: 700;
}


/* Layout with right sidebar */
.main-layout {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 32px;
    align-items: start;
}

/* Force profile content to stay left */
.profile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Events Sidebar */
/* Sidebar */
.events-sidebar {
    background: linear-gradient(180deg, #f1f5f9, #ffffff);
    padding: 22px;
    border-radius: 14px;
    position: sticky;
    top: 120px;
    border-left: 5px solid #003973;
}

.events-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1e293b;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 6px;
}

.event {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

.event:last-child {
    border-bottom: none;
}

.event-date {
    font-size: 0.85rem;
    color: #64748b;
}

.event-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
}

/* Responsive */
/* Mobile fallback */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* === FIX GRID POSITIONING ISSUE === */

.main-layout {
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 32px;
    align-items: start;
}

/* Force correct column placement */
.profile-section {
    grid-column: 1 / 2;
    justify-content: flex-start;   /* 🔑 stop centering */
}

/* Events on right */
.events-sidebar {
    grid-column: 2 / 3;
    justify-self: stretch;
}

