:root {
    --kgp-blue: #002147;
    --kgp-gold: #ffcc00;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background: var(--bg-light); }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 30px; font-family: 'Merriweather', serif; color: var(--kgp-blue); }

/* Header & Nav */
.top-bar { background: #001a38; color: #fff; padding: 8px 0; font-size: 0.85rem; text-align: center; }
nav { background: var(--white); border-bottom: 4px solid var(--kgp-blue); position: sticky; top: 0; z-index: 1000; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.logo h1 { font-family: 'Merriweather', serif; color: var(--kgp-blue); font-size: 1.5rem; }
.logo span { color: var(--kgp-gold); }
.nav-links { display: flex; list-style: none; }
.nav-links li { position: relative; margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--kgp-blue); font-weight: 600; }

/* Submenu */
.submenu { position: absolute; top: 100%; left: 0; background: #fff; display: none; min-width: 180px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); list-style: none; border-top: 3px solid var(--kgp-gold); }
.dropdown:hover .submenu { display: block; }
.submenu li a { padding: 12px; display: block; border-bottom: 1px solid #eee; font-size: 0.9rem; }

/* Slider */
{box-sizing: border-box}
body {font-family: Verdana, sans-serif; margin:0}
.mySlides {display: none}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}

/* Intro Grid */
.intro-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; }
.head-card { background: #fff; padding: 30px; border-top: 5px solid var(--kgp-gold); box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; }
.head-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--kgp-blue); }
.message-box { font-style: italic; margin: 15px 0; color: #555; }
.head-name { display: block; margin-top: 10px; font-weight: bold; color: var(--kgp-blue); }

/* Academic Box Format */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.prog-box { background: var(--kgp-blue); color: #fff; padding: 25px; border-radius: 8px; transition: 0.3s; }
.prog-box:hover { background: #003366; transform: translateY(-5px); }
.prog-box h5 { color: var(--kgp-gold); font-size: 1.2rem; margin-bottom: 10px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; margin-top: 20px; }
.tabs label { padding: 12px 25px; background: #ddd; cursor: pointer; margin-right: 5px; font-weight: 600; }
.tabs input { display: none; }
.tab-content { width: 100%; padding: 30px; border: 1px solid #ddd; background: #fff; display: none; margin-top: -1px; }
#tab1:checked ~ #c1, #tab2:checked ~ #c2, #tab3:checked ~ #c3 { display: block; }
#tab1:checked + label, #tab2:checked + label, #tab3:checked + label { background: var(--kgp-blue); color: #fff; }

/* Footer */
footer { background: var(--kgp-blue); color: #ccc; padding: 50px 0 0; margin-top: 50px; }
.footer-flex { display: flex; justify-content: space-between; flex-wrap: wrap; padding-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; margin-bottom: 20px; }
footer h4 { color: var(--kgp-gold); margin-bottom: 15px; }
footer ul { list-style: none; }
footer a { color: #ccc; text-decoration: none; }
.footer-bottom { background: #00152e; text-align: center; padding: 20px; font-size: 0.8rem; border-top: 1px solid #222; }

/* Page Title Banner */
.page-title {
    background: #001a38;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: #ffcc00; /* KGP Gold */
}

/* UG Grid Layout */
.ug-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Icon Box Styling */
.ug-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-bottom: 4px solid #002147;
}

.ug-card:hover {
    transform: translateY(-10px);
    border-color: #ffcc00;
}

.ug-icon-header {
    background: #002147;
    color: #ffcc00;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ug-body {
    padding: 25px;
    text-align: center;
}

.ug-body h3 {
    font-family: 'Merriweather', serif;
    color: #002147;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.ug-body p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.ug-tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f4f4f4;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #002147;
}

.active {
    color: #ffcc00 !important;
}
.link{
	font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
	font color: #FFFFFF;
	font-size: 16px;
	border: thin;
	background: #06F3CA;
	padding-left: 8px;
	border-style: dotted;
	font-weight: bold;
	a:hover { color:darkred; }

}
/* Layout for small horizontal boxes */
.lab-small-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lab-small-card {
    background: #fff;
    display: flex; /* Horizontal alignment of icon and body */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lab-small-card:hover {
    transform: translateY(-5px);
    border-color: #ffcc00; /* IITKGP Gold */
    box-shadow: 0 5px 15px rgba(0,33,71,0.1);
}

.lab-small-icon {
    background: #002147; /* IITKGP Blue */
    color: #ffcc00;
    width: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.lab-small-body {
    padding: 12px 15px;
}

.lab-small-body h4 {
    color: #002147;
    font-size: 1rem;
    margin-bottom: 6px;
    font-family: 'Merriweather', serif;
}

/* Bullet list styling */
.lab-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lab-bullets li {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-bullets i {
    color: #ffcc00;
    font-size: 0.7rem;
}

/* Container Logic */
.tabs-container input[type="radio"] {
    display: none;
}

/* Horizontal Scroll for Labels on Mobile */
.tab-labels {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid #000080;
    gap: 5px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.tab-labels::-webkit-scrollbar {
    height: 4px;
}

.tab-labels label {
    padding: 10px 20px;
    background: #f4f4f4;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    border-radius: 5px 5px 0 0;
    transition: 0.3s;
}

/* Active Tab Styling */
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"],
#tab3:checked ~ .tab-labels label[for="tab3"],
#tab4:checked ~ .tab-labels label[for="tab4"],
#tab5:checked ~ .tab-labels label[for="tab5"],
#tab6:checked ~ .tab-labels label[for="tab6"],
#tab7:checked ~ .tab-labels label[for="tab7"],
#tab8:checked ~ .tab-labels label[for="tab8"],
#tab9:checked ~ .tab-labels label[for="tab9"],
#tab10:checked ~ .tab-labels label[for="tab10"],
#tab11:checked ~ .tab-labels label[for="tab11"],
#tab12:checked ~ .tab-labels label[for="tab12"],
#tab13:checked ~ .tab-labels label[for="tab13"],
#tab14:checked ~ .tab-labels label[for="tab14"],
#tab15:checked ~ .tab-labels label[for="tab15"] {
    background: #000080;
    color: #fff;
}

/* Panel Visibility Logic */
.panel {
    display: none;
    padding: 20px;
    border: 1px solid #eee;
    background: #fff;
    min-height: 200px;
}

#tab1:checked ~ .tab-panels #p1,
#tab2:checked ~ .tab-panels #p2,
#tab3:checked ~ .tab-panels #p3,
#tab4:checked ~ .tab-panels #p4,
#tab5:checked ~ .tab-panels #p5,
#tab6:checked ~ .tab-panels #p6,
#tab7:checked ~ .tab-panels #p7,
#tab8:checked ~ .tab-panels #p8,
#tab9:checked ~ .tab-panels #p9,
#tab10:checked ~ .tab-panels #p10,
#tab11:checked ~ .tab-panels #p11,
#tab12:checked ~ .tab-panels #p12,
#tab13:checked ~ .tab-panels #p13,
#tab14:checked ~ .tab-panels #p14,
#tab15:checked ~ .tab-panels #p15 {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablet and Desktop: Grid instead of Scroll (Optional) */
@media (min-width: 900px) {
    .tab-labels {
        flex-wrap: wrap; /* Labels will wrap to multiple rows on PC if there are too many */
        overflow-x: visible;
    }
}
/* Faculty Circle Grid Layout */
.faculty-circle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.faculty-circle-card {
    text-align: center;
    background: #fdfdfd;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.faculty-circle-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Creating the Circular Image */
.circle-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%; /* This makes the image a circle */
    border: 4px solid #003366; /* Matching the deep blue tone */
}

.circle-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the circle without stretching */
}

/* Typography and Links */
.faculty-content h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.role {
    color: #b32d2d; /* Accent color for designation */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.specialization {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}

.contact-info {
    font-size: 0.8rem;
    color: #777;
}

.profile-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #003366;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.profile-link:hover {
    border-bottom: 1px solid #003366;
}