/* =========================
   NIC Friendly Professional UI
   ========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    line-height:1.7;
    background:#f4f7fb;
    color:#222;
}

/* HEADER */

.main-header{
    background:linear-gradient(135deg,#002b5c,#003d7a);
    color:#fff;
    padding:45px 20px;
    text-align:center;
    border-bottom:6px solid #c9a24c;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
}

.main-header h1{
    font-size:34px;
    margin-bottom:10px;
	text-align:center;
    letter-spacing:0.5px;
}

.main-header p{
    font-size:20px;
    color:#f0d28a;
    font-weight:bold;
    text-transform:uppercase;
    letter-spacing:1px;
	text-align:center;
}

/* NAVIGATION */

nav{
    background:#003d7a;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    border-bottom:3px solid #c9a24c;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

nav a{
    color:#fff;
    text-decoration:none;
    padding:15px 18px;
    font-size:14px;
    font-weight:bold;
    text-transform:uppercase;
    transition:0.3s ease;
}

nav a:hover{
    background:#c9a24c;
    color:#002b5c;
}

/* MAIN CONTAINER */

.container{
    width:95%;
    max-width:1400px;
    margin:30px auto;
    background:#fff;
    padding:35px;
    border-radius:8px;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
}

/* SECTION HEADINGS */

h2{
    color:#002b5c;
    margin-top:20px;
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:3px solid #c9a24c;
    font-size:30px;
}

h3{
    color:#004b99;
    margin-top:30px;
    margin-bottom:15px;
    font-size:22px;
    border-left:5px solid #c9a24c;
    padding-left:12px;
}

/* PARAGRAPHS */

p{
    margin-bottom:15px;
    text-align:justify;
}

/* RESIDENT LAYOUT */

.residents-layout{
    display:grid;
    grid-template-columns:1fr 2fr;
    gap:25px;
    margin-top:25px;
}

/* CARDS */

.resident-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.resident-card{
    background:#f9fbff;
    border:1px solid #d6e0ea;
    border-top:4px solid #002b5c;
    padding:20px;
    border-radius:6px;
    transition:0.3s;
}

.resident-card:hover{
    transform:translateY(-2px);
}

.resident-card h4{
    color:#002b5c;
    margin-bottom:15px;
    border-bottom:1px solid #ddd;
    padding-bottom:8px;
    font-size:17px;
}

/* =========================
   NORMAL BULLETS FIX
   ========================= */

.faculty-list,
.resident-list,
.pub-list,
.cme-list{
    list-style-type:disc !important;
    list-style-position:outside;
    padding-left:25px;
    margin-left:10px;
}

.faculty-list li,
.resident-list li,
.pub-list li,
.cme-list li{
    display:list-item !important;
    margin-bottom:10px;
    position:static;
    padding-left:0;
}

/* REMOVE CUSTOM SYMBOLS */

.faculty-list li::before,
.resident-list li::before{
    content:none !important;
}

.compact-list li{
    margin-bottom:5px;
}

.name{
    font-weight:bold;
    color:#002b5c;
}

.hod-tag{
    background:#ffe082;
    color:#000;
    padding:3px 8px;
    border-radius:4px;
}

/* TABLES */

.table-container{
    overflow-x:auto;
    margin-top:20px;
}

table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

th{
    background:#002b5c;
    color:#fff;
    padding:14px;
    border:1px solid #c9a24c;
    text-align:left;
}

td{
    border:1px solid #ddd;
    padding:14px;
    vertical-align:top;
}

tr:nth-child(even){
    background:#f5f8fc;
}

tr:hover{
    background:#eef5ff;
}

/* PUBLICATION + CME */

.pub-list li,
.cme-list li{
    margin-bottom:18px;
    padding-bottom:12px;
    border-bottom:1px solid #eee;
}

.year-label{
    font-weight:bold;
    color:#c9a24c;
    margin-right:8px;
}

/* FOOTER */

footer{
    margin-top:50px;
    background:#002b5c;
    color:#fff;
    text-align:center;
    padding:30px 20px;
    border-top:5px solid #c9a24c;
}

footer p{
    margin-bottom:8px;
    text-align:center;
}

footer strong{
    color:#f0d28a;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:#b7bcc4;
    border-radius:10px;
}

/* MOBILE */

@media(max-width:992px){

    .residents-layout{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .main-header h1{
        font-size:26px;
    }

    .main-header p{
        font-size:16px;
    }

    .container{
        padding:20px;
    }

    h2{
        font-size:24px;
    }

    h3{
        font-size:20px;
    }

    nav a{
        padding:12px 10px;
        font-size:12px;
    }

}

@media(max-width:480px){

    .main-header{
        padding:30px 15px;
    }

    .main-header h1{
        font-size:22px;
    }

    .main-header p{
        font-size:14px;
    }

    table{
        font-size:12px;
    }

}