/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700&display=swap');

:root {
	--bg-primary: #ffe7d4;
	--nav-bg: rgba(51, 51, 51, 0.95);
	--nav-hover: rgba(255, 255, 255, 0.15);
	--text-highlight: #ffd28c;
	--text-light: #ffffff;
	--button-color: #ff8c42;
	--button-hover: #e6782e;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--bg-primary);
	font-family: 'Inter', sans-serif;
	font-size: large;
}

/* Add this rule to target all your headers */
h1, h2, h3, h4, h5, h6, .brand-text {
	font-family: 'Montserrat', sans-serif;
}


/* =========================================
   2. UNIFIED NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333; 
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.brand-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    color: #ffffff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 700; 
    font-size: 1.1rem;
    transition: background 0.3s, color 0.3s;
    border-radius: 4px;
	/* THE FIX: Reserves 3px of invisible space so the active border doesn't stretch the navbar */
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover {
    background-color: #111;
    color: #ffd28c; 
}

.nav-links li a.active {
    background-color: #111;
    color: #ffd28c;
    border-bottom: 3px solid #ffd28c;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 900px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 100%; 
        height: 100vh;
        background-color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        padding-top: 20px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0; 
    }
    
    .nav-links li a {
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.toggle .line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/* =========================================
   3. HERO BANNER
   ========================================= */
.hero-banner {
	background-image: url("background.jpg");
	background-size: cover;
	background-position: center;
	text-align: center;
	padding: 60px 20px;
	border-bottom: 3px solid var(--nav-bg);
}

.hero-banner h1 {
	color: yellow;
	font-size: 36px;
	margin: 0;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

@media screen and (max-width: 900px) {
	.hero-banner h1 {
		font-size: 28px;
	}
}


/* =========================================
   4. LAYOUT UTILITIES & TYPOGRAPHY
   ========================================= */
h2.center {
    padding-top: 30px;
}

.center {
	text-align: center;
	padding-top: 10px;
	padding-bottom: 20px;
}

.more-text {
	display: none;
}

.dots {
	display: inline;
}


/* =========================================
   5. CONTENT BOXES
   ========================================= */
.box {
	background: white;
	border-radius: 12px;
	padding: 30px;
	margin: 20px auto;
	width: 80%;
	border: 2px solid #ccc;
	text-align: justify;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
	animation: fadeIn 1s ease-in-out;
	line-height: 1.6
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   6. RESEARCH TIMELINE BLOCKS
   ========================================= */
.cd-timeline-block {
	background: white;
	border-radius: 12px;
	padding: 20px;
	margin: 20px auto;
	width: 80%;
	display: flex;
	align-items: center;
	gap: 30px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.cd-timeline-block:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cd-timeline-img img {
	border-radius: 8px;
	max-width: 275px;
	transition: transform 0.3s;
}

.cd-timeline-img img:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cd-timeline-content {
	flex: 1;
}

.expandable-text {
	margin-top: 10px;
	margin-bottom: 15px;
	line-height: 1.6;
}

.expand-button {
	background: var(--button-color);
	border: none;
	color: white;
	padding: 10px 20px;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s;
}

.expand-button:hover {
	background: var(--button-hover);
}

@media screen and (max-width: 900px) {
	.cd-timeline-block {
		flex-direction: column;
		text-align: center;
	}
	
	.cd-timeline-img img {
		max-width: 100%;
	}
}

a.h6_blue, 
a.h6_blue:visited {
    color: #0000EE;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
	background: #333;
	color: #fff;
	padding: 20px 0;
	text-align: center;
	font-size: 16px;
}