:root {
    --primary-color: #2c3e50; /* Deep Navy */
    --accent-color: #f1c40f; /* Gold */
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --nav-height: 70px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; border-bottom: 3px solid var(--accent-color); display: inline-block; padding-bottom: 5px; margin-bottom: 1.5rem; }

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-brand {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-brand span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - var(--nav-height) - 100px); /* Footer adjust */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)), url('https://source.unsplash.com/random/1920x1080/?government,architecture') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
    color: var(--light-gray);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-left: 5px solid var(--accent-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Timeline specific */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after { left: -10px; }

.timeline-content {
    padding: 20px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.date-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Profile Grid Enhancements */
.profile-grid {
    gap: 30px;
}

.profile-card {
    text-align: center;
    background: var(--white);
    padding: 0; /* Remove padding to let header stretch */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden; /* For header clipping */
    transition: all 0.3s ease;
    border-left: none; /* Remove side border */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.profile-header {
    height: 80px;
    width: 100%;
    background-color: var(--primary-color);
    margin-bottom: -50px; /* Overlap with avatar */
}

/* Header Colors */
.bg-navy { background: #2c3e50; }
.bg-gold { background: #f1c40f; }
.bg-blue { background: #3498db; }
.bg-red { background: #e74c3c; }
.bg-purple { background: #9b59b6; }
.bg-pink { background: #e91e63; }
.bg-green { background: #27ae60; }
.bg-yellow { background: #f39c12; }
.bg-cyan { background: #00bcd4; }
.bg-orange { background: #d35400; }
.bg-indigo { background: #3f51b5; }
.bg-grey { background: #607d8b; }
.bg-amber { background: #ffc107; }
.bg-brown { background: #795548; }
.bg-teal { background: #009688; }


.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-body {
    padding: 0 20px 30px;
}

.profile-card h3 {
    margin: 10px 0 5px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.designation {
    color: #7f8c8d;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nickname {
    color: var(--accent-color);
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
}

.profile-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.text-center { text-align: center; }
.section-header { margin-bottom: 50px; }
.section-header h1 { font-size: 3rem; margin-bottom: 10px; }
.section-header p { font-size: 1.2rem; color: #777; }


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

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links { display: none; } /* Simplified for now */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.right { left: 0; }
    .timeline-item.left::after, .timeline-item.right::after { left: 21px; }
    .hero h1 { font-size: 2.5rem; }
}
