html {
	height: 100%;
	margin: 0px;
	padding: 0px;
	text-align: left;
	font: 16px Candara, Verdana, Helvetica, Arial, sans-serif;
}

body {
    max-width: 940px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: Garamond, "Times New Roman", Times, serif;
	font-size: 1.2em;
    color: black;
    background-color: #fffffc;
}

/* Header */
DIV.mainheader {
    display: inline-block;
    position: relative;
	top: 0.1em;
	left: -4px;
	width: 100%;
    border: 4px solid #b02100;
    padding: 0.25em 2em;
    margin: 0;
    color: #b02100;
    font-style: normal;
    font-family: Candara, Verdana, Helvetica, Arial, sans-serif;
    background-color: #fbfbfb;
    background-repeat: no-repeat;
    background-position: 5 5;
    box-sizing: border-box;
}

DIV.mainheader img {
    float: left;
    margin: 0px 20px 0px 0px;
    max-width: 150px;
    height: auto;
}

/* Sidebar */
#sidebar {
    float: left;
    padding-top: 40px;
    width: 165px;
    min-width: 165px;
}

/* Main Content */
#main {
    margin-left: 185px;
    padding: 2em 0;
    padding-top: 20px;
    max-width: 755px;
}

/* Footer */
#footer {
    clear: both;
    margin-top: 2em;
}

/* Typography */
p {
    font-family: Garamond, "Times New Roman", Times, serif;
	font-size: 1.0em;
    color: black;
    line-height: 125%;
    text-align: justify;
}

strong {
    font-family: Garamond, "Times New Roman", Times, serif;
	font-size: 1.0em;
    font-weight: bold;
}

/* Links */
a:link {
    color: #FF3399;
    font-weight: bold;
    text-decoration: none;
}

a:visited {
    color: #CC3399;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #FF4400;
    font-weight: bold;
}

a:active {
    color: #BB3300;
    font-weight: bold;
} 

/* Tables */
table {
    font-family: Garamond, "Times New Roman", Times, serif;
	font-size: 1.0em;
    color: black;
    background-color: #f7f7f7;
    vertical-align: top;
    margin: 0px;
    margin-left: 30px;
    height: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    width: 100%;
    table-layout: fixed;
}

/* Style 1: Two-column table */
.table-style-1 colgroup col:first-child {
    width: 33%;
}
.table-style-1 colgroup col:last-child {
    width: 67%;
}

/* Style 2: Four-column table */
.table-style-2 colgroup col:nth-child(1) {
    width: 16%;
}
.table-style-2 colgroup col:nth-child(2) {
    width: 34%;
}
.table-style-2 colgroup col:nth-child(3) {
    width: 16%;
}
.table-style-2 colgroup col:nth-child(4) {
    width: 34%;
}

th {
    background-color: #F2BC85;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 10px;
}

td {
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 5px;
}

tr {
    vertical-align: top;
}

/* Title Text */
titletext {
    font-family: Candara, Verdana, Helvetica, Arial, sans-serif;
    color: #990000;
    font-size: 250%;
    text-align: center;
    line-height: 2;
}

subtitletext {
    font-family: Candara, Verdana, Helvetica, Arial, sans-serif;
    color: #990000;
    font-size: 150%;
    text-indent: 65px;
    text-align: center;
}

/* Headings */
h1 {
    font-family: Candara, Verdana, Helvetica, Arial, sans-serif;
    color: #990000;
}

h2 {
    font-family: Candara, Verdana, Helvetica, Arial, sans-serif;
    color: #b02100;
    background-color: #dddddd;
    text-align: center;
    padding: 0.5em;
}

h3 {
    font-family: Candara, Verdana, Helvetica, Arial, sans-serif;
    color: #990000;
}

h4 {
    font-family: Candara, Verdana, Helvetica, Arial, sans-serif;
    color: #990000;
}

/* Address/Footer */
address {
    font-family: Garamond, "Times New Roman", Times, serif;
	color: #990000;
	font-style: normal;
	margin-top: 1em;
    padding-top: 1em;
    border-top: medium dotted #990000;
}

/* Navigation */
ul.navbar {
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.navbar li.navbar {
    margin: 2px 0 6px 0;
    padding: 0;
    line-height: 40px;
    background-repeat: no-repeat;
    background-position: 0 50%;
    color: #990000;
    font-family: Candara, Futura, Verdana, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 120%;
}

ul.navbar li.navbar a {
    text-decoration: none;
    color: #990000;
    font-weight: bold;
    padding-left: 45px;
}

ul.navbar li.navbar a:visited {
    text-decoration: none;
    color: #990000;
    font-weight: bolder;
    border-style: none;
}

ul.navbar li.navbar a:hover {
    text-decoration: none;
    color: #990000;
    font-weight: bolder;
    border-style: dotted;
    border-width: light;
    border-color: #F38630;
}

ul.navbar li.navbar a:active {
    text-decoration: none;
    color: #990000;
    font-weight: bolder;
    border-style: none;
}

/* Menu Icons */
#hhome { background-image: url("/pages/raghu/WebPageImages/homeicon.png"); }
#research { background-image: url("/pages/raghu/WebPageImages/researchicon.png"); }
#people { background-image: url("/pages/raghu/WebPageImages/peopleicon.png"); }
#papers { background-image: url("/pages/raghu/WebPageImages/papersicon.png"); }
#teaching { background-image: url("/pages/raghu/WebPageImages/teachingicon.png"); }
#misc { background-image: url("/pages/raghu/WebPageImages/miscicon.png"); }

/* ===== NEW IMPROVEMENTS FROM HUGO VERSION ===== */

/* People Grid Layout - Much more compact! */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 2em 0;
    width: 100%;
}

.person-card {
    text-align: center;
}

.person-card img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px; /* Rounded corners! */
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.person-card h4 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
}

.person-card p {
    margin: 5px 0;
    font-size: 0.9rem;
    text-align: center;
}

/* People Grid Layout - for smaller items */
.people-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 2em 0;
    width: 100%;
}

.person-card-small {
    text-align: center;
}

.person-card-small img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px; /* Rounded corners! */
    margin-bottom: 7px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.person-card-small h4 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
}

.person-card-small p {
    margin: 5px 0;
    font-size: 0.9rem;
    text-align: center;
}


/* Images - General improvements */
img {
    max-width: 100%;
    height: auto;
}

/* Center aligned content */
.center {
    text-align: center;
}

/* Video Embeds - Responsive */
iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 635/416;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Tablet and smaller */
@media screen and (max-width: 940px) {
    body {
        padding: 0 15px;
    }
    
    #main {
        margin-left: 0;
        max-width: 100%;
        padding: 1em 0;
    }
    
    #sidebar {
        float: none;
        width: 100%;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    /* Stack navigation horizontally on smaller screens */
    ul.navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    ul.navbar li.navbar {
        margin: 0;
        background-position: 5px 50%;
    }
    
    ul.navbar li.navbar a {
        padding: 10px 15px 10px 50px;
        display: block;
        background-color: #fbfbfb;
        border-radius: 5px;
        border: 2px solid #dddddd;
    }
    
    /* People grid - adjust for tablets */
    .people-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .person-card img {
        width: 120px;
        height: 120px;
    }
    
    /* Tables scroll horizontally if needed */
    table {
        margin-left: 0;
        display: block;
        overflow-x: auto;
    }
}

/* Mobile phones */
@media screen and (max-width: 600px) {
    body {
        font-size: 1em;
        padding: 0 10px;
    }
    
    DIV.mainheader {
        text-align: center;
        padding: 1em;
    }
    
    DIV.mainheader img {
        float: none;
        display: block;
        margin: 0 auto 10px auto;
        max-width: 100px;
    }
    
    titletext {
        font-size: 180%;
        display: block;
    }
    
    subtitletext {
        font-size: 120%;
        text-indent: 0;
        display: block;
    }
    
    /* People grid - single column on phones */
    .people-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .person-card img {
        width: 100px;
        height: 100px;
    }
    
    /* Navigation even more compact */
    ul.navbar li.navbar a {
        font-size: 100%;
        padding: 8px 12px 8px 40px;
    }
    
    /* Adjust main content */
    #main {
        padding: 0.5em 0;
    }
    
    h2 {
        font-size: 1.3em;
        padding: 0.3em;
    }
    
    /* Make iframes more compact on mobile */
    iframe {
        aspect-ratio: 16/9;
    }
}

/* Very small screens */
@media screen and (max-width: 400px) {
    titletext {
        font-size: 150%;
    }
    
    subtitletext {
        font-size: 100%;
    }
    
    ul.navbar li.navbar a {
        padding: 6px 10px 6px 35px;
        font-size: 90%;
    }
}

/* Print styles - bonus! */
@media print {
    #sidebar {
        display: none;
    }
    
    #main {
        margin-left: 0;
        max-width: 100%;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}